從地區維度查詢資源的統計結果。
介面說明
本文將提供一個樣本,從地區維度查詢資源的統計結果。返回結果顯示地區cn-hangzhou中資源總數為 10 條。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:GetDiscoveredResourceCountsGroupByRegion |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ResourceType |
string |
否 |
資源類型。 關於如何擷取資源類型,請參見 ListDiscoveredResources 。 |
ACS::ECS::Instance |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無 |
||
| RequestId |
string |
請求 ID。 |
399BD94C-D20C-4D27-88D4-89E8D75C0595 |
| DiscoveredResourceCountsSummary |
array<object> |
資源統計結果。 |
|
|
object |
無 |
||
| ResourceCount |
integer |
資源總數量。 |
10 |
| GroupName |
string |
分組統計的名稱。 說明
通常不用該參數,使用 |
cn-hangzhou |
| Region |
string |
用於分組統計的地區。 |
cn-hangzhou |
樣本
正常返回樣本
JSON格式
{
"RequestId": "399BD94C-D20C-4D27-88D4-89E8D75C0595",
"DiscoveredResourceCountsSummary": [
{
"ResourceCount": 10,
"GroupName": "cn-hangzhou",
"Region": "cn-hangzhou"
}
]
}
錯誤碼
|
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。