All Products
Search
Document Center

Resource Management:ListDelegatedAdministrators

Last Updated:Jun 05, 2024

Queries delegated administrator accounts.

Operation description

This topic provides an example on how to call the API operation to query all delegated administrator accounts in a resource directory. The response shows that two delegated administrator accounts for Cloud Firewall exist in the resource directory.

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:ListDelegatedAdministratorsList
  • Account
    acs:resourcemanager:*:{#accountId}:account/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ServicePrincipalstringNo

The identifier of the trusted service.

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

cloudfw.aliyuncs.com
PageNumberlongNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizelongNo

The number of entries to return on each page.

Valid values: 1 to 100. Default value: 10.

10

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

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

009C3A02-7D4B-416C-9CE7-548C91508F1E
TotalCountlong

The total number of entries returned.

2
PageSizelong

The number of entries returned per page.

10
PageNumberlong

The page number of the returned page.

1
Accountsobject []

The information of the delegated administrator accounts.

AccountIdstring

The ID of the member.

138660628348****
DisplayNamestring

The display name of the member.

abc
JoinMethodstring

The way in which the member joins the resource directory. Valid values:

  • invited: The member is invited to join the resource directory.
  • created: The member is directly created in the resource directory.
created
ServicePrincipalstring

The identifier of the trusted service.

cloudfw.aliyuncs.com
DelegationEnabledTimestring

The time when the member was specified as a delegated administrator account.

1616652684164

Examples

Sample success responses

JSONformat

{
  "RequestId": "009C3A02-7D4B-416C-9CE7-548C91508F1E",
  "TotalCount": 2,
  "PageSize": 10,
  "PageNumber": 1,
  "Accounts": {
    "Account": [
      {
        "AccountId": "138660628348****",
        "DisplayName": "abc",
        "JoinMethod": "created",
        "ServicePrincipal": "cloudfw.aliyuncs.com",
        "DelegationEnabledTime": "1616652684164"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history