查看資源群組詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eas:DescribeResource |
get |
*Resource
|
無 | 無 |
請求文法
GET /api/v2/resources/{ClusterId}/{ResourceId} HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
資源群組所在的叢集 ID。 |
cn-shanghai |
| ResourceId |
string |
是 |
資源群組的 ID。如何查詢資源群組 ID,請參見 ListResources 。 |
eas-r-asdasdasd |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
資源群組詳細資料。 |
||
| RequestId |
string |
請求 ID。 |
902976F2-6FAF-5404-8A4D-6CC223*** |
| ResourceId |
string |
EAS 資源 ID。 |
eas-r-glkfpsxuw57x1h***** |
| ResourceName |
string |
EAS 資源名稱。 |
my-resouce**** |
| ClusterId |
string |
資源群組所在的叢集 ID。 |
cn-beijing |
| CreateTime |
string |
資源群組建立時間。 |
2020-05-19T14:19:42Z |
| UpdateTime |
string |
資源群組最後更新時間。 |
2021-02-24T11:52:17Z |
| OwnerUid |
string |
資源群組負責人 ID。 |
14401087478**** |
| InstanceCount |
integer |
資源群組中機器執行個體總數。 |
4 |
| PrePaidInstanceCount |
integer |
資源群組中預付費機器執行個體總數。 |
1 |
| PostPaidInstanceCount |
integer |
資源群組中後付費機器執行個體總數。 |
3 |
| ServiceCount |
string |
資源群組部署的服務數量。 |
1 |
| CpuCount |
integer |
CPU 總核心數。 |
16 |
| GpuCount |
integer |
GPU 總數。 |
4 |
| Memory |
integer |
總記憶體,單位為 MB。 |
8192 |
| CpuUsed |
integer |
已使用 CPU 核心數。 |
8 |
| GpuUsed |
number |
已使用 GPU 數。 |
2 |
| MemoryUsed |
integer |
已使用記憶體,單位為 MB。 |
2048 |
| Status |
string |
資源群組狀態。 |
ResourceReady |
| Message |
string |
返回資訊。 |
Resource is ready |
| ExtraData |
string |
額外資訊。如 VPC 打通狀態,SLS 日誌狀態等。 |
{"vswitch_id":"vsw-bp17uo6xebcusy****","gpu_share":true,"aux_vswitch_id_list":["vsw-bp13b3pvjap3vxn****","vsw-bp1nls8o5hk8mt8*****"],"security_group_id":"sg-bp1j1z7297hcink*****","vpc_id":"vpc-bp1kjr3rfyhx01*****","destination_cidr":"172.16.0.12/28","role_arn":"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas","sls_project":"","sls_logstore":"","sls_status":"ResourceReady","sls_message":"","update_time":""} |
| ResourceType |
string |
資源群組類型,取值如下:
枚舉值:
|
Dedicated |
| UsageMode |
string |
資源群組使用模式。 枚舉值:
|
inference |
| InstanceMaxAllocatableMemory |
integer |
資源群組單節點最大可分配 Memory 大小。 |
2048 |
| Features |
array |
資源群組的功能集合,用於標識該資源群組支援的特性。 |
|
|
string |
資源群組所支援的具體特性。目前只支援 GpuShare(GPU 共用)。 |
GpuShare |
|
| InstanceMaxAllocatableGPU |
number |
資源群組單節點最大可分配 GPU 數。 |
2 |
| InstanceMaxAllocatableCPU |
integer |
資源群組單節點最大可分配 CPU 核心數。 |
16 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "902976F2-6FAF-5404-8A4D-6CC223***",
"ResourceId": "eas-r-glkfpsxuw57x1h*****",
"ResourceName": "my-resouce****",
"ClusterId": "cn-beijing",
"CreateTime": "2020-05-19T14:19:42Z",
"UpdateTime": "2021-02-24T11:52:17Z",
"OwnerUid": "14401087478****",
"InstanceCount": 4,
"PrePaidInstanceCount": 1,
"PostPaidInstanceCount": 3,
"ServiceCount": "1",
"CpuCount": 16,
"GpuCount": 4,
"Memory": 8192,
"CpuUsed": 8,
"GpuUsed": 2,
"MemoryUsed": 2048,
"Status": "ResourceReady",
"Message": "Resource is ready",
"ExtraData": "{\"vswitch_id\":\"vsw-bp17uo6xebcusy****\",\"gpu_share\":true,\"aux_vswitch_id_list\":[\"vsw-bp13b3pvjap3vxn****\",\"vsw-bp1nls8o5hk8mt8*****\"],\"security_group_id\":\"sg-bp1j1z7297hcink*****\",\"vpc_id\":\"vpc-bp1kjr3rfyhx01*****\",\"destination_cidr\":\"172.16.0.12/28\",\"role_arn\":\"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas\",\"sls_project\":\"\",\"sls_logstore\":\"\",\"sls_status\":\"ResourceReady\",\"sls_message\":\"\",\"update_time\":\"\"}",
"ResourceType": "Dedicated",
"UsageMode": "inference",
"InstanceMaxAllocatableMemory": 2048,
"Features": [
"GpuShare"
],
"InstanceMaxAllocatableGPU": 2,
"InstanceMaxAllocatableCPU": 16
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。