All Products
Search
Document Center

Resource Management:RegisterDelegatedAdministrator

Last Updated:Jun 05, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
resourcemanager:RegisterDelegatedAdministratorWrite
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccountIdstringYes

The ID of the member in the resource directory.

181761095690****
ServicePrincipalstringYes

The identifier of the trusted service.

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

cloudfw.aliyuncs.com

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

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

0A45FC8F-54D2-4A65-8338-25E5DEBDA304

Examples

Sample success responses

JSONformat

{
  "RequestId": "0A45FC8F-54D2-4A65-8338-25E5DEBDA304"
}

Error codes

HTTP status codeError codeError messageDescription
409InvalidParameter.ServicePrincipalThe specified ServicePrincipal is invalid.The specified ServicePrincipal is invalid.
409AccountAlreadyRegisteredThe specified account is already a delegated administrator for this service.The specified account is already a delegated administrator for this service.
409DelegatedAccountNumberExceededThe maximum number of delegated administrators for the service principal is exceeded.The maximum number of delegated administrators for the service principal is exceeded.
409CannotRegisterMasterAsDelegatedAdministratorYou 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 timeSummary of changesOperation
No change history