RunInstances - 批量创建实例

更新时间:
复制 MD 格式

本接口用于批量创建ECS实例,支持自动启动、分配公网IP及设置自动释放时间。

接口说明

创建实例会产生计费,计费项包括实例规格镜像块存储公网带宽。请确保在使用该接口前,已充分了解 ECS 产品的收费方式和价格

本接口为异步接口,当前创建实例请求发送成功后会返回实例 ID,实例的创建和启动不是立即完成的,您可以调用 DescribeInstanceStatus 查看实例信息,当返回信息中的状态为Running时代表创建并启动成功。

使用须知

  • 请确保您的账号已通过实名认证。更多信息,请参见账号实名认证相关文档

  • 当资源库存不足以完成当前实例创建时,阿里云会立即发送一个实例创建失败事件(SystemFailure.Delete),您可以通过 DescribeInstanceHistoryEvents 查看是否存在实例创建失败事件。更多信息,请参见实例创建失败事件

  • 请确保您创建的实例总数或者全实例规格 vCPU 不会超出系统配额。更多信息,请参见配额中心

  • 创建专有网络 VPC 类型实例前,请预先在相应的阿里云地域创建 VPC

注意事项

  • 若实例计费方式为包年包月(PrePaid),在付款时默认会使用您可用的优惠券。

  • 单个请求最多能创建 100 台实例,超出 100 台,建议您分批或并发调用。

  • 如果参数InternetMaxBandwidthOut的值大于 0,则自动为实例分配公网 IP。

说明

单个地域下,单个阿里云账号按固定带宽计费的公网带宽峰值总和存在限制,请参见公网带宽限制

使用建议

  • 测试场景:可以通过设置DryRun=true发送预检请求。

  • 释放实例:您可以通过参数AutoReleaseTime设置实例自动释放时间,或者调用 DeleteInstances 进行手动释放。

  • 管理与检索:建议您为每批次启动的实例指定标签(Tag.N.KeyTag.N.Value),并且为主机名(HostName)和实例名称(InstanceName)添加有序后缀(UniqueSuffix)。具体操作,请参见批量设置有序的实例名称或主机名称

  • 启动模板:利用实例启动模板能为您免除每次创建实例时都需要填入大量配置参数的麻烦,您可以通过 CreateLaunchTemplate 创建实例启动模板后,在RunInstances请求中指定LaunchTemplateIdLaunchTemplateVersion使用启动模板。

  • 关闭超线程:在内存密集型业务场景,可以通过设置CpuOptions.ThreadsPerCore=1关闭超线程来提高内存配比。

  • 开启巨型帧:可以指定 NetworkOptions.EnableJumboFrame=true在创建时开启Jumbo frame特性。 更多信息,请参见 ECS 实例 MTU

请求示例

假设您需要在华东 1(杭州)地域创建一些 ECS 实例。期望使用特定的镜像、实例规格、安全组和虚拟交换机,同时配置一定容量的系统盘和数据盘,并分配公网 IP 和设定实例名称与密码。相关配置请求参数如下:

RegionId:"cn-hangzhou", //设置华东 1(杭州)地域
ImageId:"aliyun_3_x64_20G_alibase_20221102.vhd", //设置镜像 ID
InstanceType:"ecs.g7.large", //设置实例规格
SecurityGroupId:"sg-bp150uqocpf9jj70****", //设置安全组 ID
VSwitchId:"vsw-bp1qo7s91cbch5i4l****", //设置虚拟交换机 ID
SystemDisk:{
  Category:"cloud_essd", //设置系统盘类别为 ESSD 云盘
  Size:40, //设置系统盘大小为 40GiB
},
DataDisk:[
  {
    Category:"cloud_essd", //设置数据盘类别为 ESSD 云盘
    Size:100, //设置数据盘大小为 100GiB
  }
],
HostName:"ECS-test", //设置实例主机名称
Password:"ECS@test1234", //设置实例登录密码
InternetMaxBandwidthOut:10 //设置公网出带宽为 10Mbit/s

在上述配置的基础上,创建不同类型实例:

示例:创建 5 台自动续费的包年包月实例

Amount:5, //创建数量为 5 台
InstanceChargeType:"PrePaid", //表示包年包月
PeriodUnit:"Month", //设置时长单位为"月"
Period:1, //设置时长为 1 个月
AutoRenew:true, //表示自动续费
AutoRenewPeriod:1 //续费时长为 1 个月

示例:创建 10 台按量付费实例

Amount:10, //创建数量为 10 台
InstanceChargeType:"PostPaid", //表示按量付费
SpotStrategy:"NoSpot" //默认值,表示正常按量付费

示例:创建 20 台抢占式实例,并设置竞价策略和保留时长

Amount:20, //创建数量为 20 台
InstanceChargeType:"PostPaid",
SpotStrategy:"SpotAsPriceGo", //表示抢占式实例的竞价策略为根据市场价格自动出价
SpotDuration:1 //设置抢占式实例的保留时长为 1 小时

假设您已通过 CreateLaunchTemplate 创建了一个实例启动模版,现在需要使用该模版在华东 1(杭州)地域创建一些 ECS 实例。示例如下:

示例:根据实例启动模版创建 10 台 ECS 实例

RegionId:"cn-hangzhou", //设置华东 1(杭州)地域
Amount:10, //创建数量为 10 台
LaunchTemplateId:"lt-bp14xczpoxvb6rre****" //设置实例启动模版 ID
重要 实例的参数和模版内的参数同时指定时,优先以实例参数创建。例如:模版内的付费方式是包年包月,同时InstanceChargeType设定为PostPaid,创建的即为按量付费类型实例。

示例:使用全镜像(包含系统盘和数据盘的整机镜像)创建 1 台实例

RegionId:"cn-hangzhou", //设置华东 1(杭州)地域
ImageId = m-bp13ohd32cvzpq9e****,//自定义镜像 ID
InstanceType = ecs.u1-c1m1.large,//实例类型
SecurityGroupId = sg-bp10jztp6b0sdsyl****,//安全组 ID
VSwitchId = vsw-bp19wo63nleroq22g****,//交换机 ID
SystemDisk.Size = 50,//设置全镜像自带的系统盘大小
SystemDisk.Category = cloud_auto,//设置全镜像自带的系统盘的云盘种类
DataDisk.1.Device = /dev/xvdb,//设置全镜像自带的数据盘的挂载点
DataDisk.1.Size = 50,//设置全镜像自带的数据盘的容量大小
DataDisk.1.Category = cloud_essd,//设置全镜像自带的数据盘的云盘种类
DataDisk.2.Device = /dev/xvdc,//新增数据盘的挂载点,如果您需要使用新增的数据盘替换全镜像自带的数据盘,可设置 DataDisk.1.Device = /dev/xvdb(全镜像中数据盘的默认挂载点)。
DataDisk.2.Size = 70,//新增数据盘的容量大小
DataDisk.2.Category = cloud_auto,//新增数据盘的云盘种类

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

ecs:RunInstances

create

*全部资源

*

  • vpc:IsDefaultVSwitch
  • vpc:IsDefaultVpc
  • vpc:VPC
  • ecs:IsDiskEncrypted
  • ecs:InstanceTypeFamily
  • ecs:InstanceType
  • ecs:ImageOwnerId
  • ecs:ImageSource
  • ecs:NotSpecifySecurityGroupId
  • ecs:LoginAsNonRoot
  • ecs:IsSystemDiskByokEncrypted
  • ecs:IsDiskByokEncrypted
  • ecs:PasswordInherit
  • ecs:PasswordCustomized
  • ecs:IsSystemDiskEncrypted
  • ecs:ImagePlatform
  • ecs:IsDiskEncrypted
  • ecs:SecurityHardeningMode
  • ecs:AssociatePublicIpAddress
  • vpc:CreateDefaultVpc
  • ecs:SecurityEnhancementStrategy
  • ecs:InstanceChargeType

请求参数

名称

类型

必填

描述

示例值

RegionId

string

实例所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou

ImageId

string

镜像 ID,启动实例时选择的镜像资源。您可以通过 DescribeImages 查询您可以使用的镜像资源。如果您不指定LaunchTemplateIdLaunchTemplateName以确定启动模板,也不通过指定ImageFamily选用镜像族系最新可用镜像,则ImageId为必选参数。

aliyun_2_1903_x64_20G_alibase_20200324.vhd

ImageFamily

string

镜像族系名称,通过设置该参数来获取当前镜像族系内最新可用镜像来创建实例。

镜像族系的名称长度为 2~128 个字符。镜像族系名称不能以特殊字符、数字、http://、https://开头,只可包含特殊字符中的"."、"_"、"-"和":"。

您需要注意:

  • 设置了参数ImageId,则不能设置该参数。

  • 未设置参数ImageId,但指定的LaunchTemplateIdLaunchTemplateName对应的启动模板设置了ImageId,则不能设置该参数。

  • 未设置ImageId,且指定的LaunchTemplateIdLaunchTemplateName对应的启动模板未设置ImageId,则可以设置该参数。

  • 未设置ImageId,且未设置LaunchTemplateIdLaunchTemplateName参数,则可以设置该参数。

说明

阿里云官方镜像关联的镜像族系信息请参见公共镜像概述

hangzhou-daily-update

InstanceType

string

实例的资源规格。如果您不指定LaunchTemplateIdLaunchTemplateName以确定启动模板,InstanceType为必选参数。

ecs.g6.large

SecurityGroupId

string

新创建实例所属于的安全组 ID。同一个安全组内的实例之间可以互相访问,一个安全组能容纳的实例数量视安全组类型而定,具体请参见使用限制的安全组章节。

说明

SecurityGroupId决定了实例的网络类型,例如,如果设置的安全组的网络类型为专有网络 VPC,实例则为 VPC 类型,并同时需要指定参数VSwitchId

如果您不设置LaunchTemplateIdLaunchTemplateName以确定实例启动模板,则安全组 ID 为必选参数。您需要注意:

  • 您可以通过SecurityGroupId设置一个安全组,也可以通过SecurityGroupIds.N设置一个或多个安全组,但不支持同时设置SecurityGroupIdSecurityGroupIds.N

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置SecurityGroupIdSecurityGroupIds.N,只能设置NetworkInterface.N.SecurityGroupIdNetworkInterface.N.SecurityGroupIds.N

sg-bp15ed6xe1yxeycg7****

VSwitchId

string

虚拟交换机 ID。如果您创建的是 VPC 类型 ECS 实例,必须指定虚拟交换机 ID,且安全组和虚拟交换机在同一个专有网络 VPC 中。您可以调用 DescribeVSwitches 查询已创建的交换机的相关信息。

您需要注意:

  • 如果您设置了VSwitchId参数,则设置的ZoneId参数必须和交换机所在的可用区保持一致。您也可以不设置ZoneId参数,系统将自动选择指定交换机所在的可用区。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置VSwitchId,只能设置NetworkInterface.N.VSwitchId

vsw-bp1s5fnvk4gn2tws0****

InstanceName

string

实例名称。长度为 2~128 个字符,支持 Unicode 中 letter 分类下的字符(其中包括英文、中文等)和数字。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。默认值为实例的InstanceId

创建多台 ECS 实例时,您可以批量设置有序的实例名称,并且可以包含方括号([])和逗号(,)。具体操作,请参见批量设置有序的实例名称或主机名称

k8s-node-[1,4]-alibabacloud

Description

string

实例的描述。长度为 2~256 个英文或中文字符,不能以http://https://开头。

Instance_Description

InternetMaxBandwidthIn

integer

公网入带宽最大值,单位为 Mbit/s。取值范围:

  • 当所购公网出带宽小于等于 10 Mbit/s 时:1~10,默认为 10。

  • 当所购公网出带宽大于 10 Mbit/s 时:1~InternetMaxBandwidthOut的取值,默认为InternetMaxBandwidthOut的取值。

10

InternetMaxBandwidthOut

integer

公网出带宽最大值,单位为 Mbit/s。取值范围:0~100。

默认值:0。

10

HostName

string

实例主机名称。限制说明如下:

  • 半角句号(.)和短划线(-)不能作为首尾字符,更不能连续使用。

  • Windows 实例:字符长度为 2~15,不支持半角句号(.),不能全是数字。允许包含大小写英文字母、数字和短划线(-)。

  • 其他类型实例(Linux 等):
    • 字符长度为 2~64,支持多个半角句号(.),点之间为一段,每段允许包含大小写英文字母、数字和短划线(-)。

    • 支持通过占位符${instance_id}将实例 ID 写入HostName参数。例如:HostName=k8s-${instance_id},并且创建的 ECS 实例 ID 为i-123abc****,则该实例的主机名为k8s-i-123abc****

创建多台 ECS 实例时,您可以:

  • 批量设置有序的主机名。具体操作,请参见批量设置有序的实例名称或主机名称

  • 通过HostNames.N参数,为多台实例分别设置主机名。需要注意HostName参数和HostNames.N参数不能同时设置。

k8s-node-[1,4]-ecshost

UniqueSuffix

boolean

当创建多台实例时,是否为HostNameInstanceName自动添加有序后缀。有序后缀从 001 开始递增,最大不能超过 999。取值范围:

  • true:添加。

  • false:不添加。

默认值:false。

HostNameInstanceName按照指定排序格式设置,未设置命名后缀name_suffix,即命名格式为name_prefix[begin_number,bits]时,UniqueSuffix不生效,名称仅按照指定顺序排序。

更多信息,请参见批量设置有序的实例名称或主机名称

true

Password

string

实例的密码。长度为 8 至 30 个字符,必须同时包含大小写英文字母、数字和特殊符号中的三类字符。特殊符号可以是:

()`~!@#$%^&*-_+=|{}[]:;'<>,.?/

其中,Windows 实例不能以正斜线(/)为密码首字符。

说明

如果传入Password参数,建议您使用 HTTPS 协议发送请求,避免密码泄露。

EcsV587!

PasswordInherit

boolean

是否使用镜像预设的密码。取值范围:

  • true:使用。

  • false:不使用。

默认值:false。

说明

使用该参数时,Password 参数必须为空,同时您需要确保使用的镜像已经设置了密码。

false

ZoneId

string

实例所属的可用区 ID,您可以调用 DescribeZones 获取可用区列表。

说明

如果您指定了VSwitchId参数,则指定的ZoneId参数必须和交换机所在的可用区保持一致。您也可以不指定ZoneId参数,系统将自动选择指定的交换机所在的可用区。

默认值:系统自动选择。

cn-hangzhou-g

InternetChargeType

string

网络计费类型。取值范围:

  • PayByBandwidth:按固定带宽计费。

  • PayByTraffic:按使用流量计费。

默认值:PayByTraffic。

说明

按使用流量计费模式下的出入带宽峰值都是带宽上限,不作为业务承诺指标。当出现资源争抢时,带宽峰值可能会受到限制。如果您的业务需要有带宽的保障,请使用按固定带宽计费模式。

PayByTraffic

SystemDisk.Size

string

系统盘大小,单位为 GiB。取值范围:

  • 普通云盘:20~500。

  • ESSD 云盘:
    • PL0:1~2048。

    • PL1:20~2048。

    • PL2:461~2048。

    • PL3:1261~2048。

  • ESSD AutoPL 云盘:1~2048。

  • 其他云盘类型:20~2048。

该参数的取值必须大于或者等于 max{1, ImageSize}。

默认值:max{40, 参数 ImageId 对应的镜像大小}。

40

SystemDisk.Category

string

系统盘的云盘种类。取值范围:

  • cloud_efficiency:高效云盘。

  • cloud_ssd:SSD 云盘。

  • cloud_essd:ESSD 云盘。

  • cloud:普通云盘。

  • cloud_auto:ESSD AutoPL 云盘。

  • cloud_essd_entry:ESSD Entry 云盘。

参数默认值说明:

  • 当 InstanceType 为已停售且非 I/O 优化的实例规格,该参数默认值为cloud

  • 其它情况下,该参数默认值为cloud_efficiency2026 年 1 月 30 日后,对于仅支持 cloud_essd 的实例规格,默认值由 cloud_efficiency 调整为 cloud_essd PL0,详情请参见变更公告

说明

仅当InstanceType设置为通用算力型实例规格族 u1ecs.u1)或经济型实例规格族 eecs.e)时,该参数支持取cloud_essd_entry值。

cloud_ssd

SystemDisk.DiskName

string

系统盘名称。长度为 2~128 个字符,支持 Unicode 中 letter 分类下的字符(其中包括英文、中文和数字等)。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。

cloud_ssdSystem

SystemDisk.Description

string

系统盘的描述。长度为 2~256 个英文或中文字符,不能以http://https://开头。

SystemDisk_Description

SystemDisk.PerformanceLevel

string

创建 ESSD 云盘作为系统盘使用时,设置云盘的性能等级。取值范围:

  • PL0:单盘最高随机读写 IOPS 1 万。

  • PL1(默认):单盘最高随机读写 IOPS 5 万。

  • PL2:单盘最高随机读写 IOPS 10 万。

  • PL3:单盘最高随机读写 IOPS 100 万。

有关如何选择 ESSD 性能等级,请参见 ESSD 云盘

PL0

SystemDisk.AutoSnapshotPolicyId

string

系统盘采用的自动快照策略 ID。

sp-bp67acfmxazb4p****

IoOptimized

string

是否为 I/O 优化实例。已停售的实例规格实例默认值是 none,其他实例规格默认值是 optimized。取值范围:

  • none:非 I/O 优化。

  • optimized:I/O 优化。

optimized

UserData

string

实例自定义数据。必须填写已采用 Base64 编码后的数据,且在进行 Base64 编码前自定义数据内容的大小不能超过 32 KB。

有关实例自定义数据的使用限制、格式以及运行频率的详细信息,请参见实例自定义数据

说明

为保证传输过程中 UserData 的安全性,请避免直接以明文形式传送敏感数据,如密码和私钥。若需传送此类信息,建议先行加密处理,并采用 Base64 编码方式,随后在实例内部进行解密以确保信息安全。

ZWNobyBoZWxsbyBlY3Mh

KeyPairName

string

密钥对名称。

说明

Windows 实例,忽略该参数。默认为空。即使填写了该参数,仍旧只执行Password的内容。

KeyPair_Name

RamRoleName

string

实例 RAM 角色名称。您可以使用 RAM API ListRoles 查询您已创建的实例 RAM 角色。

RAM_Name

Amount

integer

指定创建 ECS 实例的数量。取值范围:1~100。

创建成功的 ECS 数量与指定的 Amount 和 minAmount 数量有关:

  • 不指定 minAmount 时:按照 Amount 数量创建,库存不满足则 API 返回创建失败,同时一台也不会创建。

  • 指定 minAmount 时:

    • 当 ECS 库存数量<minAmount:不会创建 ECS,同时 API 返回创建失败。

    • 当 minAmount≤ECS 库存数量<Amount,按照库存数量创建实例,API 返回创建成功。

    • 当 ECS 库存数量≥Amount,按照指定的 Amount 创建,API 返回创建成功。

默认值:1。

3

MinAmount

integer

指定 ECS 实例最小购买数量。取值范围:1~100。

创建成功的 ECS 数量与指定的 Amount 和 minAmount 数量有关:

  • 不指定 minAmount 时:按照 Amount 数量创建,库存不满足则 API 返回创建失败,同时一台也不会创建。

  • 指定 minAmount 时:

    • 当 ECS 库存数量<minAmount:不会创建 ECS,同时 API 返回创建失败。

    • 当 minAmount≤ECS 库存数量<Amount,按照库存数量创建实例,API 返回创建成功。

    • 当 ECS 库存数量≥Amount,按照指定的 Amount 创建,API 返回创建成功。

2

AutoReleaseTime

string

按量付费实例的自动释放时间。按照ISO 8601标准表示,使用 UTC+0 时间。格式为:yyyy-MM-ddTHH:mm:ssZ

  • 如果秒(ss)取值不是00,则自动取为当前分钟(mm)开始时。

  • 最短释放时间为当前时间半小时之后。

  • 最长释放时间不能超过当前时间三年。

2018-01-01T12:05:00Z

SpotStrategy

string

按量付费实例的竞价策略。当参数InstanceChargeType取值为PostPaid时生效。取值范围:

  • NoSpot:正常按量付费实例。

  • SpotWithPriceLimit:设置上限价格的抢占式实例。

  • SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。

默认值:NoSpot。

NoSpot

SpotDuration

integer

抢占式实例的保留时长,单位为小时。 取值:

  • 1:创建后阿里云会保证实例运行 1 小时不会被自动释放;超过 1 小时后,系统会实时比较出价与市场价格、检查资源库存,来决定实例的持有和回收。

  • 0:创建后,阿里云不保证实例运行时长,系统会实时比较出价与市场价格、检查资源库存,来决定实例的持有和回收。

默认值:1。

说明
  • 该参数目前只支持设置为 0 或 1。

  • 抢占式实例按秒计费,建议您结合具体任务执行耗时来选择合适的保留时长。

  • 实例回收前 5 分钟阿里云会通过 ECS 系统事件向您发送通知。

1

SpotPriceLimit

number

设置实例的每小时最高价格。支持最大 3 位小数,参数SpotStrategy取值为SpotWithPriceLimit时生效。

0.97

SpotInterruptionBehavior

string

抢占实例中断模式。取值范围:

默认值:Terminate。

Terminate

SecurityEnhancementStrategy

string

是否开启安全加固。取值范围:

  • Active:启用安全加固,只对公共镜像生效。

  • Deactive:不启用安全加固,对所有镜像类型生效。

Active

ClientToken

string

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

123e4567-e89b-12d3-a456-426655440000

HpcClusterId

string

实例所属的 HPC 集群 ID。

创建 SCC 实例时,该参数为必选参数。您可以参考 CreateHpcCluster 创建 HPC 集群。

hpc-bp67acfmxazb4p****

DryRun

boolean

是否只预检此次请求。取值范围:

  • true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数、请求格式、业务限制和 ECS 库存。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码DryRunOperation

  • false(默认):发送正常请求,通过检查后直接创建实例。

false

DedicatedHostId

string

专有宿主机 ID。 您可以通过 DescribeDedicatedHosts 查询专有宿主机 ID 列表。

重要 专有宿主机不支持创建抢占式实例,指定DedicatedHostId参数后,会自动忽略请求中的SpotStrategySpotPriceLimit设置。

dh-bp67acfmxazb4p****

LaunchTemplateId

string

启动模板 ID。更多信息,请调用 DescribeLaunchTemplates

使用启动模板创建实例时,您必须指定LaunchTemplateIdLaunchTemplateName确定启动模板。

lt-bp1apo0bbbkuy0rj****

LaunchTemplateName

string

启动模板名称。

使用启动模板创建实例时,您必须指定LaunchTemplateIdLaunchTemplateName确定启动模板。

LaunchTemplate_Name

LaunchTemplateVersion

integer

启动模板版本。如果您指定了LaunchTemplateIdLaunchTemplateName而不指定启动模板版本号,则采用默认版本。

3

ResourceGroupId

string

实例所在的企业资源组 ID。

rg-bp67acfmxazb4p****

Period

integer

购买资源的时长,单位由PeriodUnit指定。当参数InstanceChargeType取值为PrePaid时才生效且为必选值。一旦指定了DedicatedHostId,则取值范围不能超过专有宿主机的订阅时长。取值范围:

  • PeriodUnit=Week 时,Period 取值:1、2、3、4。

  • PeriodUnit=Month 时,Period 取值:1、2、3、4、5、6、7、8、9、12、24、36、48、60。

1

PeriodUnit

string

包年包月计费方式的时长单位。取值范围:

  • Week。

  • Month(默认)。

Month

AutoRenew

boolean

是否要自动续费。当参数InstanceChargeType取值PrePaid时才生效。取值范围:

  • true:自动续费。

  • false:不自动续费。

默认值:false。

true

AutoRenewPeriod

integer

单次自动续费的续费时长。取值范围:

  • PeriodUnit=Week 时:1、2、3。

  • PeriodUnit=Month 时:1、2、3、6、12、24、36、48、60。

默认值:1。

1

InstanceChargeType

string

实例的付费方式。取值范围:

  • PrePaid:包年包月。

  • PostPaid:按量付费。

默认值:PostPaid。

选择包年包月时,您必须确认自己的账号支持余额支付或者信用支付,否则将返回InvalidPayMethod的错误提示。

PrePaid

DeploymentSetId

string

部署集 ID。

ds-bp1brhwhoqinyjd6****

DeploymentSetGroupNo

integer

如果您设置的部署集对应的策略为部署集组高可用策略(AvailabilityGroup),可以通过该参数指定实例在部署集中的分组号。取值范围:1~7。

1

PrivateIpAddress

string

实例私网 IP 地址。专有网络 VPC 类型 ECS 实例设置私网 IP 地址时,必须从虚拟交换机(VSwitchId)的空闲网段中选择。

您需要注意:

  • 设置PrivateIpAddress后:

    • 如果Amount参数取值为 1,则表示为创建的一台 ECS 实例分配私网 IP 地址。

    • 如果Amount参数取值大于 1,则表示在批量创建 ECS 实例时,以指定的私网 IP 地址为起始地址,依次为多台 ECS 实例分配连续的私网 IP 地址,但需要注意,此时不支持再为实例绑定辅助网卡(即不支持再设置NetworkInterface.N.*这类参数)。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置PrivateIpAddress,只能设置NetworkInterface.N.PrimaryIpAddress

说明

每个交换机的第 1 个和最后 3 个 IP 地址为系统保留地址,不支持指定。 例如,交换机的网段为 192.168.1.0/24,则 192.168.1.0、192.168.1.253、192.168.1.254 和 192.168.1.255 这 4 个地址是系统保留地址。

10.1.**.**

CreditSpecification

string

设置突发性能实例的运行模式。取值范围:

Standard

Ipv6AddressCount

integer

为主网卡指定随机生成的 IPv6 地址数量。取值范围:1~10。

您需要注意:

  • 您不能同时设置Ipv6Address.NIpv6AddressCount

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置Ipv6Address.NIpv6AddressCount,只能设置NetworkInterface.N.Ipv6Address.NNetworkInterface.N.Ipv6AddressCount

1

NetworkInterfaceQueueNumber

integer

主网卡队列数。您需要注意:

  • 不能超过实例规格允许的单块网卡最大队列数。

  • 实例的所有网卡累加队列数不能超过实例规格允许的队列数总配额。实例规格的单块网卡最大队列数和总配额可以通过 DescribeInstanceTypes 接口查询MaximumQueueNumberPerEniTotalEniQueueQuantity字段。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置NetworkInterfaceQueueNumber,只能设置NetworkInterface.N.QueueNumber

8

DeletionProtection

boolean

实例释放保护属性,指定是否支持通过控制台或 API( DeleteInstance )释放实例。取值范围:

  • true:开启实例释放保护。

  • false:关闭实例释放保护。

默认值:false。

说明

该属性仅适用于按量付费实例,且只能限制手动释放操作,对系统释放操作不生效。

false

HibernationOptions.Configured

boolean

说明

该参数正在邀测中,暂未开放使用。

false

Affinity

string

专有宿主机实例是否与专有宿主机关联。取值范围:

  • default:实例不与专有宿主机关联。已启用节省停机模式的实例,停机后再次启动时,若原专有宿主机可用资源不足,则实例被放置在自动部署资源池的其它专有宿主机上。

  • host:实例与专有宿主机关联。已启用节省停机模式的实例,停机后再次启动时,仍放置在原专有宿主机上。若原专有宿主机可用资源不足,则实例重启失败。

默认值:default。

default

Tenancy

string

是否在专有宿主机上创建实例。取值范围:

  • default:创建非专有宿主机实例。

  • host:创建专有宿主机实例。若您不指定DedicatedHostId,则由阿里云自动选择专有宿主机放置实例。

默认值:default。

default

StorageSetId

string

存储集 ID。

ss-bp67acfmxazb4p****

StorageSetPartitionNumber

integer

存储集中的最大分区数量。取值范围:大于等于 1。

2

CpuOptions.Core

integer

CPU 核心数。

默认值:请参见自定义 CPU 选项

2

CpuOptions.ThreadsPerCore

integer

CPU 线程数。ECS 实例的 vCPU 数=CpuOptions.Core取值*CpuOptions.ThreadsPerCore取值。

  • CpuOptions.ThreadsPerCore=1表示关闭 CPU 超线程。

  • 仅部分实例规格支持设置 CPU 线程数。

取值范围和默认值:请参见自定义 CPU 选项

2

CpuOptions.Numa

string

该参数已弃用。

1

CpuOptions.TopologyType

string

实例的 Cpu 拓扑类型。取值范围:

  • ContinuousCoreToHTMapping:当选择ContinuousCoreToHTMapping时,实例的 Cpu 拓扑中,实例的同一个 Core 的 HT 是连续的。

  • DiscreteCoreToHTMapping:当选择DiscreteCoreToHTMapping时,实例的同一个 Core 的 HT 是离散的。

默认值:无。

说明

仅部分实例规格族支持使用本参数,具体支持实例规格族请参见查看和修改 CPU 拓扑结构

DiscreteCoreToHTMapping

SecurityOptions.TrustedSystemMode

string

可信系统模式。取值:vTPM。

目前,可信系统模式支持的实例规格族:

  • g7、c7、r7。

  • 安全增强型(g7t、c7t、r7t)。

当您创建以上实例规格族的 ECS 实例时,需要设置该参数。具体说明如下:

  • 如果您使用阿里云可信系统,请将该参数值设置为 vTPM,在实例启动时即可通过阿里云可信系统完成可信校验。

  • 如果您不使用阿里云可信系统,可以不设置该参数值,但您需要注意,如果您所创建的 ECS 实例使用了 Enclave 机密计算模式(SecurityOptions.ConfidentialComputingMode=Enclave),则该 ECS 实例也会启用可信系统。

  • 通过 OpenAPI 创建可信系统的 ECS 实例时,只能调用RunInstances实现,CreateInstance目前不支持设置SecurityOptions.TrustedSystemMode参数。

说明

如果您在创建实例的时候指定其为可信实例,那么当您更换系统盘时只能使用支持可信系统的镜像。

关于可信系统的更多信息,请参见安全增强型实例可信功能概述

vTPM

SecurityOptions.ConfidentialComputingMode

string

机密计算模式。取值:Enclave。

该参数取值为 Enclave 时,表示 ECS 实例使用 Enclave 构建机密计算环境。目前仅实例规格族 c7、g7、r7,支持调用RunInstances时指定该参数使用 Enclave 机密计算。您需要注意:

  • 机密计算功能正在邀测中。

  • 通过 OpenAPI 创建 Enclave 机密计算的 ECS 实例时,只能调用RunInstances实现,CreateInstance目前不支持设置SecurityOptions.ConfidentialComputingMode参数。

  • Enclave 机密计算依托可信系统(vTPM)实现,当您指定 ECS 实例使用 Enclave 构建机密计算环境时,该实例同时也会启用可信系统。因此,调用该接口时,如果设置了SecurityOptions.ConfidentialComputingMode=Enclave,则无论您是否设置了SecurityOptions.TrustedSystemMode=vTPM,最终创建的 ECS 实例均会启用 Enclave 机密计算模式以及可信系统。

关于机密计算的更多信息,请参见使用 Enclave 构建机密计算环境

Enclave

HttpEndpoint

string

是否启用实例元数据的访问通道。取值范围:

  • enabled:启用。

  • disabled:禁用。

默认值:enabled。

说明

有关实例元数据的信息,请参见实例元数据概述

enabled

HttpTokens

string

访问实例元数据时是否强制使用加固模式(IMDSv2)。取值范围:

  • optional:不强制使用。

  • required:强制使用。设置该取值后,普通模式无法访问实例元数据。

默认值:optional。

说明

有关访问实例元数据的模式,请参见实例元数据访问模式

optional

HttpPutResponseHopLimit

integer

说明

该参数暂未开放使用。

0

PrivatePoolOptions.MatchCriteria

string

实例启动的私有池容量选项。弹性保障服务或容量预定服务在生效后会生成私有池容量,供实例启动时选择。取值范围:

  • Open:开放模式。将自动匹配开放类型的私有池容量。如果没有符合条件的私有池容量,则使用公共池资源启动。该模式下无需设置PrivatePoolOptions.Id参数。

  • Target:指定模式。使用指定的私有池容量启动实例,如果该私有池容量不可用,则实例会启动失败。该模式下必须指定私有池 ID,即PrivatePoolOptions.Id参数为必填项。

  • None:不使用模式。实例启动将不使用私有池容量。

默认值:None。

以下任一场景,实例启动的私有池容量选项只能取值None或不传值。

  • 创建抢占式实例。

  • 在专有宿主机 DDH 上创建 ECS 实例。

Open

PrivatePoolOptions.Id

string

私有池 ID。即弹性保障服务 ID 或容量预定服务 ID。

eap-bp67acfmxazb4****

Isp

string

说明

该参数正在邀测中,暂未开放使用。

null

SchedulerOptions.DedicatedHostClusterId

string

指定 ECS 实例所属的专有宿主机集群,系统会自动选择该专有宿主机集群中的一台专有宿主机部署 ECS 实例。

说明

仅在Tenancy设置为host时生效。

在您同时指定了专有宿主机(DedicatedHostId)和专有宿主机集群(SchedulerOptions.DedicatedHostClusterId)时:

  • 如果专有宿主机属于专有宿主机集群,则优先将 ECS 实例部署在指定的专有宿主机上。

  • 如果专有宿主机不属于专有宿主机集群,则 ECS 实例创建失败。

您可以通过 DescribeDedicatedHostClusters 查询专有宿主机集群 ID 列表。

dc-bp12wlf6am0vz9v2****

SecurityGroupIds

array

将实例同时加入多个安全组。N 的取值范围与实例能够加入安全组配额有关。更多信息,请参见安全组限制

您需要注意:

  • 不支持同时设置SecurityGroupIdSecurityGroupIds.N

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置SecurityGroupIdSecurityGroupIds.N,只能设置NetworkInterface.N.SecurityGroupIdNetworkInterface.N.SecurityGroupIds.N

sg-bp15ed6xe1yxeycg7****

string

将实例同时加入多个安全组。N 的取值范围与实例能够加入安全组配额有关。更多信息,请参见安全组限制

您需要注意:

  • 不支持同时设置SecurityGroupIdSecurityGroupIds.N

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置SecurityGroupIdSecurityGroupIds.N,只能设置NetworkInterface.N.SecurityGroupIdNetworkInterface.N.SecurityGroupIds.N

sg-bp15ed6xe1yxeycg7****

HostNames

array

创建多台实例时,为每台实例指定不同的主机名。

ecs-host-01

string

创建多台实例时,为每台实例指定不同的主机名。限制说明如下:

  • N 的个数需要和Amount参数值保持一致。例如,Amount=2时,通过该参数指定主机名的格式为HostNames.1=test1HostNames.2=test2

  • 不支持同时设置HostName参数和HostNames.N参数。

  • 半角句号(.)和短划线(-)不能作为首尾字符,更不能连续使用。

  • Windows 实例:字符长度为 2~15,不支持半角句号(.),不能全是数字。允许包含大小写英文字母、数字和短划线(-)。

  • 其他类型实例(Linux 等):字符长度为 2~64,支持多个半角句号(.),点之间为一段,每段允许包含大小写英文字母、数字和短划线(-)。

ecs-host-01

DataDisk

array<object>

数据盘信息集合列表。

object

数据盘信息集合。

PerformanceLevel

string

创建 ESSD 云盘作为数据盘使用时,设置云盘的性能等级。N 的取值必须和DataDisk.N.Category=cloud_essd中的 N 保持一致。取值范围:

  • PL0:单盘最高随机读写 IOPS 1 万。

  • PL1(默认):单盘最高随机读写 IOPS 5 万。

  • PL2:单盘最高随机读写 IOPS 10 万。

  • PL3:单盘最高随机读写 IOPS 100 万。

有关如何选择 ESSD 性能等级,请参见 ESSD 云盘

PL1

AutoSnapshotPolicyId

string

数据盘采用的自动快照策略 ID。

sp-bp67acfmxazb4p****

Encrypted

string

数据盘 N 是否加密。取值范围:

  • true:加密。

  • false:不加密。

默认值:false。

重要 当使用共享加密镜像,创建基于加密快照的云盘时,必须指定该云盘的请求参数 Encrypted=true,以确保创建出的云盘使用的是被共享方自己的密钥。

false

Description

string

数据盘的描述。长度为 2~256 个英文或中文字符,不能以http://https://开头。

DataDisk_Description

SnapshotId

string

创建数据盘 N 使用的快照。N 的取值范围为 1~16。

指定参数DataDisk.N.SnapshotId后,参数DataDisk.N.Size会被忽略,实际创建的云盘大小为指定的快照的大小。不能使用早于 2013 年 7 月 15 日(含)创建的快照,请求会报错被拒绝。

s-bp17441ohwka0yuh****

Device

string

数据盘的挂载点。挂载的数据盘数量不同,挂载点的命名不同:

  • 1~25 块数据盘:/dev/xvd[b-z]

  • 大于 25 块数据盘:/dev/xvd[aa-zz],例如第 26 块数据盘会被命名为/dev/xvdaa,第 27 块数据盘为/dev/xvdab,以此类推。

说明
  • 该参数仅用于全镜像(整机镜像)场景。您可以通过将此参数设置为全镜像中数据盘对应的挂载点,并修改对应的DataDisk.N.SizeDataDisk.N.Category参数,达到修改全镜像中数据盘磁盘种类和大小的目的。

  • 使用全境像创建实例时,全镜像中的数据盘会作为 ECS 实例的前 1-n 个数据盘被创建出来。

/dev/xvdb

Size

integer

第 n 个数据盘的容量大小,N 的取值范围为 1~16,内存单位为 GiB。取值范围:

  • cloud_efficiency:20~32768。

  • cloud_ssd:20~32768。

  • cloud_essd:具体取值范围与DataDisk.N.PerformanceLevel的取值有关。
    • PL0:1~65,536。

    • PL1:20~65,536。

    • PL2:461~65,536。

    • PL3:1261~65,536。

  • cloud:5~2000。

  • cloud_auto:1~65,536。

  • cloud_essd_entry:10~32768。

说明

该参数的取值必须大于等于参数SnapshotId指定的快照的大小。

2000

DiskName

string

数据盘名称。长度为 2~128 个字符,支持 Unicode 中 letter 分类下的字符(其中包括英文、中文和数字等)。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。

cloud_ssdData

Category

string

数据盘 N 的云盘种类。取值范围:

  • cloud_efficiency:高效云盘。

  • cloud_ssd:SSD 云盘。

  • cloud_essd:ESSD 云盘。

  • cloud:普通云盘。

  • cloud_auto:ESSD AutoPL 云盘。

  • cloud_regional_disk_auto:ESSD 同城冗余云盘。

  • cloud_essd_entry:ESSD Entry 云盘。
    说明

    仅当InstanceType设置为ecs.u1ecs.e规格族时,该参数支持cloud_essd_entry

  • elastic_ephemeral_disk_standard:弹性临时盘-标准版。

  • elastic_ephemeral_disk_premium:弹性临时盘-高级版。

对于 I/O 优化实例,默认值为 cloud_efficiency。对于非 I/O 优化实例,默认值为 cloud。 参数默认值说明:

  • 当 InstanceType 为已停售且非 I/O 优化的实例规格,该参数默认值为cloud

  • 其它情况下,该参数默认值为cloud_efficiency2026 年 1 月 30 日后,当 IO 优化型实例规格不支持 cloud_auto 时,默认值为 cloud_efficiency,否则默认值为 cloud_auto,同时会默认开启性能突发(会产生额外费用,详情参见计费示例),详情请参见变更公告

cloud_ssd

EncryptAlgorithm

string

说明

该参数暂未开放使用。

null

DeleteWithInstance

boolean

表示数据盘是否随实例释放。取值范围:

  • true:数据盘随实例释放。

  • false:数据盘不随实例释放。

默认值为 true。

true

KMSKeyId

string

数据盘对应的 KMS 密钥 ID。

说明

若 Encrypted 设置为 true,不指定 KMSKeyId,则使用默认的密钥进行加密,并在创建实例成功后返回 KMSKeyId 值。

    • 云盘通过非共享而来的加密快照创建:默认使用该快照所使用的加密密钥进行加密。

    • 云盘通过共享而来的加密快照创建:默认使用服务密钥进行加密。

    • 在已开启块存储账号级默认加密的地域创建:默认使用指定的账号级密钥进行加密。

    • 其他情况:默认使用服务密钥进行加密。

0e478b7a-4262-4802-b8cb-00d3fb40****

StorageClusterId

string

专属块存储集群 ID。如果您在创建 ECS 实例时,需要使用专属块存储集群中的云盘资源作为数据盘,请设置该参数。

dbsc-j5e1sf2vaf5he8m2****

ProvisionedIops

integer

ESSD AutoPL 云盘预配置的读写 IOPS。可能值:0~min{50,000, 1000*容量-基准性能}。

基准性能=min{1,800+50*容量, 50000}。

说明

当 DiskCategory 取值为 cloud_auto 时才支持设置该参数。更多信息,请参见ESSD AutoPL 云盘

40000

BurstingEnabled

boolean

是否开启 Burst(性能突发)。取值范围:

  • true:是。

  • false:否。

说明

当 DiskCategory 取值为 cloud_auto 时才支持设置该参数。更多信息,请参见ESSD AutoPL 云盘

false

Arn

array<object>

说明

该参数暂未开放使用。

object

说明

该参数暂未开放使用。

RoleType

string

说明

该参数暂未开放使用。

null

Rolearn

string

说明

该参数暂未开放使用。

null

AssumeRoleFor

integer

说明

该参数暂未开放使用。

null

NetworkInterface

array<object>

弹性网卡信息。

object

弹性网卡信息。

VSwitchId

string

弹性网卡所属的虚拟交换机 ID。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则必须设置该参数。此时该参数的作用等同于VSwitchId,但需要注意不能同时设置VSwitchId参数。

  • 如果NetworkInterface.N.InstanceType取值为Secondary或空值,则该参数为非必填参数。默认值为 ECS 实例所属的虚拟交换机。

vsw-bp67acfmxazb4p****

NetworkInterfaceName

string

弹性网卡名称。长度为 2~128 个字符,支持 Unicode 中 letter 分类下的字符(其中包括英文、中文和数字等)。可以包含半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则无需设置该参数。

Network_Name

Description

string

弹性网卡的描述。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 长度为 2~256 个英文或中文字符,不能以http://https://开头。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则无需设置该参数。

Network_Description

SecurityGroupId

string

弹性网卡所属的安全组 ID。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则必须设置该参数。此时该参数的作用等同于SecurityGroupId,但需要注意不能再设置SecurityGroupIdSecurityGroupIds.NNetworkInterface.N.SecurityGroupIds.N

  • 如果NetworkInterface.N.InstanceType取值为Secondary或空值,则该参数为非必填参数。默认值为 ECS 实例所属的安全组。

sg-bp67acfmxazb4p****

PrimaryIpAddress

string

添加一张弹性网卡并设置主 IP 地址。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

    • 设置 1 个弹性网卡时,支持设置 1 个主网卡或 1 个辅助网卡。如果Amount参数取值大于 1,且设置了主网卡并设置了该参数,则表示在批量创建 ECS 实例时,以指定的主 IP 地址为起始地址,依次为多台 ECS 实例分配连续的主 IP 地址,但需要注意,此时不支持再为实例绑定辅助网卡。

    • 需要注意,如果Amount参数取值大于 1 且已为主网卡设置了该参数,则不支持再设置辅助网卡(即不支持再设置NetworkInterface.2.InstanceType=Secondary)。

  • 如果NetworkInterface.N.InstanceType取值为Primary,则该参数的作用等同于PrivateIpAddress,但需要注意不能同时设置PrivateIpAddress参数。

  • 如果NetworkInterface.N.InstanceType取值为Secondary或空值,表示为辅助网卡设置主 IP 地址。默认从网卡所属的交换机网段中随机选择一个 IP 地址。

说明
  • 每个交换机的第 1 个和最后 3 个 IP 地址为系统保留地址,不支持指定。 例如,交换机的网段为 192.168.1.0/24,则 192.168.1.0、192.168.1.253、192.168.1.254 和 192.168.1.255 这 4 个地址是系统保留地址。

172.16.**.**

QueueNumber

integer

弹性网卡队列数。

您需要注意:

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 不能超过实例规格允许的单块网卡最大队列数。

  • 实例的所有网卡累加队列数不能超过实例规格允许的队列数总配额。实例规格的单块网卡最大队列数和总配额可以通过 DescribeInstanceTypes 接口查询MaximumQueueNumberPerEniTotalEniQueueQuantity字段。

  • 如果NetworkInterface.N.InstanceType取值为Primary,且设置了该参数取值,则不能再设置NetworkInterfaceQueueNumber参数。

8

SecurityGroupIds

array

弹性网卡所属的一个或多个安全组 ID。

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 第二个 N 表示可以指定一个或多个安全组 ID。N 的取值范围与实例能够加入安全组配额有关。更多信息,请参见安全组限制

您需要注意:

  • 如果NetworkInterface.N.InstanceType取值为Primary,则必须设置该参数或NetworkInterface.N.SecurityGroupId。此时该参数的作用等同于SecurityGroupIds.N,但需要注意不能再设置SecurityGroupIdSecurityGroupIds.NNetworkInterface.N.SecurityGroupId

  • 如果NetworkInterface.N.InstanceType取值为Secondary或空值,则该参数为非必填参数。默认值为 ECS 实例所属的安全组。

sg-bp15ed6xe1yxeycg7****

string

弹性网卡所属的一个或多个安全组 ID。

  • N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

  • 第二个 N 表示可以指定一个或多个安全组 ID。N 的取值范围与实例能够加入安全组配额有关。更多信息,请参见安全组限制

您需要注意:

  • 如果NetworkInterface.N.InstanceType取值为Primary,则必须设置该参数或NetworkInterface.N.SecurityGroupId。此时该参数的作用等同于SecurityGroupIds.N,但需要注意不能再设置SecurityGroupIdSecurityGroupIds.NNetworkInterface.N.SecurityGroupId

  • 如果NetworkInterface.N.InstanceType取值为Secondary或空值,则该参数为非必填参数。默认值为 ECS 实例所属的安全组。

sg-bp15ed6xe1yxeycg7****

NetworkInterfaceTrafficMode

string

网卡的通讯模式。参数取值范围:

  • Standard:使用 TCP 通讯模式。

  • HighPerformance:开启 ERI(Elastic RDMA Interface)接口,使用 RDMA 通讯模式。

默认值:Standard。

说明

RDMA 模式的弹性网卡数量不能超过该实例规格族的限制。更多信息,请参见实例规格族

Standard

QueuePairNumber

integer

RDMA 网卡队列数。

如果要为创建的实例附加多张 RDMA 网卡,建议根据实例规格支持的 RDMA 网卡的QueuePairNumber上限值和规划要使用的网卡数量,手动为每张网卡指定 QueuePairNumber,并确保所有网卡的 QueuePairNumber 总数不超过该实例规格允许的最大值。调用 DescribeInstanceTypes 查看实例规格的上限。

重要 如果 RDMA 网卡未指定 QueuePairNumber,则默认使用该实例规格支持的所有 RDMA 网卡的 QueuePairNumber 上限值。因此,一旦附加了一张未设置 QueuePairNumber 的 RDMA 网卡,就不能再添加更多 RDMA 网卡了(普通网卡不受此限制)。

0

InstanceType

string

弹性网卡类型。N 的取值范围不超过实例规格支持网卡数。请参见实例规格族或调用 DescribeInstanceTypes  查看目标实例规格支持的网卡数。

参数取值范围:

  • Primary:主网卡。

  • Secondary:辅助网卡。

默认值:Secondary。

Secondary

Ipv6AddressCount

integer

为主网卡指定随机生成的 IPv6 地址数量。取值范围:1~10

您需要注意:

  • NetworkInterface.N.InstanceType取值为Primary时,设置该参数才会生效。如果NetworkInterface.N.InstanceType取值为Secondary或空值,则不能设置该参数。

  • 设置该参数后,您不能再设置Ipv6AddressCountIpv6Address.NNetworkInterface.N.Ipv6Address.N

1

Ipv6Address

array

为主网卡指定一个或多个 IPv6 地址。支持设置最多 10 个 IPv6 地址,即第二个 N 的取值范围:1~10。

取值示例:Ipv6Address.1=2001:db8:1234:1a00::***

您需要注意:

  • NetworkInterface.N.InstanceType取值为Primary时,设置该参数才会生效。如果NetworkInterface.N.InstanceType取值为Secondary或空值,则不能设置该参数。

  • 设置该参数后,Amount取值只能为 1,且不能再设置Ipv6AddressCountIpv6Address.NNetworkInterface.N.Ipv6AddressCount

string

IPv6 地址。

2001:db8:1234:1a00::***

NetworkCardIndex

integer

网卡指定的物理网卡索引。

您需要注意:

  • 只有特定实例规格支持指定物理网卡索引。

  • NetworkInterface.N.InstanceType 取值为 Primary 时,对于支持物理网卡的实例规格,如果设置此参数,只能设置为 0。

  • NetworkInterface.N.InstanceType 取值为 Secondary 或者空值,对于支持物理网卡的实例规格,此参数可以依据实例规格设置。更多信息,请参见实例规格族

0

DeleteOnRelease

boolean

释放实例时是否保留网卡。取值范围:

  • true:不保留。

  • false:保留。

默认值:true。

说明

该参数只对辅助网卡生效。

true

NetworkInterfaceId

string

随实例附加的弹性网卡 ID。

设置该参数后,Amount取值只能为 1。

说明

该参数只对辅助弹性网卡生效。指定一个现有辅助弹性网卡后,您将无法配置其它网卡创建参数。

eni-bp1gn106np8jhxhj****

RxQueueSize

integer

弹性网卡入方向队列深度。

说明

该参数正在邀测中,暂未开放使用,若您有使用需求请提交工单联系加白。

使用该参数时,您需要注意:

  • 仅适用于 7 代及以后 ECS 规格。

  • 目前仅适用于 Linux 镜像。

  • 较大的入方向队列深度可以提升入方向的吞吐量,降低丢包概率,但会占用更多的内存。

8192

TxQueueSize

integer

弹性网卡出方向队列深度。

说明

该参数正在邀测中,暂未开放使用,若您有使用需求请提交工单联系加白。

使用该参数时,您需要注意:

  • 仅适用于 7 代及以后 ECS 规格。

  • 目前仅适用于 Linux 镜像。

  • 较大的出方向队列深度可以提升出方向的吞吐量,降低丢包概率,但会占用更多的内存。

8192

SourceDestCheck

boolean

是否开启源/目的检查功能。建议您打开该功能,以提高网络安全。可能值:

  • true:是。

  • false:否。

默认值:false。

说明

仅部分地域支持该功能。使用前,请认真阅读源/目的检查

false

SecondaryPrivateIpAddressCount

integer

为网卡指定辅助私网 IPv4 地址数量。取值范围:1~49。

  • 取值不能超过该实例规格对于 ip 数量的限制。更多信息,请参见实例规格族

  • NetworkInterface.N.SecondaryPrivateIpAddressCount用于为网卡分配辅助私网 IPv4 地址数量(不包含该网卡的主私网 IP),系统将从该网卡所在虚拟交换机(NetworkInterface.N.VSwitchId)的可用网段中随机分配。

10

Tag

array<object>

实例、云盘和主网卡的标签信息。

object

实例、云盘和主网卡的标签信息。

Key

string

实例、云盘和主网卡的标签键。N 的取值范围:1~20。一旦传入该值,则不允许为空字符串。最多支持 128 个字符,不能以 aliyun 和 acs:开头,不能包含 http://或 https://。

TestKey

Value

string

实例、云盘和主网卡的标签值。N 的取值范围:1~20。一旦传入该值,可以为空字符串。最多支持 128 个字符,不能包含 http://或者 https://。

TestValue

Ipv6Address

array

为主网卡指定一个或多个 IPv6 地址。支持设置最多 10 个 IPv6 地址,即 N 的取值范围:1~10。

取值示例:Ipv6Address.1=2001:db8:1234:1a00::***

您需要注意:

  • 设置了Ipv6Address.N时,Amount参数取值只能为 1,且不能同时设置Ipv6AddressCount

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置Ipv6Addresses.NIpv6AddressCount,而是需要设置NetworkInterface.N.Ipv6Addresses.NNetworkInterface.N.Ipv6AddressCount

Ipv6Address.1=2001:db8:1234:1a00::***

string

为主网卡指定一个或多个 IPv6 地址。支持设置最多 10 个 IPv6 地址,即 N 的取值范围:1~10。

取值示例:Ipv6Address.1=2001:db8:1234:1a00::***

您需要注意:

  • 设置了Ipv6Address.N时,Amount参数取值只能为 1,且不能同时设置Ipv6AddressCount

  • 如果NetworkInterface.N.InstanceType取值为Primary,则不能设置Ipv6Addresses.NIpv6AddressCount,而是需要设置NetworkInterface.N.Ipv6Addresses.NNetworkInterface.N.Ipv6AddressCount

2001:db8:1234:1a00::***

SystemDisk

object

系统盘相关参数,目前专属块存储集群 ID(StorageClusterId)需要通过该参数设置参数值。

StorageClusterId

string

专属块存储集群 ID。如果您在创建 ECS 实例时,需要使用专属块存储集群中的云盘资源作为系统盘,请设置该参数。

dbsc-j5e1sf2vaf5he8m2****

ProvisionedIops

integer

ESSD AutoPL 云盘预配置的读写 IOPS。可能值:0~min{50,000, 1000*容量-基准性能}。

基准性能=min{1,800+50*容量, 50,000}。

说明

SystemDisk.Category取值为cloud_auto时才支持设置该参数。更多信息,请参见ESSD AutoPL 云盘

40000

BurstingEnabled

boolean

是否开启 Burst(性能突发)。取值范围:

  • true:是。

  • false:否。

说明

SystemDisk.Category取值为cloud_auto时才支持设置该参数。更多信息,请参见ESSD AutoPL 云盘

false

Encrypted

string

系统盘是否加密。取值范围:

  • true:加密。

  • false:不加密。

默认值:false。

说明

中国(香港)D 可用区、新加坡 A 可用区暂不支持在创建实例时加密系统盘。

重要 当使用共享加密镜像,创建基于加密快照的云盘时,必须指定该云盘的请求参数 Encrypted=true,以确保创建出的云盘使用的是被共享方自己的密钥。

false

KMSKeyId

string

系统盘对应的 KMS 密钥 ID。

说明

若 Encrypted 设置为 true,不指定 KMSKeyId,则使用默认的密钥进行加密,并在创建实例成功后返回 KMSKeyId 值。

    • 云盘通过非共享而来的加密快照创建:默认使用该快照所使用的加密密钥进行加密。

    • 云盘通过共享而来的加密快照创建:默认使用服务密钥进行加密。

    • 在已开启块存储账号级默认加密的地域创建:默认使用指定的账号级密钥进行加密。

    • 其他情况:默认使用服务密钥进行加密。

0e478b7a-4262-4802-b8cb-00d3fb40****

EncryptAlgorithm

string

说明

该参数暂未开放使用。

null

ImageOptions

object

镜像相关属性信息。

LoginAsNonRoot

boolean

使用该镜像的实例是否支持使用 ecs-user 用户登录。可能值:

  • true:是

  • false:否

false

NetworkOptions

object

网络相关属性参数。

EnableJumboFrame

boolean

实例是否开启 Jumbo frame 特性。参数取值范围:

  • false:不开启 Jumbo frame, 该实例下的所有网卡(包括主网卡及辅助网卡)MTU 取值为 1500。

  • true:开启 Jumbo frame, 该实例下的所有网卡(包括主网卡及辅助网卡)的 MTU 取值为 8500。

默认值:true。

说明

只有八代以上部分实例规格支持开启 Jumbo frame 特性。更多信息请参见ECS 实例 MTU

false

EnableNetworkEncryption

boolean

说明

该参数正在邀测中,暂未开放使用。

BandwidthWeighting

string

实例的带宽权重值。不同实例规格支持的取值范围不一致。具体实例规格支持的取值可以根据实例规格查询 DescribeInstanceTypes,接口返回的 BandwidthWeighting 即为该规格支持的带宽权重档位。字典值可以取返回值中的 name 字段,如 Vpc-L1,Ebs-L1 等。

Default

AutoPay

boolean

创建实例时,是否自动支付。取值范围:

  • true:自动支付。

    说明

    自动支付时,请确保支付方式余额充足,否则会生成异常订单,只能作废订单。如果您的支付方式余额不足,可以将参数AutoPay置为false,此时会生成未支付订单,您可以登录 ECS 管理控制台自行支付。

  • false:只生成订单不扣费。

    说明

    InstanceChargeType 取值为PostPaid时,AutoPay不能设置为false

默认值:true。

true

PrivateDnsNameOptions

object

实例的私网域名配置信息集合。

关于私网域名解析,请参见ECS 私网域名解析

EnableInstanceIdDnsARecord

boolean

开启/关闭实例 ID 类型的域名到 IPv4 的解析。取值范围:

  • true:开启。

  • false:关闭。

默认值:false。

false

EnableInstanceIdDnsAAAARecord

boolean

开启/关闭实例 ID 类型的域名到 IPv6 的解析。取值范围:

  • true:开启。

  • false:关闭。

默认值:false。

true

EnableIpDnsARecord

boolean

开启/关闭 IP 类型的域名到 IPv4 的解析。取值范围:

  • true:开启。

  • false:关闭。

默认值:false。

true

EnableIpDnsPtrRecord

boolean

开启/关闭 IPv4 到 IP 类型的域名解析。取值范围:

  • true:开启。

  • false:关闭。

默认值:false。

false

HostnameType

string

主机名类型,取值范围:

  • Custom:自定义。

  • IpBased:基于 IP 格式的主机。

  • InstanceIdBased:基于实例 ID 格式的主机名。

默认值:Custom。

Custom

ClockOptions

object

实例时钟相关属性参数。

PtpStatus

string

PTP 状态值。取值范围:

  • enabled:打开 PTP。

  • disabled:关闭 PTP。

默认值:disabled。

枚举值:

  • disabled :

    关闭 PTP

  • enabled :

    开启 PTP

enabled

CpuOptions

object

NestedVirtualization

string

说明

该参数正在邀测中,暂未开放使用。

enabled

SecurityOptions

object

EnableSecureBoot

boolean

返回参数

名称

类型

描述

示例值

object

创建实例返回信息集合。

RequestId

string

请求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

OrderId

string

订单 ID。该参数只有创建包年包月 ECS 实例(请求参数InstanceChargeType=PrePaid)时有返回值。

123456****

TradePrice

number

订单成交价。

0.165

InstanceIdSets

object

InstanceIdSet

array

实例 ID 列表。

string

实例 ID。

i-bp67acfmxazb4ph****

示例

正常返回示例

JSON格式

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "OrderId": "123456****",
  "TradePrice": 0.165,
  "InstanceIdSets": {
    "InstanceIdSet": [
      "i-bp67acfmxazb4ph****"
    ]
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 LoginAsNonRoot.ImageNotSupport The specified image does not support login as non-root. 此镜像不支持NonRoot登录。
400 InvalidVSwitch.Ipv4NotEnabled The specify VSwitch of ECS does not support IPv4.
400 InvalidParam.NotSupportJumboFrame Not support jumbo frame.
400 InsufficientBalance.AgentCredit Insufficient agent credit. Please contact your agent. 代理商信用不足,请与您的代理商联系。
400 QuotaExceed.DiskCapacity The used capacity of disk type has exceeded the quota in the zone, %s. 指定磁盘类型的已用容量超出可用区配额限制,您可以前往配额中心查询和申请提升磁盘容量配额。
400 InvalidPeriod.ExceededDedicatedHost Instance expired date can not exceed dedicated host expired date. 实例过期日期不能超过专有宿主机的过期日期。
400 InvalidParam.SecondaryNetworkInterface When min amount greater than 1 and the PrivateIpAddress or Primary NetworkInterface is specified,the Secondary NetworkInterface IP parameter cannot be specified.
400 InvalidPrimaryIpAddress.SizeInvalid The NetworkInterface PrimaryIpAddress is used to create only one instance.
400 InvalidStorageClusterId.CapacityNotEnough The remaining capacity of the current dedicated storage cluster is less than the size of disk. 磁盘所在专属存储集群的可用容量不足
400 InvalidStorageClusterId.StatusNotSupport The current status of the dedicated storage cluster cannot create a cloud disk yet.
400 InvalidStorageClusterId.ZoneIdEmpty The specified param ZoneId cannot be empty when StorageClusterId given.
400 InvalidStorageClusterId.PerformanceLevelNotMatch The current dedicated storage cluster cannot create this performance level of disk.
400 InvalidStorageClusterId.CategoryNotMatch The current dedicated storage cluster cannot create this category of disk.
400 InvalidStorageClusterId.DiskSizeEmpty The specified param DiskSize cannot be empty when StorageClusterId given.
400 InvalidInstanceType.ValueUnauthorized The specified InstanceType is not authorized.
400 InvalidInstanceType.ValueNotSupported The specified InstanceType beyond the permitted range. 指定的实例规格不合法(超出可选范围)。
400 InvalidDescription.Malformed The specified parameter "Description" is not valid. 指定的资源描述格式不合法。长度为2-256个字符,不能以http://和https://开头。
400 InvalidInternetChargeType.ValueNotSupported The specified InternetChargeType is not valid. 暂不支持指定的网络付费类型的实例,请确认相关参数是否正确。
400 InvalidParameter The specified parameter "InternetMaxBandwidthOut" is not valid.
400 InvalidHostName.Malformed The specified parameter "HostName" is not valid. 指定的参数 HostName 不合法
400 InvalidPassword.Malformed The specified parameter "Password" is not valid. 指定的参数 Password 不合法
400 InvalidPasswordParam.Mismatch The input password should be null when passwdInherit is true. 启用 PasswdInherit 后,用户名密码应该设置为空。
400 InvalidSystemDiskCategory.ValueNotSupported The specified parameter "SystemDisk.Category" is not valid. 指定的参数系统盘规格无效。
400 InvalidDiskName.Malformed The specified parameter "SyatemDisk.DiskName or DataDisk.n.DiskName" is not valid. 参数中指定的磁盘名称DiskName无效。
400 InvalidDiskDescription.Malformed The specified parameter "SyatemDisk.DiskDescription" or "DataDisk.n.Description" is not valid.
400 InvalidDataDiskSize.ValueNotSupported The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category. 指定的 DataDisk.n.Size 超出允许范围,或者快照的容量超过指定磁盘类别的大小限制。
400 InvalidDataDiskCategory.ValueNotSupported The specified parameter "DataDisk.n.Category" is not valid.
400 InvalidDataDevice.Malformed The specified parameter "DataDisk.n.Device" is not valid.
400 InvalidNodeControllerId.Malformed The specified parameter "NodeControllerId" is not valid.
400 InvalidInnerIpAddress.Malformed The specified parameter "InnerIpAddress" is not valid.
400 InvalidInnerIpAddress.Unusable The specified InnerIpAddress is already used or not found in usable ip range. 指定的 InnerIpAddress 不可用。
400 InvalidParameter.Conflict The specified image does not support the specified instance type. 指定的镜像不能用于指定的实例规格。
400 ImageNotSupportCloudInit The specified image does not support cloud-init. 该镜像不支持CloudInit。
400 InvalidSnapshotId.BasedSnapshotTooOld The specified snapshot is created before 2013-07-15. 指定的快照创建于 2013-07-15 之前。
400 QuotaExceed.AfterpayInstance Living afterpay instances quota exceeded. 活跃的按量付费实例数已达上限。
400 InvalidInstanceName.Malformed The specified parameter "InstanceName" is not valid. InstanceName参数不符合规则。
400 InvalidInstanceName.CustomMalformed Customized section of instance or host name is invalid, please use valid format: [], [,], [m,], [,n], [m,n].
400 InvalidParameter.Mismatch Specified security group and virtual switch are not in the same VPC. 指定的安全组与虚拟交换机不在同一专有网络中。
400 InvalidNetworkType.Mismatch Specified parameter "InternetMaxBandwidthIn" or "InternetMaxBandwidthOut" conflict with instance network type.
400 InvalidPrivateIpAddress Specified private IP address is not in the CIDR block of virtual switch. 指定的私有 IP 地址不属于交换机的 CIDR 网段。
400 InvalidPrivateIpAddress.Malformed Specified private IP address is malformed. 指定的私有 IP 不合法。
400 QuotaExceeded.PrivateIpAddress Don't have enough private IPs in this switch.
400 QuotaExceeded Living instances quota exceeded in this VPC.
400 IncorrectVSwitchStatus The current status of virtual switch does not support this operation. 指定的虚拟交换机处于 pending 状态,无法删除。
400 ResourceNotAvailable Resource you requested is not available in this region or zone.
400 MissingParameter The input parameter "VSwitchId" that is mandatory for processing this request is not supplied.
400 InvalidDiskCategory.Mismatch The specified disk categories' combination is not supported.
400 MissingParamter The specified parameter "Period" is not null. 操作中缺少了必要的参数 "Period"
400 InvalidPeriod The specified period is not valid. 指定的时段不合法。
400 InstanceDiskCategoryLimitExceed The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category. 指定的 DataDisk.n.Size 超出允许范围,或者快照的容量超过了指定磁盘类别的大小限制。
400 InvalidClientToken.ValueNotSupported The ClientToken provided is invalid. 指定的 ClientToken 不合法。
400 InvalidIoOptimize.ValueNotSupported The specified IoOptimize is not valid. 指定的 I/O 优化型实例无效。
400 InvalidSecurityGroupId.NotFound The SecurityGroupId provided does not exist in our records.
400 InvalidInternetMaxBandwidthOut.Malformed The specified parameter internetMaxBandwidthOut is not valid. 指定的 InternetMaxBandwidthOut 参数不合法。
400 InvalidInternetMaxBandwidthIn.Malformed The specified parameter internetMaxBandwidthIn is not valid. 指定的 InternetMaxBandwidthIn 参数不合法。
400 InvalidSnapshotId.NotFound The specified parameter SnapshotId is not exist. 指定的快照不存在,请您检查快照是否正确。
400 InvalidTagKey.Malformed The specified Tag.n.Key is not valid. 指定的标签键参数有误。
400 InvalidTagValue.Malformed The specified Tag.n.Value is not valid. 指定的标签值参数有误。
400 InvalidTag.Mismatch The specified Tag.n.Key and Tag.n.Value are not match. 指定的 Tag.N.Key 和 Tag.N.Value 不匹配。
400 InvalidTagCount The specified tags are beyond the permitted range. 指定的标记超出取值范围。
400 InvalidMinAmount.Malformed The specified parameter MinAmount is not valid. 指定的 MinAmount 无效,请您检查该参数是否正确。
400 InvalidMaxAmount.Malformed The specified parameter MaxAmount is not valid. 指定的 MaxAmount 不合法。
400 InvalidAutoReleaseTime.Malformed The specified parameter AutoReleaseTime is not valid. 指定的自动释放时间AutoReleaseTime无效。
400 OperationDenied.NoVlan The specified parameter "VlanId" is not valid or vlan has not enough IP address.
400 OperationDenied.QuotaExceed The quota of tags on resource is beyond permitted range.
400 Account.Arrearage Your account has been in arrears. 账户余额不足,请先充值再操作。
400 InvalidUserData.SizeExceeded The specified parameter "UserData" exceeds the size.
400 InvalidUserData.NotSupported TThe specified parameter "UserData" only support the vpc and IoOptimized Instance.
400 InvalidUserData.Base64FormatInvalid The specified UserData is not valid. 指定的 UserData 不合法。
400 InstanceDiskNumber.LimitExceed The total number of specified disk in an instance exceeds. 实例下磁盘数目超过限制。
400 InvalidDiskCategory.ValueNotSupported The specified parameter "DiskCategory" is not valid. 指定的参数云盘类型DiskCategory无效。
400 InvalidSpotStrategy The specified SpotStrategy is not valid. 指定的 SpotStrategy 参数无效。
400 InvalidSpotParam.EmptyZoneID The specified zoneid is empty when SpotStrategy is set.
400 InvalidSpotPriceLimit The specified SpotPriceLimitis not valid. 指定的 SpotPriceLimit 参数有误。
400 InvalidSpotDuration The specified SpotDuration is not valid. 指定的 SpotDuration 参数有误。
400 InvalidSpotAuthorized The specified Spot param is unauthorized. 指定的 SpotDuration 参数值未获得授权。
400 InvalidSpotPrepaid The specified Spot type is not support PrePay Instance. 指定的抢占式实例不支持包年包月的付费方式。
400 InvalidSpotAliUid The specified UID is not authorized to use SPOT instance. 用户账户未获得创建抢占式实例的权限。
400 InvalidParameter.Bandwidth %s 指定的带宽无效,请检查参数是否正确。
400 RegionUnauthorized %s 该地域未被授权。%s为变量,将根据调用API的实际情况动态返回错误信息。
400 Zone.NotOnSale %s 该可用区暂时关闭了售卖。%s为变量,将根据调用API的实际情况动态返回错误信息。
400 InvalidSystemDiskSize.ValueNotSupported %s 当前操作不支持设置的系统盘大小。
400 InvalidInstanceType.ElasticNetworkInterfaceNotSupported The specified instance type does not support Elastic Network Interface, you can not attach Elastic Network Interface to generation I instances. 指定的实例规格不支持弹性网卡。
400 InvalidParameter.EncryptedIllegal %s 您输入的参数无效,请确认您的加密是否合法。%s为变量,将根据调用 API 的实际情况动态返回错误信息。
400 InvalidParameter.EncryptedNotSupported %s 您输入的参数无效,暂时不支持您的加密操作。%s为变量,将根据调用API的实际情况动态返回错误信息。
400 InvalidSpotPriceLimit.LowerThanPublicPrice The specified parameter "spotPriceLimit" can't be lower than current public price. 抢占式实例的最高出价不能低于当前的市场公开价格
400 InvalidRelationResource.NotFound The relation resource has been deleted. 关联的资源无效,该资源已经被删除。
400 IncorrectRecycleBinStatus The operation is not permitted due to resource status. 当前资源的状态不支持此操作。
400 InvalidHpcClusterId.Unnecessary The specified HpcClusterId is unnecessary. 无需指定参数 HpcClusterId。
400 InvalidVSwitchId.Necessary The VSwitchId is necessary. 参数 VSwitchId 不能为空。
400 InvalidHpcClusterId.Necessary The HpcClusterId is necessary. 参数 HpcClusterId 不能为空。
400 InvalidHpcClusterId.NotFound The specified HpcClusterId is not found. 指定的参数 HpcClusterId 不存在。
400 InvalidHpcClusterId.Creating The specified HpcClusterId is creating. 指定的 HPC 集群正在创建中。
400 InvalidParameter.VSwitchId %s
400 InvalidSecurityGroup.NotInDefaultVpc %s 该安全组不在默认专有网络下,请确认安全组参数是否正确。
400 VpcNotFound Vpc is not found according to the specified VSwitch or the vpc does not belong to you. 根据指定的 Vswitch 找不到对应的 VPC ,或该 VPC 不属于您。
400 InvalidSystemDiskSize.ImageNotSupportResize The specified image does not support resize. 指定的镜像不支持扩容。
400 InvalidSpotInterruptionBehavior %s SpotInterruptionBehavior 不支持。
400 InvalidDeploymentOnHost %s 该实例不能部署在指定的部署集上。
400 InvalidInstanceChargeType.NotSupport The Dedicated host not support the specified Instance charge type. 此专有宿主机不支持指定的付费类型的实例。
400 InvalidNetworkType.NotSupported The classic networkType not support create ECS on dedicatedHost. DDH上不能创建经典网络实例
400 NoAvaliableDedicatedHost No available dedicated host or not enough resource on dedicated host. 指定的专属主机上没有足够的资源或没有可用的专有宿主机
400 InvalidDedicatedHostId.NotFound The specified DedicatedHostId does not exist. 指定的专有宿主机不存在。
400 InvalidDedicatedHostStatus.NotSupport Operation denied due to dedicated host status. 专有宿主机当前的状态不支持此操作。
400 IncorrectDedicatedHostStatus The current status of the resource does not support this operation. 当前资源的状态不支持此操作。
400 ChargeTypeViolation.PostPaidDedicatedHost Prepaid instance onto postpaid dedicated host is not allowed. 包年包月的实例无法添加到按量付费的专有宿主机上。
400 DedicatedHostType.Unmatched The specified DedicatedHostType doesn?t match the instance type. 指定的专有宿主机类型与实例类型不匹配。
400 InvalidParam.NetworkInterface %s 您输入的参数无效,请检查输入的参数是否与接口对应。
400 InvalidParams.CreateEniParams %s
400 InvalidParameter.CreditSpecification The specified CreditSpecification is not supported in this region. 该地区不支持指定的突发性能实例的运行模式。
400 IncorrectVpcStatus Current VPC status does not support this operation. 当前专有网络 VPC 的状态无法支持这个操作。
400 InvalidInstanceType.NotSupported The specified instanceType is not supported by the deployment set. 当前部署集不支持您指定的实例规格,请选择其它实例规格。
400 InvalidVpcZone.NotSupported The specified operation is not allowed in the zone to which your VPC belongs, please try in other zones. 您的 VPC 所属的区域中不允许进行指定的操作,请在其他区域中尝试。
400 IncorrectDefaultVpcStatus The status of the default VPC is invalid. 默认 VPC 的状态无效。
400 InvalidAutoRenewPeriod.ValueNotSupported The specified autoRenewPeriod is invalid. 指定的自动续费时长无效。
400 InvalidMarketImageChargeType.NotSupport The specified chargeType of marketImage is unsupported. 暂不支持该市场镜像的付费类型。
400 OperationDenied The specified instanceType or zone is not available or not authorized. 指定的规格或可用区不可用
400 InvalidPeriodType.ValueNotSupported The specified parameter PeriodType is invalid. 指定的单价无效。
400 IncorrectImageStatus The specified image is an Alibaba Cloud Marketplace image. The sale of this image has ended. For more information, contact the image service provider. 指定的镜像为阿里云市场镜像。此镜像的售卖已经结束。更多信息请联系镜像服务提供商。
400 InvalidParam.Tenancy The specified Tenancy is invalid. 您指定的参数 Tenancy 无效。
400 InvalidParameter.Affinity The specified Affinity is invalid.
400 InvalidCustomInstanceType.NotSupported The specified custom instance type is invalid.
400 IoOptimized.NotSupported The specified instance must be IoOptimized instance when kmsKeyId is not empty. 设置 KMSKeyId 后,您必须使用 I/O 优化实例。
400 InvalidSnapshotId.Malformed The specified SnapshotId is not valid. 指定的快照不存在
400 InvalidCapacityReservationId.NotFound The specified CapacityReservationId does not exist.
400 LackResource There's no enough resource on the specified capacity reservation.
400 Duplicate.TagKey The Tag.N.Key contain duplicate key. 标签中存在重复的键,请保持键的唯一性。
400 InvalidSecurityGroup.NetworkType %s
400 InvalidSecurityGroup.VpcMismatch %s
400 InvalidParameter.SecurityGroupIdRepeated %s 传入的安全组ID有重复。
400 InvalidSecurityGroupId.SingleIdAndMultiIdConflict %s
400 InvalidSecurityGroupId.MultiGroupIdNetworkTypeConflict %s
400 JoinedGroupLimitExceed %s 指定资源所能加入的安全组数量达到上限。具体信息请参见错误信息%s占位符的实际返回结果。
400 InvalidAccountStatus.PayAmountLimitExceeded Your account is being restricted, because you have no default payment method or you are not authorized.
400 InvalidPerformanceLevel.Malformed The specified parameter DataDisk.n.PerformanceLevel is not valid. 指定数据盘的参数 PerformanceLevel 无效
400 InvalidOperation.EniCountExceeded The maximum number of eni in a enterprise security group is exceeded. 企业安全组内网卡的数量达到了上限。
400 QuotaExceeded.PrepayDataDiskCapacity The quota of prepay data disk capacity exceeds.
400 InvalidDiskCategory.ConflictSnapshotCategory The specified disk category conflict with snapshot category.
400 AccountForbidden.ProductCreationLimited The commodity must be officially operated by Aliyun and in pay-as-you-go billing method. 集团上云客户只能购买按量付费的 ECS,且不能购买第三方的商品比如由镜像市场提供的镜像。请检查参数,传入符合条件的参数重试。
400 UnexpectedImageFamily.ImageIdSupplied The input parameter ImageFamily must be null when image id is set. 当填写镜像ID时,参数ImageFamily必须为空。
400 InvalidEncrypted.NotMatchEncryptAlgorithm The specified parameter Encrypted must be true when EncryptAlgorithm is not empty.
400 InvalidEncrypted.NotMatchKmsKeyId The specified parameter Encrypted must be true when KmsKeyId is not empty.
400 InvalidEncryptAlgorithm.NotMatchSnapshot The specified parameter EncryptAlgorithm is different from the encrypt algorithm of the snapshot.
400 InvalidKmsKeyId.NotMatchSnapshot The specified parameter KmsKeyId is different from the KmsKeyId of the snapshot.
400 InvalidEncryptAlgorithm The specified parameter EncryptAlgorithm is not valid.
400 InvalidHttpEndpoint.NotSupported The specified HttpEndpoint not supported, you can use enabled(default) or disabled. 指定的参数 HttpEndpoint 值非法,请使用enabled(默认)或者disabled。
400 InvalidHttpTokens.NotSupported The specified HttpTokens not supported, you can use optional(default) or required. 指定的参数 HttpTokens 值非法,请使用optional(默认)或者required。
400 InvalidHttpPutResponseHopLimit.NotSupported The specified HttpPutResponseHopLimit not supported, more than 1 and less than 64 is reasonable. 指定的参数 HttpPutResponseHopLimit 值非法,取值范围必须大于等于1且小于等于64。
400 InvalidOperation.VpcHasEnabledAdvancedNetworkFeature The specified vpc has enabled advanced network feature. VPC开启了高阶特性,不能创建低规格的ECS。
400 InvalidChargeType.CapacityReservationNotSupported %s
400 InvalidPerformanceLevel.ValueNotSupported The current ZoneId or InstanceType does not support PL0 of cloud_essd.
400 InvalidKMSKeyId.NotSymmetric The specified parameter KmsKeyId must be symmetric. 加密使用的KMSKey必须为对称加密密钥。
400 InvalidParameter.Arns The specified Arns is not valid. Arns参数无效,请检查后重新传递。
400 InvalidDedicatedHostClusterId.NotFound The specified DedicatedHostClusterId does not exist.
400 InvalidDedicatedHostClusterId.InValid The specified Dedicated Host Cluster is invalid.
400 InvalidDeploymentSetId.NotFound The parameter DeploymentSetId is invalid.
400 InvalidOperation.UserNotSupported Reseller user do not support purchase at the moment.
400 InvalidManagedPrivateSpaceId.NotFound %s
400 InvalidSchedulerOptions The specified parameter SchedulerOptions is not valid.
400 MissingParameter.PrivatePoolOptionsId The specified PrivatePoolOptions.Id should not be null. PrivatePoolOptions.Id 参数不应为空。
400 Invalid.PrivatePoolOptionsId The specified PrivatePoolOptions.Id is invalid. PrivatePoolOptions.Id 参数有误。
400 DedicatedHostNotSupported DedicatedHost is not supported for PrivatePool. 私有池不支持专有宿主机。
400 SpotNotSupported Spot is not supported for PrivatePool. 私有池不支持抢占式实例。
400 ClassicNetworkNotSupported Classic network is not supported for PrivatePool. 私有池不支持经典网络类型实例。
400 Invalid.InstanceId Instance does not exist. 实例不存在。
400 Invalid.PrivatePoolOptions.MatchCriteria Target mode does not support this operation. Target模式不支持本次操作。
400 MissingParameter.PrivatePoolOptions.Id The specified PrivatePoolOptions.Id should not be null. PrivatePoolOptions.Id 参数不能为空。
400 Invalid.PrivatePoolOptions.Id The PrivatePool does not exist. 私有池不存在。
400 Invalid.InstanceType The InstanceType does not match the PrivatePool. 实例类型与私有池不匹配。
400 Invalid.InstanceChargeType The InstanceChargeType does not match the PrivatePool. 实例计费类型与私有池不匹配。
400 Invalid.ZoneId The ZoneId does not match the PrivatePool. 可用区与私有池不匹配。
400 Invalid.PrivatePoolOptions.NoStock The PrivatePool has been used up. 指定的私有池(弹性保障、资源预定)容量已经使用完。
400 InvalidPlatform.ValueNotSupported The Platform does not match the PrivatePool. 指定的Platform参数与私有池不匹配。
400 Invalid.PrivatePoolOptions.status The PrivatePool is expired or inactive. 该私有池已过期或未激活。
400 InvalidAliUid The PrivatePool does not belong to the user of the Instance. 私有池不属于创建实例的用户。
400 InvalidBandwidthOut.LessThanZero The bandwidth must be larger than 0 when specifying isp.
400 HibernationConfigured.InstanceTypeNotSupport The specified instance type is not support.
400 HibernationConfigured.ImageNotEncrypted The hibernation configured instance only support encrypted image.
400 HibernationConfigured.MemorySizeTooBig The hibernation configured instance memory size is too big.
400 InvalidSystemDiskSize.LessThanMemSize The specified parameter SystemDisk.Size is less than the memory size.
400 InvalidCloudBoxZone.OperationNotSupported The cloud box zone does not support creating prepaid or encrypted resources.
400 ProvisionedIopsForDiskCategoryUnsupported The specified disk category does not support provisioned iops. 指定的磁盘类型不支持预配置IOPS。
400 InvalidProvisionedIops.LimitExceed The provisioned iops exceeds the limit. 填写的ProvisionedIops参数超限。
400 BurstingEnabledForDiskCategoryUnsupported The specified disk category does not support bursting enabled. 指定的磁盘类型不支持开启性能突发特性。
400 BurstingEnabledForMultiAttachDiskUnsupported The multi attach disk does not support bursting enabled. 多重挂载磁盘不支持开启性能突发特性。
400 ProvisionedIopsForDiskCategoryRequired The provisioned iops is required for this disk category. 这种类型的磁盘必须传入预配置IOPS。
400 NotSupportSnapshotEncrypted.InstanceType The specified instance type does not support creating encrypted disks with native snapshot encrypt.
400 NotSupportSnapshotEncrypted.RegionId The specified region does not support creating encrypted disks with native snapshot encrypt.
400 NotSupportSnapshotEncrypted.ZoneId The specified zone does not support creating encrypted disks with native snapshot encrypt.
400 NotSupportSnapshotEncrypted.ShareImage Shared snapshot creating encrypted disks with native snapshot encrypt is not supported. 不支持共享镜像原生加密创盘
400 NotSupportSnapshotEncrypted.ImageOwnerAlias The specified image category does not support creating encrypted disks with native snapshot encrypt. 该镜像类型不支持创建更换镜像加密密钥方式的加密盘
400 NotSupportSnapshotEncrypted.DiskCategory The specified disk category does not support creating encrypted disks with native snapshot encrypt. 该磁盘类型不支持快照原生加密方式创盘
400 NotSupport.SnapshotEncryptedAlgorithmConflict Changing encrypt algorithm with encrypted snapshot is not supported.
400 NoPermission.SystemTag The operator is not permission for the system tag. 无权限操作该系统TAG
400 NumberExceed.Tags The Tags parameter's number is exceed , Valid : 20. 指定的标签数量超过限制。
400 InvalidZoneId.NotSupportShareEncryptedImage Creating instances by shared encrypted images is not supported in this zone.
400 InvalidDiskCategory.NotSupported The specified disk category is not supported.
400 InvalidParameter.CloudboxNotSupported %s
400 InvalidZoneId.NotSupportCreateWithShareEncryptedImage You cannot use shared encrypted images to create instances in this zone.
400 InvalidParameter.NetworkCardIndexInvalid Invalid network card index, please check your instance type.
400 InvalidOperation.UserNotSupportNetworkCard User not support network card.
400 InvalidAccount.NotSupportSpot According to business rules, this account cannot purchase ECS Spot instances. 分销账号无法购买抢占式实例。
400 AccountForbidden.AssociatedWithResellerPartner Your account is associated with your reseller partner. Your account or your reseller partner's account has been forbidden to create orders, please contact your reseller partner. 您的账号关联了伙伴,您的账号或者您关联的伙伴的账号已被限制下单,请您联系您的伙伴处理。
400 InvalidDestinationZone.DeploymentSetMismatch Error happened, %s. 如果实例加入的部署集是Lowlatency策略,且此部署集已有实例加入,此实例必须在已有实例所在可用区
400 NoPermission.Price The operation requires price permission. Please either apply for permission from your main account, or set the parameter AutoPay as true. 该操作需要价格权限。请向您的主账户申请权限,或将参数AutoPay设置为true进行自动支付。
400 InvalidAutoPay.PostPaidUnsupported The specified parameter AutoPay must be set as true for postpaid instance. 按量实例参数AutoPay必须指定为true。
400 InvalidParam.EncryptedMismatch Creating encrypted disks with shared encrypted snapshots requires replacing encryption keys.
400 InvalidParameter.DedicatedRegionNotSupported The specified action is rejected because the specified ECS instance in the dedicated region does not support public IP. 专属云地域不支持的参数错误码
400 InvalidParameter.CpuOptionsTopologyType The specified parameter CpuOptions.TopologyType: %s is not valid. 当前CPU拓扑类型的枚举值不合法
400 InvalidInstanceType.NotSupportCpuOptionsTopologyType The specified instance type does not support CpuOptions.TopologyType: %s. 当前规格不支持指定的CPU拓扑类型
400 InvalidEniQueueSize.RegionOrUserNotSupported The specified parameter RxQueueSize or TxQueueSize is not supported in this region, or this account is not in the whitelist of using eni QueueSize. 地域或用户不支持设置网卡队列深度
400 InvalidParameter.EniQueueSize The specified parameter TxQueueSize and RxQueueSize are not equal or exceed limit. 出方向和入方向网卡队列深度不相等或超出允许的范围
400 InvalidParameter.KmsNotEnabled Failed to perform this operation because KMS is not activated. 您需要开通KMS密钥管理服务。
400 InvalidParameter.Encrypted.KmsNotEnable Failed to perform this operation because KMS is not activated. 您需要开通KMS密钥托管服务。
400 InvalidPrivateIpAddress.Duplicated The specified private IP address is already in use. 指定的IP地址已经被使用。
400 InvalidAdditionalInfoPvdConfig.SizeExceeded The specified parameter AdditionalInfo.PvdConfig exceeds the size.
400 InvalidParameter.Encrypted Creating non-encrypted disks with encrypted snapshots is not supported. 不支持以加密快照创建非加密盘。
400 InvalidInstanceType.NotSupportHighDensityMode The specified instance type does not support the use of the high density mode. 当前实例规格不支持使用云盘高密模式
400 QuotaExceeded.InternetBandwidth %s. 您当前账号下,按量付费ECS实例的按固定带宽计费公网带宽超过了总带宽配额限制。
400 InvalidParameter.CpuOptionsAccelerators The specified parameter CpuOptionsAccelerators is not valid. 当前加速器类型选择不合法
400 InvalidInstanceType.NotSupportCpuOptionsAccelerators The specified instance type does not support attach accelerator. 当前实例规格不支持挂载加速器。
400 OperationDenied.TestAccountRetricted Test-account for testing has been prohibited from creating instance in this region. Please contact 400181. 测试账号不允许在本地域创建实例。请联系成本与资源中心@高冲(400181)
400 InvalidBurstingEnabled.DiskSizeTooSmall The disk size must be greater than 3 GiB to enable burst. 磁盘大小超过3GiB时才能开启性能突发。
400 InvalidImage.WindowsUnsupported The specified InstanceType does not support the specified Windows image. 指定的实例规格不支持 Windows 镜像
400 InvalidParameter.CpuOptionsTurboMode The specified parameter TurboMode is not valid. 指定的参数频率模式无效
400 InvalidInstanceType.EnableNVSUnsupported The specified instance type does not support EnableNVS. 指定实例类型不支持开启NVS功能
400 InvalidInstanceType.EnableVISSTUnsupported The specified instance type does not support EnableVISST. 指定实例类型不支持开启VISST功能
400 InvalidInstanceType.EnableVRDTUnsupported The specified instance type does not support EnableVRDT. 指定实例类型不支持开启VRDT功能
400 InvalidInstanceType.SingleCoreMaxModeUnsupported The specified instance type does not support TurboMode: "SINGLE CORE MAX". 指定实例类型不支持开启单核最大睿频模式
400 InvalidParameter.PtpStatus The specified parameter PtpStatus: %s is not valid. PTP 时钟状态值不合法。
400 InvalidInstanceType.NotSupportEnablePtp The specified instance type does not support enable PTP. 指定规格不支持开启 PTP。
400 InvalidInstanceType.NetworkOptionsBandwidthWeightingUnsupported The current instance type does not support setting or modifying the BandwidthWeighting parameter. 当前的实例规格不支持设置或修改带宽权重。
400 InvalidParameter.NetworkOptionsBandwidthWeighting The specified parameter BandwidthWeighting is not valid.The correct value should be in [%s]. 当前指定的参数BandwidthWeighting无效。
400 InvalidMarketImage.NotAuthorized The specified marketplace image is not authorized for your channel, please use other image. 指定的市场镜像没有对您的渠道授权,请使用其他镜像。
400 InvalidParameter.CpuOptionsNestedVirtualization The specified parameter CpuOptions.NestedVirtualization: %s is not valid.
400 InvalidInstanceType.NotSupportCpuOptionsNestedVirtualization The specified instance type does not support CpuOptions.NestedVirtualization: %s. 当前规格不支持指定的嵌套虚拟化能力
401 InvalidRamRole.NotEcsRole The specified ram role is not authorized for ecs, please check your role policy. 指定的 RAM 角色无权使用 ECS,请检查您的角色策略。
500 InternalError The request processing has failed due to an internal error and you may retry later or contact support with the request ID.
403 OperationDenied.CashCouponsInsufficientOrExpired Cash coupon balance is insufficient or has expired, please retry.
403 InvalidParameter.PrivateIpAddressRepeated %s
403 InvalidOperation.HighPerformanceEniPerInstanceLimitExceeded %s
403 InvalidParameter.EniNumExceededWithLaunchEcs %s
403 InvalidOperation.InstanceTypeNotSupportHighPerformanceTrafficMode %s 指定实例的实例规格不支持RDMA通信模式的网卡。
403 InvalidParameter.QueuePairNumberMustEmpty %s
403 InvalidParameter.EniTrafficMode %s
403 InvalidParameter.InvalidQueuePairNumber The parameter of QueuePairNumber is invalid.
403 InvalidParam.IpCount The parameter of ip count is invalid.
403 InvalidParameter.EniType %s
403 InvalidOperation.HighPerformanceTrafficModeIsNotAllowed %s
403 InvalidParameter.NetworkInterface %s
403 InvalidParameter.Combination %s 指定的参数组合无效。
403 InvalidHostname.SingleAndMultiConflict %s
403 InvalidHostname.SizeInvalid %s
403 InvalidParams.InstanceNameExceed The uniqueSuffix takes three naming places, please shorten your InstanceName. UniqueSuffix 参数会占用三个命名空间,请缩短您的实例名称。
403 InvalidParams.HostnameExceed The uniqueSuffix takes three naming places, please shorten your Hostname. UniqueSuffix 参数会占用三个命名空间,请缩短您的实例主机名。
403 ImageNotSubscribed The specified image has not be subscribed.
403 InvalidSystemDiskCategory.ValueUnauthorized The disk category is not authorized. 该磁盘类别未经授权。
403 InvalidSnapshotId.NotReady The specified snapshot has not completed yet.
403 InstanceDiskCategoryLimitExceed The total size of specified disk category in an instance exceeds. 磁盘种类总容量超过实例限制。
403 InvalidDevice.InUse The specified device has been occupied.
403 ImageRemovedInMarket The specified market image is not available, Or the specified user defined image includes product code because it is based on an image subscribed from marketplace, and that image in marketplace includeing exact the same product code has been removed. 指定的市场镜像不可用,或者指定的用户定义镜像包含产品代码,因为它基于从市场订购的镜像,并且市场中包含完全相同的产品代码的镜像已被删除。
403 CategoryNotSupported The specified zone does not offer the specified disk category.
403 QuotaExceed.PortableCloudDisk The quota of portable cloud disk exceeds.
403 SecurityGroupInstanceLimitExceed Exceeding the allowed amount of instances of a security group.
403 NodeControllerUnavailable The Node Controller is temporarily unavailable.
403 RegionUnauthorized There is no authority to create instance in the specified region. 用户未被授权在指定的地域创建实例。
403 InvalidSnapshotId.NotDataDiskSnapshot The specified snapshot is system disk snapshot.
403 Forbbiden User not authorized to operate on the specified resource. 用户未被授权操作指定的资源。
403 DeleteWithInstance.Conflict The specified disk is not a portable disk and cannot be set to DeleteWithInstance attribute.
403 InstanceDiskNumLimitExceed The number of specified disk in an instance exceeds. 实例下磁盘数目超过限制。
403 IoOptimized.NotSupported The specified image is not support IoOptimized Instance.
403 InvalidDiskSize.TooSmall Specified disk size is less than the size of snapshot.
403 InvalidDiskCategory.Mismatch The specified disk categories combination is not supported.
403 InvalidDiskCategory.NotSupported The specified disk category is not support the specified instance type.
403 QuotaExceed.BuyImage The specified image is from the image market?You have not bought it or your quota has been exceeded.
403 InvalidResourceId.NotSupported The specified ResourceId does not support tagging.
403 OperationDenied The specified RegionId does not support the creation of the network type ECS instance. 指定的地域ID不支持创建网络类型的ECS实例,请您确认该网络类型在此地域有库存。
403 OperationDenied.ImageNotValid The specified Image is disabled or is deleted.
403 OperationDenied.SnapshotNotValid The specified snapshot is not allowed to create disk.
403 OperationDenied.SnapshotNotAllowed The specified snapshot is not allowed to create disk.
403 OperationDenied.ZoneNotAllowed The creation of Instance to the specified Zone is not allowed.
403 OperationDenied.ZoneSystemCategoryNotMatch The specified Zone or cluster does not offer the specified disk category or the speicified zone and cluster do not match.
403 OperationDenied.ResourceControl The specified region is in resource control, please try later. 指定的区域处于资源控制中,请稍后再试。
403 OperationDenied.NoStock The resource is out of usage.
403 OperationDenied.SnapshotParamsNotValid The capacity of snapshot exceeds the size limit of the specified disk category or the specified category is not authorizied.
403 OperationDenied.DiskTypeNotSupport The type of the disk does not support the operation.
403 InvalidUserData.Forbidden User not authorized to input the parameter "UserData", please apply for permission "UserData".
403 Zone.NotOpen The specified zone is not granted to you to buy resources yet.
403 Zone.NotOnSale The resource in the specified zone is no longer available for sale. Please try other regions and zones. 该可用区暂不售卖指定的资源。请尝试其他类型,或选择其他可用区和地域。
403 InvalidClusterId.NotFound The specified clusterId does not exist. 指定的 ClusterId 不存在。
403 InvalidResourceType.NotSupported %s 指定资源组合不存在,请更换其他可用区或规格
403 InvalidInstanceType.ValueNotSupported The specified InstanceType beyond the permitted range.
403 InvalidInstanceType.ZoneNotSupported The specified zone does not support this instancetype. 指定的可用区里不支持指定的 InstanceType。
403 InstanceType.Offline %s 实例规格因停售、供货不足等原因,不支持该操作。
403 DependencyViolation.WindowsInstance The instance creating is window, cannot use ssh key pair to login. 指定的实例是 Windows 操作系统,此类实例不支持 SSH 密钥对登录。
403 InvalidNetworkType.MismatchRamRole A RAM role can?t be used for classic instance.
403 InvalidUser.PassRoleForbidden The RAM user does not have the privilege to pass a RAM role. 该 RAM 用户无权传递 RAM 角色。
403 InvalidParam.TrustedSystemMode The specified TrustedSystemMode is invalid.
403 InvalidParam.ConfidentialComputingMode The specified ConfidentialComputingMode is invalid.
403 InvalidInstanceType.NotSupported The specified instance type does not support trusted system. 指定的实例类型不支持可信系统
403 InvalidSecurityOptions.NotSupported SecurityOptions for vTPM and Enclave can not both be set.
403 InvalidImage.NotSupported The specified vTPM instance need UEFI image. 指定的虚拟 TPM 实例需要 UEFI 镜像。
403 Forbidden.RiskControl This operation is forbidden by Aliyun RiskControl system. 该操作被风险控制系统禁止。
403 InvalidInstance.UnPaidOrder The specified Instance has unpaid order.
403 Account.Arrearage Your account has been in arrears.
403 RealNameAuthenticationError Your account has not passed the real-name authentication yet. 您的阿里云账号尚未通过实名认证,请先实名认证后再操作。
403 InvalidPayMethod The specified pay method is not valid.
403 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance.
403 ImageNotSupportInstanceType The specified image does not support the specified InstanceType. 指定的镜像不支持指定的实例规格。
403 DryRun.InvalidAmount %s
403 OperationDenied.InvalidNetworkType %s 该网络类型不支持此操作。
403 InvalidSpotInterruptionBehavior.ClassicNetworkNotSupport The specified SpotInterruptionBehavior does not support Classic network Instance. 该操作不支持经典网络类型的实例。
403 InvalidSpotInterruptionBehavior.LocalDiskNotSupport The specified SpotInterruptionBehavior does not support local disk instance. 该操作不支持有本地磁盘的实例。
403 QuotaExceed.PostPaidDisk Living postPaid disks quota exceeded. 按量付费磁盘数量已超出允许数量。
403 InvalidParameter.NotMatch %s 您输入的参数无效,请检查参数之间是否冲突。
403 InvalidVSwitch.DefaultVSwitchNotSupport The specified zone in vpc can't support create default vSwitch.
403 OperationDenied.LocalDiskUnsupported The configuration change is not allowed when the specified instance has local disks mounted. 实例挂载本地盘后不支持规格变配。
403 OperationDenied.InconsistentNetwork The specified security group and vswitch are not in the same vpc. 指定的安全组和交换机没有在同一个 VPC 下。
403 DefaultVswitch.Existed The default vswitch for VPC already exists. 当前VPC中已经有了默认交换机。
403 IncorrectInstanceStatus The current status of the resource does not support this operation.
403 CategoryViolation The specified instance does not support this operation because of its disk category.
403 ResourcesNotInSameZone The specified instance and dedicated host are not in the same zone. 指定的实例和专有宿主机不在同一个地域下。
403 InvalidDisk.SystemDiskSize The specified SystemDiskSize beyond the permitted range. 系统盘大小超出最大允许值。
403 InsufficientBalance Your account does not have enough balance.
403 InvalidOperation.NetworkInterface %s
403 MaxEniIpv6IpsCountExceeded %s 该弹性网卡挂载的 IPv6 个数达到上限。
403 InvalidIp.IpRepeated %s 指定的 IP 重复。
403 InvalidIp.IpAssigned %s 指定的 IP 已被分配。
403 InvalidIp.Address %s 输入的IP格式不对或不在可选的CIDR范围内。
403 InvalidOperation.EniCountExceeded %s
403 InvalidOperation.Ipv4CountExceeded %s IPv4 数量达到上限,导致该操作无效。
403 InvalidOperation.Ipv6CountExceeded %s IPv6 数量达到上限,导致该操作无效。
403 InvalidOperation.Ipv6NotSupport %s IPv6不支持当前操作。
403 InvalidOperation.Ipv4NotSupport %s
403 InvalidParam.SecondaryIp %s
403 InvalidVSwitch.Ipv6NotTurnOn %s 您当前使用的交换机没有开启 IPv6 功能,请先开启此功能后重试。
403 InvalidParam.IpAssign %s
403 InvalidParam.Amount %s 指定的参数 Amount 无效。
403 InvalidParam.CpuOptionsCore %s 指定的CPU物理核心数不合法
403 InvalidParam.CpuOptionsNuma %s
403 InvalidVSwitchId.IpInvalid %s 指定的私网 IP 无效。
403 Forbidden.RegionId %s
403 QuotaExceed.DeploymentSetInstanceQuotaFull The instance quota in one deployment set exceeded. 当前部署集内的实例数量已满额。
403 InvalidChargeType.ValueNotSupported Deletion protection is only valid for postPaid instance, not for prePaid or spot instance. 删除保护功能只能使用在按量付费资源上
403 InvalidRegion.NotSupport The specified region does not support byok. 该地域不支持BYOK。
403 UserNotInTheWhiteList The user is not in byok white list. 您不在byok白名单中,请加入白名单后重试。
403 InvalidParameter.KMSKeyId.KMSUnauthorized ECS service have no right to access your KMS. ECS 服务无权访问您的 KMS。
403 SecurityRisk.3DVerification We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email. 我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。
403 Mayi.InternalError The request processing has failed due to an internal error and you may retry later or contact support with the request ID.
403 InvalidNetworkType The network type is not support in this region. 输入的网络类型NetworkType不再支持。
403 InvalidAccountStatus Your account status is invalid, please contact customer service.
403 QuotaExceeded.PrivateIpAddress %s 指定的交换机VSwitch下内网IP不足。
403 OperationDenied.PerformanceLevelNotMatch The specified DataDisk.n.PerformanceLevel and DataDisk.n.Size do not match.
403 InvalidStorageSetName.Malformed Specified parameter StorageSetName is not valid.
403 InvalidDescription.Malformed Specified parameter Description is not valid.
403 InvalidMaxPartitionNumber.Malformed Specified parameter MaxPartitionNumber is not valid.
403 InvalidParameter.StorageSetPartitionNumber Specified parameter StorageSetPartitionNumber is not valid.
403 InvalidParameter.StorageSetId Specified parameter StorageSetId is not valid.
403 InvalidParameter.StorageSetZoneId Specified parameter StorageSetZoneId is not valid.
403 EnterpriseGroupLimited.MutliGroupType The specified instance can't join multi SecurityGroup types. 指定的实例不可以加入多种类型的安全组。
403 EnterpriseGroupLimited.InstanceType The specified instance type doesn't support Enterprise SecurityGroup.
403 QuotaExceed.Tags %s 标签数超过可以配置的最大数量。%s为变量,将根据调用API的实际情况动态返回错误信息。
403 OperationDenied.RegionIdNotSupported The specified region does not support spot duration instance.
403 OperationDenied.FlavorNotSupported Flavor not support spot duration instance.
403 OperationDenied.TimestampNotSupported Timestamp not support spot duration instance.
403 OperationDenied.PaygNotAvailable Pay-as-you-go instance is not available now.
403 OperationDenied.PrepayNotAvailable Prepay instance is not available now.
403 OperationDenied.BidOwnResource Bid user can not own resource.
403 OperationDenied.CloudSSDNotSupported The specified available zone does not offer the cloud_ssd disk, use cloud_essd instead. 指定的可用区不支持 cloud_ssd 类型的磁盘,请尝试使用 cloud_essd 类型的磁盘重试。
403 QuotaExceed.ElasticQuota No additional quota is available for the specified ECS instance type. 您在当前地域选择的实例规格所要创建的台数超出系统限额,您可以选择其他地域、实例规格或减少台数重新购买,也可以前往ECS管理控制台或配额中心申请提高限额。
403 QuotaExceeded.PostpaidDataDiskCapacity The quota of postpaid data disk capacity exceeds. 按量付费数据盘使用容量超出配额。
403 InvalidImageFamily.MissingAvailableImage There is no available image related to the specified image family.
403 InvalidRegionId.NotSupportEncryptAlgorithm The current region does not support creating encrypted disks with EncryptAlgorithm.
403 InvalidOperation.ResourceManagedByCloudProduct %s 云产品托管的安全组不支持修改操作。
403 InvalidManagedPrivateSpaceId.DedicatedHostIdConflict ManagedPrivateSpaceId and DedicatedHostId cannot be specified at the same time.
403 InvalidManagedPrivateSpaceId.TenancyConflict ManagedPrivateSpaceId and Tenancy cannot be specified at the same time.
403 InvalidParameter.InvalidEniQueueNumber %s 弹性网卡队列数有误,具体信息请参见错误信息%s占位符的实际返回结果。
403 InvalidOperation.MaxEniQueueNumberExceeded %s 弹性网卡队列数超过上限,具体信息请参见错误信息%s占位符的实际返回结果。
403 InvalidOperation.ExceedInstanceTypeQueueNumber %s 弹性网卡队列总数超过上限,具体信息请参见错误信息%s占位符的实际返回结果。
403 InvalidIspType.ValueNotSupported %s
403 UnsupportedIspChargeType %s 付费类型不支持此账号的服务提供商(ISP)。
403 UnsupportedIspClassicNetwork %s
403 InvalidIspBandwidthOut %s
403 UnsupportedIspNetworkChargeType %s
403 InvalidIspUID %s
403 UnsupportedIspRegion %s
403 Forbidden.OnlySupportEnterpriseGroup %s
403 HibernationConfigured.InstanceOperationForbidden The operation is not permitted due to limit of the hibernation configured instance. 不符合开启休眠选项的实例的相关限制,操作不被允许。
403 InstanceDiskLimitExceeded The amount of the disk on instance reach its limits. 实例上的磁盘数量已经达到了最大限制
403 InvalidInstanceType.NotSupportDiskCategory The instanceType of the specified instance does not support this disk category. 指定的实例规格(InstanceType)不支持当前实例的云盘类别。请尝试更换其它实例规格。关于实例规格支持的云盘类型,请参见实例规格族文档。
403 InvalidOperation.ConfidentialComputingModeInInviteOnlyTesting The specified confidential computing mode is in invite only testing: %s. 指定的机密计算模式当前处于邀测阶段
403 InvalidOperation.InvalidNetworkInterfaceId %s
403 InvalidOperation.RegionNotSupportNetworkInterfaceId The specific region does not support network interface id.
403 InvalidEniId.NotFound %s 指定的弹性网卡 ID 不存在。
403 NotSupportSnapshotEncrypted.DiskCategory The specified disk category does not support creating encrypted system disks or creating encrypted data disks from snapshots. Check the DiskCategory or Encrypted parameter, or check your account for default encryption settings. 该磁盘类型不支持创建加密系统盘或以快照方式创建加密数据盘,请检查您输入的磁盘类型、加密参数,或者检查您是否做过账号云盘默认加密配置。
403 InvalidOperation.PublicIpAddressNoStock The public IP address for the specified Region or ChargeType of the instance is out of stock. Please try another Region or ChargeType. 在指定的地域或付费类型条件下,实例公网IP地址库存不足。请尝试使用其它地域或付费类型。
403 AclLimitExceed %s 网卡或实例的安全组规则数量超过限额值。
403 InvalidParameter.DataEncryptedKeyCreateFailed Create kms data encrypted key fail. If you need further assistance, you can contact the KMS Technical Support. 使用KMS主密钥创建数据密钥失败,请联系KMS值班同学进一步排查。
403 InvalidParameter.CpuOptionsThreadsPerCore The specified parameter CpuOptions.ThreadsPerCore is not valid. 参数CpuOptions.ThreadsPerCore无效。
403 InvalidParameter.CpuOptionsCore The specified parameter CpuOptions.Core is not valid. 参数CpuOptions.Core无效。
403 InvalidInstanceType.CpuOptionsThreadsPerCoreUnsupported The current instance type does not support setting or modifying the CpuOptions.ThreadsPerCore parameter. 当前实例规格不支持设置或修改CpuOptions.ThreadsPerCore参数
403 InvalidParameter.CpuOptionsNuma The specified parameter CpuOptions.Numa is not valid. 参数CpuOptions.Numa无效。
403 InvalidParameter.KMSKeyId.CMKUnauthorized The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. 用户主密钥(CMK)未授权ECS服务添加标签权限。
403 InvalidParameter.KMSKeyId.CMKNotEnabled The CMK (Customer Master Key) must be in an active state. 用户主密钥(CMK)需要处于活动状态。
403 InvalidEncrypted.NotMatchSnapshot The specified parameter Encrypted must be set to true when creating disks with encrypted snapshots. 当使用加密快照创建磁盘时,指定的参数Encrypted必须设置为true。
403 InvalidEncrypted.NotMatchDiskDefaultEncryption Enabling disk default encryption prevents the creation of non-encrypted disks. 启用云盘账号默认加密后,无法创建非加密磁盘。
403 InvalidOperation.InstanceTypeNotSupportNetworkEncryption The specified instance type does not support network encryption. 指定的实例规格不支持vpc流量加密
403 InvalidOperation.UserNotSupportNetworkEncryption User not support network encryption. 用户不支持指定网络流量加密参数。
403 InvalidOperation.InstanceTypeNotSupportEniTrunking The current instance type does not support ENI trunking operation. 当前的实例规格不支持弹性网卡的中继操作。
403 InvalidOperation.ImageSecureBootUnsupported The image does not support secure boot. 镜像不支持安全启动。
403 InvalidOperation.InstanceTypeSecureBootUnsupported The instance type does not support secure boot. 实例规格不支持安全启动。
403 InvalidOperation.SecureBootRegionNotSupported Secure Boot is not available in the specified region. 当前地域不支持开启实例安全启动
403 OperationDenied.KMSKeyUnauthorized The operation is denied due to missing KMS key authorization. Please check the KMS key permissions and ensure the key is properly authorized for this operation.
404 InvalidStorageClusterId.NotExist The specified StorageClusterId does not exist in current region.
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 地域信息错误
404 InvalidZoneId.NotFound The ZoneId provided does not exist in our records.
404 InvalidSecurityGroupId The specified SecurityGroupId is invalid or does not exist. 指定的安全组 ID 无效或者不存在。
404 InvalidSecurityGroupId.NotFound The SecurityGroupId provided does not exist in our records. 指定的安全组在该用户账号下不存在,请您检查安全组 ID 是否正确。
404 InvalidDataDiskSnapshotId.NotFound The specified parameter "DataDisk.n.SnapshotId" is not valid.
404 InvalidClusterId.NotFound The ClusterId provided does not exist in our records.
404 InvalidVSwitchId.NotFound Specified virtual switch does not exist. 指定的虚拟交换机 ID 不存在。
404 InvalidImageId.NotFound The specified ImageId does not exist. 指定的镜像在该用户账号下不存在,请您检查镜像 ID 是否正确。
404 IoOptimized.NotSupported The specified instancetype is not support IoOptimized instance.
404 InvalidInstanceChargeType.NotFound The InstanceChargeType does not exist in our records.
404 DependencyViolation.IoOptimized The specified instancetype must be IoOptimized instance.
404 PaymentMethodNotFound No payment method has been registered on the account.
404 HOSTNAME_ILLEGAL The specified parameter HostName is not valid.
404 InvalidSystemDiskSize.LessThanImageSize The specified parameter SystemDisk.Size is less than the image size.
404 InvalidSystemDiskSize.LessThanMinSize The specified parameter SystemDisk.Size is less than the min size.
404 InvalidSystemDiskSize.MoreThanMaxSize The specified parameter SystemDisk.Size is more than the max size. 指定的 SystemDisk.Size 超过最大值。
404 OperationDenied.ImageNotValid The specified Image is disabled or is deleted. 指定的镜像不存在。
404 OperationDenied.CreatingConflict Another Instance has been creating.
404 InvalidKeyPairName.NotFound The specified parameter KeyPairName does not exist in our records.
404 InvalidResourceGroup.NotFound The ResourceGroup provided does not exist in our records. 资源组并不在记录中。
404 InvalidRamRole.NotFound The specified parameter "RAMRoleName" does not exist. RAM角色未被授权用于ECS服务
404 InvalidLaunchTemplate.NotFound %s 没有找到指定的启动模版,请检查参数是否正确。
404 InvalidLaunchTemplateVersion.NotFound %s 没有找到该版本的启动模版,请检查参数是否正确。
404 InvalidVSwitchId.NotExist %s 指定的交换机不存在。
404 InvalidMarketImage.NotFound The specified marketplace image does not exist, please change the imageId and try again. 指定的市场镜像不存在,请更改参数后重试。
404 DeploymentSet.NotFound The specified deployment set does not exist. 指定的部署集不存在。
404 InvalidParameter.DeploymentSetGroupNo Parameter DeploymentSetGroupNo is invalid.
404 InvalidParameter.KMSKeyId.NotFound The specified KMSKeyId does not exist. 指定的参数 KMSKeyId 不存在。
404 InvalidDiskIds.NotPortable The specified DiskId is not portable.
404 InvalidAutoSnapshotPolicyId.NotFound Specified parameter AutoSnapshotPolicyId not found. 指定的自动快照策略不存在。
429 Throttling.Resource The request throttle by resource operation. 请求被资源操作流控

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情