Creates an auto provisioning group. When you call this operation, you can specify parameters, such as ResourceGroupId, AutoProvisioningGroupType, and ValidFrom, in the request.
Operation description
Usage notes
- Auto Provisioning is a service that allows quick deployment of an instance cluster that consists of preemptible instances and pay-as-you-go instances. Auto Provisioning supports push-button deployment of instance clusters across different billing methods, instance families, and zones. For more information, see Use auto provisioning group-related API operations to create multiple ECS instances at the same time.
- Auto Provisioning uses auto provisioning groups to schedule and maintain computing resources. You can use auto provisioning groups to obtain a steady supply of computing resources. This helps reduce the impact on compute capacity when preemptible instances are reclaimed.
- Auto Provisioning is provided free of charge. However, you are charged for instance resources that are created in auto provisioning groups. For more information, see Overview of preemptible instances and Pay-as-you-go.
- When you specify both a launch template (
LaunchTemplateId
) and extended configurations (LaunchConfiguration.*
parameters), LaunchTemplateId takes precedence.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ecs:CreateAutoProvisioningGroup | create | *All Resources * |
|
|
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which to create the auto provisioning group. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ResourceGroupId | string | No | The ID of the resource group to which to assign the auto provisioning group. | rg-bp67acfmxazb4p**** |
AutoProvisioningGroupName | string | No | The name of the auto provisioning group. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with | apg-test |
AutoProvisioningGroupType | string | No | The delivery type of the auto provisioning group. Valid values:
Default value: maintain. | maintain |
SpotAllocationStrategy | string | No | The policy for creating preemptible instances. Valid values:
Default value: lowest-price. | diversified |
SpotInstanceInterruptionBehavior | string | No | The operation to be performed on the preemptible instance when it is interrupted. Valid values:
Default value: terminate. | terminate |
SpotInstancePoolsToUseCount | integer | No | The number of preemptible instances of the lowest-priced instance type to be created by the auto provisioning group. This parameter takes effect when The value must be smaller than the N value specified in | 2 |
PayAsYouGoAllocationStrategy | string | No | The policy for creating pay-as-you-go instances. Valid values:
Default value: lowest-price. | prioritized |
ExcessCapacityTerminationPolicy | string | No | Specifies whether to release scaled-in instances when the real-time capacity of the auto provisioning group exceeds the target capacity and the group is triggered to scale in. Valid values:
Default value: no-termination. | termination |
ValidFrom | string | No | The time at which to start the auto provisioning group. The period of time between this point in time and the point in time specified by Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. By default, an auto provisioning group is started immediately after it is created. | 2019-04-01T15:10:20Z |
ValidUntil | string | No | The time at which the auto provisioning group expires. The period of time between this point in time and the point in time specified by Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Default value: 2099-12-31T23:59:59Z. | 2019-06-01T15:10:20Z |
TerminateInstancesWithExpiration | boolean | No | Specifies whether to release instances in the auto provisioning group when the group expires. Valid values:
Default value: false. | true |
TerminateInstances | boolean | No | Specifies whether to release instances in the auto provisioning group when the auto provisioning group is deleted. Valid values:
Default value: false. | true |
MaxSpotPrice | float | No | The maximum price of preemptible instances in the auto provisioning group. Note
When both MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice are specified, the smaller one of the two parameter values is used.
| 2 |
TotalTargetCapacity | string | Yes | The total target capacity of the auto provisioning group. The value must be a positive integer. The total target capacity of the auto provisioning group must be greater than or equal to the sum of the target capacity of pay-as-you-go instances specified by | 60 |
PayAsYouGoTargetCapacity | string | No | The target capacity of pay-as-you-go instances in the auto provisioning group. The value must be less than or equal to the | 30 |
SpotTargetCapacity | string | No | The target capacity of preemptible instances in the auto provisioning group. The value must be less than or equal to the | 20 |
DefaultTargetCapacityType | string | No | The type of supplemental instances. When the sum of the
Default value: Spot. | Spot |
LaunchTemplateId | string | No | The ID of the launch template associated with the auto provisioning group. You can call the DescribeLaunchTemplates operation to query available launch templates. When both LaunchTemplateId and | lt-bp1fgzds4bdogu03**** |
LaunchTemplateVersion | string | No | The version of the launch template associated with the auto provisioning group. You can call the DescribeLaunchTemplateVersions operation to query the versions of available launch templates. Default value: the default version of the launch template. | 1 |
Description | string | No | The description of the auto provisioning group. | testDescription |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. | 0c593ea1-3bea-11e9-b96b-88e9fe637760 |
LaunchConfiguration.ImageId | string | No | The ID of the image to be used to create the instance. You can call the DescribeImages operation to query available image resources. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | m-bp1g7004ksh0oeuc**** |
LaunchConfiguration.SecurityGroupId | string | No | The ID of the security group to which to assign the instance. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | sg-bp15ed6xe1yxeycg**** |
LaunchConfiguration.IoOptimized | string | No | Specifies whether the instance is I/O optimized. Valid values:
For instances of retired instance types, the default value is none. For instances of other instance types, the default value is optimized. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | optimized |
LaunchConfiguration.InternetChargeType | string | No | The billing method for network usage. Valid values:
Note
When the pay-by-traffic billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as the upper limits of bandwidth instead of guaranteed performance specifications. When demands outstrip resource supplies, the maximum bandwidths may be limited. If you want guaranteed bandwidth for your instance, use the pay-by-bandwidth billing method.
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | PayByTraffic |
LaunchConfiguration.InternetMaxBandwidthIn | integer | No | The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 10 |
LaunchConfiguration.InternetMaxBandwidthOut | integer | No | The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100. Default value: 0. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 10 |
LaunchConfiguration.InstanceName | string | No | The instance name. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with The default value of this parameter is the When you batch create instances, you can batch configure sequential names for the instances. For more information, see Batch configure sequential names or hostnames for multiple instances. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | k8s-node-[1,4]-alibabacloud |
LaunchConfiguration.HostName | string | No | The instance hostname. Take note of the following items:
| k8s-node-[1,4]-ecshost |
LaunchConfiguration.InstanceDescription | string | No | The instance description. The description must be 2 to 256 characters in length. The description can contain letters and cannot start with | Instance_Description |
LaunchConfiguration.KeyPairName | string | No | The key pair name.
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | KeyPair_Name |
LaunchConfiguration.RamRoleName | string | No | The name of the instance Resource Access Management (RAM) role. You can call the ListRoles operation provided by RAM to query the instance RAM roles that you created. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | RAM_Name |
LaunchConfiguration.SecurityEnhancementStrategy | string | No | Specifies whether to enable security hardening. Valid values:
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | Active |
LaunchConfiguration.UserData | string | No | The instance user data. The user data must be encoded in Base64. The raw data can be up to 32 KB in size. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | ZWNobyBoZWxsbyBlY3Mh |
LaunchConfiguration.SystemDiskCategory | string | No | The category of the system disk. Valid values:
For non-I/O optimized instances of retired instance types, the default value is cloud. For other instances, the default value is cloud_efficiency. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | cloud_ssd |
LaunchConfiguration.SystemDiskSize | integer | No | The size of the system disk. Valid values: 20 to 500. Unit: GiB. The value must be at least 20 and greater than or equal to the size of the image specified by LaunchConfiguration.ImageId. Default value: 40 or the size of the image specified by LaunchConfiguration.ImageId, whichever is greater. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 40 |
LaunchConfiguration.SystemDiskName | string | No | The name of the system disk. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with This parameter is empty by default. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | cloud_ssdSystem |
LaunchConfiguration.SystemDiskDescription | string | No | The description of the system disk. The description must be 2 to 256 characters in length. The description can contain letters and cannot start with When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | SystemDisk_Description |
LaunchConfiguration.SystemDiskPerformanceLevel | string | No | The performance level of the ESSD to be used as the system disk. Valid values:
For more information about ESSD performance levels, see ESSDs . When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | PL0 |
LaunchConfiguration.PasswordInherit | boolean | No | Specifies whether to use the password preset in the image. Valid values:
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | true |
LaunchConfiguration.ResourceGroupId | string | No | The ID of the resource group to which to assign the instance. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | rg-bp67acfmxazb4p**** |
LaunchConfiguration.CreditSpecification | string | No | The performance mode of the burstable instance. Valid values:
This parameter is empty by default. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | Standard |
LaunchConfiguration.Password | string | No | The instance password. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The password can contain the following special characters:
| EcsV587! |
LaunchConfiguration.DeploymentSetId | string | No | The ID of the deployment set. | ds-bp1frxuzdg87zh4p**** |
LaunchTemplateConfig | array<object> | No | The extended configurations of the launch template. | |
object | No | The extended configurations of the launch template. | ||
VSwitchId | string | No | The ID of the vSwitch in extended configuration N. The zone of the ECS instances created from the extended configuration is determined by the vSwitch. Note
If you specify one or more other LaunchTemplateConfig.N.* parameters, you must also specify LaunchTemplateConfig.N.VSwitchId .
| vsw-sn5bsitu4lfzgc5o7**** |
MaxPrice | double | No | The maximum price of preemptible instances in extended configuration N. Note
If you specify one or more other LaunchTemplateConfig.N.* parameters, you must also specify LaunchTemplateConfig.N.MaxPrice .
| 3 |
Priority | integer | No | The priority of extended configuration N. A value of 0 indicates the highest priority. Valid values: 0 to ∞. | 1 |
InstanceType | string | No | The instance type in extended configuration N. Valid values of N: 1 to 20. For more information about the valid values of this parameter, see Instance families. | ecs.g5.large |
WeightedCapacity | double | No | The weight of the instance type in extended configuration N. A greater weight indicates that a single instance has more computing power and fewer instances are required. The value must be greater than 0. The weight is calculated based on the computing power of the specified instance type and the minimum computing power of a single instance in the cluster to be created by the auto provisioning group. For example, assume that the minimum computing power of a single instance is 8 vCPUs and 60 GiB of memory.
| 2 |
MaxQuantity | integer | No | Note
This parameter is in invitational preview and is not publicly available.
| false |
Cores | array | No | The number of vCPU cores of the instance type. | |
integer | No | The number of vCPUs of the instance type in extended configuration N. This parameter is used to filter instance types. For more information, see Overview of instance families. Valid values of N: 1 to 10. | 2 | |
Memories | array | No | The memory sizes of the instance type. | |
float | No | The memory size of the instance type in extended configuration N. Unit: GiB. This parameter is used to filter instance types. For more information, see Overview of instance families. Valid values of N: 1 to 10. | 4 | |
InstanceFamilyLevel | string | No | The instance family level of the instance type in extended configuration N. This parameter is used to filter instance types. Valid values:
Valid values of N: 1 to 10. | EnterpriseLevel |
ExcludedInstanceTypes | array | No | The instance types that you want to exclude. | |
string | No | Instance type N that you want to exclude in extended configuration N. You can use wildcard characters, such as an asterisk (*), to exclude an instance type or an instance family. Examples:
| ecs.n1.small/ecs.n1.*/*7* | |
Architectures | array | No | The architectures of the instance types. | |
string | No | Architecture N of the instance type in extended configuration N. Valid values:
By default, all values are included. | X86 | |
BurstablePerformance | string | No | Specifies whether to include burstable instance types. Valid values:
Default value: Include. | Include |
LaunchConfiguration.DataDisk | array<object> | No | The cloud disks in the extended configurations of the launch template. | |
object | No | The cloud disk in the extended configurations of the launch template. | ||
PerformanceLevel | string | No | The performance level of the Enterprise SSD (ESSD) to use as data disk N. The value of N in this parameter must be the same as the value of N in
For more information about ESSD performance levels, see ESSDs . When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | PL1 |
KmsKeyId | string | No | The ID of the Key Management Service (KMS) key to use for data disk N. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 0e478b7a-4262-4802-b8cb-00d3fb40**** |
Description | string | No | The description of data disk N. The description must be 2 to 256 characters in length and cannot start with | DataDisk_Description |
SnapshotId | string | No | The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. If you specify this parameter, When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | s-bp17441ohwka0yuh**** |
Size | integer | No | The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:
Note
The value of this parameter must be greater than or equal to the size of the snapshot specified by LaunchConfiguration.DataDisk.N.SnapshotId .
When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 20 |
Device | string | No | The mount point of data disk N. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | /dev/vd1 |
DiskName | string | No | The name of data disk N. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with This parameter is left empty by default. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 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. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | cloud_ssd |
DeleteWithInstance | boolean | No | Specifies whether to release data disk N when the instance to which the data disk is attached is released. Valid values:
Default value: true. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | true |
Encrypted | boolean | No | Specifies whether to encrypt data disk N. Valid values:
Default value: false. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | false |
EncryptAlgorithm | string | No | Note
This parameter is not publicly available.
| null |
ProvisionedIops | long | No | The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. Note
This parameter is available only if you set LaunchConfiguration.DataDisk.N.Category to cloud_auto. For more information, see ESSD AutoPL disks.
| 40000 |
BurstingEnabled | boolean | No | Specifies whether to enable the performance burst feature for data disk N. Valid values:
Note
This parameter is available only if you set LaunchConfiguration.DataDisk.N.Category to cloud_auto. For more information, see ESSD AutoPL disks.
| false |
LaunchConfiguration.Tag | array<object> | No | The tag in the extended configurations of the launch template. | |
object | No | The tag in the extended configurations of the launch template. | ||
Key | string | No | The key of the tag. 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 acs: or aliyun. It cannot contain | TestKey |
Value | string | No | The value of the tag. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length. It cannot start with acs: or contain | TestValue |
SystemDiskConfig | array<object> | No | The information of system disks on the instance. | |
object | No | The information of system disks on the instance. | ||
DiskCategory | string | No | The category of the system disk. You can specify multiple disk categories, and the disk categories are prioritized in the order in which they are specified. If a specified disk category is unavailable, the system uses the next available disk category. Valid values:
| cloud_ssd |
DataDiskConfig | array<object> | No | The information of data disks on the instance. | |
object | No | The information of data disks on the instance. | ||
DiskCategory | string | No | The category of data disk N. You can use this parameter to specify multiple disk categories, and the disk categories are prioritized in the order in which they are specified. If a specified disk category is unavailable, the system uses the next available disk category. Valid values:
| cloud_efficiency |
LaunchConfiguration.HostNames | array | No | The hostname of instance N. You can use this parameter to specify different hostnames for multiple instances. Take note of the following items:
| |
string | No | The hostname of instance N. You can use this parameter to specify different hostnames for multiple instances. Take note of the following items:
| ecs-host-01 | |
MinTargetCapacity | string | No | The minimum target capacity of the auto provisioning group. The value must be a positive integer. When you specify this parameter, take note of the following items:
| 20 |
LaunchConfiguration.SecurityGroupIds | array | No | The IDs of the security groups to which the new ECS instances belong. | |
string | No | The ID of security group N to which to assign the instance. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | sg-bp15ed6xe1yxeycg**** | |
LaunchConfiguration.SystemDisk | object | No | The system disk information of instances. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | |
Encrypted | string | No | Specifies whether to encrypt the system disk. Valid values:
Default value: false. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | false |
KMSKeyId | string | No | The ID of the KMS key to use for the system disk. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. | 0e478b7a-4262-4802-b8cb-00d3fb40**** |
EncryptAlgorithm | string | No | The algorithm to use to encrypt the system disk. Valid values:
Default value: aes-256. When both LaunchTemplateId and LaunchConfiguration.* parameters are specified, LaunchTemplateId takes precedence. Note
This parameter is not publicly available.
| aes-256 |
ProvisionedIops | long | No | The provisioned read/write IOPS of the ESSD AutoPL disk to use as the system disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. Note
This parameter is available only if you set LaunchConfiguration.SystemDisk.Category to cloud_auto. For more information, see ESSD AutoPL disks.
| 40000 |
BurstingEnabled | boolean | No | Specifies whether to enable the performance burst feature for the system disk. Valid values:
Note
This parameter is available only if you set LaunchConfiguration.SystemDisk.Category to cloud_auto . For more information, see ESSD AutoPL disks.
| false |
LaunchConfiguration.Arn | array<object> | No | Note
This parameter is in invitational preview and is not publicly available.
| |
object | No | Note
This parameter is in invitational preview and is not publicly available.
| ||
Rolearn | string | No | Note
This parameter is in invitational preview and is not publicly available.
| acs:ram::123456789012****:role/adminrole |
RoleType | string | No | Note
This parameter is in invitational preview and is not publicly available.
| 34458433936495****:alice |
AssumeRoleFor | long | No | Note
This parameter is in invitational preview and is not publicly available.
| 123456789012**** |
HibernationOptionsConfigured | boolean | No | Note
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 add to the auto provisioning group. | |
object | No | Tag N to add to the auto provisioning group. | ||
Key | string | No | The key of tag N to add to 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. It cannot start with aliyun or acs: and cannot contain http:// or https://. | TestKey |
Value | string | No | The value of tag N to add to 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 options to use to create instances. When you specify this parameter, take note of the following items:
| |
Strategy | string | No | Specifies which resource pools to use to create instances. Resource pools include the public pool and the private pools that are associated with elasticity assurance and capacity reservations in the Active state. Valid values:
Default value: PublicPoolOnly. | PrivatePoolFirst |
PrivatePoolIds | array | No | The IDs of private pools. The ID of a private pool is the same as the ID of the elasticity assurance or capacity reservation that is associated with the private pool. You can specify the IDs of only targeted private pools for this parameter. | |
string | No | The ID of private pool N. The ID of a private pool is the same as the ID of the elasticity assurance or capacity reservation that is associated with the private pool. You can specify the ID of only a targeted private pool for this parameter. Valid values of N: 1 to 20. | eap-bp67acfmxazb4**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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****\"]"
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | %s | The specified parameter is invalid. |
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 | MissingParameter | The specified launchTemplate does not exist. | - |
400 | InvalidLaunchTemplate.ValueNotSupported | The SecurityGroupId or imageId in LaunchTemplate is not exists. | - |
400 | MissingParameter | The launchTemplateConfigs should not be null. | - |
400 | InvalidCapacity.ValueNotSupported | The Capacity is illegal, or the TargetCapacity is large than SpotCapacity + PayAsYouGoCapacity. | - |
400 | MissingParameter | The specified parameter "instanceType" should not be null. | - |
400 | InvalidInstanceType.ValueNotSupported | The instanceType is illegal. | - |
400 | MissingParameter | The specified parameter "VSWitchId" should not be null. | - |
400 | InternalError | The request processing has failed due to some unknown error. | An internal error has occurred. Try again later. |
400 | InvalidLaunchTemplateConfigs.SizeExceed | The size of LaunchTemplateConfigs exceeds limit. | - |
400 | InvalidPayAsYouGoAllocationStrategy.ValueNotSupported | The specified parameter "PayAsYouGoAllocationStrategy" is not valid. | - |
400 | InvalidSpotAllocationStrategy.ValueNotSupported | The specified parameter "SpotAllocationStrategy" is not valid. | - |
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 | MissingParameter | %s | A parameter is not specified. |
400 | InvalidVSwitchId.NotFound | %s | The specified vSwitch does not exist. |
400 | InvalidImageFamily.Confict | The specified parameter ImageFamily should be empty when the parameter ImageId is specified. | 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. | The zone or instancetype of the ResourcePoolOptions.PrivatePoolIds does not match the LaunchTemplateConfig. |
400 | Invalid.ResourcePoolOptions.Strategy | The specified ResourcePoolOptions.Strategy is invalid. | The specified ResourcePoolOptions.Strategy is invalid. |
400 | Invalid.ResourcePoolOptionsPrivatePoolIds.SizeExceed | The size of ResourcePoolOptions.PrivatePoolIds exceeds limit. | The size of ResourcePoolOptions.PrivatePoolIds exceeds limit. |
400 | MissingParameter.ResourcePoolOptions.PrivatePoolIds | The specified ResourcePoolOptions.PrivatePoolIds should not be null when ResourcePoolOptions.Strategy is PrivatePoolOnly. | The specified ResourcePoolOptions.PrivatePoolIds should not be null when ResourcePoolOptions.Strategy is PrivatePoolOnly. |
404 | InvalidResourcePoolOptionsPrivatePoolIds.NotFound | The ResourcePoolOptions.PrivatePoolIds do not exist. | The ResourcePoolOptions.PrivatePoolIds do not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-17 | The Error code has changed | View Change Details |
2024-10-15 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-04-26 | The Error code has changed | View Change Details |
2024-02-29 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-11-06 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-06-14 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-04-04 | The Error code has changed | View Change Details |
2022-09-21 | The Error code has changed. The request parameters of the API has changed | View Change Details |