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

AttachDisk - 為實例掛載數據盤或系統盤

調用AttachDisk為一臺ECS實例掛載一塊按量付費數據盤,或者掛載一塊系統盤。實例和磁盤必須在同一個可用區。

接口說明

調用該接口時,您需要注意:

  • 磁盤的狀態必須為待掛載Available)。

  • 掛載數據盤時:

    • 目標 ECS 實例必須處于運行中Running)或者已停止Stopped)狀態。
    • 如果是您單獨購買的磁盤,計費方式必須是按量付費。
    • 從 ECS 實例上卸載的系統盤作為數據盤掛載時,不限制計費方式。
    • 彈性臨時盤一旦卸載,只能重新掛載至其原始實例。
  • 掛載系統盤時:

    • 目標 ECS 實例必須是卸載系統盤時的源實例。
    • 目標 ECS 實例必須處于已停止Stopped)狀態。
    • 您必須設置實例登錄憑證。
    • 彈性臨時盤不支持掛載為系統盤。
  • 查詢 ECS 實例信息時,如果返回數據中包含{"OperationLocks": {"LockReason" : "security"}},則禁止一切操作。

  • 開啟多重掛載特性的云盤,只能掛載到支持 NVMe 協議的實例上。更多信息,請參見ESSD 云盤支持 NVMe以及使用多重掛載功能

調試

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

授權信息

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

請求參數

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

目標 ECS 實例的 ID。

i-bp1dq5lozx5f4pmd****
DiskIdstring

待掛載的磁盤 ID。磁盤(DiskId)和實例(InstanceId)必須在同一個可用區。

說明 支持掛載數據盤和系統盤,相關約束條件請參見上文接口說明章節。
d-bp1j4l5axzdy6ftk****
Devicestring

磁盤設備名稱。

說明 該參數即將被棄用,為提高兼容性,建議您盡量使用其他參數。
testDeviceName
DeleteWithInstanceboolean

釋放實例時,該磁盤是否隨實例一起釋放。

  • true:釋放。
  • false:不釋放。磁盤會轉換成按量付費數據盤而被保留下來。

默認值:false。

設置該參數時,您需要注意:

  • DeleteWithInstance置為false后,一旦 ECS 實例被安全控制,即OperationLocks中標記了"LockReason" : "security",釋放 ECS 實例時會忽略磁盤的該屬性,被同時釋放。

  • 若您需要掛載的目標磁盤為彈性臨時盤,則必須將DeleteWithInstance參數設置為true。

  • 開啟多重掛載特性的云盤,不支持設置該參數。

false
Bootableboolean

是否作為系統盤掛載。

默認值:false。

說明 設置為Bootable=true時,目標 ECS 實例必須處于無系統盤狀態。
false
Passwordstring

掛載系統盤時,設置實例的用戶名密碼,僅對 administrator 和 root 用戶名生效,其他用戶名不生效。長度為 8 至 30 個字符,必須同時包含大小寫英文字母、數字和特殊符號中的三類字符。特殊符號可以是:

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

其中,Windows 實例不能以斜線號(/)為密碼首字符。

說明 如果傳入Password參數,建議您使用 HTTPS 協議發送請求,避免密碼泄露。
EcsV587!
KeyPairNamestring

掛載系統盤時,為 Linux 系統 ECS 實例綁定的 SSH 密鑰對的名稱。

  • Windows Server 系統:不支持 SSH 密鑰對。即使填寫了該參數,只執行Password的配置。

  • Linux 系統:密碼登錄方式會被初始化成禁止。

KeyPairTestName
Forceboolean

是否強制執行磁盤掛載操作。

  • true:強制。
  • false:不強制。

默認值為 false。

false

返回參數

名稱類型描述示例值
object
RequestIdstring

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400InvalidDevice.MalformedThe specified device is not valid.指定的磁盤設備名不存在。
400IncorrectInstanceStatusThe current status of the resource does not support this operation.該資源目前的狀態不支持此操作。
400InvalidParameterThe input parameter is mandatory for processing this request is empty.參數不能為空。
400InvalidRegionId.MalFormedThe specified RegionId is not valid.指定的地域不存在,請檢查該參數是否正確。
400InvalidOperation.InstanceTypeNotSupportThe instance type of the specified instance does not support hot attach disk.磁盤掛載的實例不支持磁盤熱插拔操作。
400DiskCategory.OperationNotSupportedThe operation is not supported to the specified disk due to its disk category.由于磁盤種類限制,指定的磁盤不支持該操作。
400InvalidOperation.InstanceTypeNotSupportThe specified disk which has kms key should only attach to ioOptimized instance.指定的實例無效,只有I/O優化類型的實例支持設置KMS Key。
400InvalidDisk.DiskNotBootableThe specified disk is not a bootable disk, can not be attached as system disk.-
400InvalidInstance.NotOriginInstanceThe specified disk can not attached to other instance as system disk.-
400InvalidParameter.AllEmpty%s您沒有輸入任何參數,請輸入必要的參數。
400InvalidParameterForce.DiskCategoryNotSupportedThe specified disk category does not support force attach operation.指定的磁盤類型不支持強制掛載操作
400InvalidParameterForce.PrepaidDiskNotSupportedThe prepaid disk does not support force attach operation.預付費磁盤不支持強制掛載操作
400InvalidParameterForce.MultiAttachDiskNotSupportedThe multi attach disk does not support force attach operation.多重掛載磁盤不支持強制掛載操作
400InvalidParameterForce.RegionNotSupportedThe specified region does not support force attach operation.該地域不支持強制掛載操作
403InstanceDiskLimitExceededThe amount of the disk on instance in question reach its limits.指定實例已經達到可掛載磁盤的最大值。
403InvalidDevice.InUseThe specified device has been occupied.指定的設備已經掛載了磁盤。
403IncorrectDiskStatus%s-
403DiskNotPortableThe specified disk is not a portable disk.指定的磁盤不是可卸載的磁盤,Portable 為 false 的磁盤無法卸載。
403InstanceLockedForSecurityThe instance is locked due to security.您的資源被安全鎖定,拒絕操作。
403ResourcesNotInSameZoneThe specified instance and disk are not in the same zone.指定的實例和磁盤不在同一可用區。
403InstanceExpiredOrInArrearsThe specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).實例已過期或者欠費,請您續費或者結清后再進行操作。
403DiskInArrearsThe specified operation is denied as your disk owing fee.指定的磁盤已欠費。
403DiskErrorIncorrectDiskStatus.指定的磁盤狀態不合法。
403DiskId.ValueNotSupportedThe specified parameter diskid is not supported.指定的塊存儲類型不支持此操作。
403DiskId.StatusNotSupportedThe specified disk status is not supported.當前磁盤的狀態不支持此操作。
403IncorrectInstanceStatus.NotSupportESSDThe operation is not supported in this status, please reboot the instance.-
403IncorrectDiskStatusThe operation is not supported in this status.當前的磁盤不支持此操作,請您確認磁盤處于正常使用狀態,是否欠費。
403UserNotInTheWhiteListThe user is not in disk white list.您不在磁盤白名單中,請加入白名單后重試。
403InvalidParameter.KMSKeyId.CMKNotEnabledThe CMK needs to be enabled.加密云盤設置了 KMSKeyId 后,CMK必須處于啟用狀態。您可以調用密鑰管理服務的 DescribeKey 接口查詢指定CMK的相關信息。
403InvalidParameter.KMSKeyId.CMKUnauthorizedThe CMK needs to be added ECS tag.CMK 未授權
403InvalidParameter.KMSKeyId.KMSUnauthorizedECS service have no right to access your KMS.ECS 服務無權訪問您的 KMS。
403DependencyViolation.WindowsInstanceThe instance image is windows, cannot use ssh key pair to login.-
403InvalidInstanceType.NotSupportDiskCategoryThe instanceType of the specified instance does not support this disk category.指定的實例規格(InstanceType)不支持當前實例的云盤類別。請嘗試更換其它實例規格。關于實例規格支持的云盤類型,請參見實例規格族文檔。
403InvalidInstanceType.NotSupportPL0The instanceType of the specified instance does not support PL0 of cloud_essd.-
403InvalidInstanceType.NvmeRequiredThe instanceType of the specified instance requires nvme protocol.指定實例的規格要求使用 NVMe 協議。
403InvalidInstanceType.NvmeUnsupportedThe instanceType of the specified instance does not support nvme protocol.指定實例的規格不支持 NVMe 協議。
403InvalidInstanceType.NotSupportMultiAttachDiskThe instanceType of the specified instance does not support multi attach disk.指定的實例規格不支持掛載開啟多重掛載特性的云盤。
403DiskAttachedNumberExceededThe attaching times of the specified disk exceeded.指定的云盤所掛載的實例數量已達上限。
403InvalidOperation.CanNotAttachMultiAttachDiskAsSystemDiskMulti attach disk can not be attached as system disk.開啟多重掛載特性的云盤不支持作為系統盤使用。
403DeleteWithInstance.ConflictMulti attach disk cannot be set to DeleteWithInstance attribute.開啟多重掛載特性的云盤不支持設置 DeleteWithInstance。
403InvalidParameter.DeleteWithInstanceThe DeleteWithInstance for the elastic ephemeral disk must be set to true.彈性臨時盤的 DeleteWithInstance 屬性必須設置為 true。
403InvalidOperation.OtherInstanceUnsupportedThe elastic ephemeral disk can only be attached to the instance it was last mounted on, please check the disk's system tag to get the last associated instance.彈性臨時盤僅能被掛載到上一次掛載的實例,請檢查磁盤的系統 Tag 來獲取上一次的實例。
403InvalidInstance.ZoneConflictThe force attach operation is not supported when both the current and target instances are in the same zone.強制掛載要求當前實例與目標實例處于不同可用區
404InvalidInstanceId.NotFoundThe specified InstanceId does not exist.指定的實例ID未找到。
404InvalidDiskId.NotFoundThe specified disk does not exist.指定的磁盤不存在。請您檢查磁盤 ID 是否正確。
404InvalidDisk.InUseThe specified disk has been occupied.指定的磁盤已占用。
404InvalidKMSKeyId.NotFoundThe KMS key used by the disk does not exist.磁盤使用的 KMS 密鑰不存在.
500InternalErrorThe request processing has failed due to some unknown error.內部錯誤,請重試。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.內部錯誤,請重試。

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

變更歷史

變更時間變更內容概要操作
2024-07-08OpenAPI 錯誤碼發生變更查看變更詳情
2024-05-08OpenAPI 錯誤碼發生變更、OpenAPI 入參發生變更查看變更詳情
2023-11-24OpenAPI 錯誤碼發生變更查看變更詳情