Membuat kelompok penyediaan otomatis.
Deskripsi operasi
Penyediaan otomatis adalah solusi yang menggunakan spot instans dan instans bayar sesuai penggunaan untuk men-deploy kluster instans dengan cepat. Solusi ini mendukung Penerapan satu klik kluster instans lintas metode penagihan, zona, dan keluarga instans. Untuk informasi selengkapnya, lihat Gunakan API kelompok penyediaan otomatis untuk membuat Instance ECS secara batch.
Penyediaan otomatis menggunakan kelompok penyediaan untuk menjadwalkan dan memelihara sumber daya komputasi. Anda dapat menggunakan kelompok penyediaan otomatis untuk menyediakan daya komputasi secara stabil dan mengurangi ketidakstabilan yang disebabkan oleh mekanisme penarikan kembali spot instans.
Penyediaan otomatis adalah fitur gratis, tetapi Anda dikenai biaya untuk sumber daya instans yang dibuat oleh kelompok penyediaan otomatis. Untuk informasi selengkapnya, lihat Penagihan spot instans dan Bayar sesuai penggunaan.
Jika Anda menentukan template peluncuran (
LaunchTemplateId) dan informasi konfigurasi peluncuran (LaunchConfiguration.*), template peluncuran akan diprioritaskan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CreateAutoProvisioningGroup |
create |
*全部资源
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat kelompok penyediaan otomatis berada. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat grup penyediaan otomatis berada. |
rg-bp67acfmxazb4p**** |
| AutoProvisioningGroupName |
string |
No |
Nama kelompok penyediaan otomatis. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Mandarin dan tidak boleh diawali dengan |
apg-test |
| AutoProvisioningGroupType |
string |
No |
Tipe pengiriman kelompok penyediaan otomatis. Nilai valid:
Nilai default: maintain. |
maintain |
| SpotAllocationStrategy |
string |
No |
Kebijakan untuk membuat spot instans. Nilai valid:
Nilai default: lowest-price. |
diversified |
| SpotInstanceInterruptionBehavior |
string |
No |
Aksi yang dilakukan saat spot instans diinterupsi. Nilai valid:
Nilai default: terminate. |
terminate |
| SpotInstancePoolsToUseCount |
integer |
No |
Berlaku saat Nilai valid: kurang dari nilai N dalam |
2 |
| PayAsYouGoAllocationStrategy |
string |
No |
Kebijakan untuk membuat instans bayar sesuai penggunaan. Nilai valid:
Nilai default: lowest-price. |
prioritized |
| ExcessCapacityTerminationPolicy |
string |
No |
Apakah akan merilis instans saat kapasitas real-time kelompok penyediaan otomatis melebihi kapasitas target dan event scale-in dipicu. Nilai valid:
Nilai default: no-termination. |
termination |
| ValidFrom |
string |
No |
Pengatur waktu saat kelompok penyediaan otomatis dimulai. Digunakan bersama dengan Tentukan waktu dalam format standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC+0. Nilai default: Stempel waktu UNIX saat permintaan langsung berlaku. |
2019-04-01T15:10:20Z |
| ValidUntil |
string |
No |
Pengatur waktu saat kelompok penyediaan otomatis kedaluwarsa. Digunakan bersama dengan Tentukan waktu dalam format standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC+0. Nilai default: 2099-12-31T23:59:59Z. |
2019-06-01T15:10:20Z |
| TerminateInstancesWithExpiration |
boolean |
No |
Apakah akan merilis instans kelompok penyediaan otomatis saat kelompok penyediaan otomatis kedaluwarsa. Nilai valid:
Nilai default: false. |
true |
| TerminateInstances |
boolean |
No |
Apakah akan merilis instans kelompok penyediaan otomatis saat kelompok penyediaan otomatis dihapus. Nilai valid:
Nilai default: false. |
true |
| MaxSpotPrice |
number |
No |
Harga maksimum untuk spot instans dalam kelompok penyediaan otomatis. Catatan
Jika |
2 |
| TotalTargetCapacity |
string |
Yes |
Total kapasitas target kelompok penyediaan otomatis. Nilai valid: bilangan bulat positif. Total kapasitas harus lebih besar dari atau sama dengan jumlah |
60 |
| PayAsYouGoTargetCapacity |
string |
No |
Kapasitas target instans bayar sesuai penggunaan dalam kelompok penyediaan otomatis. Nilai valid: kurang dari atau sama dengan nilai parameter |
30 |
| SpotTargetCapacity |
string |
No |
Kapasitas target spot instans dalam kelompok penyediaan otomatis. Nilai valid: kurang dari atau sama dengan nilai parameter |
20 |
| DefaultTargetCapacityType |
string |
No |
Metode penagihan untuk selisih kapasitas saat jumlah
Nilai default: Spot. |
Spot |
| LaunchTemplateId |
string |
No |
ID template peluncuran instans yang terkait dengan kelompok penyediaan otomatis. Anda dapat memanggil DescribeLaunchTemplates untuk mengkueri template peluncuran instans yang aktif. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran ( |
lt-bp1fgzds4bdogu03**** |
| LaunchTemplateVersion |
string |
No |
Versi template peluncuran instans yang terkait dengan kelompok penyediaan otomatis. Anda dapat memanggil DescribeLaunchTemplateVersions untuk mengkueri versi template peluncuran instans yang aktif. Nilai default: versi default template peluncuran. |
1 |
| Description |
string |
No |
Deskripsi kelompok penyediaan otomatis. |
testDescription |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotens permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi pastikan token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotens. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| LaunchConfiguration.ImageId |
string |
No |
ID image yang digunakan untuk meluncurkan instans. Anda dapat memanggil DescribeImages untuk mengkueri sumber daya image yang tersedia. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
m-bp1g7004ksh0oeuc**** |
| LaunchConfiguration.SecurityGroupId |
string |
No |
ID kelompok keamanan tempat instans berada. Jika template peluncuran dan informasi konfigurasi peluncuran keduanya ditentukan, template peluncuran akan diprioritaskan. |
sg-bp15ed6xe1yxeycg**** |
| LaunchConfiguration.IoOptimized |
string |
No |
Apakah instans merupakan instans yang dioptimalkan untuk I/O. Nilai valid:
Untuk tipe instans yang sudah dihentikan, nilai defaultnya adalah none. Untuk tipe instans lainnya, nilai defaultnya adalah optimized. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
optimized |
| LaunchConfiguration.InternetChargeType |
string |
No |
Metode penagihan untuk penggunaan jaringan. Nilai valid:
Catatan
Dalam mode bayar berdasarkan trafik, puncak bandwidth arah masuk dan arah keluar digunakan sebagai batas atas bandwidth, bukan sebagai metrik kinerja yang dijamin. Saat sumber daya diperebutkan, puncak bandwidth dapat dibatasi. Jika Anda memerlukan bandwidth yang terjamin, gunakan bayar berdasarkan bandwidth. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
PayByTraffic |
| LaunchConfiguration.InternetMaxBandwidthIn |
integer |
No |
Bandwidth publik arah masuk maksimum. Unit: Mbit/s. Nilai valid:
Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
10 |
| LaunchConfiguration.InternetMaxBandwidthOut |
integer |
No |
Bandwidth publik arah keluar maksimum. Unit: Mbit/s. Nilai valid: 0 hingga 100. Nilai default: 0. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
10 |
| LaunchConfiguration.InstanceName |
string |
No |
Nama instans. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Mandarin dan tidak boleh diawali dengan Nilai default: Saat Anda membuat beberapa Instance ECS, Anda dapat mengonfigurasi nama instans berurutan secara batch. Untuk informasi selengkapnya, lihat Konfigurasi nama atau hostname berurutan secara batch untuk beberapa instans. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
k8s-node-[1,4]-alibabacloud |
| LaunchConfiguration.HostName |
string |
No |
Hostname instans. Batasan berikut berlaku:
|
k8s-node-[1,4]-ecshost |
| LaunchConfiguration.InstanceDescription |
string |
No |
Deskripsi instans. Deskripsi harus terdiri dari 2 hingga 256 karakter dan tidak boleh diawali dengan |
Instance_Description |
| LaunchConfiguration.KeyPairName |
string |
No |
Nama pasangan kunci.
Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
KeyPair_Name |
| LaunchConfiguration.RamRoleName |
string |
No |
Nama peran RAM instans. Anda dapat memanggil API RAM ListRoles untuk mengkueri peran RAM instans yang telah Anda buat. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
RAM_Name |
| LaunchConfiguration.SecurityEnhancementStrategy |
string |
No |
Apakah akan mengaktifkan Penguatan Keamanan. Nilai valid:
Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
Active |
| LaunchConfiguration.UserData |
string |
No |
Data pengguna instans. Data pengguna instans harus dikodekan dalam Base64. Ukuran maksimum data mentah adalah 32 KB. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
ZWNobyBoZWxsbyBlY3Mh |
| LaunchConfiguration.SystemDiskCategory |
string |
No |
Kategori disk sistem. Nilai valid:
Untuk tipe instans yang sudah dihentikan yang merupakan instans non-I/O optimization, nilai defaultnya adalah cloud. Untuk tipe instans lainnya, nilai defaultnya adalah cloud_efficiency. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
cloud_ssd |
| LaunchConfiguration.SystemDiskSize |
integer |
No |
Ukuran disk sistem. Unit: GiB. Nilai valid: 20 hingga 500. Nilai parameter ini harus lebih besar dari atau sama dengan max{20, ukuran image yang ditentukan oleh LaunchConfiguration.ImageId}. Nilai default: max{40, ukuran image yang ditentukan oleh LaunchConfiguration.ImageId}. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
40 |
| LaunchConfiguration.SystemDiskName |
string |
No |
Nama disk sistem. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Mandarin dan tidak boleh diawali dengan Nilai default: kosong. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
cloud_ssdSystem |
| LaunchConfiguration.SystemDiskDescription |
string |
No |
Deskripsi disk sistem. Deskripsi harus terdiri dari 2 hingga 256 karakter dan tidak boleh diawali dengan Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
SystemDisk_Description |
| LaunchConfiguration.SystemDiskPerformanceLevel |
string |
No |
Tingkat kinerja (PL) SSD Perusahaan (ESSD) yang digunakan sebagai disk sistem. Nilai valid:
Untuk informasi tentang cara memilih tingkat kinerja ESSD, lihat ESSD. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
PL0 |
| LaunchConfiguration.PasswordInherit |
boolean |
No |
Apakah akan menggunakan kata sandi yang telah ditetapkan dalam image. Nilai valid:
Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
true |
| LaunchConfiguration.ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat instans berada. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
rg-bp67acfmxazb4p**** |
| LaunchConfiguration.CreditSpecification |
string |
No |
Mode berjalan Instans burstable. Nilai valid:
Nilai default: none. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
Standard |
| LaunchConfiguration.Password |
string |
No |
Kata sandi instans. Kata sandi harus terdiri dari 8 hingga 30 karakter dan harus mengandung setidaknya tiga dari tipe karakter berikut: huruf besar, huruf kecil, angka, dan karakter khusus. Karakter khusus berikut didukung:
Untuk instans Windows, kata sandi tidak boleh diawali dengan garis miring ke depan (/). Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
EcsV587! |
| LaunchConfiguration.DeploymentSetId |
string |
No |
ID set penyebaran. |
ds-bp1frxuzdg87zh4p**** |
| LaunchTemplateConfig |
array<object> |
No |
Daftar template peluncuran yang diperluas. |
|
|
object |
No |
Informasi template peluncuran yang diperluas. |
||
| VSwitchId |
string |
No |
ID vSwitch tempat Instance ECS dalam template peluncuran yang diperluas terhubung. Zona Instance ECS yang dibuat dari template yang diperluas ditentukan oleh vSwitch. Catatan
Jika Anda menentukan LaunchTemplateConfig, LaunchTemplateConfig.N.VSwitchId wajib diisi. |
vsw-sn5bsitu4lfzgc5o7**** |
| MaxPrice |
number |
No |
Harga maksimum untuk spot instans dalam template peluncuran yang diperluas. Catatan
Setelah Anda mengatur |
3 |
| Priority |
integer |
No |
Prioritas template peluncuran yang diperluas. Nilai 0 menunjukkan prioritas tertinggi. Nilai valid: 0 hingga +∞. |
1 |
| InstanceType |
string |
No |
Tipe instans dalam template peluncuran yang diperluas. Nilai valid N: 1 hingga 20. Untuk nilai valid, lihat Keluarga instans. |
ecs.g5.large |
| WeightedCapacity |
number |
No |
Bobot tipe instans dalam template peluncuran yang diperluas. Nilai yang lebih tinggi menunjukkan bahwa satu instans dapat memenuhi lebih banyak kebutuhan daya komputasi, sehingga mengurangi jumlah instans yang diperlukan. Nilai valid: lebih besar dari 0. Anda dapat menghitung bobot berdasarkan daya komputasi tipe instans yang ditentukan dan daya komputasi minimum satu node tunggal dalam kluster. Misalnya, jika daya komputasi minimum satu node tunggal adalah 8 vCPU dan 60 GiB:
|
2 |
| MaxQuantity |
integer |
No |
Catatan
Parameter ini sedang dalam pratinjau undangan dan tidak tersedia untuk digunakan. |
false |
| Cores |
array |
No |
Daftar jumlah inti vCPU untuk tipe instans. |
|
|
integer |
No |
Jumlah inti vCPU untuk tipe instans, digunakan untuk memfilter tipe instans yang memenuhi persyaratan. Untuk informasi selengkapnya, lihat Keluarga instans. Nilai valid N: 1 hingga 10. |
2 |
|
| Memories |
array |
No |
Daftar ukuran memori untuk tipe instans. |
|
|
number |
No |
Ukuran memori tipe instans. Unit: GiB. Digunakan untuk memfilter tipe instans yang memenuhi persyaratan. Untuk informasi selengkapnya, lihat Keluarga instans. Nilai valid N: 1 hingga 10. |
4 |
|
| InstanceFamilyLevel |
string |
No |
Tingkat family instans, digunakan untuk memfilter tipe instans yang memenuhi persyaratan. Nilai valid:
Nilai valid N: 1 hingga 10. |
EnterpriseLevel |
| ExcludedInstanceTypes |
array |
No |
Daftar tipe instans yang dikecualikan. |
|
|
string |
No |
Tipe instans yang dikecualikan. Anda dapat menggunakan wildcard (*) untuk mengecualikan satu tipe instans atau seluruh keluarga instans. Contoh:
|
ecs.n1.small/ecs.n1.*/*7* |
|
| Architectures |
array |
No |
Daftar tipe arsitektur untuk tipe instans. |
|
|
string |
No |
Tipe arsitektur tipe instans. Nilai valid:
Nilai default: mencakup semua tipe arsitektur. |
X86 |
|
| BurstablePerformance |
string |
No |
Apakah akan menyertakan tipe Instance Burstable. Nilai valid:
Nilai default: Include. |
Include |
| ImageId |
string |
No |
ID image. Anda dapat menggunakan parameter ini untuk mengatur image untuk kolam sumber daya saat ini. Jika tidak diatur, image yang ditentukan dalam |
aliyun_3_x64_20G_alibase_20210425.vhd |
| LaunchConfiguration.DataDisk |
array<object> |
No |
Daftar konfigurasi disk data dalam konfigurasi peluncuran. |
|
|
object |
No |
Informasi konfigurasi disk data dalam konfigurasi peluncuran. |
||
| PerformanceLevel |
string |
No |
Tingkat kinerja SSD Perusahaan (ESSD) yang digunakan sebagai disk data. Nilai N harus konsisten dengan N dalam
Untuk informasi tentang cara memilih tingkat kinerja ESSD, lihat ESSD. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
PL1 |
| KmsKeyId |
string |
No |
ID kunci KMS untuk disk data. Jika template peluncuran dan konfigurasi peluncuran ditentukan, template peluncuran diutamakan. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| Description |
string |
No |
Deskripsi disk data. Deskripsi harus terdiri dari 2 hingga 256 karakter dan tidak boleh diawali dengan |
DataDisk_Description |
| SnapshotId |
string |
No |
ID snapshot yang digunakan untuk membuat disk data N. Nilai valid N: 1 hingga 16. Setelah Anda menentukan parameter ini, parameter Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
s-bp17441ohwka0yuh**** |
| Size |
integer |
No |
Ukuran disk data N. Nilai valid N: 1 hingga 16. Unit: GiB. Nilai valid:
Catatan
Nilai parameter ini harus lebih besar dari atau sama dengan ukuran snapshot yang ditentukan oleh Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
20 |
| Device |
string |
No |
Titik pemasangan disk data. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template peluncuran akan diprioritaskan. |
/dev/vd1 |
| DiskName |
string |
No |
Nama disk data. Nama harus terdiri dari 2 hingga 128 karakter. Nama harus diawali dengan huruf atau karakter Mandarin dan tidak boleh diawali dengan Nilai default: kosong. Jika Anda menentukan template peluncuran dan informasi konfigurasi peluncuran, template pel |
cloud_ssdData |
| Category |
string |
No |
The category of data disk N. Valid values of N: 1 to 16. Valid values:
For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud. If you specify both a launch template and launch configuration information, the launch template takes precedence. |
cloud_ssd |
| DeleteWithInstance |
boolean |
No |
Specifies whether the data disk is released when the instance is released. Valid values:
Default value: true. If you specify both a launch template and launch configuration information, the launch template takes precedence. |
true |
| Encrypted |
boolean |
No |
Specifies whether data disk N is encrypted. Valid values:
Default value: false. If you specify both a launch template and launch configuration information, the launch template takes precedence. |
false |
| EncryptAlgorithm |
string |
No |
Catatan
This parameter is not publicly available. |
null |
| ProvisionedIops |
integer |
No |
The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1000 × capacity - baseline performance}. Baseline performance = min{1,800 + 50 × capacity, 50,000}. Catatan
This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks. |
40000 |
| BurstingEnabled |
boolean |
No |
Specifies whether to enable the performance burst feature. Valid values:
Catatan
This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks. |
false |
| AutoSnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy applied to the data disk. Note:
|
sp-bp67acfmxazb4p**** |
| LaunchConfiguration.Tag |
array<object> |
No |
The list of tags in the launch configuration. |
|
|
object |
No |
The tag information in the launch configuration. |
||
| Key |
string |
No |
The tag key of the instance. Valid values of N: 1 to 20. The tag key cannot be an empty string. It can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain |
TestKey |
| Value |
string |
No |
The tag value of the instance. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs:. It cannot contain |
TestValue |
| SystemDiskConfig |
array<object> |
No |
The list of system disk configurations. |
|
|
object |
No |
The system disk configuration information. |
||
| DiskCategory |
string |
No |
The category of the system disk. You can specify multiple candidate disk categories. The specified order determines the priority of each disk category. When a disk category is unavailable, the system automatically switches to the next category. Valid values:
|
cloud_ssd |
| DataDiskConfig |
array<object> |
No |
The list of data disk configurations. |
|
|
object |
No |
The data disk configuration information. |
||
| DiskCategory |
string |
No |
The category of the data disk. You can specify multiple candidate disk categories. The specified order determines the priority of each disk category. When a disk category is unavailable, the system automatically switches to the next category. Valid values:
|
cloud_efficiency |
| LaunchConfiguration.HostNames |
array |
No |
The list of hostnames for one or more instances. The following limits apply:
|
ecs-host-01 |
|
string |
No |
The hostname. The following limits apply:
|
ecs-host-01 |
|
| MinTargetCapacity |
string |
No |
The minimum target capacity of the auto provisioning group. Valid values |
20 |
| LaunchConfiguration.SecurityGroupIds |
array |
No |
The list of security groups to which the instance belongs. |
|
|
string |
No |
The ID of the security group to which the instance belongs. If both a launch template and launch configuration information are specified, the launch template takes precedence. |
sg-bp15ed6xe1yxeycg**** |
|
| LaunchConfiguration.SystemDisk |
object |
No |
The system disk information of the instance. If you specify both a launch template and launch configuration information, the launch template takes precedence. |
|
| Encrypted |
string |
No |
Specifies whether the system disk is encrypted. Valid values:
Default value: false. If you specify both. |
false |
| KMSKeyId |
string |
No |
The KMS key ID of the system disk. When both a launch template and launch configuration information are specified, the launch template takes precedence. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| EncryptAlgorithm |
string |
No |
The encryption algorithm for the system disk. Valid values:
Default value: aes-256. If you specify both a launch template and launch configuration information, the launch template takes precedence. Catatan
This parameter is not publicly available. |
aes-256 |
| ProvisionedIops |
integer |
No |
The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1000 × Capacity - Baseline performance}. Baseline performance = min{1,800 + 50 × Capacity, 50,000}. Catatan
This parameter is supported only when SystemDisk.Category is set to cloud_auto. For more information, see ESSD AutoPL disk. |
40000 |
| BurstingEnabled |
boolean |
No |
Specifies whether to enable the performance burst feature. Valid values:
Catatan
This parameter is supported only when |
false |
| AutoSnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy to apply to the system disk. After you set this parameter, note the following items:
|
sp-bp67acfmxazb4p**** |
| LaunchConfiguration.Arn |
array<object> |
No |
Catatan
This parameter is in invitational preview and is not available for use. |
|
|
object |
No |
Catatan
This parameter is in invitational preview and is not available for use. |
||
| Rolearn |
string |
No |
Catatan
This parameter is in invitational preview and is not available for use. |
acs:ram::123456789012****:role/adminrole |
| RoleType |
string |
No |
Catatan
This parameter is in invitational preview and is not available for use. |
34458433936495****:alice |
| AssumeRoleFor |
integer |
No |
Catatan
This parameter is in invitational preview and is not available for use. |
123456789012**** |
| HibernationOptionsConfigured |
boolean |
No |
Catatan
This parameter is in invitational preview and is not publicly available. |
false |
| LaunchConfiguration.AutoReleaseTime |
string |
No |
The automatic release time of the pay-as-you-go instance. Specify the time in the ISO 8601 standard in the
|
2018-01-01T12:05:00Z |
| LaunchConfiguration.ImageFamily |
string |
No |
The name of the image family. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with |
hangzhou-daily-update |
| Tag |
array<object> |
No |
The tags to attach to the auto provisioning group. |
|
|
object |
No |
The tag to attach to the auto provisioning group. |
||
| Key |
string |
No |
The tag key of the auto provisioning group. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with aliyun or acs:. The tag key cannot contain http:// or https://. |
TestKey |
| Value |
string |
No |
The tag value of the auto provisioning group. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http:// or https://. |
TestValue |
| ResourcePoolOptions |
object |
No |
The resource pool policy used to create instances. After you set this parameter, note the following items:
|
|
| Strategy |
string |
No |
Resource pools include private pools generated after Elasticity Assurance or Capacity Reservation takes effect, and public pools for instance startup. Valid values:
Default value: PublicPoolOnly. |
PrivatePoolFirst |
| PrivatePoolIds |
array |
No |
The list of private pool IDs. Valid values: 1 to 20. |
|
|
string |
No |
The private pool ID, which is the Elasticity Assurance ID or Capacity Reservation ID. Only Target-mode private pool IDs can be specified. |
eap-bp67acfmxazb4**** |
|
| LaunchConfiguration |
object |
No |
The launch configuration parameters. |
|
| Period |
integer |
No |
The subscription duration of the resource. Unit: specified by If PeriodUnit is set to Month, valid values of Period: 1, 2, 3, 6, and 12. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription billable methods duration. Valid values: Month (default). |
Month |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. This parameter takes effect when you create subscription instances. Valid values:
|
true |
| AutoRenewPeriod |
integer |
No |
The auto-renewal period. Valid values: If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60. Default value: 1. |
1 |
| SpotDuration |
integer |
No |
The protection period of the spot instance. Unit: hours. Default value: 1. Valid values:
Alibaba Cloud sends an ECS system event notification 5 minutes before the instance is released. Spot instances are billed by second. Select an appropriate protection period based on the expected task execution duration. After you set this parameter, note the following items:
|
1 |
| SpotInterruptionBehavior |
string |
No |
The spot instance break mode. Valid values:
For more information about economical mode, see Economical mode. Default value: Terminate. After you set this parameter, note the following items:
|
Terminate |
| ImageOptions |
object |
No |
The image-related property information. After you set this parameter, note the following items:
|
|
| LoginAsNonRoot |
boolean |
No |
Specifies whether the instance that uses this image supports logon as the ecs-user user. Valid values:
|
false |
| SchedulerOptions |
object |
No |
||
| DedicatedHostId |
string |
No |
||
| DedicatedHostClusterId |
string |
No |
||
| SecurityOptions |
object |
No |
||
| TrustedSystemMode |
string |
No |
||
| CpuOptions |
object |
No |
The CPU-related configurations. |
|
| Core |
integer |
No |
The number of CPU cores. Default value: see Specify and view CPU options. |
2 |
| ThreadsPerCore |
integer |
No |
The number of threads per CPU core. The number of vCPUs of the ECS instance = CpuOptions.Core value × CpuOptions.ThreadsPerCore value. If CpuOptions.ThreadsPerCore is set to 1, CPU hyper-threading is disabled. Only specific instance types support custom CPU thread counts. For valid values and default values, see Specify and view CPU options. |
2 |
| PrePaidOptions |
object |
No |
The detailed capacity configuration for subscription instances. |
|
| SpecifyCapacityDistribution |
array<object> |
No |
The minimum capacity set for different instance types. This parameter is supported only when |
|
|
object |
No |
The minimum capacity for an instance type. |
||
| InstanceTypes |
array |
No |
The set of instance types. Duplicate values are not allowed, and the instance types must be within the range of LaunchTemplateConfig.InstanceType. |
|
|
string |
No |
Tipe instans |
ecs.c6.large |
|
| MinTargetCapacity |
integer |
No |
The minimum number of instances to deliver within the Catatan
The sum of all MinTargetCapacity values ( |
5 |
| ExecutionMode |
string |
No |
||
| CandidateOptions |
object |
No |
||
| TimeoutMinutes |
integer |
No |
60 |
|
| Evaluate |
boolean |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AutoProvisioningGroupId |
string |
The ID of the auto provisioning group. |
apg-sn54avj8htgvtyh8**** |
| RequestId |
string |
ID permintaan. |
745CEC9F-0DD7-4451-9FE7-8B752F39**** |
| LaunchResults |
object |
||
| LaunchResult |
array<object> |
The set of instances created by the auto provisioning group. This value is returned only when the delivery type of the auto provisioning group is one-time synchronization delivery ( |
|
|
array<object> |
The information about the instances created by the auto provisioning group. |
||
| ZoneId |
string |
ID zona tempat instans berada. |
cn-hangzhou-g |
| ErrorMsg |
string |
Pesan error yang dikembalikan ketika instans gagal dibuat. |
Specific parameter is not valid. |
| InstanceType |
string |
Tipe instans. |
ecs.g5.large |
| ErrorCode |
string |
Kode error yang dikembalikan ketika instans gagal dibuat. |
InvalidParameter |
| SpotStrategy |
string |
Strategi preemption dari instans pay-as-you-go. Nilai yang mungkin:
|
NoSpot |
| Amount |
integer |
Jumlah instans dalam daftar ID instans yang berhasil dibuat. |
1 |
| InstanceIds |
object |
||
| InstanceId |
array |
Daftar ID instans yang berhasil dibuat. |
|
|
string |
Daftar ID instans yang berhasil dibuat. |
["i-bp67acfmxazb4p****"] |
|
| CandidateEvaluateLevel |
string |
Low |
Contoh
Respons sukses
JSONformat
{
"AutoProvisioningGroupId": "apg-sn54avj8htgvtyh8****",
"RequestId": "745CEC9F-0DD7-4451-9FE7-8B752F39****",
"LaunchResults": {
"LaunchResult": [
{
"ZoneId": "cn-hangzhou-g",
"ErrorMsg": "Specific parameter is not valid.",
"InstanceType": "ecs.g5.large",
"ErrorCode": "InvalidParameter",
"SpotStrategy": "NoSpot",
"Amount": 1,
"InstanceIds": {
"InstanceId": [
"[\"i-bp67acfmxazb4p****\"]"
]
},
"CandidateEvaluateLevel": "Low"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 400 | InvalidAutoProvisioningGroupName.Malformed | The specified parameter "AutoProvisioningGroupName" is not valid. | |
| 400 | InvalidAutoProvisioningGroupType.ValueNotSupported | The specified parameter "AutoProvisioningGroupType" is not supported. | |
| 400 | InvalidFleetExcessCapacityTerminationPolicy.ValueNotSupported | The specified parameter "ExcessCapacityTerminationPolicy" is not supported. | |
| 400 | InvalidDefaultTargetCapacityType.ValueNotSupported | The specified parameter "DefaultTargetCapacityType" is not supported. | |
| 400 | InvalidSpotAllocationStrategy.ValueNotSupported | The specified parameter "SpotAllocationStrategy" is not supported. | |
| 400 | InvalidSpotInstanceInterruptionBehavior.ValueNotSupported | The specified parameter "SpotInstanceInterruptionBehavior" is not supported. | |
| 400 | InvalidPayAsYouGoAllocationStrategy.ValueNotSupported | The specified parameter "PayAsYouGoAllocationStrategy" is not supported. | |
| 400 | MissingParameter.SpotAllocationStrategy | The specified parameter "SpotAllocationStrategy" is empty. | |
| 400 | MissingParameter.LaunchTemplateConfigs | The specified parameter "LaunchTemplateConfigs" is empty. | |
| 400 | InvalidValidTime.MalFormed | The specified parameter "ValidTime" is not supported. | |
| 400 | InvalidLaunchTemplateVersion.ValueNotSupported | The specified parameter "LaunchTemplateVersion" is not valid. | |
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroup" should not be null. | |
| 400 | InvalidRegion.ValueNotSupported | The specified Region does not exist. | |
| 400 | InvalidDescription.ValueNotSupported | The specified description is illegal. | |
| 400 | InvalidLaunchTemplate.ValueNotSupported | The SecurityGroupId or imageId in LaunchTemplate is not exists. | |
| 400 | InvalidCapacity.ValueNotSupported | The Capacity is illegal, or the TargetCapacity is large than SpotCapacity + PayAsYouGoCapacity. | |
| 400 | InvalidInstanceType.ValueNotSupported | The instanceType is illegal. | |
| 400 | InternalError | The request processing has failed due to some unknown error. | |
| 400 | InvalidLaunchTemplateConfigs.SizeExceed | The size of LaunchTemplateConfigs exceeds limit. | |
| 400 | InvalidParameter.SpotInstancePoolsToUseCount | The specified parameter "SpotInstancePoolsToUseCount" is not valid. | |
| 400 | InvalidParameter.ResourceGroupId | The specified parameter "ResourceGroupId" is not valid. | |
| 400 | InvalidParameter.TargetCapacity | The Capacity is illegal, TotalTargetCapacity, PayAsYouGoTargetCapacity, SpotTargetCapacity must be specified, meanwhile, the TargetCapacity must be larger than or equal to the sum of SpotCapacity and OnDemandCapacity. | |
| 400 | MissingParameter.WeightedCapacity | The WeightedCapacity of LaunchTemplateConfig should not be empty. | |
| 400 | InvalidParameter.WeightedCapacityBeyondRange | The WeightedCaTpacity of LaunchTemplateConfig beyond permitted range. | |
| 400 | InvalidParameter.MaxPrice | The specified parameter "MaxSpotPrice" or "MaxPrice" of LaunchTemplateConfig is not valid. | |
| 400 | NoPermission | %s | |
| 400 | Duplicate.DiskCategory | The specified disk configs contains duplicate DiskCategory. | |
| 400 | InvalidImageFamily.Confict | The specified parameter ImageFamily should be empty when the parameter ImageId is specified. | |
| 400 | Invalid.ResourcePoolOptions.PrivatePoolIds | The zone or instancetype of the ResourcePoolOptions.PrivatePoolIds does not match the LaunchTemplateConfig. | |
| 400 | Invalid.ResourcePoolOptions.Strategy | The specified ResourcePoolOptions.Strategy is invalid. | |
| 400 | Invalid.ResourcePoolOptionsPrivatePoolIds.SizeExceed | The size of ResourcePoolOptions.PrivatePoolIds exceeds limit. | |
| 400 | MissingParameter.ResourcePoolOptions.PrivatePoolIds | The specified ResourcePoolOptions.PrivatePoolIds should not be null when ResourcePoolOptions.Strategy is PrivatePoolOnly. | |
| 400 | InvalidSpotDuration | The specified SpotDuration is not valid. | |
| 400 | InvalidSpotInterruptionBehavior | %s | |
| 400 | InvalidParameter.SecurityGroupIdRepeated | The SecurityGroupId is repeated. | |
| 400 | VpcMismatch.SecurityGroupAndVSwitch | Specified security group and virtual switch are not in the same VPC. | |
| 400 | InvalidMinTargetCapacity.NotSatisfied | The inventory of specified InstanceType does not meet the MinTargetCapacity. | |
| 400 | InvalidParameterRange.MinTargetCapacity | The MinTargetCapacity exceeds the limit[0-TotalTargetCapacity]. | |
| 400 | InvalidUserData.Base64FormatInvalid | The specified parameter UserData must be base64 encoded. | |
| 400 | InvalidUserData.SizeExceeded | The specified parameter UserData exceeds the size. | |
| 400 | InvalidAutoReleaseTime.Malformed | The specified parameter AutoReleaseTime is not valid. | |
| 400 | QuotaExceeded.AutoProvisioningGroup | The count of AutoProvisioningGroup exceeds the limit. | |
| 400 | Invalid.PrivatePoolOptions.status | The PrivatePool status is not valid. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | TotalTargetCapacityLimitExceed | The TotalTargetCapacity exceeds the limit[0-2000]. | |
| 403 | SpotTargetCapacityLimitExceed | The SpotTargetCapacity exceeds the limit[0-2000]. | |
| 403 | PayAsYouGoTargetCapacityLimitExceed | The PayAsYouGoTargetCapacity exceeds the limit[0-2000]. | |
| 403 | OperationDenied.NoStock | The resource is out of stock in the specified zone. Please try other types, or choose other regions and zones. | |
| 403 | CandidateDenied.NoStock | The resource is out of stock and there are no candidate resources in the specified zone. Please try other types, or choose other regions and zones. | |
| 404 | InvalidResourcePoolOptionsPrivatePoolIds.NotFound | The ResourcePoolOptions.PrivatePoolIds do not exist. | |
| 404 | InvalidSecurityGroupId.NotFound | The SecurityGroupId %s provided does not exist in our records. | |
| 404 | InvalidVSwitchId.NotFound | The specified virtual switch %s does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.