Queries the detailed of a resource in an account group.
In this topic, the new-bucket
resource in the ca-5885626622af0008****
account group is used as an example.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetAggregateDiscoveredResource |
The operation that you want to perform. Set the value to GetAggregateDiscoveredResource. |
ResourceId | String | Yes | new-bucket |
The ID of the resource. For more information about how to obtain the ID of a resource, see ListAggregateDiscoveredResources. |
ResourceType | String | Yes | ACS::OSS::Bucket |
The type of the resource. For more information about how to obtain the type of a resource, see ListAggregateDiscoveredResources. |
Region | String | Yes | cn-hangzhou |
The ID of the region where the resource resides. For more information about how to obtain the region ID of a resource, see ListAggregateDiscoveredResources. |
AggregatorId | String | Yes | ca-5885626622af0008**** |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
ResourceOwnerId | Long | Yes | 100931896542**** |
The ID of the Alibaba Cloud account to which the resource belongs. |
For information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E4D71ACE-6B0A-46E0-8352-56952378CC7F |
The ID of the request. |
DiscoveredResourceDetail | Object |
The information about the resource. |
|
AvailabilityZone | String | cn-hangzhou-h |
The zone where the resource resides. |
ResourceType | String | ACS::OSS::BucketACS::CDN::Domain |
The type of the resource. |
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\"} |
The configuration of the resource. |
Region | String | cn-hangzhou |
The ID of the region where the resource resides. |
ResourceCreationTime | Long | 1624961112000 |
The timestamp when the resource was created. |
Tags | String | {\"\"hc\"\":[\"\"value2\"\"]} |
The tags of the resource. |
AccountId | Long | 100931896542**** |
The ID of the Alibaba Cloud account to which the resource belongs. |
ResourceId | String | new-bucket |
The ID of the resource. |
ResourceDeleted | Integer | 1 |
Indicates whether the resource is deleted. Valid values:
|
ResourceName | String | new-bucket |
The name of the resource. |
ResourceStatus | String | offline |
The status of the resource. The parameter value varies with the resource type and may be left empty. Examples:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetAggregateDiscoveredResource
&ResourceId=new-bucket
&ResourceType=ACS::OSS::Bucket
&Region=cn-hangzhou
&AggregatorId=ca-5885626622af0008****
&ResourceOwnerId=100931896542****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetAggregateDiscoveredResourceResponse>
<RequestId>E4D71ACE-6B0A-46E0-8352-56952378CC7F</RequestId>
<DiscoveredResourceDetail>
<AccountId>100931896542****</AccountId>
<ResourceCreationTime>1624961112000</ResourceCreationTime>
<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\"}</Configuration>
<ResourceId>new-bucket</ResourceId>
<ResourceName>new-bucket</ResourceName>
<Region>cn-hangzhou</Region>
<AvailabilityZone>cn-hangzhou-h</AvailabilityZone>
<ResourceStatus></ResourceStatus>
<ResourceType>ACS::OSS::Bucket</ResourceType>
<ResourceDeleted>1</ResourceDeleted>
<Tags>{\"\"hc\"\":[\"\"value2\"\"]}</Tags>
</DiscoveredResourceDetail>
</GetAggregateDiscoveredResourceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E4D71ACE-6B0A-46E0-8352-56952378CC7F",
"DiscoveredResourceDetail" : {
"AccountId" : "100931896542****",
"ResourceCreationTime" : 1624961112000,
"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\"}",
"ResourceId" : "new-bucket",
"ResourceName" : "new-bucket",
"Region" : "cn-hangzhou",
"AvailabilityZone" : "cn-hangzhou-h",
"ResourceStatus" : "",
"ResourceType" : "ACS::OSS::Bucket",
"ResourceDeleted" : 1,
"Tags" : "{\"\"hc\"\":[\"\"value2\"\"]}"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | The error message returned because you are not authorized to perform the specified operation. |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | The error message returned because the specified member account does not belong to your resource directory. |
404 | AccountNotExisted | Your account does not exist. | The error message returned because your account does not exist. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The error message returned because the service is unavailable. |
For a list of error codes, visit the API Error Center.