スケーリンググループ ID、インスタンスタイプ、インスタンスイメージなどの情報を指定して、スケーリンググループの ECS タイプのスケーリング設定を作成します。
操作説明
スケーリング設定は、エラスティックスケールアウトに使用される ECS インスタンステンプレートを指定します。以下のインスタンス構成メソッドがサポートされています:
-
InstancePatternInfos: インテリジェント構成モード。特定のインスタンスタイプを指定する必要はありません。代わりに、ビジネス要件に基づいて vCPU コア数、メモリサイズ、インスタンスファミリーレベル、最大値の価格を指定します。システムは要件を満たすインスタンスタイプを自動的にフィルターし、最も低い価格のインスタンスタイプを優先的に選択して ECS インスタンスを作成します。このモードはネットワークタイプが VPC のスケーリンググループにのみ適用され、スケールアウト時のインスタンスタイプの在庫不足リスクを効果的に軽減できます。
-
InstanceType: 単一のインスタンスタイプを指定します。
-
InstanceTypes: 複数のインスタンスタイプを指定します。
-
InstanceTypeOverrides: 複数のインスタンスタイプを指定し、異なるインスタンスタイプに重みを設定します。
-
Cpu と Memory: CPU とメモリを定義してインスタンスタイプの有効値を指定します。Auto Scaling は I/O 最適化やゾーンなどの要素に基づいて利用可能なインスタンスタイプのセットを決定し、価格順にソートして最も低い価格のインスタンスを作成します。このメソッドは、スケーリンググループのスケーリングポリシーがコスト最適化であり、スケーリング設定でインスタンスタイプが指定されていない場合にのみ適用されます。
-
プライマリネットワークインターフェースカード (NIC) は、以下のいずれかのメソッドでバインドできます。ただし、1 つのリクエストで使用できるのは 1 つのメソッドのみです。両方のメソッドを使用すると、呼び出しが失敗し、エラーメッセージが返されます。
SecurityGroupId、SecurityGroupIds、Ipv6AddressCount などのパラメーターを使用して、プライマリ NIC を直接セットします。
NetworkInterfaces を使用して、プライマリ NIC とセカンダリ NIC の両方を設定します。NetworkInterface パラメーターを使用する場合、プライマリ NIC を設定する必要があります。NetworkInterface.InstanceType が Primary にセットされている場合、プライマリ NIC が設定されます。NetworkInterface.InstanceType が Secondary にセットされているか空の場合、セカンダリ NIC が設定されます。
InstanceType、InstanceTypes、InstanceTypeOverrides、Cpu と Memory の 4 つのメソッドを同時に指定することはできません。ただし、InstanceType または InstanceTypes は InstancePatternInfos と一緒に指定できます。InstancePatternInfos と一緒に指定した場合、Auto Scaling はスケールアウト時に指定したインスタンスタイプを優先的に使用します。指定したインスタンスタイプが在庫切れの場合、InstancePatternInfos の構成に一致するインスタンスタイプが使用されます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ess:CreateScalingConfiguration |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ScalingGroupId |
string |
必須 |
スケーリング設定が属するスケーリンググループの ID。 |
asg-bp14wlu85wrpchm0**** |
| ImageId |
string |
任意 |
インスタンスの自動作成に使用されるイメージファイルの ID。 |
centos6u5_64_20G_aliaegis****.vhd |
| ImageName |
string |
任意 |
イメージファイルの名前。イメージ名はリージョン内で一意です。ImageId を設定した場合、ImageName は無視されます。 ImageName を使用して Alibaba Cloud マーケットプレイスのイメージを指定することはできません。 |
image**** |
| InstanceType |
string |
任意 |
ECS インスタンスのインスタンスタイプ。詳細については、インスタンスファミリーを参照してください。 |
ecs.g6.large |
| Cpu |
integer |
任意 |
vCPU の数。単位: コア。 CPU と Memory の両方を指定すると、インスタンスタイプの有効値が定義されます。たとえば、CPU=2 と Memory=16 は、2 vCPU と 16 GiB のメモリを持つすべてのインスタンスタイプを定義します。Auto Scaling は I/O 最適化やゾーンなどの要素に基づいて利用可能なインスタンスタイプのセットを決定し、価格順にソートして最も低い価格のインスタンスを作成します。 説明
この有効値の構成は、スケーリング設定でインスタンスタイプが指定されていないコスト最適化モードでのみ効果があります。 |
2 |
| Memory |
integer |
任意 |
メモリサイズ。単位: GiB。 CPU と Memory の両方を指定すると、インスタンスタイプの有効値が定義されます。たとえば、CPU=2 と Memory=16 は、2 vCPU と 16 GiB のメモリを持つすべてのインスタンスタイプを定義します。Auto Scaling は I/O 最適化やゾーンなどの要素に基づいて利用可能なインスタンスタイプのセットを決定し、価格順にソートして最も低い価格のインスタンスを作成します。 説明
この有効値の構成は、スケーリング設定でインスタンスタイプが指定されていないコスト最適化モードでのみ効果があります。 |
16 |
| DeploymentSetId |
string |
任意 |
ECS インスタンスが属するデプロイメントセットの ID。 |
ds-bp1frxuzdg87zh4pz**** |
| SecurityGroupId |
string |
任意 |
ECS インスタンスが属するセキュリティグループの ID。同じセキュリティグループ内の ECS インスタンスは相互にアクセスできます。 |
sg-280ih**** |
| IoOptimized |
string |
任意 |
インスタンスが I/O 最適化インスタンスかどうかを指定します。有効な値: none: 非 I/O 最適化インスタンス。 optimized: I/O 最適化インスタンス。 廃止されたインスタンスタイプのデフォルト値は none です。その他のインスタンスタイプのデフォルト値は optimized です。 |
optimized |
| InternetChargeType |
string |
任意 |
ネットワーク使用量の課金方法。有効な値:
このパラメーターが指定されていない場合、クラシックネットワークのデフォルト値は PayByBandwidth、VPC のデフォルト値は PayByTraffic です。 |
PayByTraffic |
| InternetMaxBandwidthIn |
integer |
任意 |
最大インバウンドパブリック帯域幅。単位: Mbit/s。有効な値:
|
10 |
| InternetMaxBandwidthOut |
integer |
任意 |
最大アウトバウンドパブリック帯域幅。単位: Mbit/s。有効な値: 0~100。 デフォルト値: 0。 |
10 |
| SystemDisk.Category |
string |
任意 |
システムクラウドディスクのカテゴリ。有効な値:
このパラメーターは
|
cloud_ssd |
| SystemDisk.Size |
integer |
任意 |
システムクラウドディスクのサイズ。単位: GiB。有効な値:
このパラメーターの値は max{1, ImageSize} 以上である必要があります。 デフォルト値: max{40, ImageSize}。 |
100 |
| SystemDisk.DiskName |
string |
任意 |
システムクラウドディスクの名前。名前は 2~128 文字で、英字、数字、コロン (:)、アンダースコア (_)、ハイフン (-) を含めることができます。名前は英字または中国語文字で始まる必要があり、 |
cloud_ssdSystem |
| SystemDisk.Description |
string |
任意 |
システムクラウドディスクの説明。説明は 2~256 文字で、 |
Test system disk. |
| SystemDisk.AutoSnapshotPolicyId |
string |
任意 |
システムクラウドディスクに適用される自動スナップショットポリシーの ID。 |
sp-bp12m37ccmxvbmi5**** |
| SystemDisk.PerformanceLevel |
string |
任意 |
ディスクが ESSD の場合のシステムクラウドディスクのパフォーマンスレベル (PL)。有効な値:
デフォルト値: PL1。 |
PL0 |
| ScalingConfigurationName |
string |
任意 |
スケーリング設定の名前。名前は 2~64 文字で、英字、数字、アンダースコア (_)、ハイフン (-)、ピリオド (.) を含めることができます。名前は数字、英字、または中国語文字で始まる必要があります。 スケーリング設定名は、同じリージョン内のスケーリンググループ内で一意である必要があります。このパラメーターを指定しない場合、デフォルトでスケーリング設定 ID が使用されます。 |
scalingconfig**** |
| LoadBalancerWeight |
integer |
任意 |
関連付けられたロードバランサーインスタンスのバックエンドサーバーとしての ECS インスタンスの重み。有効な値: 1~100。 デフォルト値: 50。 |
50 |
| Tags |
string |
任意 |
ECS インスタンスのタグ。タグはキーと値のペアとして指定されます。最大 20 個のタグを指定できます。Key と Value には以下の制限が適用されます:
|
{"key1":"value1","key2":"value2", ... "key5":"value5"} |
| UserData |
string |
任意 |
ECS インスタンスのユーザーデータ。データは Base64 エンコーディングされている必要があります。エンコーディング前の生データの最大サイズは 32 KB です。 |
ZWNobyBoZWxsbyBlY3Mh |
| KeyPairName |
string |
任意 |
ECS インスタンスへのログインに使用されるキーペアの名前。
|
KeyPairTest |
| RamRoleName |
string |
任意 |
ECS インスタンスに関連付けられた RAM ロールの名前。RAM ロール名は Resource Access Management (RAM) によって提供および管理されます。ListRoles を呼び出して利用可能な RAM ロールをクエリできます。 |
ramrole**** |
| SecurityEnhancementStrategy |
string |
任意 |
セキュリティ強化を有効にするかどうかを指定します。有効な値:
|
Active |
| InstanceName |
string |
任意 |
このスケーリング設定を使用して自動的に作成される ECS インスタンスの名前。 |
instance**** |
| HostName |
string |
任意 |
ECS インスタンスのホスト名。ピリオド (.) またはハイフン (-) を最初または最後の文字として使用することはできず、連続するピリオド (.) またはハイフン (-) は許可されません。命名規則はインスタンスタイプによって異なります:
|
host**** |
| SpotStrategy |
string |
任意 |
従量課金インスタンスのプリエンプションポリシー。有効な値:
デフォルト値: NoSpot。 |
NoSpot |
| PasswordInherit |
boolean |
任意 |
イメージにプリセットされたパスワードを使用するかどうかを指定します。このパラメーターを使用するには、イメージにパスワードが設定されていることを確認してください。有効な値:
|
false |
| Password |
string |
任意 |
ECS インスタンスのパスワード。パスワードは 8~30 文字で、大文字、小文字、数字、特殊文字のうち少なくとも 3 種類を含む必要があります。以下の特殊文字がサポートされています: `() Windows インスタンスの場合、パスワードは転送スラッシュ (/) で始めることはできません。 説明
Password パラメーターを指定する場合、パスワードの漏洩を避けるために HTTPS を使用してリクエストを送信してください。 |
123abc**** |
| ResourceGroupId |
string |
任意 |
ECS インスタンスが属するリソースグループの ID。 |
rg-resource**** |
| HpcClusterId |
string |
任意 |
ECS インスタンスが属する HPC クラスターの ID。 |
hpc-clusterid |
| InstanceDescription |
string |
任意 |
ECS インスタンスの説明。説明は 2~256 文字で、 |
Test instance. |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。トークンには ASCII 文字のみを含めることができ、64 文字を超えることはできません。詳細については、べき等性の確保方法を参照してください。 |
123e4567-e89b-12d3-a456-42665544**** |
| Ipv6AddressCount |
integer |
任意 |
Elastic ネットワークインターフェース (ENI) に割り当てられるランダムに生成された IPv6 アドレスの数。 |
1 |
| CreditSpecification |
string |
任意 |
バースト可能インスタンスの実行中のパターン。有効な値:
詳細については、バーストパフォーマンスインスタンスの概要のパフォーマンスモードセクションを参照してください。 |
Standard |
| ImageFamily |
string |
任意 |
イメージ ファミリーの名前。このパラメーターを設定すると、指定されたイメージ ファミリーの最新の利用可能なイメージがインスタンスの作成に使用されます。 |
hangzhou-daily-update |
| ZoneId |
string |
任意 |
ECS インスタンスのゾーン ID。 |
cn-hangzhou-g |
| DedicatedHostId |
string |
任意 |
専用ホストに ECS インスタンスを作成するかどうかを指定します。専用ホストはスポットインスタンスの作成をサポートしていないため、DedicatedHostId が指定されている場合、リクエスト内の SpotStrategy と SpotPriceLimit のセットは自動的に無視されます。 DescribeDedicatedHosts を呼び出して専用ホスト ID のリストをクエリできます。 |
dh-bp67acfmxazb4p**** |
| Affinity |
string |
任意 |
専用ホスト上のインスタンスが専用ホストに関連付けられるかどうかを指定します。有効な値:
デフォルト値: default。 |
default |
| Tenancy |
string |
任意 |
専用ホストにインスタンスを作成するかどうかを指定します。有効な値:
デフォルト値: default。 |
default |
| SchedulerOptions |
object |
任意 |
スケジューラオプション。 |
["testManagedPrivateSpaceId****"] |
| PrivatePoolOptions.MatchCriteria |
string |
任意 |
インスタンス起動の非公開プールオプション。エラスティシティ保証またはキャパシティ予約が効果を発揮すると、インスタンスが起動時に使用する非公開プールが生成されます。有効な値:
|
Open |
| PrivatePoolOptions.Id |
string |
任意 |
非公開プール ID。エラスティシティ保証またはキャパシティ予約の ID です。 |
eap-bp67acfmxazb4**** |
| SpotDuration |
integer |
任意 |
スポットインスタンスの保護期間。単位: 時間。有効な値:
説明
Alibaba Cloud はインスタンスがリリースされる 5 分前に ECS システムイベント通知を送信します。スポットインスタンスは秒単位で課金されます。予想されるタスク実行時間に基づいて適切な保護期間を選択することをお勧めします。 デフォルト値: 1。 |
1 |
| SpotInterruptionBehavior |
string |
任意 |
スポットインスタンスの中断モード。terminate (デフォルト) のみがサポートされており、インスタンスを直接リリースします。 |
Terminate |
| InstanceTypes |
array |
任意 |
インスタンスタイプ。InstanceTypes が指定されている場合、InstanceType は無視されます。 優先度の高いインスタンスタイプに基づいてインスタンスを作成できない場合、Auto Scaling は次の優先度のインスタンスタイプを自動的に選択してインスタンスを作成します。 |
|
|
string |
任意 |
インスタンスタイプ。InstanceTypes が指定されている場合、InstanceType は無視されます。 優先度の高いインスタンスタイプに基づいてインスタンスを作成できない場合、Auto Scaling は次の優先度のインスタンスタイプを自動的に選択してインスタンスを作成します。 |
ecs.g6.large |
|
| InstanceTypeOverrides |
array<object> |
任意 |
指定されたインスタンスタイプに関する情報。 |
|
|
object |
任意 |
指定されたインスタンスタイプに関する情報。 |
||
| InstanceType |
string |
任意 |
スケーリンググループをインスタンスタイプの容量に基づいてスケーリングさせたい場合、このパラメーターと WeightedCapacity の両方を指定します。 このパラメーターは ECS インスタンスタイプを指定し、起動テンプレートの ECS インスタンスタイプをオーバーライドします。N 個のインスタンスタイプを指定して、起動テンプレートを N 個のインスタンスタイプをサポートするように拡張できます。N の有効な値: 1~20。 説明
このパラメーターは、LaunchTemplateId パラメーターで起動テンプレートが指定されている場合にのみ効果があります。 InstanceType の有効な値: 購入可能なインスタンスタイプ。 |
ecs.c5.xlarge |
| WeightedCapacity |
integer |
任意 |
スケーリング設定でインスタンスタイプの容量を指定する場合、InstanceTypeOverrides.InstanceType を指定した後にこのパラメーターを指定します。 このパラメーターはインスタンスタイプの重みを指定し、スケーリンググループにおけるこのタイプの単一インスタンスの容量を表します。重みが大きいほど、期待される容量を満たすために必要なこのタイプのインスタンス数が少なくなります。 インスタンスタイプは vCPU 数、メモリサイズ、その他のパフォーマンスメトリクスが異なるため、要件に基づいて異なるインスタンスタイプに異なる重みを構成できます。 例:
期待される容量を満たすために、スケーリンググループは 2 つの ecs.c5.xlarge インスタンスをスケールアウトします。 説明
スケールアウト中、スケーリンググループの容量は最大容量 (MaxSize) とインスタンスタイプの最大重みの合計を超えることはできません。 WeightedCapacity の有効な値: 1~500。 |
4 |
| DataDisks |
array<object> |
任意 |
データクラウドディスク情報のコレクション。 |
|
|
object |
任意 |
データクラウドディスク情報のコレクション。 |
||
| PerformanceLevel |
string |
任意 |
ディスクが ESSD の場合のデータクラウドディスクのパフォーマンスレベル (PL)。有効な値:
説明
ESSD パフォーマンスレ |
PL0 |
| AutoSnapshotPolicyId |
string |
任意 |
データクラウドディスクに適用される自動スナップショットポリシーの ID。 |
sp-bp19nq9enxqkomib**** |
| Encrypted |
string |
任意 |
データクラウドディスクを暗号化するかどうかを指定します。有効な値:
デフォルト値: false。 |
false |
| Description |
string |
任意 |
データクラウドディスクの説明。説明は 2~256 文字で、` |
Test data disk. |
| SnapshotId |
string |
任意 |
データクラウドディスクの作成に使用されるスナップショットの ID。このパラメーターを指定した場合、DataDisks.Size は無視され、作成されるディスクのサイズは指定されたスナップショットのサイズになります。 スナップショットが 2013 年 7 月 15 日以前に作成された場合、呼び出しは拒否され、エラーメッセージ InvalidSnapshot.TooOld が返されます。 |
s-280s7**** |
| Categories |
array |
任意 |
データクラウドディスクのディスクタイプ。優先度の高いディスクタイプが使用できない場合、Auto Scaling は次の優先度のディスクタイプを自動的に試行してデータクラウドディスクを作成します。有効な値:
説明
このパラメーターを指定した場合、 |
|
|
string |
任意 |
データクラウドディスクのディスクタイプ。優先度の高いディスクタイプが使用できない場合、Auto Scaling は次の優先度のディスクタイプを自動的に試行してデータクラウドディスクを作成します。有効な値:
説明
このパラメーターを指定した場合、 |
cloud |
|
| Size |
integer |
任意 |
データクラウドディスクのサイズ。単位: GiB。有効な値:
このパラメーターを指定した場合、ディスクサイズはスナップショットのサイズ (スナップショットは SnapshotId で指定) 以上である必要があります。 |
100 |
| Device |
string |
任意 |
データクラウドディスクのマウントポイント。このパラメーターを指定しない場合、ECS インスタンスの自動作成時にシステムによってデフォルトでマウントポイントが割り当てられます。マウントポイントの有効値は /dev/xvdb~/dev/xvdz です。 |
/dev/xvdb |
| DiskName |
string |
任意 |
データクラウドディスクの名前。名前は 2~128 文字で、英字、数字、コロン (:)、アンダースコア (_)、ハイフン (-) を含めることができます。名前は英字または中国語文字で始まる必要があり、 |
cloud_ssdData |
| Category |
string |
任意 |
データクラウドディスクのカテゴリ。有効な値:
|
cloud_ssd |
| DeleteWithInstance |
boolean |
任意 |
インスタンスのリリース時にデータクラウドディスクをリリースするかどうかを指定します。有効な値:
このパラメーターは独立クラウドディスク (DataDisks.Category が cloud、cloud_efficiency、cloud_ssd、または cloud_essd に設定されている場合) にのみ設定できます。それ以外の場合、エラーが返されます。 デフォルト値: true。 |
true |
| KMSKeyId |
string |
任意 |
The ID of the KMS key for the data cloud disk. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| ProvisionedIops |
integer |
任意 |
The provisioned IOPS (Input/Output Operations Per Second) performance metric of the data cloud disk. 説明
IOPS (Input/Output Operations Per Second) measures the number of read/write (output/input) operations that block storage can process per second. |
100 |
| BurstingEnabled |
boolean |
任意 |
Specifies whether to enable the burst (performance burst) feature for the system cloud disk. Valid values:
説明
This parameter is supported only when |
false |
| SpotPriceLimits |
array<object> |
任意 |
The collection of billing information for spot instances. |
|
|
object |
任意 |
The collection of billing information for spot instances. |
||
| PriceLimit |
number |
任意 |
The bid price for the spot instance. This parameter takes effect when SpotStrategy is set to SpotWithPriceLimit. |
0.5 |
| InstanceType |
string |
任意 |
The instance type of the spot instance. This parameter takes effect when SpotStrategy is set to SpotWithPriceLimit. |
ecs.g6.large |
| SecurityGroupIds |
array |
任意 |
The IDs of the security groups to which the ECS instance is added. For more information, see the security group section in Limits. 説明
You cannot specify both SecurityGroupId and SecurityGroupIds. |
|
|
string |
任意 |
The IDs of the security groups to which the ECS instance is added. For more information, see the security group section in Limits. 説明
You cannot specify both SecurityGroupId and SecurityGroupIds. |
sg-bp18kz60mefs**** |
|
| InstancePatternInfos |
array<object> |
任意 |
The collection of intelligent configuration information used to filter instance types that meet the requirements. |
|
|
object |
任意 |
The collection of intelligent configuration information used to filter instance types that meet the requirements. |
||
| Cores |
integer |
任意 |
The number of vCPU cores of the instance type in intelligent configuration mode, used to filter instance types that meet the requirements. For more information, see Instance families. Note the following information:
|
2 |
| InstanceFamilyLevel |
string |
任意 |
The level of the instance family, used to filter instance types that meet the requirements. This parameter takes effect when
|
EnterpriseLevel |
| MaxPrice |
number |
任意 |
The maximum hourly price for pay-as-you-go or spot instances in intelligent configuration mode, used to filter instance types that meet the requirements. 説明
This parameter is required when SpotStrategy is set to SpotWithPriceLimit. In other cases, this parameter is optional. |
2 |
| Memory |
number |
任意 |
The memory size of the instance type in intelligent configuration mode. Unit: GiB. This parameter is used to filter instance types that meet the requirements. |
4 |
| ExcludedInstanceTypes |
array |
任意 |
The instance types to exclude. You can use wildcard characters (*) to exclude a single instance type or an entire instance family. Examples:
|
|
|
string |
任意 |
The instance types to exclude. You can use wildcard characters (*) to exclude a single instance type or an entire instance family. Examples:
|
ecs.n1.small/ecs.n1.*/*7* |
|
| Architectures |
array |
任意 |
The architecture types of the instance type. Valid values:
Default value: all architecture types are included. |
|
|
string |
任意 |
The architecture types of the instance type. Valid values:
Default value: all architecture types are included. |
X86 |
|
| BurstablePerformance |
string |
任意 |
Specifies whether to include burstable instance types. Valid values:
Default value: Include. |
Include |
| InstanceTypeFamilies |
array |
任意 |
The instance families to query. N indicates that you can specify multiple instance families. Valid values of N: 1 to 10. |
|
|
string |
任意 |
The instance families to query. N indicates that you can specify multiple instance families. Valid values of N: 1 to 10. |
ecs.g6 |
|
| MinimumCpuCoreCount |
integer |
任意 |
The minimum number of vCPU cores of the instance type. |
2 |
| MaximumCpuCoreCount |
integer |
任意 |
The maximum number of vCPU cores of the instance type. 説明
MaximumCpuCoreCount cannot exceed 4 times the value of MinimumCpuCoreCount. |
4 |
| GpuSpecs |
array |
任意 |
The GPU type. |
|
|
string |
任意 |
The GPU type. |
NVIDIA V100 |
|
| InstanceCategories |
array |
任意 |
The instance categorization. Valid values: 説明
N specifies that you can set multiple instance categories. Valid values of N: 1 to 10.
|
|
|
string |
任意 |
The instance categorization. Valid values: 説明
N specifies that you can set multiple instance type categories. Valid values of N: 1 to 10.
|
Compute-optimized with GPU |
|
| CpuArchitectures |
array |
任意 |
The CPU architectures of the instance. Valid values: 説明
N indicates that you can specify multiple CPU architectures. Valid values of N: 1 to 2.
|
|
|
string |
任意 |
The CPU architectures of the instance. Valid values: 説明
N indicates that you can specify multiple CPU architectures. Valid values of N: 1 to 2.
|
X86 |
|
| PhysicalProcessorModels |
array |
任意 |
The processor models of the instance. N indicates that you can specify multiple processor models. Valid values of N: 1 to 10. [_single.params |
|
|
string |
任意 |
The processor models of the instance. N indicates that you can specify multiple processor models. Valid values of N: 1 to 10. [_single.params |
Intel Xeon(Ice Lake) Platinum 8369B |
|
| MinimumEniQuantity |
integer |
任意 |
The minimum number of elastic network interfaces (ENIs) that can be attached to an instance. |
2 |
| MinimumEniPrivateIpAddressQuantity |
integer |
任意 |
The minimum number of IPv4 addresses that can be assigned to a single elastic network interface (ENI) of an instance. |
2 |
| MinimumEniIpv6AddressQuantity |
integer |
任意 |
The minimum number of IPv6 addresses that can be assigned to a single elastic network interface (ENI) of an instance. |
1 |
| MinimumInitialCredit |
integer |
任意 |
The minimum initial vCPU credits for burstable instances (t5 and t6). |
12 |
| MinimumBaselineCredit |
integer |
任意 |
The minimum baseline vCPU computing performance of burstable instances (t5 and t6), which is the sum of all vCPUs. |
12 |
| MinimumMemorySize |
number |
任意 |
The minimum memory size of the instance. Unit: GiB. |
4 |
| MaximumMemorySize |
number |
任意 |
The maximum memory size of the instance. Unit: GiB. |
4 |
| MinimumGpuAmount |
integer |
任意 |
The minimum number of GPUs of the instance. Valid values: positive integers. |
2 |
| MaximumGpuAmount |
integer |
任意 |
The maximum number of GPUs of the instance. Valid values: positive integers. |
2 |
| SystemDiskCategories |
array |
任意 |
The multiple disk types for the system cloud disk. If the disk type with a higher priority is unavailable, Auto Scaling automatically tries the disk type with the next priority to create the system cloud disk. Valid values:
説明
If you specify this parameter, you cannot specify |
|
|
string |
任意 |
The multiple disk types for the system cloud disk. If the disk type with a higher priority is unavailable, Auto Scaling automatically tries the disk type with the next priority to create the system cloud disk. Valid values:
説明
If you specify this parameter, you cannot specify |
cloud |
|
| SystemDisk.Encrypted |
boolean |
任意 |
Specifies whether to encrypt the system cloud disk. Valid values:
Default value: false. |
false |
| SystemDisk.KMSKeyId |
string |
任意 |
The ID of the KMS key used for the system cloud disk. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| SystemDisk.EncryptAlgorithm |
string |
任意 |
The encryption algorithm used for the system cloud disk. Valid values:
Default value: AES-256. |
AES-256 |
| SystemDisk.ProvisionedIops |
integer |
任意 |
The provisioned IOPS (Input/Output Operations Per Second) performance metrics for the system cloud disk. 説明
IOPS (Input/Output Operations Per Second) measures the number of read and write (output/input) operations that block storage can process per second. |
100 |
| SystemDisk.BurstingEnabled |
boolean |
任意 |
Specifies whether to enable the Burst (performance burst) feature for the system cloud disk. Valid values:
説明
This parameter is supported only when |
false |
| ImageOptions.LoginAsNonRoot |
boolean |
任意 |
Specifies whether the ECS instance uses the ecs-user account for logon. For more information, see Manage the logon name of an ECS instance. Valid values:
Default value: false. |
false |
| DeletionProtection |
boolean |
任意 |
Specifies whether to enable release protection for the instance. This parameter specifies whether the instance can be directly released from the ECS console or by calling the DeleteInstance operation, which prevents the instance from being accidentally deleted. Valid values:
Default value: false. 説明
This property applies only to pay-as-you-go instances. It prevents instances created by Auto Scaling scale-out activities from being accidentally deleted, but does not affect normal scale-in activities. Instances with release protection enabled can still be released by scale-in activities. |
false |
| StorageSetId |
string |
任意 |
The ID of the dedicated block storage cluster. |
ss-bp67acfmxazb4p**** |
| StorageSetPartitionNumber |
integer |
任意 |
The maximum number of partitions in the dedicated block storage cluster. Valid values: greater than or equal to 2. |
2 |
| CustomPriorities |
array<object> |
任意 |
The custom priorities for ECS instance type and vSwitch combinations. 重要 This parameter takes effect only when the scaling policy of the scaling group is set to priority-based policy. If an instance cannot be created based on the instance type and vSwitch combination with a higher priority, Auto Scaling automatically selects the combination with the next priority to create the instance. 説明
If you specify custom priorities for only some instance type and vSwitch combinations, the unspecified combinations have lower priorities than the specified ones. The unspecified combinations are still prioritized based on the vSwitch order of the scaling group and the instance type order of the scaling configuration.
|
|
|
object |
任意 |
|||
| InstanceType |
string |
任意 |
The instance type of the ECS instance. 重要 The instance type must be included in the instance type list of the scaling configuration. |
ecs.g6.large |
| VswitchId |
string |
任意 |
The ID of the vSwitch. 重要 The vSwitch must be included in the vSwitch list of the scaling group. |
vsw-bp14zolna43z266bq**** |
| NetworkInterfaces |
array<object> |
任意 |
The list of elastic network interfaces (ENIs). |
|
|
object |
任意 |
The elastic network interface (ENI). |
||
| InstanceType |
string |
任意 |
The type of the elastic network interface (ENI). If you use this parameter, you must use NetworkInterfaces to set the primary network interface controller (NIC). You cannot set SecurityGroupId or SecurityGroupIds at the same time. Valid values:
Default value: Secondary. |
Primary |
| NetworkInterfaceTrafficMode |
string |
任意 |
The communication mode of the network interface controller (NIC). Valid values:
Default value: Standard. 説明
The number of elastic network interfaces (ENIs) in RDMA mode cannot exceed the limit of the instance family. For more information, see Instance families. |
HighPerformance |
| Ipv6AddressCount |
integer |
任意 |
The number of randomly generated IPv6 addresses for the primary ENI. Note:
|
1 |
| SecurityGroupIds |
array |
任意 |
The IDs of one or more security groups to which the elastic network interface (ENI) belongs. |
|
|
string |
任意 |
The IDs of one or more security groups to which the elastic network interface (ENI) belongs. Note:
|
sg-uf6ij8dwxxxxxx |
|
| SecondaryPrivateIpAddressCount |
integer |
任意 |
The number of secondary private IPv4 addresses to assign to the ENI. Valid values: 1 to 49.
|
6 |
| DedicatedHostClusterId |
string |
任意 |
The ID of the dedicated host cluster. |
dc-2zedxc67zqzt7lb4**** |
| SecurityOptions |
object |
任意 |
The security options. |
|
| ConfidentialComputingMode |
string |
任意 |
The confidential computing pattern. Valid values:
|
TDX |
| HttpEndpoint |
string |
任意 |
Specifies whether to enable the access channel for instance metadata. Valid values:
Default value: enabled. 説明
For information about instance metadata, see Overview of instance metadata. |
enabled |
| HttpTokens |
string |
任意 |
Specifies whether to forcefully use the security-hardened mode (IMDSv2) when accessing instance metadata. Valid values:
Default value: optional. 説明
For information about instance metadata access modes, see Instance metadata access modes. |
optional |
| ResourcePoolOptions |
object |
任意 |
The resource pool policy used when creating instances. After you specify this parameter, note the following items:
|
|
| Strategy |
string |
任意 |
The resource pool includes private pools generated after the elasticity assurance or capacity reservation takes effect, and public pools, which are available for instance startup. Valid values:
Default value: None. |
PrivatePoolFirst |
| PrivatePoolIds |
array |
任意 |
The private pool IDs, which are the elasticity assurance IDs or capacity reservation IDs. Only Target-type private pool IDs can be specified. This parameter cannot be specified together with the PrivatePoolTags parameter. |
|
|
string |
任意 |
The private pool ID, which is the elasticity assurance ID or capacity reservation ID. Only Target-type private pool IDs can be specified. This parameter cannot be specified together with the PrivatePoolTags parameter. Valid values of N: 1 to 20. |
eap-bp67acfmxazb4**** |
|
| PrivatePoolTags |
array<object> |
任意 |
Filters available Target private pools by tags. Valid values of N: 1 to 20. Note:
|
|
|
object |
任意 |
Filters available Target private pools by tags. Valid values of N: 1 to 20. Note:
|
||
| Key |
string |
任意 |
The tag key of the private pool. |
TestKey |
| Value |
string |
任意 |
The tag value of the private pool. |
TestValue |
| InstanceTypeCandidateOptions |
object |
任意 |
After the alternative mode is enabled, when issues such as insufficient inventory occur, the system supplements similar instance types of the same size based on the currently selected instance types, or creates vSwitches in alternative zones and adds them to the scaling group. |
|
| Enabled |
boolean |
任意 |
Specifies whether to enable the alternative mode. |
true |
| MaxPrice |
number |
任意 |
The maximum price for alternative instance types. |
2.10 |
| AllowDifferentGeneration |
boolean |
任意 |
Specifies whether to allow supplementing instance types of other generations.
|
true |
| AllowCrossAz |
boolean |
任意 |
Specifies whether to allow supplementing vSwitches in other zones. 説明
The instance type remains unchanged. Only new zones are used as alternatives. When all selected zones of the scaling group cannot be used for scale-out due to issues such as insufficient inventory, the system automatically adds a new vSwitch in a new zone to the scaling group based on this configuration. For example, if the scaling group is configured with the cn-hangzhou-h and cn-hangzhou-g zones, and neither zone can be used for scale-out, Auto Scaling may create a vSwitch in cn-hangzhou-k based on real-time inventory and add it to the scaling group. |
true |
| AllowCidrBlocks |
array |
任意 |
The CIDR blocks for vSwitches that can be supplemented in other zones. |
|
|
string |
任意 |
The vSwitch CIDR block must meet the following requirements:
|
172.16.0.0/24 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The information about the created scaling configuration. |
||
| ScalingConfigurationId |
string |
The ID of the scaling configuration. |
asc-bp1ffogfdauy0nu5**** |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
例
成功レスポンス
JSONJSON
{
"ScalingConfigurationId": "asc-bp1ffogfdauy0nu5****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。