弾力性保証のステータス、マッチングモード、発効方式、有効期限、使用済みインスタンス数などの詳細を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:DescribeElasticityAssurances |
get |
*ElasticityAssurance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
Elasticity Assurance が存在するリージョンの ID です。DescribeRegions API を呼び出して、最新の Alibaba Cloud リージョンリストをクエリできます。 |
cn-hangzhou |
| ResourceGroupId |
string |
任意 |
リソースグループの ID です。このパラメーターを使用してリソースをフィルタリングする場合、一致するリソースの数は 1,000 を超えることはできません。 説明
デフォルトリソースグループによるフィルタリングはサポートされていません。 |
rg-bp67acfmxazb4p**** |
| Tag |
array<object> |
任意 |
Elasticity Assurance をフィルタリングするためのタグです。 |
|
|
object |
任意 |
キーと値のペアで構成されるタグです。 |
||
| Key |
string |
任意 |
タグキーです。リソースをフィルタリングするために、最大 20 個のタグキーを指定できます。 指定されたタグに一致するリソースが最大 1,000 個返されます。1,000 を超えるリソースがタグに一致する場合は、ListTagResources API を呼び出してすべてのリソースをクエリしてください。 |
TestKey |
| Value |
string |
任意 |
タグ値です。最大 20 個のタグ値を指定できます。 |
TestValue |
| MaxResults |
integer |
任意 |
ページごとに返される最大エントリ数です。 最大値:100。 デフォルト値:10。 |
10 |
| NextToken |
string |
任意 |
次のリクエストで新しい結果ページを取得するために使用するページネーショントークンです。最初のリクエストではこのパラメーターを指定する必要はありません。前回のクエリから取得したトークンを NextToken の値として指定する必要があります。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| PrivatePoolOptions.Ids |
string |
任意 |
Elasticity Assurance の ID です。最大 100 個の Elasticity Assurance ID を JSON 配列で指定できます。 |
["eap-bp67acfmxazb4****", "eap-bp67acfmxazb5****"] |
| Platform |
string |
任意 |
説明
このパラメーターは非推奨です。 |
null |
| InstanceType |
string |
任意 |
インスタンスタイプです。このパラメーターは、アクティブな Elasticity Assurance のみをクエリするために使用できます。リリース済みの Elasticity Assurance をクエリするには、 |
ecs.c6.large |
| ZoneId |
string |
任意 |
Elasticity Assurance が存在するゾーンの ID です。 |
cn-hangzhou-h |
| InstanceChargeType |
string |
任意 |
インスタンスの課金方法です。 デフォルト値: |
PostPaid |
| Status |
string |
任意 |
Elasticity Assurance のステータスです。有効な値:
このパラメーターを指定しない場合、 |
Active |
| PackageType |
string |
任意 |
Elasticity Assurance のパッケージタイプです。有効な値:
|
ElasticityAssurance |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| NextToken |
string |
次の結果ページを取得するためのトークンです。 |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
リクエスト ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
一致するエントリの総数です。 |
1 |
| MaxResults |
integer |
ページあたりのエントリ数です。 |
10 |
| ElasticityAssuranceSet |
object |
||
| ElasticityAssuranceItem |
array<object> |
弾力性保証の詳細です。 |
|
|
array<object> |
弾力性保証の詳細です。 |
||
| Status |
string |
弾力性保証のステータスです。有効な値:
|
Active |
| PrivatePoolOptionsMatchCriteria |
string |
弾力性保証のマッチングモードです。有効な値:
|
Target |
| PrivatePoolOptionsId |
string |
弾力性保証の ID です。 |
eap-bp1ir35kqtn8ywci**** |
| UsedAssuranceTimes |
integer |
説明
このパラメーターは現在使用されていません。 |
0 |
| LatestStartTime |
string |
説明
このパラメーターは現在使用されていません。 |
null |
| PrivatePoolOptionsName |
string |
弾力性保証の名前です。 |
eapTestName |
| RegionId |
string |
弾力性保証が属するリージョンの ID です。 |
cn-hangzhou |
| EndTime |
string |
弾力性保証の有効期限が切れる時刻です。 |
2021-12-03T16:00Z |
| StartTime |
string |
弾力性保証が発効する時刻です。 |
2020-12-03T05:25Z |
| Description |
string |
弾力性保証の説明です。 |
This is description. |
| ResourceGroupId |
string |
リソースグループの ID です。 |
rg-bp67acfmxazb4p**** |
| TotalAssuranceTimes |
string |
弾力性保証を使用できる回数です。この値は常に |
Unlimited |
| AllocatedResources |
object |
||
| AllocatedResource |
array<object> |
割り当て済みリソースの詳細です。 |
|
|
array<object> |
割り当て済みリソースの詳細です。 |
||
| UsedAmount |
integer |
使用中のインスタンス数です。 |
2 |
| TotalAmount |
integer |
このインスタンスタイプのリザーブドインスタンスの総数です。 |
2 |
| AvailableAmount |
integer |
説明
このパラメーターは現在使用されていません。 |
5 |
| FailedAmount |
integer |
1 |
|
| LockedAmount |
integer |
1 |
|
| zoneId |
string |
弾力性保証が属するゾーンの ID です。 |
cn-hangzhou-h |
| InstanceType |
string |
インスタンスタイプです。 |
ecs.c6.large |
| ElasticityAssuranceUsages |
object |
||
| ElasticityAssuranceUsage |
array<object> |
説明
このパラメーターは現在使用されていません。 |
|
|
object |
説明
このパラメーターは現在使用されていません。 |
||
| AccountId |
string |
説明
このパラメーターは現在使用されていません。 |
1144775968548340 |
| ServiceName |
string |
説明
このパラメーターは現在使用されていません。 |
name |
| UsedAmount |
integer |
説明
このパラメーターは現在使用されていません。 |
1 |
| Tags |
object |
||
| Tag |
array<object> |
弾力性保証に付与されたタグです。 |
|
|
object |
弾力性保証に付与されたタグの詳細です。 |
||
| TagValue |
string |
タグ値です。 |
TestValue |
| TagKey |
string |
タグキーです。 |
TestKey |
| InstanceChargeType |
string |
インスタンスの支払い方法です。従量課金のみがサポートされています。 値は常に |
PostPaid |
| StartTimeType |
string |
弾力性保証が発効するタイミングです。有効な値:
|
Now |
| ElasticityAssuranceOwnerId |
string |
説明
このパラメーターは現在使用されていません。 |
e114477596854834 |
| RecurrenceRules |
object |
||
| RecurrenceRule |
array<object> |
時間分割弾力性保証の繰り返しルールです。 |
|
|
object |
時間分割弾力性保証の繰り返しルールです。 |
||
| RecurrenceType |
string |
繰り返しタイプです。有効な値:
|
Daily |
| RecurrenceValue |
string |
繰り返しルールの値です。このパラメーターの有効な値は、
|
1 |
| StartHour |
integer |
時間分割弾力性保証のアクティブ期間の開始時刻 (時) です。 |
4 |
| EndHour |
integer |
時間分割弾力性保証のアクティブ期間の終了時刻 (時) です。 |
10 |
| PackageType |
string |
弾力性保証のタイプです。有効な値:
|
ElasticityAssurance |
例
成功レスポンス
JSONJSON
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 1,
"MaxResults": 10,
"ElasticityAssuranceSet": {
"ElasticityAssuranceItem": [
{
"Status": "Active",
"PrivatePoolOptionsMatchCriteria": "Target",
"PrivatePoolOptionsId": "eap-bp1ir35kqtn8ywci****",
"UsedAssuranceTimes": 0,
"LatestStartTime": "null",
"PrivatePoolOptionsName": "eapTestName",
"RegionId": "cn-hangzhou",
"EndTime": "2021-12-03T16:00Z",
"StartTime": "2020-12-03T05:25Z",
"Description": "This is description.",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"TotalAssuranceTimes": "Unlimited",
"AllocatedResources": {
"AllocatedResource": [
{
"UsedAmount": 2,
"TotalAmount": 2,
"AvailableAmount": 5,
"FailedAmount": 1,
"LockedAmount": 1,
"zoneId": "cn-hangzhou-h",
"InstanceType": "ecs.c6.large",
"ElasticityAssuranceUsages": {
"ElasticityAssuranceUsage": [
{
"AccountId": "1144775968548340",
"ServiceName": "name",
"UsedAmount": 1
}
]
}
}
]
},
"Tags": {
"Tag": [
{
"TagValue": "TestValue",
"TagKey": "TestKey"
}
]
},
"InstanceChargeType": "PostPaid",
"StartTimeType": "Now",
"ElasticityAssuranceOwnerId": "e114477596854834",
"RecurrenceRules": {
"RecurrenceRule": [
{
"RecurrenceType": "Daily",
"RecurrenceValue": "1",
"StartHour": 4,
"EndHour": 10
}
]
},
"PackageType": "ElasticityAssurance"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | |
| 400 | InvalidParameter.Name | The specified PrivatePoolOptions.Name is invalid. | |
| 400 | InvalidParameter.PrivatePoolOptions.Ids | The specified PrivatePoolOptions.Ids is invalid. | |
| 400 | DedicatedHostNotSupported | DedicatedHost is not supported for PrivatePool. | |
| 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. | |
| 400 | MissingParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id should not be null. | |
| 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. | |
| 400 | InvalidAliUid | The PrivatePool does not belong to the user of the Instance. | |
| 400 | MissingParameter.PackageType | The specified parameter "PackageType" can not be empty. | |
| 400 | MissingParameter.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" can not be empty. | |
| 400 | MissingParameter.InstanceCpuCoreCount | The specified parameter "InstanceCpuCoreCount" can not be empty. | |
| 400 | MissingParameter.InstanceAmount | The specified parameter "InstanceAmount" can not be empty. | |
| 400 | MissingParameter.InstanceCpuCoreCountOrInstanceAmount | The specified parameter "InstanceCpuCoreCount" and "InstanceAmount" must not be empty at the same time. | |
| 400 | Invalid.TooManyPrivatePoolOptions.Ids | Too many PrivatePoolOptions.Ids in this request. | |
| 400 | Invalid.TooManyZoneIds | Too many ZoneIds in the request. | |
| 400 | Invalid.TooManyInstanceTypes | Too many InstanceTypes in the request. | |
| 400 | Invalid.TooManyUnpaidPrivatePool | Too many PrivatePools create but still unpaid. | |
| 400 | Invalid.InstanceCpuCoreCountOrInstanceAmount | Both InstanceCpuCoreCount and InstanceAmount are provided. | |
| 400 | Invalid.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" exist invalid element Id. | |
| 400 | Invalid.PackageType | The specified parameter "PackageType" is invalid. | |
| 400 | Invalid.PrivatePool.Purchase | The PrivatePool has already paid. | |
| 400 | Invalid.AssuranceTimes.NotSupported | The value of AssuranceTimes is not supported. | |
| 400 | RepeatStartPrivatePool | PrivatePool has already been started. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 404 | InvalidResourceGroup.NotFound | The specified resource group is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。