Specifies a member in a resource directory as a delegated administrator account of a trusted service.
Operation description
The delegated administrator account can be used to access the information of the resource directory and view the structure and members of the resource directory. The delegated administrator account can also be used to perform service-related management operations in the trusted service on behalf of the management account of the resource directory. When you call this operation, you must take note of the following limits:
- Only some trusted services support delegated administrator accounts. For more information, see Supported trusted services.
- Only the management account of a resource directory or an authorized RAM user or RAM role of the management account can be used to call this operation.
- The number of delegated administrator accounts that are allowed for a trusted service is defined by the trusted service.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccountId | string | Yes | The Alibaba Cloud account ID of the member in the resource directory. | 181761095690**** |
ServicePrincipal | string | Yes | The identifier of the trusted service. For more information, see the | cloudfw.aliyuncs.com |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0A45FC8F-54D2-4A65-8338-25E5DEBDA304"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
409 | InvalidParameter.ServicePrincipal | The specified ServicePrincipal is invalid. |
409 | AccountAlreadyRegistered | The specified account is already a delegated administrator for this service. |
409 | DelegatedAccountNumberExceeded | The maximum number of delegated administrators for the service principal is exceeded. |
409 | CannotRegisterMasterAsDelegatedAdministrator | You attempted to register the enterprise management account as a delegated administrator for the service. You can designate only a member account as a delegated administrator. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|