调用DeregisterDelegatedAdministrator移除可信服务的委派管理员账号。

说明 如果被移除的委派管理账号在可信服务中存在历史管理任务,移除操作可能对可信服务的正常使用产生影响。请在移除前慎重考虑可能产生的影响,然后再进行移除操作。

本文将提供一个示例,移除云防火墙的委派管理员账号181761095690****

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DeregisterDelegatedAdministrator

要执行的操作。取值:DeregisterDelegatedAdministrator

AccountId String 181761095690****

资源目录中的成员账号UID。

ServicePrincipal String cloudfw.aliyuncs.com

可信服务的标识。

具体信息,请参见支持的可信服务中的可信服务标识列。

关于公共请求参数的详情,请参见公共参数

返回数据

名称 类型 示例值 描述
RequestId String DF5D5C52-7BD0-40E7-94C6-23A1505038A2

请求ID。

示例

请求示例

https://resourcemanager.aliyuncs.com/?Action=DeregisterDelegatedAdministrator
&AccountId=181761095690****
&ServicePrincipal=cloudfw.aliyuncs.com
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<DeregisterDelegatedAdministratorResponse>
	<RequestId>DF5D5C52-7BD0-40E7-94C6-23A1505038A2</RequestId>
</DeregisterDelegatedAdministratorResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DF5D5C52-7BD0-40E7-94C6-23A1505038A2"
}

错误码

HttpCode 错误码 错误信息 描述
409 InvalidParameter.ServicePrincipal The specified ServicePrincipal is invalid. 指定参数ServicePrincipal无效。
409 AccountNotRegistered The specified account is not a delegated administrator for this service. 指定账号不是当前可信服务的委派管理员。

访问错误中心查看更多错误码。