全部產品
Search
文件中心

Elastic Compute Service:CreateInstance

更新時間:Sep 15, 2026

本介面是阿里雲 ECS 中用於建立執行個體的介面,支援建立一台包年包月或按量付費的 ECS 執行個體。您可透過此介面,依據自身需求靈活設定各類參數,實現執行個體的個人化建立。

介面說明

說明

本介面已停止迭代更新,建議您使用 RunInstances 介面。

請確保在使用該介面前,已充分了解 ECS 產品的收費方式和價格。

本介面為非同步介面,當前建立執行個體請求傳送成功後會返回執行個體 ID,執行個體的建立不是立即完成的,需要呼叫 DescribeInstanceStatus 檢視執行個體資訊,當返回資訊中的狀態為Stopped時代表建立成功,之後您可以透過 StartInstance 啟動執行個體。

使用須知

  • 建立執行個體會涉及資源計費,請確保您已了解雲端伺服器 ECS 的計費方式。更多資訊,請參見計費概述。

  • 請確保您建立的執行個體總數或全執行個體規格 vCPU 不會超出系統配額。更多資訊,請參見配額中心。

  • 建立專有網路 VPC 類型執行個體前,請預先在相應的阿里雲地域建立 VPC。

注意事項

  • 呼叫本介面,系統不會傳送執行個體建立成功的通知(含簡訊、電子郵件、站內信)。

  • 若執行個體計費方式為包年包月(PrePaid),在付款時預設會使用您可用的優惠券。

  • 執行個體記憶體為 512 MiB 時,不能使用除半年管道之外的 Windows Server 映像;執行個體記憶體為 4 GiB 以上時,不能使用 32 位元作業系統的映像。

  • 使用該介面建立的執行個體將不會分配公網 IP 位址,若公網頻寬大於 0,您可以呼叫 AllocatePublicIpAddress 分配;若公網頻寬為 0,您需要呼叫 ModifyInstanceNetworkSpec 調整頻寬之後再呼叫 AllocatePublicIpAddress 分配。

說明

單一地地域下,單一阿里雲帳號按固定頻寬計費的公網頻寬峰值總和存在限制,請參見公網頻寬限制。

使用建議

  • 產品選型:參見執行個體規格族或呼叫 DescribeInstanceTypes 檢視目標執行個體規格的效能資料,或者參見選型配置了解如何選擇執行個體規格。

  • 查詢庫存:呼叫 DescribeAvailableResource 檢視指定地域或可用區內的資源供給情況。

  • 自訂資料:若執行個體滿足使用執行個體自訂資料的限制,您可傳入 UserData 資訊。傳送 API 請求時,不會加密您設定的UserData資料,建議您不要以明文方式傳入機密的資訊,例如密碼和私密金鑰等。如果必須傳入,建議加密後以 Base64 的方式編碼後再傳入,在執行個體內部解密後使用。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ecs:CreateInstance

create

*全部資源。

*

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

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

是

執行個體所屬的地域 ID。您可以呼叫 DescribeRegions 檢視最新的阿里雲地域清單。

cn-hangzhou

ImageId

string

否

映像檔 ID,啟動執行個體時選擇的映像資源。如需使用雲端市場映像,您可以在雲端市場映像商詳細資料頁檢視ImageId。當您不透過指定ImageFamily選用映像系列最新可用映像時,此參數為必選。

ubuntu_18_04_64_20G_alibase_20190624.vhd

ImageFamily

string

否

映像系列名稱,透過設定該參數來取得當前映像系列內最新可用映像來建立執行個體。

  • 設定了ImageId,則不能設定該參數。

  • 未設定ImageId,則可以設定該參數。

hangzhou-daily-update

InstanceType

string

是

執行個體的資源規格。

ecs.g6.large

SecurityGroupId

string

否

指定新建立執行個體所屬於的安全性群組 ID。

sg-bp15ed6xe1yxeycg****

InstanceName

string

否

執行個體的名稱。長度為 2~128 個字元,支援 Unicode 中 letter 分類下的字元(其中包括英文、中文等)和數字。可以包含半形冒號(:)、底線(_)、半形句號(.)或短橫線(-)。如果沒有指定該參數,預設值為執行個體 ID。

k8s-node-[1,4]-alibabacloud

InternetChargeType

string

否

網路計費類型。取值範圍:

  • PayByBandwidth:按固定頻寬計費。

  • PayByTraffic(預設):按使用流量計費。

說明

按使用流量計費模式下的出入頻寬峰值都是頻寬上限,不作為業務承諾指標。當出現資源爭搶時,頻寬峰值可能會受到限制。如果您的業務需要有頻寬的保障,請使用按固定頻寬計費模式。

PayByTraffic

AutoRenew

boolean

否

是否要自動續費。當參數InstanceChargeType取值PrePaid時才生效。取值範圍:

  • true:自動續費。

  • false(預設):不自動續費。

true

AutoRenewPeriod

integer

否

每次自動續費的時長,當參數 AutoRenew 取值 True 時,該參數為必填參數。

PeriodUnit 為 Month 時,AutoRenewPeriod 取值:1、2、3、6、12。

2

InternetMaxBandwidthIn

integer

否

公網入頻寬最大值,單位為 Mbit/s。取值範圍:

  • 當所購出網頻寬小於等於 10 Mbit/s 時:1~10。預設值為 10。

  • 當所購出網頻寬大於 10 Mbit/s 時:1~InternetMaxBandwidthOut的取值,預設為InternetMaxBandwidthOut的取值。

50

InternetMaxBandwidthOut

integer

否

公網出頻寬最大值,單位為 Mbit/s。取值範圍為 0~100。

預設值為 0。

5

HostName

string

否

雲端伺服器的主機名稱。

  • 半形句號(.)或短橫線(-)不能作為首尾字元,更不能連續使用。

  • Windows 執行個體:字元長度為 2~15,不支援半形句號(.),不能全是數字。允許大小寫英文字母、數字和短橫線(-)。

  • 其他類型執行個體(Linux 等):字元長度為 2~64,支援多個半形句號(.),英文句號之間為一段,每段允許大小寫英文字母、數字和短橫線(-)。

LocalHostName

Password

string

否

執行個體的密碼。長度為 8 至 30 個字元,必須同時包含大小寫英文字母、數字和特殊符號中的三類字元。特殊符號可以是:

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

您需要注意:

  • 如果傳入 Password 參數,建議您使用 HTTPS 協定傳送請求,避免密碼外洩。

  • Windows 執行個體不能以正斜線(/)為密碼首字元。

  • 部分作業系統的執行個體不支援設定密碼,僅支援設定金鑰對。例如:Others Linux、Fedora CoreOS。

TestEcs123!

PasswordInherit

boolean

否

是否使用映像預設的密碼。使用該參數時,Password 參數必須為空,同時您需要確保使用的映像已經設定了密碼。

false

DeploymentSetId

string

否

部署集 ID。

ds-bp1brhwhoqinyjd6****

DeploymentSetGroupNo

integer

否

如果您設定的部署集對應的策略為部署集組高可用性策略(AvailabilityGroup)時,可以透過該參數指定執行個體在部署集中的分組號。取值範圍為 1~7。

1

ZoneId

string

否

執行個體所屬的可用區 ID。更多資訊,請參見 DescribeZones 取得可用區清單。

說明

如果您指定了VSwitchId參數,則指定的ZoneId參數必須和交換器所在的可用區保持一致。您也可以不指定ZoneId參數,系統將自動選擇指定的交換器所在的可用區。

預設值:空,系統自動選擇。

cn-hangzhou-g

ClusterId

string

否

執行個體所在的叢集 ID。

說明

該參數即將被棄用,為提高相容性,請盡量使用其他參數。

c-bp67acfmxazb4p****

ClientToken

string

否

保證請求冪等性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證冪等性。

123e4567-e89b-12d3-a456-426655440000

VlanId

string

否

虛擬私有雲 ID。

10

InnerIpAddress

string

否

執行個體的內網 IP。

192.168.**.**

SystemDisk.Size

integer

否

系統磁碟大小,單位為 GiB。取值範圍為:

  • 普通雲端硬碟:20~500

  • 其他類型雲端硬碟:20~2048

該參數的取值必須大於或等於 max{20, ImageSize}。

預設值:max{40, ImageSize} 。

40

SystemDisk.Category

string

否

系統磁碟的雲端硬碟種類。取值範圍:

  • cloud_efficiency:高效雲端硬碟。

  • cloud_ssd:SSD 雲端硬碟。

  • cloud_essd:ESSD 雲端硬碟。

  • cloud:普通雲端硬碟。

  • cloud_auto:ESSD AutoPL 雲端硬碟。

  • cloud_essd_entry:ESSD Entry 雲端硬碟。

說明

僅當InstanceType設定為通用運算型執行個體規格族 u1(ecs.u1)或經濟型執行個體規格族 e(ecs.e)時,該參數支援取cloud_essd_entry值。

已停售的執行個體規格且非 I/O 最佳化執行個體預設值為 cloud,否則預設值為 cloud_efficiency。

cloud_ssd

SystemDisk.DiskName

string

否

系統磁碟名稱。長度為 2~128 個字元,支援 Unicode 中 letter 分類下的字元(其中包括英文、中文和數字等)。可以包含半形冒號(:)、底線(_)、半形句號(.)或短橫線(-)。

預設值為空。

SystemDiskName

SystemDisk.Description

string

否

系統磁碟描述。長度為 2~256 個英文或中文字元,不能以http://或https://開頭。

預設值為空。

TestDescription

SystemDisk.PerformanceLevel

string

否

建立 ESSD 雲端硬碟作為系統磁碟使用時,設定雲端硬碟的效能等級。取值範圍:

  • PL0:單碟最高隨機讀寫 IOPS 1 萬。

  • PL1(預設):單碟最高隨機讀寫 IOPS 5 萬。

  • PL2:單碟最高隨機讀寫 IOPS 10 萬。

  • PL3:單碟最高隨機讀寫 IOPS 100 萬。

有關如何選擇 ESSD 效能等級,請參見 ESSD 雲端硬碟。

PL1

NodeControllerId

string

否

說明

該參數正在邀請測試中,暫不支援使用。

null

Description

string

否

執行個體的描述。長度為 2~256 個英文或中文字元,不能以http://或https://開頭。

預設值為空。

InstanceTest

VSwitchId

string

否

如果是建立 VPC 類型的執行個體,需要指定交換器 ID。您可以呼叫 DescribeVSwitches 查詢已建立的交換器的相關資訊。

說明

如果您指定了VSwitchId參數,則指定的ZoneId參數必須和交換器所在的可用區保持一致。您也可以不指定ZoneId參數,系統將自動選擇指定的交換器所在的可用區。

vsw-bp1s5fnvk4gn2tws0****

PrivateIpAddress

string

否

執行個體私網 IP 位址。該 IP 位址必須為交換器(VSwitchId)網段的空閒位址。

172.16.236.*

IoOptimized

string

否

是否為 I/O 最佳化執行個體。取值範圍:

  • none:非 I/O 最佳化。

  • optimized:I/O 最佳化。

已停售的執行個體規格執行個體預設值是 none。

其他執行個體規格預設值是 optimized。

optimized

UseAdditionalService

boolean

否

是否使用阿里雲提供的虛擬機器系統設定(Windows:NTP、KMS;Linux:NTP、YUM)。

true

InstanceChargeType

string

否

執行個體的付費方式。取值範圍:

  • PrePaid:包年包月。選擇該類付費方式時,您必須確認自己的帳號支援餘額支付/信用支付,否則將返回 InvalidPayMethod的錯誤提示。

  • PostPaid(預設):按量付費。

PrePaid

Period

integer

否

購買資源的時長,單位由PeriodUnit指定。當參數InstanceChargeType取值為PrePaid時才生效且為必選值。一旦指定了DedicatedHostId,則取值範圍不能超過專有宿主機的訂閱時長。取值範圍:

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

1

PeriodUnit

string

否

購買資源的時長。取值範圍:

Month。

預設值為 Month。

Month

UserData

string

否

執行個體自訂資料,需要以 Base64 方式編碼,原始資料最多為 32 KB。

ZWNobyBoZWxsbyBlY3Mh

SpotStrategy

string

否

執行個體的搶佔策略。當參數InstanceChargeType取值為PostPaid時生效。取值範圍:

  • NoSpot(預設):正常按量付費執行個體。

  • SpotWithPriceLimit:設定上限價格的搶佔式執行個體。

  • SpotAsPriceGo:系統自動出價,跟隨當前市場實際價格。

NoSpot

KeyPairName

string

否

金鑰對名稱。

說明

Windows 執行個體,忽略該參數。預設為空。即使填寫了該參數,仍舊只執行Password的內容。

KeyPairTestName

SpotPriceLimit

number

否

設定執行個體的每小時最高價格。支援最多 3 位小數,參數SpotStrategy取值為SpotWithPriceLimit時生效。

0.98

SpotDuration

integer

否

搶佔式執行個體的保留時長,單位為小時。預設值:1。取值範圍:

  • 1:建立後阿里雲會保證執行個體執行 1 小時不會被自動釋放;超過 1 小時後,系統會自動比較出價與市場價格、檢查資源庫存,來決定執行個體的持有和回收。

  • 0:建立後,阿里雲不保證執行個體執行 1 小時,系統會自動比較出價與市場價格、檢查資源庫存,來決定執行個體的持有和回收。

說明
  • 該參數目前只支援設定為 0 或 1。

  • 搶佔式執行個體按秒計費,建議您結合具體任務執行耗時來選擇合適的保留時長。

  • 執行個體回收前 5 分鐘阿里雲會透過 ECS 系統事件向您傳送通知。

1

SpotInterruptionBehavior

string

否

搶佔執行個體中斷模式。取值範圍:

預設值:Terminate。

Terminate

RamRoleName

string

否

執行個體 RAM 角色名稱。您可以使用 RAM API ListRoles 查詢您已建立的執行個體 RAM 角色。

RAMTestName

SecurityEnhancementStrategy

string

否

是否開啟安全性加固。取值範圍:

  • Active:啟用安全性加固,只對系統映像生效。

  • Deactive:不啟用安全性加固,對所有映像類型生效。

Active

ResourceGroupId

string

否

執行個體所在的企業資源群組 ID。

rg-bp67acfmxazb4p****

HpcClusterId

string

否

執行個體所屬的 HPC 叢集 ID。

hpc-bp67acfmxazb4p****

DryRun

boolean

否

是否只預檢此次請求。取值範圍:

  • true:傳送檢查請求,不會建立執行個體。檢查項目包括是否填寫了必需參數、請求格式、業務限制和 ECS 庫存。如果檢查不通過,則返回對應錯誤。如果檢查通過,則返回錯誤碼DryRunOperation。

  • false(預設):傳送正常請求,通過檢查後直接建立執行個體。

false

DedicatedHostId

string

否

專有宿主機 ID。

您可以透過 DescribeDedicatedHosts 查詢專有宿主機 ID 清單。

重要 專有宿主機不支援建立搶佔式執行個體,指定DedicatedHostId參數後,會自動忽略請求中的SpotStrategy和SpotPriceLimit設定。

dh-bp67acfmxazb4p****

CreditSpecification

string

否

設定突發效能執行個體的執行模式。取值範圍:

Standard

DeletionProtection

boolean

否

執行個體釋放保護屬性,指定是否支援透過主控台或 API( DeleteInstance )釋放執行個體。

  • true:開啟執行個體釋放保護。

  • false(預設):關閉執行個體釋放保護。

說明

該屬性僅適用於按量付費執行個體,且只能限制手動釋放操作,對系統釋放操作不生效。

false

HibernationOptions.Configured

boolean

否

說明

該參數正在邀請測試中,暫不支援使用。

false

Affinity

string

否

專有宿主機執行個體是否與專有宿主機關聯。取值範圍:

  • default:執行個體不與專有宿主機關聯。已啟用節省停機模式的執行個體,停機後再次啟動時,若原專有宿主機可用資源不足,則執行個體被放置在自動部署資源池的其他專有宿主機上。

  • host:執行個體與專有宿主機關聯。已啟用節省停機模式的執行個體,停機後再次啟動時,仍放置在原專有宿主機上。若原專有宿主機可用資源不足,則執行個體重新啟動失敗。

預設值為 default。

default

Tenancy

string

否

是否在專有宿主機上建立執行個體。取值範圍:

  • default:在非專有宿主機上建立執行個體。

  • host:在專有宿主機上建立執行個體。若您不指定DedicatedHostId,則由阿里雲自動選擇專有宿主機部署執行個體。

預設值為 default。

default

StorageSetId

string

否

儲存集 ID。

ss-bp1j4i2jdf3owlhe****

StorageSetPartitionNumber

integer

否

儲存集中的最大分區數量。取值範圍:大於或等於 2。

2

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****

DataDisk

array<object>

否

資料磁碟清單。

object

否

Category

string

否

資料磁碟 N 的雲端硬碟種類。取值範圍:

  • cloud_efficiency:高效雲端硬碟。

  • cloud_ssd:SSD 雲端硬碟。

  • cloud_essd:ESSD 雲端硬碟。

  • cloud:普通雲端硬碟。

  • cloud_auto:ESSD AutoPL 雲端硬碟。

  • cloud_essd_entry:ESSD Entry 雲端硬碟。
    說明

    僅當InstanceType設定為ecs.u1或ecs.e規格族時,該參數支援cloud_essd_entry。

  • elastic_ephemeral_disk_standard:彈性臨時碟-標準版。

  • elastic_ephemeral_disk_premium:彈性臨時碟-進階版。

I/O 最佳化執行個體的預設值為 cloud_efficiency,非 I/O 最佳化執行個體的預設值為 cloud。

cloud_ssd

DeleteWithInstance

boolean

否

資料磁碟是否隨執行個體釋放。

  • true:是。

  • false:否。

預設值為 true。

true

Description

string

否

資料磁碟描述。長度為 2~256 個英文或中文字元,不能以http://或https://開頭。

TestDescription

Device

string

否

資料磁碟的掛載點。

說明

該參數僅用於全映像(整機映像)情境。您可以透過將此參數設定為全映像中資料磁碟對應的掛載點,並修改對應的DataDisk.N.Size和DataDisk.N.Category參數,達到修改全映像中資料磁碟磁碟種類和大小的目的。

/dev/xvdb

DiskName

string

否

資料磁碟名稱。長度為 2~128 個字元,支援 Unicode 中 letter 分類下的字元(其中包括英文、中文和數字等)。可以包含半形冒號(:)、底線(_)、半形句號(.)或短橫線(-)。

DataDiskName

EncryptAlgorithm

string

否

說明

該參數暫未開放使用。

null

Encrypted

boolean

否

資料磁碟 N 是否加密。

  • true:是。

  • false:否。

預設值為 false。

false

KMSKeyId

string

否

雲端硬碟使用的 KMS 金鑰 ID。

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

PerformanceLevel

string

否

建立 ESSD 雲端硬碟作為資料磁碟使用時,設定雲端硬碟的效能等級。N 的取值必須和DataDisk.N.Category=cloud_essd中的 N 保持一致。取值範圍:

  • PL0:單碟最高隨機讀寫 IOPS 1 萬。

  • PL1(預設):單碟最高隨機讀寫 IOPS 5 萬。

  • PL2:單碟最高隨機讀寫 IOPS 10 萬。

  • PL3:單碟最高隨機讀寫 IOPS 100 萬。

有關如何選擇 ESSD 效能等級,請參見 ESSD 雲端硬碟。

PL2

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。

說明

該參數的取值必須大於或等於參數SnapshotId指定的快照的大小。

2000

SnapshotId

string

否

建立資料磁碟 N 使用的快照。N 的取值範圍為 1~16。

  • 指定參數DataDisk.N.SnapshotId後,參數DataDisk.N.Size會被忽略,實際建立的雲端硬碟大小為指定的快照的大小。

  • 不能使用早於 2013 年 7 月 15 日(含)建立的快照,請求會報錯並被拒絕。

s-bp17441ohwka0yuh****

StorageClusterId

string

否

專屬區塊儲存叢集 ID。如果您在建立 ECS 執行個體時,需要使用專屬區塊儲存叢集中的雲端硬碟資源作為資料磁碟,請設定該參數。

dbsc-j5e1sf2vaf5he8m2****

Arn

array<object>

否

說明

該參數正在邀請測試中,暫不支援使用。

object

否

AssumeRoleFor

integer

否

說明

該參數正在邀請測試中,暫不支援使用。

1234567890

RoleType

string

否

說明

該參數正在邀請測試中,暫不支援使用。

Primary

Rolearn

string

否

說明

該參數正在邀請測試中,暫不支援使用。

acs:ram::123456789012****:role/adminrole

Tag

array<object>

否

標籤列表。

object

否

標籤列表。

Key

string

否

執行個體、雲端硬碟和主網卡的標籤鍵。N 的取值範圍:1~20。一旦傳入該值,則不允許為空字串。最多支援 128 個字元,不能以aliyun或acs:開頭,不能包含http://或https://。

TestKey

Value

string

否

執行個體、雲端硬碟和主網卡的標籤值。N 的取值範圍:1~20。一旦傳入該值,可以為空字串。最多支援 128 個字元,不能包含http://或者https://。

TestValue

key

string

否

標籤鍵。

說明

為提高相容性,建議您盡量使用 Tag.N.Key 參數。

Test

value

string

否

標籤值。

說明

為提高相容性,建議您盡量使用 Tag.N.Value 參數。

Test

SystemDisk

object

否

系統磁碟相關參數,目前專屬區塊儲存叢集 ID(StorageClusterId)需要透過該參數設定參數值。

StorageClusterId

string

否

專屬區塊儲存叢集 ID。如果您在建立 ECS 執行個體時,需要使用專屬區塊儲存叢集中的雲端硬碟資源作為系統磁碟,請設定該參數。

dbsc-j5e1sf2vaf5he8m2****

ManagedHostId

string

否

平台管理的主機唯一識別碼,如 mh-f2d3647ca21****

mh-f2d3647ca21****

返回參數

名稱

類型

描述

樣本值

object

InstanceId

string

執行個體 ID。

i-bp67acfmxazb4p****

OrderId

string

訂單 ID。該參數只有建立包年包月 ECS 執行個體(請求參數InstanceChargeType=PrePaid)時有回傳值。

1234567890

RequestId

string

請求 ID。

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

TradePrice

number

訂單成交價。

0.165

樣本

正常返回樣本

JSON格式

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

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

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 InvalidInternetChargeType.ValueNotSupported The specified InternetChargeType is not valid. 指定的網路計費方式不合法。
400 InvalidParameter The specified parameter "InternetMaxBandwidthOut" is not valid.
400 InvalidSystemDiskCategory.ValueNotSupported The specified parameter " SystemDisk.Category " 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 InvalidInstanceType.ValueNotSupported The specified InstanceType does not exist or beyond the permitted range. 指定的執行個體規格不合法(超出可選範圍)。
400 InvalidDescription.Malformed The specified parameter "Description" is not valid. 指定的資源描述格式不合法。長度為 2-256 個字元,不能以 http:// 和 https:// 開頭。
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 InvalidDiskName.Malformed The specified parameter "SystemDisk.DiskName or DataDisk.n.DiskName" is not valid.
400 InvalidDiskDescription.Malformed The specified parameter "SystemDisk.DiskDescription" or "DataDisk.n.Description" is not valid. 參數 SyatemDisk.DiskDescription 或 DataDisk.n.Description 不合法。
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 OperationDenied The specified parameter "VlanId" is not valid or vlan has not enough IP address.
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 The maximum number of Pay-As-You-Go instances is exceeded: %s.
400 InvalidMarketImageChargeType.NotSupport The specified chargeType of marketImage is unsupported. 暫不支援該市場映像的付費類型。
400 InvalidInstanceName.Malformed The specified parameter "InstanceName" is not valid. 指定的執行個體名稱格式不合法。長度為 2-128 個字元,以英文字母或中文開頭,可包含數字、點號(.)、底線(_)或連字號(-)。不能以 http:// 和 https:// 開頭。
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 invalid.
400 InvalidPrivateIpAddress.Duplicated Specified private IP address is duplicated.
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 InvalidIoOptimizedValue.ValueNotSupported IoOptimized value not supported. 不支援指定的 I/O 最佳化值。
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. 磁碟種類總容量超過執行個體限制。
400 InvalidParameter.Bandwidth The specified parameter Bandwidth is not valid. 無效頻寬參數。
400 InvalidIPAddress.AlreadyUsed The specified IPAddress is already used by other resource. 其他資源正在使用指定的 IpAddress。
400 InvalidUserData.SizeExceeded The specified parameter "UserData" exceeds the size.
400 InvalidUserData.NotSupported The specified parameter "UserData" only support the vpc and IoOptimized Instance.
400 InstanceDiskNumber.LimitExceed The total number of specified disk in an instance exceeds. 執行個體下磁碟數目超過限制。
400 Account.Arrearage Your account has an outstanding payment. 帳戶餘額不足,請先儲值再操作。
400 InvalidDiskCategory.ValueNotSupported The specified parameter "DiskCategory" is not valid. 指定的系統磁碟類型和資料磁碟類型不支援。
400 InvalidAutoRenewPeriod.ValueNotSupported The specified autoRenewPeriod is not valid. 指定的參數 AutoRenewPeriod 不合法。
400 InvalidSpotStrategy The specified SpotStrategy is not valid. 指定的 SpotStrategy 參數無效。
400 InvalidSpotParam.EmptyZoneID The specified ZoneId is empty when SpotStrategy is set. 設定 SpotStrategy 時 ZoneId 為空。
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 InvalidTagKey.Malformed The specified Tag.n.Key is not valid. 指定的標籤鍵參數有誤。
400 RegionUnauthorized %s 使用者未被授權在指定的地域建立執行個體。
400 Zone.NotOnSale %s 指定可用區已經售罄,請您更換執行個體規格或者更換地域建立。
400 InvalidSystemDiskSize.ValueNotSupported %s 指定的 SystemDisk.Size 不合法。
400 InvalidParameter.EncryptedIllegal %s 內部錯誤,加密金鑰為空。
400 InvalidParameter.EncryptedNotSupported %s 您輸入的參數無效,暫時不支援您的加密操作。%s 為變數,將根據呼叫 API 的實際情況動態返回錯誤訊息。
400 EncryptedOption.Conflict %s 磁碟加密屬性衝突。
400 InvalidSpotPriceLimit.LowerThanPublicPrice The specified parameter "soptPriceLimit" can't be lower than current public price. 指定的參數 sotPriceLimit 不能低於目前的公開價格。
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 InvalidPeriodUnit.ValueNotSupported The specified parameter PeriodUnit is not valid. 參數 PeriodUnit 無效。
400 IncorrectImageStatus Encrypted snapshots do not support this operation. 複製映像失敗。
400 InvalidTagValue.Malformed The specified Tag.n.Value is not valid. 指定的標籤值參數有誤。
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 InvalidSpotInterruptionBehavior %s 不支援 SpotInterruptionBehavior。
400 OperationDenied.IllegalPaymentPolicy The current payment policy is illegal, please connect your service provider to authenticate relative agreement. 目前的付款政策是非法的,請聯絡您的服務提供者以認證相關協議。
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. 專用宿主機不支援傳統網路類型的執行個體。
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 InvalidPeriod.ExceededDedicatedHost Instance expired date can't exceed dedicated host expired date.
400 DedicatedHostType.Unmatched The specified DedicatedHostType doesn?t match the instance type. 指定的專用宿主機類型與執行個體類型不相符。
400 NoAvaliableDedicatedHost There's no enough resource on the specified dedicated host. 沒有找到可用的專用宿主機。
400 InvalidParameter.Affinity The specified Affinity is invalid.
400 InvalidParameter.Tenancy The specified Tenancy is invalid.
400 InvalidParam.Tenancy The specified Tenancy is invalid. 您指定的參數 Tenancy 無效。
400 InvalidParameter.CreditSpecification The specified CreditSpecification is not supported in this region. 該地區不支援指定的突增型效能執行個體的運作模式。
400 InvalidInstanceType.NotSupported The specified instanceType is not supported by the deployment set. 不支援指定的 InstanceType。
400 InvalidVpcZone.NotSupported Zone of the specified VSwitch is not available for creating, please try in other zones. 指定的可用區不支援建立 DefaultVswitch,請嘗試其他可用區。
400 IncorrectDefaultVpcStatus The status of the default VPC is invalid. 預設 VPC 的狀態無效。
400 IoOptimized.NotSupported The specified instance type must be an I/O optimized instance when the KMSKeyId parameter is specified. Please select an I/O optimized instance type and try again.
400 InvalidClientToken.ValueNotSupported The ClientToken provided is invalid. 指定的 ClientToken 不合法。
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 InvalidParameter.Arns The specified Arns is not valid. 該 Arns 參數無效,請檢查後重新傳遞。
400 InvalidOperation.NotSupportEnterpriseGroup The specified instance type doesn't support enterprise level security group.
400 InvalidOperation.MultiGroupType The specified instance can't join different types of security group.
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 InvalidSecurityGroup.NetworkType %s
400 QuotaExceeded.PrepayDataDiskCapacity The quota of prepay data disk capacity exceeds.
400 InvalidCustomInstanceType.NotSupported The specified custom instance type is invalid.
400 InvalidOperation.EniCountExceeded The maximum number of eni in a enterprise security group is exceeded. 企業安全性群組內網路卡的數量達到了上限。
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 Encrypted parameter must be set to true when EncryptAlgorithm is specified. Please adjust the parameters and try again.
400 InvalidEncrypted.NotMatchKmsKeyId The Encrypted parameter must be set to true when KMSKeyId is specified. Please adjust the parameters and try again.
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 EncryptAlgorithm is not valid. Ensure the value is a supported encryption algorithm such as AES-256.
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 KMSKeyId must be a symmetric key. Please use a symmetric KMS key such as an AES-256 key.
400 InvalidDedicatedHostClusterId.NotFound The specified DedicatedHostClusterId does not exist.
400 InvalidDedicatedHostClusterId.InValid The specified Dedicated Host Cluster is invalid.
400 InvalidOperation.UserNotSupported Reseller user do not support purchase at the moment.
400 InvalidDeploymentSetId.NotFound The parameter DeploymentSetId is invalid.
400 MissingParameter.PrivatePoolOptionsId The specified PrivatePoolOptions.Id should not be null. PrivatePoolOptions.Id 參數不應為空。
400 Invalid.PrivatePoolOptionsId The specified PrivatePoolOptions.Id is invalid. 當 PrivatePoolOptions.MatchCriteria 參數值不為 Target 時,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. 指定的 PrivatePoolOptions.MatchCriteria 參數與私有集區不匹配。
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. 指定的參數 InstanceChargeType 無效。
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 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 InvalidInternetMaxBandwidthOut.Malformed The specified parameter InternetMaxBandwidthOut is not valid.
400 InvalidInternetMaxBandwidthIn.Malformed The specified parameter InternetMaxBandwidthIn is not valid.
400 InvalidParameter.CloudboxNotSupported %s
400 NotSupportSnapshotEncrypted.ShareImage Shared snapshot creating encrypted disks with native snapshot encrypt is not supported.
400 QuotaExceed.DiskCapacity The used capacity of disk type has exceeded the quota in the zone, %s. 指定磁碟類型的已用容量超出可用區配額限制,您可以前往配額中心查詢和申請提升磁碟容量配額。
400 InvalidParameter.DataEncryptedKeyCreateFailed The ECS service is not authorized to access your KMS key. Please grant the ECS service permission to use the key and try again.
400 InvalidDiskCategory.NotSupported The specified disk category is not supported.
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 InvalidParameter.DedicatedRegionNotSupported The specified action is rejected because the specified ECS instance in the dedicated region does not support public IP. 專屬雲端非法參數錯誤碼。
400 InvalidParameter.KmsNotEnabled The operation failed because KMS is not activated. Please activate KMS in the KMS console and try again.
400 InvalidParameter.Encrypted.KmsNotEnable The operation failed because KMS is not activated. Please activate KMS in the KMS console and try again.
400 InvalidParam.EncryptedMismatch Creating a disk from a shared encrypted image requires encryption with your own KMS key. Please set the Encrypted parameter to true.
400 InvalidParameter.Encrypted Creating non-encrypted disks from encrypted snapshots is not allowed. Please set Encrypted to true or use an unencrypted snapshot.
400 QuotaExceeded.InternetBandwidth %s. 您目前帳號下,隨用隨付 ECS 執行個體的按固定頻寬計費公網頻寬超過了總頻寬配額限制。
400 InvalidVSwitchId.NotFound The specified VSwitch does not exist in the specified region. 指定的虛擬交換器 ID 不存在。
400 OperationDenied.TestAccountRetricted Test-account for testing has been prohibited from creating instance in this region. Please contact 400181. 測試帳號不允許在本地域建立執行個體。請聯絡成本與資源中心@高沖(400181)。
400 InvalidVSwitch.Ipv4NotEnabled The specify VSwitch of ECS does not support IPv4.
400 InvalidManagedHostId.DedicatedHostIdConflict The parameters 'ManagedHostId' and 'DedicatedHostId' cannot be specified at the same time. 不能同時指定 ManagedHostId 和 DedicatedHostId。
400 InvalidManagedHostId.ManagedPrivateSpaceIdConflict The parameters 'ManagedHostId' and 'ManagedPrivateSpaceId' cannot be specified at the same time. 不能同時指定 ManagedHostId 和 ManagedPrivateSpaceId。
400 InvalidManagedHostId.TenancyConflict The specified parameter 'ManagedHostId' requires 'Tenancy' to be 'managedHost'. 指定了 ManagedHostId 只能指定 Tenancy 為 managedHost 或者不指定 Tenancy。
401 InvalidRamRole.NotEcsRole The specified ram role is not authorized for ecs, please check your role policy. 指定的 RAM 角色未經授權。
500 InternalError The request processing has failed due to an internal error and you may retry later or contact support with the request ID.
500 InvalidImage.OSType The image OSType does not support this instance type. 這個映像的作業系統不支援所選的執行個體規格。
403 InvalidDiskCategory.NotSupported The specified disk category is not support the specified instance type.
403 ImageNotSubscribed The specified image has not be subscribed.
403 OperationDenied The specified Image is disabled or is deleted. 指定的快照不允許建立資料磁碟。
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 OperationDenied.NoStock The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. 指定的可用區或叢集中不存在指定磁碟類別,或指定的可用區與叢集不匹配。
403 QuotaExceed.PortableCloudDisk The quota of portable cloud disk exceeds.
403 SecurityGroupInstanceLimitExceed The maximum number of instances in a security group is exceeded. 安全性群組的執行個體數已達上限。
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 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 ImageNotSupportInstanceType The specified image don't support the InstanceType 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 QuotaExceed.BuyImage The specified image is from the image market, You have not bought it or your quota has been exceeded. 指定的映像來自映像市場。
403 InvalidVSwitchId.NotFound The VSwitchId provided does not exist in our records. 指定的虛擬交換器 ID 不存在。
403 InvalidParameter.ResourceOwnerAccount ResourceOwnerAccount is Invalid. 指定的 ResourceOwnerAccount 不合法。
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 specified zone is not available for purchase. 指定可用區已經售罄,請您更換執行個體規格或者更換地域建立。
403 InvalidClusterId.NotFound The specified clusterId does not exist. 指定的 ClusterId 不存在。
403 InvalidResourceType.NotSupported %s 不支援該資源類型。
403 InvalidInstanceType.ValueNotSupported The specified InstanceType does not exist or beyond the permitted range.
403 InvalidInstanceType.ZoneNotSupported The specified zone does not support this instancetype. 指定的可用區裡不支援指定的 InstanceType。
403 InvalidPayMethod The specified pay method is not valid.
403 OperationDenied.ImageNotValid The specified Image is disabled or is deleted.
403 InvalidUserData.Base64FormatInvalid The specified UserData is not valid.
403 InstanceType.Offline %s 您指定的執行個體規格已下線,請選擇其它規格的執行個體。
403 DependencyViolation.WindowsInstance The instance creating is window, cannot use ssh key pair to login. 金鑰對不支援 Windows 執行個體。
403 RealNameAuthenticationError Your account has not passed the real-name authentication yet. 您的阿里雲帳號尚未通過實名認證,請先實名認證後再操作。
403 InvalidNetworkType.MismatchRamRole Ram role cannot be applied to instances of Classic network type. 執行個體 RAM 角色不能被用於傳統網路類型的執行個體,RAM 角色只能使用在 VPC 類型的執行個體上。
403 InvalidUser.PassRoleForbidden The RAM user does not have the privilege to pass a RAM role. 該 RAM 使用者無權傳遞 RAM 角色。
403 InvalidImage.NotSupported The specified image does not support vSGX instance. 指定的虛擬 TPM 執行個體需要 UEFI 映像。
403 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance.
403 IncorrectVpcStatus Current VPC status does not support this operation.
403 InvalidParameter.NotMatch %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 QuotaExceed.DeploymentSetInstanceQuotaFull Instance quota in one deployment set exceeded.
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 InvalidChargeType.ValueNotSupported Deletion protection is only valid for postPaid instance, not for prePaid or spot instance. 執行個體計費方式不支援指定的操作。
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 InvalidRegion.NotSupport The specified region does not support byok. 不支援指定的地域。
403 UserNotInTheWhiteList The user is not in byok white list. 使用者不在共用區塊儲存白名單中,請您提交工單申請白名單。
403 InvalidParameter.KMSKeyId.KMSUnauthorized The ECS service is not authorized to access your KMS key. Please grant the ECS service permission to use the key and try again.
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 InvalidDisk.SystemDiskSize The specified SystemDiskSize beyond the permitted range. 系統磁碟大小超出最大允許值。
403 InsufficientBalance Your account does not have enough balance.
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 虛擬交換器下的私有 IP 已經被使用完,請您使用其他的虛擬交換器。
403 InvalidVSwitchId.IpInvalid %s 指定的私網 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 QuotaExceed.Tags %s 標籤數超過可以設定的最大數量。%s 為變數,將根據呼叫 API 的實際情況動態返回錯誤訊息。
403 OperationDenied.RegionIdNotSupported Region 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.PrepayNotAvailable Prepay instance is not available now.
403 OperationDenied.PaygNotAvailable Pay-as-you-go instance is not available now.
403 EnterpriseGroupLimited.MutliGroupType The specified instance can not join multi SecurityGroup types. 指定的執行個體不能同時加入普通安全性群組和企業安全性群組。您可以呼叫 DescribeSecurityGroups 查詢指定安全性群組的類型。
403 EnterpriseGroupLimited.InstanceType The specified instance type does not support Enterprise SecurityGroup.
403 InternalError.AllocateUnderlayIp Allocate underlay ip for the instance error. 執行個體分配 UnderlayIp 失敗。
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 InvalidVPCStatus.NotWorking The specified VPC subnet status is not working.
403 QuotaExceed.ElasticQuota No additional quota is available for the specified ECS instance type. 您在當前地域選擇的執行個體規格所要建立的台數超出系統限額,或者全執行個體規格 vCPU 配額超出系統限額,您可以前往 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 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 NotSupportSnapshotEncrypted.DiskCategory The specified disk category does not support re-encrypting a disk with a new KMSKeyId from a snapshot. Please use a disk category that supports encryption such as cloud_essd.
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 InvalidParameter.KMSKeyId.CMKNotEnabled The specified KMS key must be in an enabled state. Please enable the key in the KMS console and try again.
403 InvalidParameter.KMSKeyId.CMKUnauthorized The specified KMS key is not authorized for the ECS service. Please grant the ECS service permission to use the key in the KMS console and try again.
403 InvalidEncrypted.NotMatchDiskDefaultEncryption The operation failed because default disk encryption is enforced on your account. Please set the Encrypted parameter to true.
403 InvalidEncrypted.NotMatchSnapshot The Encrypted parameter must be set to true when creating disks from encrypted snapshots. Please set Encrypted to true or use an unencrypted snapshot.
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. 指定的儲存叢集 ID 在目前地域不存在。
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 指定的 RegionId 不存在,請您檢查此產品在該地域是否可用。
404 IoOptimized.NotSupported The specified instancetype is not support IoOptimized instance.
404 InvalidZoneId.NotFound The ZoneId provided does not exist in our records.
404 InvalidSecurityGroupId.NotFound The specified SecurityGroupId does not exist. 指定的安全性群組在該使用者帳號下不存在,請您檢查安全性群組 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 OperationDenied The specified Image is disabled or is deleted.
404 InvalidVSwitchId.NotFound Specified virtual switch does not exist. 指定的虛擬交換器 ID 不存在。
404 InvalidImageId.NotFound The specified ImageId does not exist. 指定的映像在該使用者帳號下不存在,請您檢查映像 ID 是否正確。
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 SystemDisk.Size parameter exceeds the maximum size.
404 InvalidParameter The specified vm bandwidth is not valid.
404 InvalidSystemDiskSize The specified parameter SystemDisk.Size is invalid. 指定的 SystemDisk.Size 不合法。
404 InvalidKeyPairName.NotFound The specified parameter KeyPairName does not exist in our records.
404 InvalidRamRole.NotFound The specified RAMRoleName does not exist. 指定的 RamRoleName 不存在。
404 InvalidResourceGroup.NotFound The ResourceGroup provided does not exist in our records. 資源群組並不在記錄中。
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 InvalidInstanceType.ValueNotSupported The specified InstanceType does not exist or beyond the permitted range.
404 InvalidParameter.KMSKeyId.NotFound The specified KMSKeyId does not exist. Please verify that the key ID is correct and that the key resides in the current region.
404 InvalidDiskIds.NotPortable The specified DiskId is not portable.
429 Throttling.Resource The request throttle by resource operation. 請求被資源操作流控。
409 OperationConflict Request was denied due to conflict with a previous request,please try again later. 請求衝突,請稍等一段時間重試,或者提交工單回饋。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。