全部产品
Search
文档中心

云服务器 ECS:CreateInstance - 创建一台包年包月或者按量付费ECS实例

更新时间:Mar 19, 2024

调用CreateInstance创建一台包年包月或者按量付费ECS实例。

接口说明

说明 您可以调用 DescribeAvailableResource 查看指定地域或者可用区内的实例资源供给情况。若您希望批量创建实例并且实例自动进入运行中(Running)状态,推荐您使用 RunInstances 接口。

创建 ECS 实例时,您需要注意:

  • 计费
    • 创建实例会涉及资源计费,建议您提前了解云服务器 ECS 的计费方式。更多详情,请参见计费概述
    • 若实例计费方式为包年包月实例(PrePaid),在付款时默认会使用您可用的优惠券。
  • 实例规格
说明 如果创建实例时返回QuotaExceed.ElasticQuota错误,表示您在当前地域选择的实例规格所要创建的台数超出系统限额,或者全实例规格 vCPU 配额超出系统限额,您可以前往 ECS 管理控制台配额中心申请提高限额。
  • 镜像

    • 镜像确定实例的系统盘配置,实例的系统盘即为指定镜像的完全克隆。
    • 实例内存为 512 MiB 时,不能使用除半年渠道之外的 Windows Server 镜像。
    • 实例内存为 4 GiB 以上时,不能使用 32 位操作系统的镜像。
  • 网络类型

    • 专有网络 VPC 类型实例必须且只能属于一个交换机。
    • 指定VSwitchId时,SecurityGroupIdVSwitchId必须属于同一个 VPC。
    • PrivateIpAddress依赖于VSwitchId,不能单独指定PrivateIpAddress。同时指定VSwitchIdPrivateIpAddress时,PrivateIpAddress必须包含在交换机的空闲子网网段之内。
  • 公网带宽

    • 自 2020 年 11 月 27 日起,创建和变配 ECS 实例时带宽峰值受账户限速策略影响。如需更大带宽峰值,请提交工单。具体限速策略:单个地域下,所有按使用流量计费 ECS 实例的实际运行带宽峰值总和不大于 5 Gbit/s;所有按固定带宽计费 ECS 实例的实际运行带宽峰值总和不大于 50 Gbit/s。
    • 使用CreateInstance创建的实例将不会分配公网 IP 地址,您可以调用 AllocatePublicIpAddress 自行分配。
    • InternetChargeTypeInternetMaxBandwidthOut的设置决定带宽费用。
    • 阿里云入网数据流量免费,InternetMaxBandwidthIn的值与计费无关。
    • InternetChargeType=PayByBandwidth表示按固定带宽付费,则InternetMaxBandwidthOut为所选的固定带宽值。
    • InternetChargeType=PayByTraffic表示按使用流量付费,则InternetMaxBandwidthOut取带宽的上限设置,计费以实际使用的网络流量为依据。
  • 安全组

    • 您必须预先创建一个安全组,可通过 CreateSecurityGroup 创建。
    • 同一个安全组内可容纳的实例数量视安全组类型而定,具体请参见使用限制的安全组章节。
    • 同一个安全组内的实例内网可以相互访问。不同安全组之间默认隔离,不可相互访问,但是可以授权访问。更多详情,请参见 AuthorizeSecurityGroupAuthorizeSecurityGroupEgress
  • 存储

    • 根据您指定的镜像,实例被分配一个相应大小的系统盘。系统盘容量必须大于或者等于max{20, ImageSize}。系统盘的种类请参见SystemDisk.Category参数描述。
    • I/O 优化实例的系统盘只能选择 ESSD 云盘(cloud_essd)、SSD 云盘(cloud_ssd)及高效云盘(cloud_efficiency)。
    • 不同类型云盘的数据盘最大容量不同。详情请参见DataDisk.N.Size参数描述。
    • 一台实例最多添加 16 块数据盘。数据盘挂载点由系统默认顺序分配,/dev/xvdb 开始到/dev/xvdz。
说明 如果创建实例时返回QuotaExceed.DiskCapacity错误,表示您当前选择的磁盘类型所要创建的总容量超出指定可用区的系统限额,您可以前往配额中心查询和申请提升配额。
  • 自定义数据:若实例满足使用实例自定义数据的限制,您可传入 UserData 信息。UserData 以 Base64 的方式编码。因为传输 API 请求时,不会加密您设置的UserData,建议不要以明文方式传入机密的信息,例如密码和私钥等。如果必须传入,建议加密后,然后以 Base64 的方式编码后再传入,在实例内部以同样的方式反解密。
  • 其他:在阿里云 CLI 及 SDK 中使用 API 时,部分带英文句号(.)的入参需要去掉英文句号(.)再使用。例如,使用SystemDiskCategory表示入参SystemDisk.Category

调试

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

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ecs:CreateInstanceWrite
  • DedicatedHost
    acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
  • Image
    acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
  • Instance
    acs:ecs:{#regionId}:{#accountId}:instance/*
  • KeyPair
    acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
  • SecurityGroup
    acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
  • Snapshot
    acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
  • VSwitch
    acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
  • Disk
    acs:ecs:{#regionId}:{#accountId}:disk/*
  • VSwitch
    acs:vpc:{#regionId}:{#accountId}:vswitch/*
  • ecs:tag
  • vpc:VPC
  • vpc:tag
  • vpc:IsDefaultVSwitch
  • vpc:IsDefaultVpc
  • ecs:IsDiskEncrypted
  • ecs:InstanceType
  • ecs:InstanceTypeFamily
  • ecs:ImageOwnerId
  • ecs:ImageSource
  • ecs:NotSpecifySecurityGroupId

请求参数

名称类型必填描述示例值
RegionIdstring

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

cn-hangzhou
ImageIdstring

镜像文件 ID,启动实例时选择的镜像资源。如需使用云市场镜像,您可以在云市场镜像商详情页查看ImageId。当您不通过指定ImageFamily选用镜像族系最新可用镜像时,此参数必选。

ubuntu_18_04_64_20G_alibase_20190624.vhd
ImageFamilystring

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

  • 设置了ImageId,则不能设置该参数。
  • 未设置ImageId,则可以设置该参数。
hangzhou-daily-update
InstanceTypestring

实例的资源规格。

ecs.g6.large
SecurityGroupIdstring

指定新创建实例所属于的安全组 ID。

sg-bp15ed6xe1yxeycg****
InstanceNamestring

实例的名称。长度为 2~128 个英文或中文字符。必须以大小字母或中文开头,不能以http://https://开头。可以包含数字、半角冒号(:)、下划线(_)、半角句号(.)或者短划线(-)。如果没有指定该参数,默认值为实例 ID。

k8s-node-[1,4]-alibabacloud
InternetChargeTypestring

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

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

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

  • true:自动续费。
  • false(默认):不自动续费。
true
AutoRenewPeriodinteger

每次自动续费的时长,当参数 AutoRenew 取值 True 时,该参数为必填参数。

PeriodUnit 为 Month 时,AutoRenewPeriod 取值:1、2、3、6、12。

2
InternetMaxBandwidthIninteger

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

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

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

默认值为 0。

5
HostNamestring

云服务器的主机名。

  • 半角句号(.)或短划线(-)不能作为首尾字符,更不能连续使用。
  • Windows 实例:字符长度为 2~15,不支持半角句号(.),不能全是数字。允许大小写英文字母、数字和短划线(-)。
  • 其他类型实例(Linux 等):字符长度为 2~64,支持多个半角句号(.),英文句号之间为一段,每段允许大小写英文字母、数字和短划线(-)。
LocalHostName
Passwordstring

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

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

您需要注意:

  • 如果传入 Password 参数,建议您使用 HTTPS 协议发送请求,避免密码泄露。
  • Windows 实例不能以正斜线(/)为密码首字符。
  • 部分操作系统的实例不支持配置密码,仅支持配置密钥对。例如:Others Linux、Fedora CoreOS。
TestEcs123!
PasswordInheritboolean

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

false
DeploymentSetIdstring

部署集 ID。

ds-bp1brhwhoqinyjd6****
DeploymentSetGroupNointeger

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

1
ZoneIdstring

实例所属的可用区 ID。更多信息,请参见 DescribeZones 获取可用区列表。

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

默认值:空,系统自动选择。

cn-hangzhou-g
ClusterIdstring

实例所在的集群 ID。

说明 该参数即将被弃用,为提高兼容性,请尽量使用其他参数。
c-bp67acfmxazb4p****
ClientTokenstring

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

123e4567-e89b-12d3-a456-426655440000
VlanIdstring

虚拟局域网 ID。

10
InnerIpAddressstring

实例的内网 IP。

192.168.**.**
SystemDisk.Sizeinteger

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

  • 普通云盘:20~500

  • 其他类型云盘:20~2048

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

默认值:max{40, ImageSize} 。

40
SystemDisk.Categorystring

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

  • cloud_essd:ESSD 云盘,您可以通过参数SystemDisk.PerformanceLevel设置云盘的性能等级。
  • cloud_efficiency:高效云盘。
  • cloud_ssd:SSD 云盘。
  • cloud:普通云盘。

已停售的实例规格且非 I/O 优化实例默认值为 cloud,否则默认值为 cloud_efficiency。

cloud_ssd
SystemDisk.DiskNamestring

系统盘名称。长度为 2~128 个英文或中文字符。必须以大小字母或中文开头,不能以http://https://开头。可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

默认值为空。

SystemDiskName
SystemDisk.Descriptionstring

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

默认值为空。

TestDescription
SystemDisk.PerformanceLevelstring

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

  • PL0:单盘最高随机读写 IOPS 1 万。
  • PL1(默认):单盘最高随机读写 IOPS 5 万。
  • PL2:单盘最高随机读写 IOPS 10 万。
  • PL3:单盘最高随机读写 IOPS 100 万。

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

PL1
NodeControllerIdstring
说明 该参数正在邀测中,暂不支持使用。
null
Descriptionstring

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

默认值为空。

InstanceTest
VSwitchIdstring

如果是创建 VPC 类型的实例,需要指定交换机 ID。您可以调用 DescribeVSwitches 查询已创建的交换机的相关信息。

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

实例私网 IP 地址。该 IP 地址必须为交换机(VSwitchId)网段的空闲地址。

172.16.236.*
IoOptimizedstring

是否为 I/O 优化实例。取值范围:

  • none:非 I/O 优化。
  • optimized:I/O 优化。

已停售的实例规格实例默认值是 none。

其他实例规格默认值是 optimized。

optimized
UseAdditionalServiceboolean

是否使用阿里云提供的虚拟机系统配置(Windows:NTP、KMS;Linux:NTP、YUM)。

true
InstanceChargeTypestring

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

  • PrePaid:包年包月。选择该类付费方式时,您必须确认自己的账号支持余额支付/信用支付,否则将返回 InvalidPayMethod的错误提示。
  • PostPaid(默认):按量付费。
PrePaid
Periodinteger

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

PeriodUnit=Month 时,Period 取值:1、2、3、6、12。

1
PeriodUnitstring

购买资源的时长。取值范围:

Month。

默认值为 Month。

Month
UserDatastring

实例自定义数据,需要以 Base64 方式编码,原始数据最多为 16KB。

ZWNobyBoZWxsbyBlY3Mh
SpotStrategystring

实例的抢占策略。当参数InstanceChargeType取值为PostPaid时生效。取值范围:

  • NoSpot(默认):正常按量付费实例。
  • SpotWithPriceLimit:设置上限价格的抢占式实例。
  • SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。
NoSpot
KeyPairNamestring

密钥对名称。

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

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

0.98
SpotDurationinteger

抢占式实例的保留时长,单位为小时。默认值:1。取值范围:

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

实例回收前 5 分钟阿里云会通过 ECS 系统事件向您发送通知。抢占式实例按秒计费,建议您结合具体任务执行耗时来选择合适的保留时长。

说明 当 SpotStrategy 值为 SpotWithPriceLimit 或 SpotAsPriceGo 时该参数生效。
1
SpotInterruptionBehaviorstring

抢占实例中断模式。目前仅支持 Terminate(默认)直接释放实例。

Terminate
RamRoleNamestring

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

RAMTestName
SecurityEnhancementStrategystring

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

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

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

rg-bp67acfmxazb4p****
HpcClusterIdstring

实例所属的 HPC 集群 ID。

hpc-bp67acfmxazb4p****
DryRunboolean

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

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

是否在专有宿主机上创建 ECS 实例。

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

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

dh-bp67acfmxazb4p****
CreditSpecificationstring

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

Standard
DeletionProtectionboolean

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

  • true:开启实例释放保护。
  • false(默认):关闭实例释放保护。
说明 该属性仅适用于按量付费实例,且只能限制手动释放操作,对系统释放操作不生效。
false
HibernationOptions.Configuredboolean
说明 该参数正在邀测中,暂不支持使用。
false
Affinitystring

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

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

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

默认值为 default。

default
Tenancystring

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

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

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

默认值为 default。

default
StorageSetIdstring

存储集 ID。

ss-bp1j4i2jdf3owlhe****
StorageSetPartitionNumberinteger

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

2
HttpEndpointstring

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

  • enabled:启用。
  • disabled:禁用。

默认值为 enabled。

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

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

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

默认值为 optional。

说明 有关访问实例元数据的模式,请参见实例元数据访问模式
optional
HttpPutResponseHopLimitinteger
说明 该参数正在邀测中,暂不支持使用。
0
PrivatePoolOptions.MatchCriteriastring

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

  • Open:开放模式。将自动匹配开放类型的私有池容量。如果没有符合条件的私有池容量,则使用公共池资源启动。该模式下无需设置PrivatePoolOptions.Id参数。
  • Target:指定模式。使用指定的私有池容量启动实例,如果该私有池容量不可用,则实例会启动失败。该模式下必须指定私有池 ID,即PrivatePoolOptions.Id参数为必填项。
  • None:不使用模式。实例启动将不使用私有池容量。

默认值为 None。

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

  • 创建抢占式实例。
  • 创建经典网络类型的 ECS 实例。
  • 在专有宿主机 DDH 上创建 ECS 实例。
Open
PrivatePoolOptions.Idstring

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

eap-bp67acfmxazb4****
DataDiskobject []

数据盘列表。

PerformanceLevelstring

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

  • PL0:单盘最高随机读写 IOPS 1 万。
  • PL1(默认):单盘最高随机读写 IOPS 5 万。
  • PL2:单盘最高随机读写 IOPS 10 万。
  • PL3:单盘最高随机读写 IOPS 100 万。

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

PL2
Descriptionstring

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

TestDescription
SnapshotIdstring

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

  • 指定参数DataDisk.N.SnapshotId后,参数DataDisk.N.Size会被忽略,实际创建的云盘大小为指定的快照的大小。

  • 不能使用早于 2013 年 7 月 15 日(含)创建的快照,请求会报错被拒绝。

s-bp17441ohwka0yuh****
Sizeinteger

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

  • cloud_efficiency:20~32768。
  • cloud_ssd:20~32768。
  • cloud_essd:具体取值范围与 DataDisk.N.PerformanceLevel的取值有关。
    • PL0:40~32768。
    • PL1:20~32768。
    • PL2:461~32768。
    • PL3:1261~32768。
  • cloud:5~2000。

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

2000
Devicestring

数据盘的挂载点。

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

数据盘名称。长度为 2~128 个英文或中文字符。必须以大小字母或中文开头,不能以http://https://开头。可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

DataDiskName
Categorystring

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

  • cloud_efficiency:高效云盘。
  • cloud_ssd:SSD 云盘。
  • cloud_essd:ESSD 云盘。
  • cloud:普通云盘。

I/O 优化实例的默认值为 cloud_efficiency,非 I/O 优化实例的默认值为 cloud。

cloud_ssd
DeleteWithInstanceboolean

数据盘是否随实例释放。

  • true:是。
  • false:否。

默认值为 true。

true
KMSKeyIdstring

云盘使用的 KMS 密钥 ID。

0e478b7a-4262-4802-b8cb-00d****
EncryptAlgorithmstring
说明 该参数暂未开放使用。
null
Encryptedboolean

数据盘 N 是否加密。

  • true:是。

  • false:否。

默认值为 false。

false
StorageClusterIdstring

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

dbsc-j5e1sf2vaf5he8m2****
Arnobject []
说明 该参数正在邀测中,暂不支持使用。
RoleTypestring
说明 该参数正在邀测中,暂不支持使用。
Primary
Rolearnstring
说明 该参数正在邀测中,暂不支持使用。
acs:ram::123456789012****:role/adminrole
AssumeRoleForlong
说明 该参数正在邀测中,暂不支持使用。
1234567890
Tagobject []

标签列表。

keystring

标签键。

说明 为提高兼容性,建议您尽量使用 Tag.N.Key 参数。
null
Keystring

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

TestKey
Valuestring

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

TestValue
valuestring

标签值。

说明 为提高兼容性,建议您尽量使用 Tag.N.Value 参数。
null
SystemDiskobject

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

StorageClusterIdstring

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

dbsc-j5e1sf2vaf5he8m2****

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

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

实例 ID。

i-bp67acfmxazb4p****
OrderIdstring

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

1234567890
TradePricefloat

订单成交价。

0.165

示例

正常返回示例

JSON格式

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "InstanceId": "i-bp67acfmxazb4p****",
  "OrderId": "1234567890",
  "TradePrice": 0.165
}

错误码

HTTP status code错误码错误信息描述
400InvalidStorageClusterId.CapacityNotEnoughThe remaining capacity of the current dedicated storage cluster is less than the size of disk.磁盘所在专属存储集群的可用容量不足
400InvalidStorageClusterId.StatusNotSupportThe current status of the dedicated storage cluster cannot create a cloud disk yet.-
400InvalidStorageClusterId.ZoneIdEmptyThe specified param ZoneId cannot be empty when StorageClusterId given.-
400InvalidStorageClusterId.PerformanceLevelNotMatchThe current dedicated storage cluster cannot create this performance level of disk.-
400InvalidStorageClusterId.CategoryNotMatchThe current dedicated storage cluster cannot create this category of disk.-
400InvalidStorageClusterId.DiskSizeEmptyThe specified param DiskSize cannot be empty when StorageClusterId given.-
400InvalidInstanceType.ValueUnauthorizedThe specified InstanceType is not authorized.指定的实例规格未授权使用。
400InvalidInternetChargeType.ValueNotSupportedThe specified InternetChargeType is not valid.暂不支持指定的网络付费类型的实例,请确认相关参数是否正确。
400InvalidParameterThe specified parameter "InternetMaxBandwidthOut" is not valid.-
400InvalidSystemDiskCategory.ValueNotSupportedThe specified parameter " SystemDisk.Category " is not valid.-
400InvalidDataDiskSize.ValueNotSupportedThe 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 超出允许范围,或者快照的容量超过指定磁盘类别的大小限制。
400InvalidInstanceType.ValueNotSupportedThe specified InstanceType does not exist or beyond the permitted range.您指定的实例规格不存在,或者您没有权限操作此规格的实例。
400InvalidDescription.MalformedThe specified parameter "Description" is not valid.指定的资源描述格式不合法。长度为2-256个字符,不能以http://和https://开头。
400InvalidHostName.MalformedThe specified parameter "HostName" is not valid.-
400InvalidPassword.MalformedThe specified parameter "Password" is not valid.-
400InvalidPasswordParam.MismatchThe input password should be null when passwdInherit is true.启用 PasswdInherit 后,用户名密码应该设置为空。
400InvalidSystemDiskCategory.ValueNotSupportedThe specified parameter "SystemDisk.Category" is not valid.-
400InvalidDiskName.MalformedThe specified parameter "SystemDisk.DiskName or DataDisk.n.DiskName" is not valid.-
400InvalidDiskDescription.MalformedThe specified parameter "SystemDisk.DiskDescription" or "DataDisk.n.Description" is not valid.参数SyatemDisk.DiskDescription或DataDisk.n.Description不合法。
400InvalidDataDiskCategory.ValueNotSupportedThe specified parameter "DataDisk.n.Category" is not valid.-
400InvalidDataDevice.MalformedThe specified parameter "DataDisk.n.Device" is not valid.-
400InvalidNodeControllerId.MalformedThe specified parameter "NodeControllerId" is not valid.-
400InvalidInnerIpAddress.MalformedThe specified parameter "InnerIpAddress" is not valid.-
400InvalidInnerIpAddress.UnusableThe specified InnerIpAddress is already used or not found in usable ip range.指定的 InnerIpAddress 不可用。
400OperationDeniedThe specified parameter "VlanId" is not valid or vlan has not enough IP address.-
400InvalidParameter.ConflictThe specified image does not support the specified instance type.指定的镜像不能用于指定的实例规格。
400ImageNotSupportCloudInitThe specified image does not support cloud-init.该镜像不支持CloudInit。
400InvalidSnapshotId.BasedSnapshotTooOldThe specified snapshot is created before 2013-07-15.指定的快照创建于 2013-07-15 之前。
400QuotaExceed.AfterpayInstanceThe maximum number of Pay-As-You-Go instances is exceeded: %s.-
400InvalidMarketImageChargeType.NotSupportThe specified chargeType of marketImage is unsupported.暂不支持该市场镜像的付费类型。
400InvalidInstanceName.MalformedThe specified parameter "InstanceName" is not valid.InstanceName参数不符合规则。
400InvalidDiskDescription.MalformedThe specified parameter "SystemDisk.DiskDescription or DataDisk.n.Description" is not valid.-
400InvalidParameter.ConflictThe specified region and cluster do not match.指定的地域与指定的集群不匹配。
400InvalidParameter.MismatchSpecified security group and virtual switch are not in the same VPC.指定的安全组与虚拟交换机不在同一专有网络中。
400InvalidNetworkType.MismatchSpecified parameter InternetMaxBandwidthIn or InternetMaxBandwidthOut conflict with instance network type.网络类型不匹配。
400InvalidNetworkType.MismatchSpecified parameter "InternetChargeType" conflict with instance network type.-
400InvalidPrivateIpAddressSpecified private IP address is not in the CIDR block of virtual switch.指定的私有 IP 地址不属于交换机的 CIDR 网段。
400InvalidPrivateIpAddress.MalformedSpecified private IP address is invalid.-
400InvalidPrivateIpAddress.DuplicatedSpecified private IP address is duplicated.指定的私网 IP 已经被使用,请您更换 IP 再重试。
400QuotaExceeded.PrivateIpAddressDon't have enough private IPs in this switch.-
400QuotaExceededLiving instances quota exceeded in this VPC.活跃的实例已达上限。
400IncorrectVSwitchStatusThe current status of virtual switch does not support this operation.指定的虚拟交换机处于 pending 状态,无法删除。
400InvalidParameter.MismatchSpecified virtual switch is not in the specified zone.指定的虚拟交换机在指定的可用区里不存在。
400ResourceNotAvailableResource you requested is not available in this region or zone.指定的地域或可用区不支持专有网络 VPC。
400MissingParameterThe input parameter "VSwitchId" that is mandatory for processing this request is not supplied.-
400InvalidDiskCategory.MismatchThe specified disk categories' combination is not supported.-
400InvalidIoOptimizedValue.ValueNotSupportedIoOptimized value not supported.不支持指定的I/O优化值。
400MissingParamterThe specified parameter "Period" is not null.-
400InvalidPeriodThe specified period is not valid.指定的时段不合法。
400InvalidDataDiskCategory.ValueNotSupportedThe specified parameter " DataDisk.n.Category " is not valid.-
400InstanceDiskCategoryLimitExceedThe 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 超出允许范围,或者快照的容量超过了指定磁盘类别的大小限制。
400InvalidParameterThe specified vm bandwidth is not valid.指定的虚拟机带宽无效。
400InvalidSystemDiskCategory.ValueNotSupportedThe specified parameter SystemDisk.Category is not valid.-
400InvalidParameter.BandwidthThe specified parameter Bandwidth is not valid.指定的 Bandwidth 不合法。
400InvalidIPAddress.AlreadyUsedThe specified IPAddress is already used by other resource.其他资源正在使用指定的 IpAddress 。
400InvalidUserData.SizeExceededThe specified parameter "UserData" exceeds the size.-
400InvalidUserData.NotSupportedThe specified parameter "UserData" only support the vpc and IoOptimized Instance.-
400InstanceDiskNumber.LimitExceedThe total number of specified disk in an instance exceeds.实例下磁盘数目超过限制。
400Account.ArrearageYour account has an outstanding payment.您的账号存在未支付的款项。
400InvalidDiskCategory.ValueNotSupportedThe specified parameter "DiskCategory" is not valid.-
400InvalidAutoRenewPeriod.ValueNotSupportedThe specified autoRenewPeriod is not valid.指定的参数 AutoRenewPeriod 不合法。
400QuotaExceed.AfterpayInstanceThe maximum number of Pay-As-You-Go instances is exceeded.按量付费的实例库存不足,请减少创建数量。
400InvalidSpotStrategyThe specified SpotStrategy is not valid.指定的 SpotStrategy 参数无效。
400InvalidSpotParam.EmptyZoneIDThe specified ZoneId is empty when SpotStrategy is set.设置 SpotStrategy 时 ZoneId 为空。
400InvalidSpotPriceLimitThe specified SpotPriceLimitis not valid.指定的 SpotPriceLimit 参数有误。
400InvalidSpotDurationThe specified SpotDuration is not valid.指定的 SpotDuration 参数有误。
400InvalidSpotAuthorizedThe specified Spot param is unauthorized.指定的 SpotDuration 参数值未获得授权。
400InvalidSpotPrepaidThe specified Spot type is not support PrePay Instance.指定的抢占式实例不支持包年包月的付费方式。
400InvalidSpotAliUidThe specified UID is not authorized to use SPOT instance.用户账户未获得创建抢占式实例的权限。
400InvalidTagKey.MalformedThe specified Tag.n.Key is not valid.指定的标签键参数有误。
400InvalidParameter.Bandwidth%s指定的带宽无效,请检查参数是否正确。
400InvalidDataDiskCategory.ValueNotSupported%s指定的数据磁盘类型无效。%s为变量,将根据调用API的实际情况动态返回错误信息。
400InvalidSystemDiskCategory.ValueNotSupported%s当前操作不支持此系统磁盘类型。
400InvalidParameter.Conflict%s您输入的参数无效,请检查参数之间是否冲突。%s为变量,将根据调用API的实际情况动态返回错误信息。
400InvalidInternetChargeType.ValueNotSupported%s暂不支持指定的网络计费方式,请确认相关参数是否正确。
400InvalidInstanceType.ValueNotSupported%s该操作暂不支持指定的实例类型。
400RegionUnauthorized%s该地域未被授权。%s为变量,将根据调用API的实际情况动态返回错误信息。
400Zone.NotOnSale%s该可用区暂时关闭了售卖。%s为变量,将根据调用API的实际情况动态返回错误信息。
400InvalidSystemDiskSize.ValueNotSupported%s当前操作不支持设置的系统盘大小。
400InvalidDataDiskSize.ValueNotSupported%s指定的数据盘容量无效。%s为变量,将根据调用API的实际情况动态返回错误信息。
400InvalidInstanceType.ValueNotSupportedThe specified parameter "KeyPairName" only support IoOptimized Instance.-
400OperationDeniedThe specified InstanceType or Zone is not available or not authorized.指定的实例规格或可用区不可用或者未授权。
400InvalidParameter.EncryptedIllegal%s您输入的参数无效,请确认您的加密是否合法。%s为变量,将根据调用 API 的实际情况动态返回错误信息。
400InvalidParameter.EncryptedNotSupported%s您输入的参数无效,暂时不支持您的加密操作。%s为变量,将根据调用API的实际情况动态返回错误信息。
400EncryptedOption.Conflict%s参数不支持(加密盘)。%s为变量,将根据调用API的实际情况动态返回错误信息。
400InvalidParameter.Encrypted.KmsNotEnabledThe encrypted disk need enable KMS.-
400InvalidParameter.KmsNotEnabledThe specified operation need enable KMS.当前操作需要开启KMS。
400InvalidSpotPriceLimit.LowerThanPublicPriceThe specified parameter "soptPriceLimit" can't be lower than current public price.-
400InvalidHpcClusterId.UnnecessaryThe specified HpcClusterId is unnecessary.无需指定参数 HpcClusterId。
400InvalidVSwitchId.NecessaryThe VSwitchId is necessary.参数 VSwitchId 不能为空。
400InvalidHpcClusterId.NecessaryThe HpcClusterId is necessary.参数 HpcClusterId 不能为空。
400InvalidHpcClusterId.NotFoundThe specified HpcClusterId is not found.指定的参数 HpcClusterId 不存在。
400InvalidHpcClusterId.CreatingThe specified HpcClusterId is creating.指定的 HPC 集群正在创建中。
400InvalidPeriodUnit.ValueNotSupportedThe specified parameter PeriodUnit is not valid.参数 PeriodUnit 无效。
400IncorrectImageStatusEncrypted snapshots do not support this operation.加密的快照不支持此操作。
400InvalidTagValue.MalformedThe specified Tag.n.Value is not valid.指定的标签值参数有误。
400InvalidSecurityGroup.NotInDefaultVpc%s该安全组不在默认专有网络下,请确认安全组参数是否正确。
400VpcNotFoundVpc is not found according to the specified VSwitch or the vpc does not belong to you.根据指定的 Vswitch 找不到对应的 VPC ,或该 VPC 不属于您。
400InvalidSpotInterruptionBehavior%sSpotInterruptionBehavior 不支持。
400OperationDenied.IllegalPaymentPolicyThe current payment policy is illegal, please connect your service provider to authenticate relative agreement.当前的付款政策是非法的,请联系您的服务提供商以认证相关协议。
400InvalidDeploymentOnHost%s该实例不能部署在指定的部署集上。
400InvalidInstanceChargeType.NotSupportThe Dedicated host not support the specified Instance charge type.此专有宿主机不支持指定的付费类型的实例。
400InvalidNetworkType.NotSupportedThe classic networkType not support create ECS on dedicatedHost.-
400InvalidDedicatedHostId.NotFoundThe specified DedicatedHostId does not exist.指定的专有宿主机不存在。
400InvalidDedicatedHostStatus.NotSupportOperation denied due to dedicated host status.专有宿主机当前的状态不支持此操作。
400IncorrectDedicatedHostStatusThe current status of the resource does not support this operation.当前资源的状态不支持此操作。
400ChargeTypeViolation.PostPaidDedicatedHostPrepaid instance onto postpaid dedicated host is not allowed.包年包月的实例无法添加到按量付费的专有宿主机上。
400InvalidPeriod.ExceededDedicatedHostInstance expired date can't exceed dedicated host expired date.-
400InvalidInstanceType.ValueUnauthorizedThe specified InstanceType is not authorize.您没有使用该实例规格的权限。
400DedicatedHostType.UnmatchedThe specified DedicatedHostType doesn?t match the instance type.指定的专有宿主机类型与实例类型不匹配。
400NoAvaliableDedicatedHostThere's no enough resource on the specified dedicated host.-
400NoAvaliableDedicatedHostNo available dedicated host or not enough resource on dedicated host.-
400InvalidParameter.AffinityThe specified Affinity is invalid.-
400InvalidParameter.TenancyThe specified Tenancy is invalid.-
400InvalidParam.TenancyThe specified Tenancy is invalid.您指定的参数 Tenancy 无效。
400InvalidParameter.CreditSpecificationThe specified CreditSpecification is not supported in this region.该地区不支持指定的信贷规范。
400IncorrectImageStatusThe specified image is an Alibaba Cloud Marketplace image. The sale of this image has ended. For more information, contact the image service provider.指定的镜像为阿里云市场镜像。此镜像的售卖已经结束。更多信息请联系镜像服务提供商。
400InvalidInstanceType.NotSupportedThe specified instanceType is not supported by the deployment set.当前部署集不支持您指定的实例规格,请选择其它实例规格。
400InvalidInstanceType.NotSupportedThe specified instanceType is not supported by the image architecture.-
400InvalidVpcZone.NotSupportedZone of the specified VSwitch is not available for creating, please try in other zones.指定的可用区不支持创建 DefaultVswitch ,请尝试其他可用区。
400IncorrectDefaultVpcStatusThe status of the default VPC is invalid.默认 VPC 的状态无效。
400InvalidParameter.EncryptedIllegalThe specified parameter Encrypted must be true when kmsKeyId is not empty.设置参数 KMSKeyId 后,您必须开启加密属性。
400IoOptimized.NotSupportedThe specified instance must be IoOptimized instance when kmsKeyId is not empty.设置 KMSKeyId 后,您必须使用 I/O 优化实例。
400InvalidClientToken.ValueNotSupportedThe ClientToken provided is invalid.指定的 ClientToken 不合法。
400OperationDeniedThe current user does not support this operation.您使用的账号暂不支持此操作。
400InvalidCapacityReservationId.NotFoundThe specified CapacityReservationId does not exist.-
400LackResourceThere's no enough resource on the specified capacity reservation.-
400Duplicate.TagKeyThe Tag.N.Key contain duplicate key.标签中存在重复的键,请保持键的唯一性。
400InvalidParameter.ArnsThe specified Arns is not valid.-
400InvalidOperation.NotSupportEnterpriseGroupThe specified instance type doesn't support enterprise level security group.-
400NoAvaliableDedicatedHostA dedicated host with sufficient available resources cannot be found.没有找到可用的专有宿主机
400IncorrectVSwitchStatusThe current status of vSwitch does not support this operation.vSwitch当前状态不支持该操作。
400InvalidOperation.MultiGroupTypeThe specified instance can't join different types of security group.-
400InvalidAccountStatus.PayAmountLimitExceededYour account is being restricted, because you have no default payment method or you are not authorized.-
400InvalidPerformanceLevel.MalformedThe specified parameter DataDisk.n.PerformanceLevel is not valid.-
400InvalidSecurityGroup.NetworkType%s-
400QuotaExceeded.PrepayDataDiskCapacityThe quota of prepay data disk capacity exceeds.-
400InvalidCustomInstanceType.NotSupportedThe specified custom instance type is invalid.-
400InvalidParameter%s无效的参数。
400QuotaExceeded.PrivateIpAddressThere is not enough private ip in the specified VSwitch.-
400InvalidOperation.EniCountExceededThe maximum number of eni in a enterprise security group is exceeded.企业安全组内网卡的数量达到了上限。
400AccountForbidden.ProductCreationLimitedThe commodity must be officially operated by Aliyun and in pay-as-you-go billing method.集团上云客户只能购买按量付费的 ECS,且不能购买第三方的商品比如由镜像市场提供的镜像。请检查参数,传入符合条件的参数重试。
400UnexpectedImageFamily.ImageIdSuppliedThe input parameter ImageFamily must be null when image id is set.当填写镜像ID时,参数ImageFamily必须为空。
400InvalidEncrypted.NotMatchEncryptAlgorithmThe specified parameter Encrypted must be true when EncryptAlgorithm is not empty.-
400InvalidEncrypted.NotMatchKmsKeyIdThe specified parameter Encrypted must be true when KmsKeyId is not empty.-
400InvalidEncrypted.NotMatchSnapshotThe specified parameter Encrypted is different from the Encrypted of the snapshot.-
400InvalidEncryptAlgorithm.NotMatchSnapshotThe specified parameter EncryptAlgorithm is different from the encrypt algorithm of the snapshot.-
400InvalidKmsKeyId.NotMatchSnapshotThe specified parameter KmsKeyId is different from the KmsKeyId of the snapshot.-
400InvalidEncryptAlgorithmThe specified parameter EncryptAlgorithm is not valid.-
400InvalidHttpEndpoint.NotSupportedThe specified HttpEndpoint not supported, you can use enabled(default) or disabled.指定的参数 HttpEndpoint 值非法,请使用enabled(默认)或者disabled。
400InvalidHttpTokens.NotSupportedThe specified HttpTokens not supported, you can use optional(default) or required.指定的参数 HttpTokens 值非法,请使用optional(默认)或者required。
400InvalidHttpPutResponseHopLimit.NotSupportedThe specified HttpPutResponseHopLimit not supported, more than 1 and less than 64 is reasonable.指定的参数 HttpPutResponseHopLimit 值非法,取值范围必须大于等于1且小于等于64。
400InvalidPrivateIpAddress.MalformedSpecified private IP address is malformed.指定的私有 IP 不合法。
400InvalidOperation.VpcHasEnabledAdvancedNetworkFeatureThe specified vpc has enabled advanced network feature.该VPC开启了高阶特性,不能创建低规格的ECS。
400InvalidChargeType.CapacityReservationNotSupported%s-
400InvalidPerformanceLevel.ValueNotSupportedThe current ZoneId or InstanceType does not support PL0 of cloud_essd.-
400InvalidKMSKeyId.NotSymmetricThe specified parameter KmsKeyId must be symmetric.-
400InvalidDedicatedHostClusterId.NotFoundThe specified DedicatedHostClusterId does not exist.-
400InvalidDedicatedHostClusterId.InValidThe specified Dedicated Host Cluster is invalid.-
400InvalidOperation.UserNotSupportedReseller user do not support purchase at the moment.-
400InvalidDeploymentSetId.NotFoundThe parameter DeploymentSetId is invalid.-
400MissingParameter.PrivatePoolOptionsIdThe specified PrivatePoolOptions.Id should not be null.PrivatePoolOptions.Id 参数不应为空。
400Invalid.PrivatePoolOptionsIdThe specified PrivatePoolOptions.Id is invalid.PrivatePoolOptions.Id 参数有误。
400Invalid.PrivatePoolOptionsIdThe parameter PrivatePoolOptions.Id should be null when PrivatePoolOptions.MatchCriteria is not Target.当 PrivatePoolOptions.MatchCriteria 参数值不为 Target 时,PrivatePoolOptions.Id 参数应为空。
400DedicatedHostNotSupportedDedicatedHost is not supported for PrivatePool.私有池不支持专有宿主机。
400SpotNotSupportedSpot is not supported for PrivatePool.私有池不支持抢占式实例。
400ClassicNetworkNotSupportedClassic network is not supported for PrivatePool.私有池不支持经典网络类型实例。
400Invalid.InstanceIdInstance does not exist.实例不存在。
400Invalid.PrivatePoolOptions.MatchCriteriaTarget mode does not support this operation.Target模式不支持本次操作。
400MissingParameter.PrivatePoolOptions.IdThe specified PrivatePoolOptions.Id should not be null.PrivatePoolOptions.Id 参数不能为空。
400Invalid.PrivatePoolOptions.IdThe PrivatePool does not exist.私有池不存在。
400Invalid.InstanceTypeThe InstanceType does not match the PrivatePool.实例类型与私有池不匹配。
400Invalid.InstanceChargeTypeThe InstanceChargeType does not match the PrivatePool.实例计费类型与私有池不匹配。
400Invalid.ZoneIdThe ZoneId does not match the PrivatePool.可用区与私有池不匹配。
400Invalid.PrivatePoolOptions.NoStockThe PrivatePool has been used up.-
400Invalid.PrivatePoolOptions.MatchCriteriaThe PrivatePoolOptions.MatchCriteria does not match the PrivatePool.指定的PrivatePoolOptions.MatchCriteria参数与私有池不匹配。
400InvalidPlatform.ValueNotSupportedThe Platform does not match the PrivatePool.指定的Platform参数与私有池不匹配。
400Invalid.PrivatePoolOptions.statusThe PrivatePool is expired or inactive.-
400Invalid.PrivatePoolOptions.statusThe PrivatePool status is not valid.-
400Invalid.PrivatePoolOptions.statusThe Instance should be created within 48 hours once the PrivatePool is started.-
400InvalidAliUidThe PrivatePool does not belong to the user of the Instance.私有池不属于创建实例的用户。
400Invalid.InstanceIdThe Instance dose not attached to a PrivatePool.实例未与私有池匹配。
400HibernationConfigured.InstanceTypeNotSupportThe specified instance type is not support.-
400HibernationConfigured.ImageNotEncryptedThe hibernation configured instance only support encrypted image.-
400HibernationConfigured.MemorySizeTooBigThe hibernation configured instance memory size is too big.-
400InvalidSystemDiskSize.LessThanMemSizeThe specified parameter SystemDisk.Size is less than the memory size.-
400InvalidCloudBoxZone.OperationNotSupportedThe cloud box zone does not support creating prepaid or encrypted resources.-
400InvalidParameter.KMSKeyId.CMKUnauthorizedThis operation for kmsKeyId is forbidden by KMS. If you need further assistance, you can contact the KMS Technical Support.-
400InvalidInternetMaxBandwidthOut.MalformedThe specified parameter InternetMaxBandwidthOut is not valid.指定的 InternetMaxBandwidthOut 参数不合法。
400InvalidInternetMaxBandwidthIn.MalformedThe specified parameter InternetMaxBandwidthIn is not valid.指定的 InternetMaxBandwidthIn 参数不合法。
400InvalidParameter.CloudboxNotSupported%s-
400NotSupportSnapshotEncrypted.ShareImage Shared snapshot creating encrypted disks with native snapshot encrypt is not supported.-
400QuotaExceed.DiskCapacityThe used capacity of disk type has exceeded the quota in the zone, %s.指定磁盘类型的已用容量超出可用区配额限制,您可以前往配额中心查询和申请提升磁盘容量配额。
400InvalidPeriod.ExceededDedicatedHostInstance expired date can not exceed dedicated host expired date.实例过期日期不能超过专有宿主机的过期日期。
400InvalidParameter.DataEncryptedKeyCreateFailedCreate kms data encrypted key fail. If you need further assistance, you can contact the KMS Technical Support.-
400InvalidDiskCategory.NotSupportedThe specified disk category is not supported.指定的云盘类型不支持当前操作。
400InvalidDestinationZone.DeploymentSetMismatchError happened, %s.如果实例加入的部署集是Lowlatency策略,且此部署集已有实例加入,此实例必须在已有实例所在可用区
400NoPermission.PriceThe operation requires price permission. Please either apply for permission from your main account, or set the parameter AutoPay as true.-
400InvalidParameter.DedicatedRegionNotSupportedThe specified action is rejected because the specified ECS instance in the dedicated region does not support public IP.专属云地域不支持的参数错误码
401InvalidRamRole.NotEcsRoleThe specified ram role is not authorized for ecs, please check your role policy.指定的 RAM 角色无权使用 ECS,请检查您的角色策略。
403InvalidDiskCategory.NotSupportedThe specified disk category is not support the specified instance type.指定的磁盘种类不支持该实例规格。
403ImageNotSubscribedThe specified image has not be subscribed.指定的镜像未在云市场镜像中订阅。
403OperationDeniedThe specified Image is disabled or is deleted.指定的镜像被禁用或被删除。
403InvalidSystemDiskCategory.ValueUnauthorizedThe disk category is not authorized.该磁盘类别未经授权。
403InvalidSnapshotId.NotReadyThe specified snapshot has not completed yet.指定的快照未完成。
403OperationDeniedThe specified snapshot is not allowed to create disk.指定快照不支持创建磁盘。
403InstanceDiskCategoryLimitExceedThe total size of specified disk category in an instance exceeds.磁盘种类总容量超过实例限制。
403InvalidDevice.InUseThe specified device has been occupied.指定的设备已经挂载了磁盘。
403ImageRemovedInMarketThe 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.指定的市场镜像不可用,或者指定的用户定义镜像包含产品代码,因为它基于从市场订购的镜像,并且市场中包含完全相同的产品代码的镜像已被删除。
403OperationDeniedThe creation of Instance to the specified Zone is not allowed.指定的可用区不支持创建实例。
403CategoryNotSupportedThe specified zone does not offer the specified disk category.指定的可用区没有提供该磁盘种类。
403OperationDeniedThe specified Zone or cluster does not offer the specified disk category or the speicified zone and cluster do not match.指定的可用区或集群中不存在指定磁盘类别,或指定的可用区与集群不匹配。
403OperationDenied.NoStockThe requested resource is sold out in the specified zone; try other types of resources or other regions and zones.库存不足。
403QuotaExceed.PortableCloudDiskThe quota of portable cloud disk exceeds.可卸载磁盘数量已达上限。
403OperationDeniedSales of this resource are temporarily suspended in the specified region; please try again later.指定的地域暂时关闭了此资源的售卖,请稍后重试。
403SecurityGroupInstanceLimitExceedThe maximum number of instances in a security group is exceeded.该安全组内已有的实例数量已达到最大限制。
403NodeControllerUnavailableThe Node Controller is temporarily unavailable.节点控制器暂不可用。
403RegionUnauthorizedThere is no authority to create instance in the specified region.用户未被授权在指定的地域创建实例。
403CategoryNotSupportedThe specified Zone or cluster does not offer the specified disk category.指定的可用区或集群没有提供该磁盘种类。
403InvalidSnapshotId.NotDataDiskSnapshotThe specified snapshot is system disk snapshot.指定的快照为系统磁盘快照。
403CategoryNotSupportedThe specified cluster does not offer the specified disk category.指定的集群没有提供该磁盘种类。
403DeleteWithInstance.ConflictThe specified disk is not a portable disk and cannot be set to DeleteWithInstance attribute.指定的磁盘不是可卸载磁盘,不支持随实例释放。
403InstanceDiskNumLimitExceedThe number of specified disk in an instance exceeds.实例下磁盘数目超过限制。
403IoOptimized.NotSupportedThe specified image is not support IoOptimized Instance.指定的镜像不支持 I/O 优化型实例。
403ImageNotSupportInstanceTypeThe specified image don't support the InstanceType instance.指定的镜像不支持选定实例规格的实例。
403InvalidDiskSize.TooSmallSpecified disk size is less than the size of snapshot.指定的磁盘容量小于快照容量。
403OperationDeniedThe type of the disk does not support the operation.此磁盘种类不支持指定的操作。
403InvalidDiskCategory.MismatchThe specified disk categories combination is not supported.不支持的磁盘种类搭配。
403IoOptimized.NotSupportedVpc is not support IoOptimized instance.该 VPC 不支持 I/O 优化型实例。
403OperationDeniedThe resource is out of usage.该实例不在运行状态,请您启动实例或检查操作是否合理。
403QuotaExceed.BuyImageThe specified image is from the image market, You have not bought it or your quota has been exceeded.您暂时不能使用指定的市场镜像。
403InvalidVSwitchId.NotFoundThe VSwitchId provided does not exist in our records.指定的虚拟交换机 ID 不存在。
403InvalidParameter.ResourceOwnerAccountResourceOwnerAccount is Invalid.指定的 ResourceOwnerAccount 不合法。
403InvalidUserData.ForbiddenUser not authorized to input the parameter "UserData", please apply for permission "UserData".-
403Zone.NotOpenThe specified zone is not granted to you to buy resources yet.用户未被授权购买指定的可用区的资源。
403Zone.NotOnSaleThe specified zone is not available for purchase.指定可用区已经售罄,请您更换实例规格或者更换地域创建。
403InvalidClusterId.NotFoundThe specified clusterId does not exist.指定的 ClusterId 不存在。
403InvalidResourceType.NotSupported%s-
403InvalidInstanceType.ZoneNotSupportedThe specified zone does not support this instancetype.指定的可用区里不支持指定的 InstanceType。
403InvalidPayMethodThe specified pay method is not valid.没有可用的付费方式。
403OperationDenied.ImageNotValidThe specified Image is disabled or is deleted.指定的镜像不存在。
403InvalidUserData.Base64FormatInvalidThe specified UserData is not valid.指定的 UserData 不合法。
403InstanceType.Offline%s实例规格因停售、供货不足等原因,不支持该操作。
403DependencyViolation.WindowsInstanceThe instance creating is window, cannot use ssh key pair to login.指定的实例是 Windows 操作系统,此类实例不支持 SSH 密钥对登录。
403RealNameAuthenticationErrorYour account has not passed the real-name authentication yet.您的阿里云账号尚未通过实名认证,请先实名认证后再操作。
403InvalidNetworkType.MismatchRamRoleRam role cannot be applied to instances of Classic network type.实例 RAM 角色不能被用于经典网络类型的实例,RAM 角色只能使用在 VPC 类型的实例上。
403InvalidUser.PassRoleForbiddenThe RAM user does not have the privilege to pass a RAM role.该 RAM 用户无权传递 RAM 角色。
403InvalidImage.NotSupportedThe specified image does not support vSGX instance.-
403InvalidAccountStatus.NotEnoughBalanceYour account does not have enough balance.账号余额不足,请您先充值再进行该操作。
403IncorrectVpcStatusCurrent VPC status does not support this operation.当前专有网络 VPC 的状态无法支持这个操作。
403InvalidParameter.NotMatch%s您输入的参数无效,请检查参数之间是否冲突。
403OperationDenied.InvalidNetworkType%s该网络类型不支持此操作。
403InvalidSpotInterruptionBehavior.ClassicNetworkNotSupportThe specified SpotInterruptionBehavior does not support Classic network Instance.该操作不支持经典网络类型的实例。
403InvalidSpotInterruptionBehavior.LocalDiskNotSupportThe specified SpotInterruptionBehavior does not support local disk instance.该操作不支持有本地磁盘的实例。
403OperationDenied.ImageNotValid%s当前镜像不支持此操作。
403QuotaExceed.PostPaidDiskLiving postPaid disks quota exceeded.按量付费磁盘数量已超出允许数量。
403QuotaExceed.DeploymentSetInstanceQuotaFullInstance quota in one deployment set exceeded.当前部署集内的实例数量已满额。
403InvalidVSwitch.DefaultVSwitchNotSupportThe specified zone in vpc can't support create default vSwitch.-
403OperationDenied.ImageNotValidThe specified image is not published in the region.当前地域暂未提供该镜像。
403OperationDenied.ImageNotValidThe specified image is not authorized.您没有使用此镜像的权限。
403OperationDenied.ImageNotValidThe specified image is not found in marketplace.云市场不存在指定的镜像。
403OperationDenied.LocalDiskUnsupportedThe configuration change is not allowed when the specified instance has local disks mounted.实例挂载本地盘后不支持规格变配。
403OperationDenied.InconsistentNetworkThe specified security group and vswitch are not in the same vpc.指定的安全组和交换机没有在同一个 VPC 下。
403OperationDeniedIf the network segment of the vswitch is the same as that of its VPC. Therefore, the VPC cannot create other vswitchs across the region.VPC 与虚拟交换机的网段相同,无法在多可用区内创建其他交换机。
403DefaultVswitch.ExistedThe default vswitch for VPC already exists.当前VPC中已经有了默认交换机。
403InvalidChargeType.ValueNotSupportedDeletion protection is only valid for postPaid instance, not for prePaid or spot instance.删除保护功能只能使用在按量付费资源上
403IncorrectInstanceStatusThe current status of the resource does not support this operation.该资源目前的状态不支持此操作。
403CategoryViolationThe specified instance does not support this operation because of its disk category.挂载有本地磁盘的实例不支持升降配。
403ResourcesNotInSameZoneThe specified instance and dedicated host are not in the same zone.指定的实例和专有宿主机不在同一个地域下。
403InvalidRegion.NotSupportThe specified region does not support byok.该地域不支持BYOK。
403UserNotInTheWhiteListThe user is not in byok white list.您不在byok白名单中,请加入白名单后重试。
403InvalidParameter.KMSKeyId.CMKNotEnabledThe CMK needs to be enabled.加密云盘设置了 KMSKeyId 后,CMK必须处于启用状态。您可以调用密钥管理服务的 DescribeKey 接口查询指定CMK的相关信息。
403InvalidParameter.KMSKeyId.KMSUnauthorizedECS service have no right to access your KMS.ECS 服务无权访问您的 KMS。
403SecurityRisk.3DVerificationWe have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。
403InvalidDisk.SystemDiskSizeThe specified SystemDiskSize beyond the permitted range.系统盘大小超出最大允许值。
403InsufficientBalanceYour account does not have enough balance.账户余额不足,请先充值再操作。
403OperationDeniedThe user profile is not complete; try complete your basic info in account management page.-
403Mayi.InternalErrorThe request processing has failed due to some unknown error.-
403InvalidNetworkTypeThe network type is not support in this region.-
403InvalidAccountStatusYour account status is invalid, please contact customer service.-
403UserNotInTheWhiteListThe user is not in Arns white list.-
403QuotaExceeded.PrivateIpAddress%s-
403InvalidVSwitchId.IpInvalid%s指定的私网 IP 无效。
403OperationDenied.PerformanceLevelNotMatchThe specified DataDisk.n.PerformanceLevel and DataDisk.n.Size do not match.-
403InvalidStorageSetName.MalformedSpecified parameter StorageSetName is not valid.-
403InvalidDescription.MalformedSpecified parameter Description is not valid.-
403InvalidMaxPartitionNumber.MalformedSpecified parameter MaxPartitionNumber is not valid.-
403InvalidParameter.StorageSetPartitionNumberSpecified parameter StorageSetPartitionNumber is not valid.-
403InvalidParameter.StorageSetIdSpecified parameter StorageSetId is not valid.-
403InvalidParameter.StorageSetZoneIdSpecified parameter StorageSetZoneId is not valid.-
403InvalidParameter.StorageSetZoneIdSpecified parameter ZoneNo does not match with StorageSet info.-
403QuotaExceed.Tags%s标签数超过可以配置的最大数量。%s为变量,将根据调用API的实际情况动态返回错误信息。
403OperationDenied.RegionIdNotSupportedRegion not support spot duration instance.-
403OperationDenied.FlavorNotSupportedFlavor not support spot duration instance.-
403OperationDenied.TimestampNotSupportedTimestamp not support spot duration instance.-
403OperationDenied.PrepayNotAvailablePrepay instance is not available now.-
403OperationDenied.PaygNotAvailablePay-as-you-go instance is not available now.-
403EnterpriseGroupLimited.MutliGroupTypeThe specified instance can not join multi SecurityGroup types.指定的实例不能同时加入普通安全组和企业安全组。您可以调用 DescribeSecurityGroups 查询指定安全组的类型。
403EnterpriseGroupLimited.InstanceTypeThe specified instance type does not support Enterprise SecurityGroup.-
403InternalError.AllocateUnderlayIpAllocate underlay ip for the instance error.实例分配UnderlayIp失败。
403OperationDenied.BidOwnResourceBid user can not own resource.-
403OperationDenied.CloudSSDNotSupportedThe specified available zone does not offer the cloud_ssd disk, use cloud_essd instead.指定的可用区不支持 cloud_ssd 类型的磁盘,请尝试使用 cloud_essd 类型的磁盘重试。
403InvalidVPCStatus.NotWorkingThe specified VPC subnet status is not working.-
403QuotaExceed.ElasticQuotaNo additional quota is available for the specified ECS instance type.您在当前地域选择的实例规格所要创建的台数超出系统限额,您可以选择其他地域、实例规格或减少台数重新购买,也可以前往ECS管理控制台或配额中心申请提高限额。
403QuotaExceed.ElasticQuotaThe number of the specified ECS instances has exceeded the quota of the specified instance type.您在当前地域选择的实例规格所要创建的台数超出系统限额,您可以选择其他地域、实例规格或减少台数重新购买,也可以前往ECS管理控制台或配额中心申请提高限额。
403QuotaExceed.ElasticQuotaThe number of vCPUs assigned to the ECS instances has exceeded the quota in the zone.您的全实例规格vCPU配额超出系统限额,您可以前往ECS管理控制台或配额中心申请提高限额。
403QuotaExceed.ElasticQuotaThe number of the specified ECS instances has exceeded the quota of the specified instance type, or the number of vCPUs assigned to the ECS instances has exceeded the quota in the zone.您在当前地域选择的实例规格所要创建的台数超出系统限额,或者全实例规格vCPU配额超出系统限额,您可以前往ECS管理控制台或配额中心申请提高限额。
403QuotaExceeded.PostpaidDataDiskCapacityThe quota of postpaid data disk capacity exceeds.按量付费数据盘使用容量超出配额。
403InvalidImageFamily.MissingAvailableImageThere is no available image related to the specified image family.-
403InvalidRegionId.NotSupportEncryptAlgorithmThe current region does not support creating encrypted disks with EncryptAlgorithm.-
403InvalidOperation.ResourceManagedByCloudProduct%s云产品托管的安全组不支持修改操作。
403InvalidDiskSize.TooSmallSpecified disk size is too small when choosing PL0 of cloud_essd.-
403DeleteWithInstance.ConflictThe specified image is from the image market, you cannot set DeleteWithInstance attribute to false.-
403Forbidden.OnlySupportEnterpriseGroup%s-
403HibernationConfigured.InstanceOperationForbiddenThe operation is not permitted due to limit of the hibernation configured instance.不符合开启休眠选项的实例的相关限制,操作不被允许。
403InstanceDiskLimitExceededThe amount of the disk on instance reach its limits.-
403InvalidInstanceType.NotSupportDiskCategoryThe instanceType of the specified instance does not support this disk category.指定的实例规格(InstanceType)不支持当前实例的云盘类别。请尝试更换其它实例规格。关于实例规格支持的云盘类型,请参见实例规格族文档。
403NotSupportSnapshotEncrypted.DiskCategoryThe 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.该磁盘类型不支持创建加密系统盘或以快照方式创建加密数据盘,请检查您输入的磁盘类型、加密参数,或者检查您是否做过账号云盘默认加密配置。
403InvalidEncrypted.DefaultEncryptionUnsupportedThe specified parameter Encrypted must be true when default encryption is enabled.开启云盘默认加密后新购云盘必须为加密云盘.
403InvalidOperation.PublicIpAddressNoStockThe public IP address for the specified Region or ChargeType of the instance is out of stock. Please try another Region or ChargeType.在指定的地域或付费类型条件下,实例公网IP地址库存不足。请尝试使用其它地域或付费类型。
403QuotaExceed.ElasticQuota%s .ECS用量超过配额上限,请到阿里云官网控制台申请提升配额。
404InvalidStorageClusterId.NotExistThe specified StorageClusterId does not exist in current region.-
404InvalidRegionId.NotFoundThe RegionId provided does not exist in our records.提供的RegionId不存在
404IoOptimized.NotSupportedThe specified instancetype is not support IoOptimized instance.-
404InvalidZoneId.NotFoundThe ZoneId provided does not exist in our records.指定的可用区 ID 不存在。
404InvalidSecurityGroupId.NotFoundThe specified SecurityGroupId does not exist.指定的安全组在该用户账号下不存在,请您检查安全组 ID 是否正确。
404InvalidDataDiskSnapshotId.NotFoundThe specified parameter "DataDisk.n.SnapshotId" is not valid.-
404InvalidClusterId.NotFoundThe ClusterId provided does not exist in our records.指定的 ClusterId 不存在。
404InvalidVSwitchId.NotFoundSpecified virtual switch does not exist.指定的虚拟交换机 ID 不存在。
404InvalidImageId.NotFoundThe specified ImageId does not exist.指定的镜像在该用户账号下不存在,请您检查镜像 ID 是否正确。
404OperationDeniedAnother Instance has been creating.-
404InvalidInstanceChargeType.NotFoundThe InstanceChargeType does not exist in our records.指定的实例计费方式不存在。
404DependencyViolation.IoOptimizedThe specified instancetype must be IoOptimized instance.指定的实例规格必须为I/O优化实例,请您检查实例规格是否正确。
404PaymentMethodNotFoundNo payment method has been registered on the account.账户尚未注册支付方式。
404HOSTNAME_ILLEGALThe specified parameter Hostname is not valid.-
404InvalidSystemDiskSize.LessThanImageSizeThe specified parameter SystemDisk.Size is less than the image size.指定的参数 SystemDisk.Size 小于镜像文件大小数值。
404InvalidSystemDiskSize.LessThanMinSizeThe specified parameter SystemDisk.Size is less than the min size.指定的系统盘小于最低容量。
404InvalidSystemDiskSize.MoreThanMaxSizeThe specified SystemDisk.Size parameter exceeds the maximum size.指定的系统盘大小超出最大容量。
404InvalidDataDiskSnapshotId.NotFoundThe specified parameter DataDisk.n.SnapshotId is not valid.指定的数据盘快照 ID 不合法。
404InvalidSystemDiskSizeThe specified parameter SystemDisk.Size is invalid.指定的 SystemDisk.Size 不合法。
404InvalidZoneId.NotFoundThe specified ZoneId does not exist.指定的可用区 ID 不存在。
404InvalidKeyPairName.NotFoundThe specified parameter KeyPairName does not exist in our records.密钥对不存在。
404InvalidRamRole.NotFoundThe specified RAMRoleName does not exist.指定的 RamRoleName 不存在。
404InvalidResourceGroup.NotFoundThe ResourceGroup provided does not exist in our records.资源组并不在记录中。
404InvalidMarketImage.NotFoundThe specified marketplace image does not exist, please change the imageId and try again.指定的市场镜像不存在,请更改参数后重试。
404DeploymentSet.NotFoundThe specified deployment set does not exist.指定的部署集不存在。
404InvalidParameter.KMSKeyId.NotFoundThe specified KMSKeyId does not exist.指定的参数 KMSKeyId 不存在。
404InvalidSecurityGroupId.NotFound%s指定的安全组 ID 不存在。
404InvalidDiskIds.NotPortableThe specified DiskId is not portable.指定的磁盘是不可移植的。
409OperationConflictRequest was denied due to conflict with a previous request,please try again later.-
429Throttling.ResourceThe request throttle by resource operation.-
500InternalErrorThe request processing has failed due to some unknown error.内部错误,请重试。
500InternalError%s内部错误。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误,请重试。
500InvalidImage.OSTypeThe image OSType does not support this instance type.这个镜像的操作系统不支持所选实例规格。

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

变更历史

变更时间变更内容概要操作
2024-01-30OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 403 变更
    删除错误码:400
    删除错误码:401
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500
2024-01-15OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 403 变更
    删除错误码:400
    删除错误码:401
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500
2023-10-10OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 400 变更
    删除错误码:401
    删除错误码:403
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500
2023-06-20OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 400 变更
    删除错误码:401
    删除错误码:403
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500
2023-05-08OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 403 变更
    删除错误码:400
    删除错误码:401
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500
2023-03-28OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 400 变更
    删除错误码:401
    删除错误码:403
    删除错误码:404
    删除错误码:409
    删除错误码:429
    删除错误码:500