查看虛擬資源群組詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eas:DescribeVirtualResource |
get |
*VirtualResource
|
無 | 無 |
請求文法
GET /api/v2/virtualresources/{ClusterId}/{VirtualResourceId} HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
虛擬資源群組所在的地區。 |
cn-shanghai |
| VirtualResourceId |
string |
是 |
虛擬資源群組 ID。 |
eas-vr-npovr28onap1xxxxxx |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
虛擬資源群組詳細資料。 |
||
| RequestId |
string |
請求 ID。 |
40325405-579C-4D82**** |
| Resources |
array<object> |
虛擬資源群組包含的資源清單。 |
|
|
object |
資源詳情。 |
||
| Region |
string |
資源所在地區。 |
cn-hangzhou |
| Priority |
integer |
資源調度優先順序。數字越大,調度優先順序越高。 |
3 |
| InstanceType |
string |
公用資源群組機型規格。 |
ecs.s6-c1m2.xlarge |
| QuotaId |
string |
靈駿資源配額 ID。 |
quota185lqxxxxxx |
| SpotPriceLimit |
number |
公用資源群組搶佔執行個體價格上限。 |
10.05 |
| ResourceId |
string |
專屬資源群組 ID。 |
eas-r-g55ieatgg3buxxxxxx |
| CreateTime |
string |
虛擬資源群組的建立時間。 |
2024-10-16T17:52:49Z |
| UpdateTime |
string |
虛擬資源群組的最後更新時間。 |
2024-10-16T19:52:49Z |
| VirtualResourceId |
string |
虛擬資源群組 ID。 |
eas-vr-npovr28onap1xxxxxx |
| VirtualResourceName |
string |
虛擬資源群組名稱。 |
MyVirtualResource |
| ServiceCount |
integer |
部署服務數。 |
1 |
| DisableSpotProtectionPeriod |
boolean |
是否關閉競價型執行個體保留時間長度。 |
true |
| Features |
array |
虛擬資源群組的功能集合,用於標識該資源群組支援的特性。 |
|
|
string |
虛擬資源群組所支援的具體特性。目前只支援 GpuShare(GPU 共用)。 |
GpuShare |
樣本
正常返回樣本
JSON格式
{
"RequestId": "40325405-579C-4D82****",
"Resources": [
{
"Region": "cn-hangzhou",
"Priority": 3,
"InstanceType": "ecs.s6-c1m2.xlarge\n",
"QuotaId": "quota185lqxxxxxx\n",
"SpotPriceLimit": 10.05,
"ResourceId": "eas-r-g55ieatgg3buxxxxxx\n"
}
],
"CreateTime": "2024-10-16T17:52:49Z\n",
"UpdateTime": "2024-10-16T19:52:49Z\n",
"VirtualResourceId": "eas-vr-npovr28onap1xxxxxx\n",
"VirtualResourceName": "MyVirtualResource\n",
"ServiceCount": 1,
"DisableSpotProtectionPeriod": true,
"Features": [
"GpuShare"
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。