查询指定账号组内指定资源详情。
目前该API接口已标记为弃用,推荐使用替代API:Config(2020-09-07) - GetAggregateDiscoveredResource。
接口说明
本文将提供一个示例,查询账号组ca-5885626622af0008****
内资源new-bucket
的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
config:GetAggregateDiscoveredResource |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ResourceId |
string |
是 |
资源 ID。 关于如何获取资源 ID,请参见 ListAggregateDiscoveredResources 。 |
new-bucket |
ResourceType |
string |
是 |
资源类型。 关于如何获取资源类型,请参见 ListAggregateDiscoveredResources 。 |
ACS::OSS::Bucket |
Region |
string |
是 |
资源所在地域 ID。 关于如何获取资源所在地域 ID,请参见 ListAggregateDiscoveredResources 。 |
cn-hangzhou |
AggregatorId |
string |
是 |
账号组 ID。 关于如何获取账号组 ID,请参见 ListAggregators 。 |
ca-5885626622af0008**** |
关于公共请求参数的详情,请参见公共参数。
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
DiscoveredResourceDetail |
object |
资源详情。 |
|
AccountId |
integer |
资源拥有者的阿里云账号 ID。 |
100931896542**** |
AvailabilityZone |
string |
资源可用区。 |
cn-hangzhou-h |
Configuration |
string |
资源的完整配置信息。 |
{\"AccessControlList\":{\"Grant\":\"private\"},\"ServerSideEncryptionRule\":{\"SSEAlgorithm\":\"None\"},\"Comment\":\"\",\"CreationDate\":\"2021-06-29T10:05:12.000Z\",\"Owner\":{\"DisplayName\":\"100931896542****\",\"ID\":\"100931896542****\"},\"StorageClass\":\"Standard\",\"DataRedundancyType\":\"LRS\",\"AllowEmptyReferer\":\"true\",\"Name\":\"new-bucket\",\"BucketPolicy\":{\"LogPrefix\":\"\",\"LogBucket\":\"\"},\"ExtranetEndpoint\":\"oss-cn-hangzhou.aliyuncs.com\",\"IntranetEndpoint\":\"oss-cn-hangzhou-internal.aliyuncs.com\",\"Location\":\"oss-cn-hangzhou\"} |
Region |
string |
地域 ID。 |
cn-hangzhou |
ResourceCreationTime |
integer |
资源创建时间戳。 |
1624961112000 |
ResourceDeleted |
integer |
资源删除状态。取值:
|
1 |
ResourceId |
string |
资源 ID。 |
new-bucket |
ResourceName |
string |
资源名称。 |
new-bucket |
ResourceStatus |
string |
资源状态。资源的状态取决于各云服务对其的定义,该参数可能为空。例如:
|
offline |
ResourceType |
string |
资源类型。 |
ACS::OSS::BucketACS::CDN::Domain |
Tags |
string |
资源标签。 |
{\"\"hc\"\":[\"\"value2\"\"]} |
RequestId |
string |
请求 ID。 |
E4D71ACE-6B0A-46E0-8352-56952378CC7F |
示例
正常返回示例
JSON
格式
{
"DiscoveredResourceDetail": {
"AccountId": 0,
"AvailabilityZone": "cn-hangzhou-h",
"Configuration": "{\\\"AccessControlList\\\":{\\\"Grant\\\":\\\"private\\\"},\\\"ServerSideEncryptionRule\\\":{\\\"SSEAlgorithm\\\":\\\"None\\\"},\\\"Comment\\\":\\\"\\\",\\\"CreationDate\\\":\\\"2021-06-29T10:05:12.000Z\\\",\\\"Owner\\\":{\\\"DisplayName\\\":\\\"100931896542****\\\",\\\"ID\\\":\\\"100931896542****\\\"},\\\"StorageClass\\\":\\\"Standard\\\",\\\"DataRedundancyType\\\":\\\"LRS\\\",\\\"AllowEmptyReferer\\\":\\\"true\\\",\\\"Name\\\":\\\"new-bucket\\\",\\\"BucketPolicy\\\":{\\\"LogPrefix\\\":\\\"\\\",\\\"LogBucket\\\":\\\"\\\"},\\\"ExtranetEndpoint\\\":\\\"oss-cn-hangzhou.aliyuncs.com\\\",\\\"IntranetEndpoint\\\":\\\"oss-cn-hangzhou-internal.aliyuncs.com\\\",\\\"Location\\\":\\\"oss-cn-hangzhou\\\"}",
"Region": "cn-hangzhou",
"ResourceCreationTime": 1624961112000,
"ResourceDeleted": 1,
"ResourceId": "new-bucket",
"ResourceName": "new-bucket",
"ResourceStatus": "offline",
"ResourceType": "ACS::OSS::BucketACS::CDN::Domain",
"Tags": "{\\\"\\\"hc\\\"\\\":[\\\"\\\"value2\\\"\\\"]}"
},
"RequestId": "E4D71ACE-6B0A-46E0-8352-56952378CC7F"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | |
404 | AccountNotExisted | Your account does not exist. | |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。