日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ModifyDiskChargeType - 修改實例上云盤計費方式

轉換一臺包年包月ECS實例上所掛載的數據盤的計費方式。

接口說明

更換計費方式后,默認自動扣費。您需要確保賬戶余額充足,否則會生成異常訂單,此時只能作廢訂單。如果您的賬戶余額不足,可以將參數 AutoPay 置為 false,此時會生成正常的未支付訂單,您可以登錄阿里云費用與成本后,在我的訂單頁面支付。

使用該接口時,請注意:

  • 按量付費實例僅支持掛載按量付費云盤,不支持修改掛載云盤的計費方式。
  • 掛載的實例不能為到期停機狀態。
  • 更換計費方式前后的價格差退款會退還到您的原付費方式中,已使用的代金券不退回。
  • 每塊云盤成功修改計費方式一次,五分鐘內不能再次修改。
  • 開啟多重掛載特性的云盤,僅支持按量付費的計費方式,不能轉換為包年包月的計費方式。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

當前API暫無授權信息透出。

請求參數

名稱類型必填描述示例值
InstanceIdstring

云盤掛載的實例 ID。

i-bp1i778bq705cvx1****
RegionIdstring

實例所屬的地域 ID。您可以調用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou
DiskIdsstring

云盤 ID 列表,一個帶有格式的 JSON Array,最多支持 16 個 ID,用半角逗號(,)隔開。

["d-bp67acfmxazb4ph****", "d-bp67acfmxazb4pi****", … "d-bp67acfmxazb4pj****"]
AutoPayboolean

是否自動支付。取值范圍:

  • true(默認):自動支付。您需要確保賬戶余額充足,如果賬戶余額不足會生成異常訂單,只能作廢訂單。
  • false:只生成訂單不扣費。如果您的賬戶余額不足,會生成正常的未支付訂單,此訂單可登錄阿里云費用與成本后,在我的訂單頁面支付。
true
ClientTokenstring

保證請求冪等性。從您的客戶端生成一個參數值,確保不同請求間該參數值唯一。ClientToken 只支持 ASCII 字符,且不能超過 64 個字符。更多信息,請參見如何保證冪等性

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

云盤計費方式。取值范圍:

  • PrePaid(默認):按量付費數據盤轉換為包年包月數據盤。
  • PostPaid:包年包月數據盤轉換為按量付費數據盤。
PostPaid

返回參數

名稱類型描述示例值
object
OrderIdstring

生成的訂單 ID。

123456****
RequestIdstring

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "OrderId": "123456****",
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400InvalidInstanceType.ValueUnauthorizedThe specified InstanceType is not authorized.指定的實例規格未授權使用。
400InvalidInstanceType.ValueNotSupportedThe specified InstanceType is not supported.當前不支持您指定的實例規格,請選擇其它實例規格。
400MissingParameter.RegionIdRegionId should not be null.參數 RegionId 不得為空。
400MissingParameter.InstanceIdNotSupportedInstanceId should not be null.參數 InstanceId 不能為空。
400ChargeTypeViolationThe operation is not permitted due to charge type of the instance.付費方式不支持該操作,請您檢查實例的付費類型是否與該操作沖突。
400InvalidInstanceId.ReleasedThe specified Instance is not exist.指定的實例不存在,請您檢查實例 ID 是否正確。
400InvalidInstance.PurchaseNotFoundThe specified Instance has no purchase.指定的實例無法購買。
400InvalidInstance.UnPaidOrderThe specified Instance has unpaid order.指定的實例有未支付的訂單,請您先支付再進行操作。
400InvalidClientToken.ValueNotSupportedThe ClientToken provided is invalid.指定的 ClientToken 不合法。
400Account.ArrearageYour account has been in arrears.賬戶余額不足,請先充值再操作。
400Idempotence.SignatureMismatchThere is a idempotence signature mismatch between this and last request.作為和上一個冪等參數相同的請求,其他參數也必須完全相匹配。
400InvalidInstanceType.ValueUnauthorizedThe specified InstanceType is not Supported.您沒有操作此實例規格的權限。
400OrderCreationFailedCreate Order failed, please check your parameters and try it later.創建訂單失敗,請檢查您的參數,然后再試。
400ThrottlingRequest was denied due to request throttling, please try again after 5 minutes.您當前的請求被流控,請5分鐘后重試。
400InstanceDowngrade.QuotaExceedQuota of instance downgrade is exceed.您的實例降配已超額度,無法進行此操作。
400ChargeTypeViolationThe operation is not permitted due to charge type of the disk.-
400InvalidInstanceId.NotFoundThe specified InstanceId does not exist.指定的實例ID未找到。
400InvalidDisk.DetachedSystemDiskThe specified disk is a detached system disk, does not support this operation.-
400LastOrderProcessingThe previous order is still processing, please try again later.訂單正在處理中,稍后重試。
400InvalidAction.WithActiveElasticUpgradeThe instance has active Elastic Upgrade.指定的實例為臨時升級中(即調用ModifyPrepayInstanceSpec時設置了EndTime參數)的實例,暫不支持查詢。
400DISK_IN_DEDICATED_BLOCK_STORAGE_CLUSTERThe disk in dedicated block storage cluster is not allowed to do this operation.-
400NoPermission.PriceThe operation requires price permission. Please either apply for permission from your main account, or set the parameter AutoPay as true.-
400NoPermission.RefundThe operation requires refund permission. Please apply for permission from your main account.-
403Forbidden%s您未被授權使用指定的資源。
403InvalidAccountStatus.NotEnoughBalanceYour account does not have enough balance.賬號余額不足,請您先充值再進行該操作。
403InvalidInstanceChargeType.NotFoundThe chargeType of the instance does not support this operation.該付費類型的實例不支持該操作。
403InvalidOperation.MultiAttachDiskMulti attach disk does not support this operation.開啟多重掛載特性的云盤不支持該操作。
404InvalidRegionId.NotFoundThe RegionId provided does not exist.指定的地域不存在,請確認該參數是否正確。
404PaymentMethodNotFoundNo billing method has been registered on the account.您未注冊任何計費方式,請注冊后重試。
404InvalidZoneId.NotFoundThe ZoneId provided does not exist in our records.指定的可用區 ID 不存在。
404InvalidRamRole.NotFoundThe specified parameter "RAMRoleName" does not exist.-
404InvalidDiskIds.NotFoundSome of the specified data disks do not exist.參數 DiskIds 中的一些數據盤,不存在。
404InvalidDiskIds.NotPortableThe specified DiskId is not portable.指定的磁盤是不可移植的。
404InvalidDataDiskSize.ValueNotSupportedThe specified parameter "Size" is not supported.-
404InvalidAction.NotSupportedThe specified action is not supported.不支持指定的 API 操作。
404InvalidInstanceStatus.NotSupportedThe status of the specified instance is invalid.當前實例的狀態不支持此操作。
404InvalidInstanceId.NOT_FOUNDThe specified instance is not exist.指定的實例不存在。
404InvalidDiskIds.NotPortableThe specified disk is not portable.-
500InternalErrorThe request processing has failed due to some unknown error.內部錯誤,請重試。

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

變更歷史

變更時間變更內容概要操作
暫無變更歷史