调用RemoveCloudAccount移除云账号类型的成员。移除后,将作为独立的账号存在,不再被资源目录主账号管控。
说明 资源账号类型的成员不可以从资源目录中移除。资源账号依赖资源目录存在,若您仍希望将其移除,请先将资源账号升级为云账号,请参见PromoteResourceAccount。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | RemoveCloudAccount |
要执行的操作。取值:RemoveCloudAccount。 |
AccountId | String | 是 | 12323344**** |
需要移除的云账号ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 9B34724D-54B0-4A51-B34D-4512372FE1BE |
请求ID。 |
示例
请求示例
https://resourcemanager.aliyuncs.com/?Action=RemoveCloudAccount
&AccountId=12323344****
&<公共请求参数>
正常返回示例
XML
格式
<RemoveCloudAccountResponse>
<RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
</RemoveCloudAccountResponse>
JSON
格式
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter.AccountId | You must specify AccountId. | AccountID不能为空。 |
400 | InvalidParameter.AccountId | The AccountId is invalid. | 主账号ID无效,请输入16位账号ID。 |
404 | EntityNotExists.Account | This resource directory account does not exist. | 成员不存在,请先创建成员。 |
409 | AccountTypeOrStatusMismatch | You cannot perform the action on the member account. | 成员类型或状态不匹配。 |
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 |
访问错误中心查看更多错误码。