Queries delegated administrator accounts.

In this example, all delegated administrator accounts in a resource directory are queried. The return result shows that two delegated administrator accounts for Cloud Firewall exist in the resource directory.


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 ListDelegatedAdministrators

The operation that you want to perform. Set the value to ListDelegatedAdministrators.

ServicePrincipal String No cloudfw.aliyuncs.com

The identification of the trusted service.

PageNumber Long No 1

The number of the page to return.

Pages start from page 1 Default value: 1.

PageSize Long No 10

The number of entries to return on each page.

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

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

Response parameters

Parameter Type Example Description
RequestId String 009C3A02-7D4B-416C-9CE7-548C91508F1E

The ID of the request.

TotalCount Long 2

The total number of entries returned.

PageSize Long 10

The number of entries returned per page.

PageNumber Long 1

The page number of the returned page.

Accounts Array of Account

The information of the delegated administrator accounts.

AccountId String 138660628348****

The ID of the member account.

DisplayName String abc

The name of the member account.

JoinMethod String created

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.
ServicePrincipal String cloudfw.aliyuncs.com

The identification of the trusted service.

DelegationEnabledTime String 1616652684164

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


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" ?>

JSON format

HTTP/1.1 200 OK

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

Error codes

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