调用ListTrustedServiceStatus获取集成了资源目录的云服务列表。
说明 该接口仅限企业管理账号使用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListTrustedServiceStatus |
要执行的操作。取值:ListTrustedServiceStatus。 |
PageNumber | Integer | 否 | 1 |
页码。 起始值:1。默认值:1。 |
PageSize | Integer | 否 | 10 |
分页时每页显示的数据行数。 取值范围:1~100。默认值:10。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
EnabledServicePrincipals | Array |
集成了资源目录的云服务信息。 |
|
EnabledServicePrincipal | |||
EnableTime | String | 2019-02-18T15:32:10.473Z |
开启云服务的时间。 |
ServicePrincipal | String | config.aliyuncs.com |
集成了资源目录的云服务标识。 |
PageNumber | Integer | 1 |
页码。 |
PageSize | Integer | 10 |
分页时每页显示的数据行数。 |
RequestId | String | CD76D376-2517-4924-92C5-DBC52262F93A |
请求ID。 |
TotalCount | Integer | 2 |
数据总条数。 |
示例
请求示例
https://resourcemanager.aliyuncs.com/?Action=ListTrustedServiceStatus
&<公共请求参数>
正常返回示例
XML
格式
<ListTrustedServiceStatusResponse>
<EnabledServicePrincipal>
<ServicePrincipal>config.aliyuncs.com</ServicePrincipal>
<EnableTime>2019-02-18T15:32:10.473Z</EnableTime>
</EnabledServicePrincipal>
<EnabledServicePrincipal>
<ServicePrincipal>actiontrail.aliyuncs.com</ServicePrincipal>
<EnableTime>2019-02-16T15:32:10.473Z</EnableTime>
</EnabledServicePrincipal>
<RequestId>CD76D376-2517-4924-92C5-DBC52262F93A</RequestId>
</ListTrustedServiceStatusResponse>
JSON
格式
{
"RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 2,
"EnabledServicePrincipals": {
"EnabledServicePrincipal": [
{
"ServicePrincipal":"config.aliyuncs.com",
"EnableTime":"2019-02-18T15:32:10.473Z"
},
{
"ServicePrincipal":"actiontrail.aliyuncs.com",
"EnableTime":"2019-02-16T15:32:10.473Z"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 |
访问错误中心查看更多错误码。