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

ResizeDisk - 擴容磁盤

調用ResizeDisk接口,并可以指定DiskId、Type等參數,擴容一塊磁盤,支持擴容系統盤和數據盤。

接口說明

說明 擴容前,請務必查詢云盤采用的分區格式。如果是 MBR 格式,不支持擴容到 2TiB 以上,否則會造成數據丟失。對于 MBR 分區擴容,建議您重新創建并掛載一塊數據盤,采用 GPT 分區格式后,再將已有數據拷貝至新的數據盤上。更多詳情,請參見擴容云盤容量
  • 支持擴容的磁盤類型包括普通云盤(cloud)、高效云盤(cloud_efficiency)、SSD 云盤(cloud_ssd)、ESSD 云盤(cloud_essd、ESSD Entry 云盤(cloud_essd_entry)、ESSD AutoPL 云盤(cloud_auto)、彈性臨時盤-標準版(elastic_ephemeral_disk_standard)和彈性臨時盤-高級版(elastic_ephemeral_disk_premium)。

  • 當磁盤正在創建快照時,不允許擴容。

  • 磁盤掛載的實例的狀態必須為運行中Running)或者已停止Stopped)。

  • 該接口不能擴容分區和文件系統,您需要在擴容云盤容量后自行分配分區和文件系統,具體操作,請參見擴容分區和文件系統

  • 開啟多重掛載特性的云盤支持在線擴容和離線擴容。離線擴容前,您需要確保所掛載的全部實例均為已停止Stopped)狀態。

調試

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

授權信息

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

請求參數

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

磁盤 ID。您可以調用 DescribeDisks 查詢磁盤 ID。

d-bp67acfmxazb4p****
Typestring

擴容磁盤的方式。取值范圍:

  • offline(默認):離線擴容。擴容后,您必須在控制臺重啟實例或者調用 API RebootInstance 使操作生效。

  • online:在線擴容,無需重啟實例即可完成擴容。磁盤類型支持高效云盤、SSD 云盤、ESSD 云盤和彈性臨時盤。

offline
NewSizeinteger

希望擴容到的磁盤容量大小。單位為 GiB。取值范圍如下:

  • 系統盤:

    • 普通云盤:20~500。
    • ESSD 云盤:
      • PL0:1~2048。
      • PL1:20~2048。
      • PL2:461~2048。
      • PL3:1261~2048。
    • ESSD AutoPL 云盤:1~2048。
    • 其他云盤類型:20~2048。
  • 數據盤:

    • 高效云盤(cloud_efficiency):20~32768。

    • SSD 云盤(cloud_ssd):20~32768。

    • ESSD 云盤(cloud_essd):具體取值范圍與PerformanceLevel的取值有關。可以調用 DescribeDisks 查詢云盤信息,再根據查詢結果中的PerformanceLevel參數查看取值。

      • PL0:1~65536。
      • PL1:20~65536。
      • PL2:461~65536。
      • PL3:1261~65536。
    • 普通云盤(cloud):5~2000。

    • ESSD AutoPL 云盤(cloud_auto):1~65536。

    • ESSD Entry 云盤(cloud_essd_entry):10~32768。

    • 彈性臨時盤-標準版(elastic_ephemeral_disk_standard):64~8,192。

    • 彈性臨時盤-高級版(elastic_ephemeral_disk_premium):64~8,192。

說明 指定的新磁盤容量必須比原磁盤容量大。
1900
ClientTokenstring

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

123e4567-e89b-12d3-a456-426655440000

返回參數

名稱類型描述示例值
object
OrderIdstring

生成的訂單 ID。

說明 僅在擴容包年包月云盤時會返回訂單 ID。
20413515388****
RequestIdstring

請求 ID。

F3CD6886-D8D0-4FEE-B93E-1B732396****

示例

正常返回示例

JSON格式

{
  "OrderId": "20413515388****",
  "RequestId": "F3CD6886-D8D0-4FEE-B93E-1B732396****"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
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 超出允許范圍,或者快照的容量超過指定磁盤類別的大小限制。
400InvalidDataDiskCategory.ValueNotSupported%s指定的數據磁盤類型無效。%s為變量,將根據調用API的實際情況動態返回錯誤信息。
400InvalidParameter.Conflict%s您輸入的參數無效,請檢查參數之間是否沖突。%s為變量,將根據調用API的實際情況動態返回錯誤信息。
400InvalidDataDiskSize.ValueNotSupported%s指定的數據盤容量無效。%s為變量,將根據調用API的實際情況動態返回錯誤信息。
400InvalidSystemDiskSize.ValueNotSupported%s當前操作不支持設置的系統盤大小。
400IncompleteParamterSome fields can not be null in this request.請求中缺失參數。
400InvalidRegionId.MalFormedThe specified RegionId is not valid.指定的地域不存在,請檢查該參數是否正確。
400InvalidParam.TypeThe specified type is not supported.指定的參數Type無效。
400LastOrderProcessingThe previous order is still processing, please try again later.訂單正在處理中,稍后重試。
400InvalidStatus.UpgradingThe instance which the disk attachs is upgrading; please try again later.-
400InvalidSystemDiskSize.ImageNotSupportResizeThe image of the instance does not support resize.-
400InvalidSystemDiskSize.ImageNotSupportResizeThe specified image does not support resize.指定的鏡像不支持擴容。
400InvalidDisk.DetachedSystemDiskThe specified disk is a detached system disk, does not support this operation.-
400OperationDenied.NotEnoughCapacityThe capacity of the current dedicated block storage cluster is not enough to expand.-
400IncorrectDiskStatus.ReplicationStatusNotFoundDisk replication status not found.-
400IncorrectDiskStatus.InReplicationDisk already in replication.-
400QuotaExceed.DiskCapacityThe used capacity of disk type has exceeded the quota in the zone, %s.指定磁盤類型的已用容量超出可用區配額限制,您可以前往配額中心查詢和申請提升磁盤容量配額。
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.-
400InvalidOperation.InstanceRenewWithDowngradeInPlanThe operation is denied due to the specified instance has renew with downgrade record in plan.存在未生效的續費降配訂單。訂單生效前不允許此操作。
403OperationDeniedThe type of the disk does not support the operation.此磁盤種類不支持指定的操作。
403OperationDeniedThe status of the disk or the instance that the disk is attaching with does not support the operation.此磁盤或實例狀態無法執行指定的操作。
403InvalidDiskSize.TooSmallSpecified new disk size is less than the original disk size.指定的新磁盤小于原始磁盤。
403InvalidDiskSize.TooLargeSpecified new disk size is beyond the permitted range.指定的新磁盤大小超過限制。
403InstanceExpiredOrInArrearsThe specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).實例已過期或者欠費,請您續費或者結清后再進行操作。
403DiskErrorIncorrect disk status.-
403DiskInArrearsThe specified operation is denied as your disk owing fee.指定的磁盤已欠費。
403IncorrectInstanceStatusThe current status of the resource does not support this operation.該資源目前的狀態不支持此操作。
403DiskCreatingSnapshotThe operation is denied due to a snapshot of the specified disk is not completed yet.指定的磁盤正在創建快照。
403InvalidDiskSizeSpecified new disk size is less than or equal the original disk size.指定的新磁盤大小必須大于原始磁盤大小。
403Operation.ConflictThe operation may conflicts with others.該操作與其他操作沖突。
403InstanceLockedForSecurityThe instance is locked due to security.您的資源被安全鎖定,拒絕操作。
403IncorrectDiskStatusThe current disk status does not support this operation.當前的磁盤不支持此操作,請您確認磁盤處于正常使用狀態,是否欠費。
403UserNotInTheWhiteListThe user is not in disk white list.您不在磁盤白名單中,請加入白名單后重試。
403InvalidDiskCategory.NotSupportedThe specified disk category is not supported.指定的云盤類型不支持當前操作。
403InvalidRegion.NotSupportThe specified region does not support resize online.該地域不支持在線擴容。
403InvalidDiskCategory.NotSupportedThe specified disk category does not support resize online.指定的磁盤類型不支持在線擴容。
403IncorrectInstanceStatusThe current status of the resource does not support resize online.當前資源的狀態不支持此操作。
403InvalidInstanceStatus.NotRunningThe status of instance to which the disk attachs must be running when resizing online.在線調整磁盤大小時,磁盤連接到的實例的狀態必須正在運行。
403IncorrectDiskStatusThe current status of the resource does not support resize online.-
403InvalidOperation.InstanceTypeNotSupportOnlineResizeThe instance type of the specified instance does not support resize online.-
403InvalidParameter.KMSKeyId.CMKUnauthorizedThe CMK needs to be added ECS tag.CMK 未授權
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。
403InstanceSpecModification.NotEffectiveThe instance which the disk attachs has been reserved for making a spec modification and not taken effective in the current contract period.-
403InvalidDiskSize.NotSupportResizeOnlineThe current size of the resource does not support resize online.-
403SecurityRisk.3DVerificationWe have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.我們檢測到您的默認信用卡或借記卡存在安全風險。請通過電子郵件中的鏈接進行驗證。
403QuotaExceeded.PostpaidDataDiskCapacityThe quota of postpaid data disk capacity exceeds.按量付費數據盤使用容量超出配額。
403InvalidOperation.MultiAttachDiskNotSupportResizeOnlineMulti attach disk does not support resize online.開啟多重掛載特性的云盤不支持在線擴容。
404InvalidDiskId.NotFoundThe specified disk does not exist.指定的磁盤不存在。請您檢查磁盤 ID 是否正確。
404InvalidInstanceId.NotFoundThe specified InstanceId does not exist.指定的實例ID未找到。
500InternalErrorThe request processing has failed due to some unknown error.內部錯誤,請重試。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.內部錯誤,請重試。

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

變更歷史

變更時間變更內容概要操作
2024-08-23OpenAPI 錯誤碼發生變更查看變更詳情
2023-10-18OpenAPI 錯誤碼發生變更查看變更詳情
2023-10-09OpenAPI 錯誤碼發生變更查看變更詳情
2023-05-16OpenAPI 錯誤碼發生變更查看變更詳情