Queries the list of trusted services enabled for the management account or a delegated administrator account.
Operation description
This operation can be called only by the management account or a delegated administrator account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:ListTrustedServiceStatus |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| AdminAccountId |
string |
No |
The management account or a delegated administrator account. Valid values:
For more information about trusted services and delegated administrator accounts, see Overview of trusted services and Manage delegated administrator accounts. |
177242285274**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TotalCount |
integer |
The total number of entries. |
2 |
| RequestId |
string |
The request ID. |
CD76D376-2517-4924-92C5-DBC52262F93A |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| EnabledServicePrincipals |
object |
||
| EnabledServicePrincipal |
array<object> |
The list of enabled trusted services. |
|
|
object |
The list of enabled trusted services. |
||
| ServicePrincipal |
string |
The identifier of the trusted service. |
config.aliyuncs.com |
| EnableTime |
string |
The time when the trusted service was enabled. The time is displayed in UTC in ISO 8601 format. |
2019-02-18T15:32:10.473Z |
Examples
Success response
JSON format
{
"TotalCount": 2,
"RequestId": "CD76D376-2517-4924-92C5-DBC52262F93A",
"PageSize": 10,
"PageNumber": 1,
"EnabledServicePrincipals": {
"EnabledServicePrincipal": [
{
"ServicePrincipal": "config.aliyuncs.com",
"EnableTime": "2019-02-18T15:32:10.473Z"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The account is not used to enable a resource directory. Use the account to enable a resource directory first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.