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.
This topic provides an example on how to call the API operation to specify the member 181761095690****
as a delegated administrator account of Cloud Firewall.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
resourcemanager:RegisterDelegatedAdministrator | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AccountId | string | Yes | The 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 |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0A45FC8F-54D2-4A65-8338-25E5DEBDA304"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
409 | InvalidParameter.ServicePrincipal | The specified ServicePrincipal is invalid. | The specified ServicePrincipal is invalid. |
409 | AccountAlreadyRegistered | The specified account is already a delegated administrator for this service. | 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. | The maximum number of delegated administrators for the service principal is exceeded. |
409 | CannotRegisterMasterAsDelegatedAdministrator | You attempted to register the management account as a delegated administrator for the service. You can designate only a member as a delegated administrator. | You attempted to register the management account as a delegated administrator for the service. You can designate only a member as a delegated administrator. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|