Removes a delegated administrator account for a trusted service.

Note If the delegated administrator account that you want to remove has historical management tasks in the related trusted service, the trusted service may be affected after the delegated administrator account is removed. Therefore, proceed with caution.

This topic provides an example on how to call the API operation to remove the delegated administrator account 181761095690**** for Cloud Firewall.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeregisterDelegatedAdministrator

The operation that you want to perform. Set the value to DeregisterDelegatedAdministrator.

AccountId String Yes 181761095690****

The ID of the member in the resource directory.

ServicePrincipal String Yes cloudfw.aliyuncs.com

The identifier of the trusted service.

For more information, see the Trusted service identifier column in Supported trusted services.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String DF5D5C52-7BD0-40E7-94C6-23A1505038A2

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=DeregisterDelegatedAdministrator
&AccountId=181761095690****
&ServicePrincipal=cloudfw.aliyuncs.com
&<Common request parameters>

Sample success responses

XML format

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 format

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

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

Error codes

HTTP status code Error code Error message Description
409 InvalidParameter.ServicePrincipal The specified ServicePrincipal is invalid. The error message returned because the value of the ServicePrincipal parameter is invalid.
409 AccountNotRegistered The specified account is not a delegated administrator for this service. The error message returned because the specified member is not the delegated administrator account of the current trusted service.

For a list of error codes, visit the API Error Center.