全部產品
Search
文件中心

ENS:CreateDisk

更新時間:Jul 07, 2026

呼叫 CreateDisk 建立一塊隨用隨付或包年包月資料磁碟。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

ens:CreateDisk

create

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

InstanceChargeType

string

執行個體付費方式,當前僅支援 PostPaid(隨用隨付)。

枚舉值:

  • PostPaid :

    隨用隨付。

PostPaid

EnsRegionId

string

節點 ID。

cn-chengdu-telecom

Category

string

磁碟種類。取值:

  • 高效雲端硬碟:cloud_efficiency

  • 全閃雲端硬碟:cloud_ssd

枚舉值:

  • cloud_efficiency :

    高效雲端硬碟。

  • cloud_ssd :

    全閃雲端硬碟。

  • local_hdd :

    本機 HDD 磁碟。

  • ssd:local_ssd :

    本機 SSD 磁碟。

cloud_efficiency

Size

string

磁碟大小,單位:GiB。

20

SnapshotId

string

建立雲端硬碟使用的快照。

SnapshotId 參數和 Size 參數存在以下限制:

  • 如果 SnapshotId 參數對應的快照容量大於設定的 Size 參數值,實際建立的雲端硬碟大小為指定快照的大小。

  • 如果 SnapshotId 參數對應的快照容量小於設定的 Size 參數值,實際建立的雲端硬碟大小為指定的 Size 參數值。

s-897654321****

Encrypted

boolean

是否加密雲端硬碟。取值範圍:

  • true:是

  • false(預設值):否

false

KMSKeyId

string

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

說明

如果 Encrypted 置為 trueKMSKeyId 為空時則使用服務預設金鑰。

0e478b7a-4262-4802-b8cb-00d3fxxxxx

DiskName

string

磁碟名稱。

yourDiskName

Tag

array<object>

標籤清單。一次呼叫最多支援新增 20 個標籤。

object

標籤清單。

一次呼叫最多支援 20 個標籤。

Key

string

執行個體的標籤鍵。N 的取值範圍為 1~20

  • 不能以 aliyunacs:http://https:// 開頭。

  • 最多支援 64 個字元。

  • 不允許傳入空字串。

pro

Value

string

Topic 的標籤值。KeyValue 值必須同時輸入或同時不輸入。若同時輸入表示根據 Tag 篩選符合條件的 Topic,若不輸入表示查詢所有 Topic。

  • N 的取值範圍為 1~20。

  • 如果輸入該值,取值允許為空字串。

  • 最多支援 128 個字元,不能以 aliyun 和 acs: 開頭,不能包含 http:// 或者 https://。

tagValue

InstanceBillingCycle

string

返回參數

名稱

類型

描述

樣本值

object

返回結構體。

RequestId

string

請求 ID。

7030AB96-57CF-1C68-9FEE-D60E547FD79C

OrderId

string

訂單 ID,多個 ID 之間用半形逗號(,)分隔。

說明

只有預付費返回訂單號,隨用隨付不返回。

21127020370****

InstanceIds

array

執行個體 ID 集合。

string

執行個體 ID 清單。

d-5rpvziragkacvop665m3h****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "7030AB96-57CF-1C68-9FEE-D60E547FD79C",
  "OrderId": "21127020370****",
  "InstanceIds": [
    "d-5rpvziragkacvop665m3h****"
  ]
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Invalid%s The specified parameter %s is invalid.
400 Missing%s You must specify the parameter %s.
400 Stock.NotEnough The inventory of the specified zone is insufficient.Please contact the product.
400 ens.interface.error Failed to call API.
400 ens.buy.store.empty Insufficient inventory of purchased resources.
400 SaleControlVerificationFailedDiskSpec Cloud disk capacity sales constraint verification failed, please re-match, or contact the product.
400 OrderFailed Order failed, please try again.
400 SystemUseCouponFailed Failed to use coupon.
400 SystemUseStoredCardFailed Failed to use stored value card.
400 System.SystemError system error.
400 SystemCanRefundCheckFailed The business rule check of the cloud product fails, and this order cannot be refunded.
400 SystemOtsSystem ots storage error.
400 SystemQueryImmortalError Failed to call Juxiange.
400 SystemQueryInstanceInfoFailed Failed to find instance information.
400 SystemResellerPayCalRefundUnitError Ecological payment channel calculation unsubscribe information error.
400 SystemSaleValidateFailed Sales Expression Validation System Error.
400 SystemTransferDeleteOldResourceFailed Failed to delete the transferred instance in the transfer order.
400 SystemUnSupportOperationType Unsupported operation type.
400 RiskRiskControlRejection Risk Control Rejection.
400 AuthRamAuthFailed ram sub-account authentication failed.
400 CommodityInvalidComponent The module you purchased is illegal, please re-select.
400 CommodityInvalidItemCode Specification code illegal.
400 PriceHsfTimeoutError Time out when calling the request for quotation interface.
400 PricePatingConfigError Inquiry related goods configuration error.
400 PricePricingPlanResultNotFound Pricing plan price result not found.
400 PriceRatingGetRatingpricingPlan Obtain a valid pricing plan exception.
400 OrderAbnormalResourceStatusForRenew Invalid resource status for renewal.
400 OrderAccountStatusIllegal Illegal account status.
400 OrderArrearage User Arrears.
400 OrderBidUserOrderForbidden Bid users cannot buy on the official website.
400 OrderCaptureFailed The paid order of the instance has not been deducted successfully.
400 OrderExistsReleasedInstances There are already released instances.
400 OrderGroupOrderSizeOverflow The quantity of bound combined payment order exceeds the limit.
400 OrderHomeCurrencyCanNotDowngrade Users in current currency cannot downgrade.
400 OrderHomeCurrencyCanNotUpgradeByValueTransfer Users of current currency cannot upgrade through residual value transfer.
400 OrderInstanceHasInactiveChange Instances exist temporary upgrade.
400 OrderInstHasUnpaidOrder The instance has an unpaid order.
400 OrderInstHasUnsettledBills The instance has an unsettled bill.
400 OrderLatestOrderIsHandling Recent order is being processed, please try again later.
400 OrderMainOrderSizeOverflow The quantity of the main order exceeds the limit.
400 OrderMissingModuleInfoError Module parameter not specified.
400 OrderNoRealNameAuthentication No real-name authentication.
400 OrderNotFound The specified order information is not found.
400 OrderOpend You have activated this product.
400 OrderPeriodInvalid Illegal order cycle.
400 OrderQuantityInvalid Illegal quantity ordered.
400 OrderQueryInstanceError Query instance error.
400 OrderQueryInstanceNotExists Instance data does not exist.
400 OrderQueryOrderExchangeRateFail Failed to query order exchange rate information.
400 OrderQueryUserSettleInfoFail Failed to query user settlement information.
400 OrderQuotaExceeded Quantity exceeds limit.
400 OrderSysConstraintInvalid System constraint check failed.
400 OrderTradeCompleteSettleInfoFail Failed to complete the order settlement currency amount information.
400 TradeTradeOrderAfterPayCheckError You have already paid for the subsequent orders of this instance. The current order has been automatically voided and you cannot pay any more.
400 PurchaseExistRenewchangeProd There is a renewal change subscription that has not yet taken effect.
400 PurchaseExistToBeValidProdRuleError Currently, there are temporary orders that are not in effect, and the upgrade operation cannot be performed.
400 PurchaseExistToBeValidRenewChangeProdRuleError Currently, there is an uneffective renewal change subscription, and temporary upgrade operation cannot be performed.
400 PurchaseExistValidProdRuleError Currently, there is a temporary order in effect, and operations such as upgrade/downgrade/expansion/pre-transfer cannot be performed.
400 ProductInstanceReleased Instance released.
400 ProductInstanceTypeNotSupported The instance type is not supported.
400 PatRiskRejectForTradeData Payment order problem leads to risk control rejection.
400 PayAccountBookNotExist There is no insufficient account balance in the account book, please retry after recharging.
400 PayAmountLimitExceeded Payment limit exceeded, please resubmit.
400 PayBeforePayRiskRuleValidateFailed The payment was blocked by risk control, and the payment failed.
400 PayCounponNotExist Counpon does not exist.
400 PayCouponAmountNotEnough Insufficient voucher balance or expired.
400 PayCouponNotMeetConsumptionRule The coupon does not meet the conditions for use.
400 PayCurrencyInconsistency Currency mismatch.
400 PayCurrencyNotSupported Currency not supported.
400 PayForbiddenNoReasonFefund Banned five days no reason refund.
400 PayHsfTimeoutError Call payment system timeout.
400 PayInsufficientBalance Account balance is insufficient, please recharge and try again.
400 PayInvalidCreditCard Invalid credit card.
400 PayInvalidPayMethod Illegal payment method.
400 PayMegrePayOrderHasThanOneChagreChannel Payment failed, please retry or submit work order feedback.
400 PayNoCreditCard No valid payment method, please check the payment method and try again.
400 PayOrderPayTimeInvalid Order effective time is invalid.
400 PayPartRefundNotSupport Not Capture, no partial refund.
400 PayPayChannelPayOrderInvalidStatus Illegal status of payment order in payment channel.
400 PayPayChannelPayOrderNotExist Payment channel payment order does not exist.
400 PayPayerAccountIllegal Illegal payment account.
400 PayPayFailedParentRelationchanged If the financial custody relationship changes, please void the order and place a new order for payment.
400 PayPayForbidUserCoupon Coupon prohibited for orders.
400 PayQueryAvailableAmountFailed Failed to query user availability, please try again later.
400 PayQueryAvailableEnduserAmountFailed Failed to query the availability of quota direct customer main user, please try again later.
400 PayQueryParentRelationshipFailed Failed to query current user hosting relationship, please try again later.
400 PayQueryPayChangeChannelNotEqual Multi-order payment channels are inconsistent, please check whether the original order data payment channel is correct.
400 PayRefundFailed Accumulated refund amount exceeds payment order amount.
400 PayResellerPayGetUrlError Order payment failed, please try again later.
400 PayRiskRejectForPayerAccount Payment account problem leads to risk control rejection.
400 PayStoredCardNotExist Stored value card does not exist.
400 PaySystemError Error calling payment system.
400 PayTaxCalcFailed Failed to get user tax address.
400 PayWithholdingAgreementIllegal Withholding Agreement Status Illegal.
400 AccountAliyunAccountFrozen Alibaba Cloud account is frozen.
400 AccountAliyunAccountNotExist Alibaba Cloud account does not exist.
400 RefundRefundInstanceNotFound Unable to find instance information.
400 RefundRefundNoValidProd Refund is not available to unsubscribe.
400 RefundRefundParamInvalid Abnormal refund parameter.
400 RefundRefundQueryOrderFail Failed to query order for refund field.
400 SystemConcurrentOperate Concurrent operation causes failure.
400 PricePricingPlanNotFound Pricing plan tree not found.
400 OrderInstanceHasTempUpgrade Instances exist temporary upgrade.
400 PayQueryParentRelationchangedFailed The financial custody relationship may change, please refresh and pay again.
400 PayforCreditPayInsufficientBalance Insufficient quota, please contact your channel partner to increase the quota.
400 PayforAccountMoneyValidateError The available amount of your channel partner's account is insufficient, please contact your channel partner to recharge in time.
400 BasicInfoUncompleted You have not completed your basic personal information. Please complete the information and re-operate it.
400 SaleControl.VerificationFailed You did not pass the salecontrol verification.Please contact the product.
400 NoPermission Permission denied.
400 InvalidParameter.%s The specified field %s invalid. Please check it again.

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

變更歷史

更多資訊,參考變更詳情