獲取帳號群組內指定資源的資源詳情。
介面說明
本文將提供一個範例,查詢帳號群組ca-5885626622af0008****內杭州地域的 ECS 執行個體i-bp12g4xbl4i0brkn****的詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:GetAggregateDiscoveredResource |
get |
*Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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**** |
| ResourceAccountId |
integer |
否 |
必填,帳號群組內待查詢資源所屬的阿里雲帳號 ID。 |
100931896542**** |
| ComplianceOption |
integer |
否 |
查詢資源合規結果。取值:
|
0 |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無。 |
||
| RequestId |
string |
請求 ID。 |
E4D71ACE-6B0A-46E0-8352-56952378CC7F |
| DiscoveredResourceDetail |
object |
資源詳情。 |
|
| AvailabilityZone |
string |
資源可用區。 |
cn-hangzhou-h |
| ResourceType |
string |
資源類型。 |
ACS::OSS::BucketACS::CDN::Domain |
| 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 |
| Tags |
string |
資源標籤。 |
{\"\"hc\"\":[\"\"value2\"\"]} |
| AccountId |
integer |
資源擁有者的阿里雲帳號 ID。 |
100931896542**** |
| ResourceId |
string |
資源 ID。 |
new-bucket |
| ResourceDeleted |
integer |
資源刪除狀態。取值:
|
1 |
| ResourceName |
string |
資源名稱。 |
new-bucket |
| ResourceStatus |
string |
資源狀態。資源的狀態取決於各雲端服務對其的定義,該參數可能為空。例如:
|
offline |
| ComplianceType |
string |
合規類型。取值:
|
COMPLIANT |
| VpcId |
string |
所屬的 vpc ID,格式:vpc-t4nhheyvay74fp7n0hxxx,無所屬 VPC 時返回空字串: "" |
vpc-t4nhheyvay74fp7n0hxxx |
| VSwitchId |
string |
所屬的 vSwitch ID,格式:vsw-t4n7pokxxxxxxxxxxxxxx,多值時逗號分隔,如 vsw-t4n7pokxxxxxxxxxxxxxx,vsw-t4n7pokxxxxxxxxxxxxxx,無所屬 VSWITCH 時返回為空字串:"" |
vsw-t4n7pokxxxxxxxxxxxxxx |
樣本
正常返回樣本
JSON格式
{
"RequestId": "E4D71ACE-6B0A-46E0-8352-56952378CC7F",
"DiscoveredResourceDetail": {
"AvailabilityZone": "cn-hangzhou-h",
"ResourceType": "ACS::OSS::BucketACS::CDN::Domain",
"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,
"Tags": "{\\\"\\\"hc\\\"\\\":[\\\"\\\"value2\\\"\\\"]}",
"AccountId": 0,
"ResourceId": "new-bucket",
"ResourceDeleted": 1,
"ResourceName": "new-bucket",
"ResourceStatus": "offline",
"ComplianceType": "COMPLIANT",
"VpcId": "vpc-t4nhheyvay74fp7n0hxxx",
"VSwitchId": "vsw-t4n7pokxxxxxxxxxxxxxx"
}
}
錯誤碼
|
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。