Removes a delegated administrator account.

Note The removal may affect the use of the related trusted service. Therefore, exercise with caution.

In this example, the delegated administrator account 181761095690**** is removed 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 account in the resource directory.

ServicePrincipal String Yes cloudfw.aliyuncs.com

The identification of the trusted service.

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

<DeregisterDelegatedAdministratorResponse>
      <RequestId>DF5D5C52-7BD0-40E7-94C6-23A1505038A2</RequestId>
</DeregisterDelegatedAdministratorResponse>

JSON format

{
  "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 account is not the delegated administrator account of the current trusted service.

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