Queries the trusted services for which a member account is specified as a delegated administrator account.
In this example, the trusted services for which the member account 138660628348****
is specified as a delegated administrator account are queried. The return result
shows that the member account is specified as a delegated administrator account of
Cloud Firewall.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListDelegatedServicesForAccount |
The operation that you want to perform. Set the value to ListDelegatedServicesForAccount. |
AccountId | String | Yes | 138660628348**** |
The ID of the member account in the resource directory. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DelegatedServices | Array of DelegatedService |
The information of the trusted services. Note If the value of this parameter is empty, the member account is not specified as a
delegated administrator account.
|
|
DelegatedService | |||
DelegationEnabledTime | String | 1616652684164 |
The time when the member account was specified as a delegated administrator account. |
ServicePrincipal | String | cloudfw.aliyuncs.com |
The identification of the trusted service. |
RequestId | String | D9C03B94-9396-4794-A74B-13DC437556A6 |
The ID of the request. |
Examples
Sample requests
https://resourcemanager.aliyuncs.com/?Action=ListDelegatedServicesForAccount
&AccountId=138660628348****
&<Common request parameters>
Sample success responses
XML
format
<ListDelegatedServicesForAccountResponse>
<RequestId>D9C03B94-9396-4794-A74B-13DC437556A6</RequestId>
<DelegatedServices>
<DelegatedService>
<DelegationEnabledTime>1616652684164</DelegationEnabledTime>
<ServicePrincipal>cloudfw.aliyuncs.com</ServicePrincipal>
</DelegatedService>
</DelegatedServices>
</ListDelegatedServicesForAccountResponse>
JSON
format
{
"RequestId": "D9C03B94-9396-4794-A74B-13DC437556A6",
"DelegatedServices": {
"DelegatedService": [
{
"DelegationEnabledTime": "1616652684164",
"ServicePrincipal": "cloudfw.aliyuncs.com"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.