You need to enable JavaScript to run this app.
导航
DisassociateResourceShare - 接触共享单元实体关联关系
最近更新时间:2025.03.03 16:21:37首次发布时间:2025.03.03 16:21:37

接触共享单元实体关联关系

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

DisassociateResourceShare

要执行的操作,取值:DisassociateResourceShare。

Version
String

2024-01-01

API的版本,取值:2024-01-01。

ResourceShareTrn
String

trn:resource_share:cn-beijing:2000000000:resource_share/rs-03***119c96

共享单元Trn

Principals
Array of String

2000000001,trn:organization::2000000000:organization/74399781619,trn:organization::2000000000:ou/74734524402

需要解除关联的Principals列表(principal是指被共享方,用户、组织或者组织单元)

ResourceTrns
Array of String

trn:vpc:cn-beijing:2000000000:subnet/subnet-rr10x57crloqp,trn:vpc:cn-beijing:2000000000:subnet/subnet-rr1qoio89jsdj

需要解除关联的资源列表

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=DisassociateResourceShare&Version=2024-01-01&ResourceShareTrn=trn:resource_share:cn-beijing:2000000000:resource_share/rs-***86400f
&Principals.1=trn:organization::2000000000:organization/7352****8867&ResourceTrns.1=trn:vpc:cn-beijing:2000000000:subnet/subnet***7px00tanx HTTP/1.1
Host: x.y.z
X-Date: 20250225T024827Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250225/cn-beijing/resource_share/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20250225104658049225247125952A7E",
    "Action": "DisassociateResourceShare",
    "Version": "2024-01-01",
    "Service": "resource_share",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
MissingParameter

Required parameter[%v] is not found

参数缺失,具体缺失的参数在会在Error Message中给出

400
MalformedResourceTrn

resource trn[%v] is malformed

非法的ResourceTrn参数

400
InvalidResourceType

resource-type[%v] is not supported to be shared

资源类型不支持被共享

400
AssociatingConflict

entity[%v] is not associated to resource-share[%v] (or still associating) so you cannot disassociate yet

实体未关联共享单元,无法解除关联

400
MalformedPrincipal

principal[%v] is malformed

非法的Principal参数(principal是指被共享方,用户、组织或者组织单元)

400
InvalidResourceShare

the status of resource-share[%v] is not ACTIVE

无效的共享单元,共享单元不存在或已被删除

404
ResourceShareNotFound

resource-share[%v] not found

找不到共享单元,传入的共享单元Trn不存在,或已被删除

404
AssociationNotFound

association entity[%v] is not associated to resource-share[%v]

共享单元找不到对应的关联实体,共享单元未关联对应的实体,具体实体会在Error Message中给出

500
InternalError

Something went wrong in internal service, please try again later

服务内部系统错误,往往是由服务内部组件异常、网络异常或服务自身bug导致,请及时联系相关管理员进行排查确认