查詢容量預定服務已匹配的執行個體列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:DescribeCapacityReservationInstances |
get |
*CapacityReservation
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
容量預定服務所屬地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| MaxResults |
integer |
否 |
分頁查詢時每頁行數。
|
10 |
| NextToken |
string |
否 |
容量預定服務查詢起始標誌。由上一次的請求結果中擷取。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| PrivatePoolOptions.Id |
string |
是 |
容量預定服務 ID。 |
crp-bp67acfmxazb4**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| NextToken |
string |
容量預定服務下一個查詢起始標誌。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
符合查詢條件的記錄條數。 |
10 |
| MaxResults |
integer |
分頁查詢時每頁行數。 |
10 |
| CapacityReservationItem |
object |
||
| InstanceIdSet |
array<object> |
容量預定服務已匹配的執行個體列表。 |
|
|
object |
容量預定服務已匹配的執行個體列表。 |
||
| InstanceId |
string |
執行個體 ID。 |
i-bp67acfmxazb4**** |
樣本
正常返回樣本
JSON格式
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 10,
"MaxResults": 10,
"CapacityReservationItem": {
"InstanceIdSet": [
{
"InstanceId": "i-bp67acfmxazb4****"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | RegionId是必選參數。 |
| 400 | InvalidParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id is invalid. | |
| 400 | DedicatedHostNotSupported | DedicatedHost is not supported for PrivatePool. | 私人池不支援Dedicated Host。 |
| 400 | SpotNotSupported | Spot is not supported for PrivatePool. | 私人池不支援搶佔式執行個體。 |
| 400 | ClassicNetworkNotSupported | Classic network is not supported for PrivatePool. | 私人池不支援傳統網路類型執行個體。 |
| 400 | Invalid.InstanceId | Instance does not exist. | 執行個體不存在。 |
| 400 | Invalid.PrivatePoolOptions.MatchCriteria | Target mode does not support this operation. | Target模式不支援本次操作。 |
| 400 | MissingParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id should not be null. | PrivatePoolOptions.Id 參數不可為空。 |
| 400 | Invalid.PrivatePoolOptions.Id | The PrivatePool does not exist. | 私人池不存在。 |
| 400 | Invalid.InstanceType | The InstanceType does not match the PrivatePool. | 執行個體類型與私人池不匹配。 |
| 400 | Invalid.InstanceChargeType | The InstanceChargeType does not match the PrivatePool. | 執行個體計費類型與私人池不匹配。 |
| 400 | Invalid.ZoneId | The ZoneId does not match the PrivatePool. | 可用性區域與私人池不匹配。 |
| 400 | Invalid.PrivatePoolOptions.status | The PrivatePool has been used up. | 該資源已用完。 |
| 400 | InvalidPlatform.ValueNotSupported | The Platform does not match the PrivatePool. | 指定的Platform參數與私人池不匹配。 |
| 400 | InvalidAliUid | The PrivatePool does not belong to the user of the Instance. | 私人池不屬於建立執行個體的使用者。 |
| 400 | MissingParameter.PackageType | The specified parameter "PackageType" can not be empty. | 指定的參數PackageType不可為空。 |
| 400 | MissingParameter.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" can not be empty. | 指定參數“PrivatePoolOptions.ids”不可為空。 |
| 400 | MissingParameter.InstanceCpuCoreCount | The specified parameter "InstanceCpuCoreCount" can not be empty. | 指定的參數 'InstanceCpuCocount'不可為空。 |
| 400 | MissingParameter.InstanceAmount | The specified parameter "InstanceAmount" can not be empty. | 指定的參數InstanceAmount不可為空。 |
| 400 | MissingParameter.InstanceCpuCoreCountOrInstanceAmount | The specified parameter "InstanceCpuCoreCount" and "InstanceAmount" must not be empty at the same time. | 指定的參數InstanceCpuCoreCount和InstanceAmount不能同時為空白。 |
| 400 | Invalid.TooManyPrivatePoolOptions.Ids | Too many PrivatePoolOptions.Ids in this request. | PrivatePoolOptions.Ids參數超過上限。 |
| 400 | Invalid.TooManyZoneIds | Too many ZoneIds in the request. | ZoneIds參數超過上限。 |
| 400 | Invalid.TooManyInstanceTypes | Too many InstanceTypes in the request. | InstanceTypes參數超過上限。 |
| 400 | Invalid.TooManyUnpaidPrivatePool | Too many PrivatePools create but still unpaid. | 多個私人池未支付。 |
| 400 | Invalid.InstanceCpuCoreCountOrInstanceAmount | Both InstanceCpuCoreCount and InstanceAmount are provided. | InstanceCpuCoreCount和InstanceAmount兩個參數不需要同時提供。 |
| 400 | Invalid.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" exist invalid element Id. | 指定的私人池ID不存在。 |
| 400 | Invalid.PackageType | The specified parameter "PackageType" is invalid. | 指定的參數“PackageType”無效。 |
| 400 | Invalid.PrivatePool.Purchase | The PrivatePool has already paid. | 私人池已經支付。 |
| 400 | Invalid.AssuranceTimes.NotSupported | The value of AssuranceTimes is not supported. | AssuranceTimes參數值不支援。 |
| 400 | RepeatStartPrivatePool | PrivatePool has already been started. | 私人池已經啟動。 |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 內部錯誤,請重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。