擷取目前使用者的專屬資源群組列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eas:ListResources |
get |
*Resource
|
無 | 無 |
請求文法
GET /api/v2/resources HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageNumber |
integer |
否 |
專屬資源群組列表的頁碼。起始值為 1,預設為 1。 |
1 |
| PageSize |
integer |
否 |
分頁查詢時設定的每頁顯示的專屬資源群組數量,預設為 100。 |
20 |
| ResourceName |
string |
否 |
資源群組名稱。 CreateResource 會返回資源群組名稱。 |
MyResource |
| ResourceId |
string |
否 |
資源群組 ID。 CreateResource 會返回資源群組 ID。 |
eas-r-h7lcw24dyqztwxxxxxx |
| ResourceType |
string |
否 |
資源群組類型,取值如下:
枚舉值:
|
Dedicated |
| ResourceStatus |
string |
否 |
資源群組狀態 |
ResourceReady |
| Order |
string |
否 |
排序方式,取值如下:
|
Desc |
| Sort |
string |
否 |
排序欄位。按時間戳記類型預設倒序排序。 枚舉值:
|
CreateTime |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回 Body。 |
||
| RequestId |
string |
請求 ID。 |
40325405-579C-4D82**** |
| Resources |
array |
資源群組列表。 |
|
| Resource |
資源群組詳情資訊。 |
||
| PageNumber |
integer |
返回查詢的專屬資源群組列表的頁碼。 |
1 |
| PageSize |
integer |
返回每頁顯示的專屬資源群組數量。 |
20 |
| TotalCount |
integer |
資源群組總數。 |
1 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "40325405-579C-4D82****",
"Resources": [
{
"ResourceId": "eas-r-asdasdasd",
"ResourceName": "iot",
"ResourceType": "Dedicated",
"ClusterId": "cn-shanghai",
"CreateTime": "2019-02-26T17:52:49Z",
"UpdateTime": "2019-02-26T19:52:49Z",
"InstanceCount": 4,
"PrePaidInstanceCount": 2,
"PostPaidInstanceCount": 2,
"CpuCount": 64,
"GpuCount": 1,
"Status": "ResourceReady",
"Message": "Resource is ready",
"ExtraData": {},
"Vendor": "ECS"
}
],
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 1
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。