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

ReInitDisk - 重新初始化一塊磁盤到創建時的初始狀態

調用ReInitDisk重新初始化一塊磁盤到創建時的初始狀態。

接口說明

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

  • 磁盤的狀態必須為使用中(In_use),云盤掛載的 ECS 實例的狀態必須為已停止(Stopped)。
  • 實例首次啟動前,不能重新初始化掛載在其上的磁盤。
  • 已存在本地快照的云盤,不能重新初始化。
  • 開啟多重掛載特性的云盤,不能重新初始化。
  • 對于系統盤,初始化到鏡像的最初狀態。若創建云盤的源鏡像被刪除,則無法初始化。
  • 對于直接創建的數據盤,初始化到空盤狀態。
  • 對于通過快照創建的數據盤,初始化到快照狀態。
說明 對于通過快照創建的數據盤,若源快照已被刪除,則無法初始化并返回錯誤。

調試

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

授權信息

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

請求參數

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

指定的磁盤 ID。

d-bp67acfmxazb4ph****
Passwordstring

重新初始化系統盤時,是否重置 ECS 實例的用戶名密碼。長度為 8 至 30 個字符,必須同時包含大小寫英文字母、數字和特殊符號中的三類字符。特殊符號可以是:

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

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

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

密鑰對名稱。

說明 該參數僅適用于 Linux 實例。重新初始化系統盤時,您可以為 ECS 實例綁定一個 SSH 密鑰對,作為登錄憑證。使用了 SSH 密鑰對后,用戶名密碼的登錄憑證方式將被禁用。
testKeyPairName
AutoStartInstanceboolean

重新初始化磁盤后,是否自動啟動實例。

默認值:false。

true
SecurityEnhancementStrategystring

當指定的云盤為系統盤時,重新初始化云盤后是否免費使用云安全中心服務。取值范圍:

  • Active:使用。該值僅支持公共鏡像。

  • Deactive:不使用。該值支持所有鏡像。

默認值:Deactive。

Active

返回參數

名稱類型描述示例值
object
RequestIdstring

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

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

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400LoginAsNonRoot.ImageNotSupportThe specified image does not support login as non-root.此鏡像不支持NonRoot登錄。
400DiskHasSnapshotsWithInstantAccessEnabled.OperationNotSupportedThe operation is not supported to the specified disk that have snapshots with InstantAccess enabled.-
400InvalidPassword.MalformedThe specified parameter "Password" is not valid.-
400InvalidKeyPairName.NotFoundThe specified KeyPairName does not exist.指定的 KeyPairName 不存在。
400DependencyViolation.IoOptimizeThe specified parameter InstanceId is not valid.指定的實例 IO 優化配置不合法。
400DiskCategory.OperationNotSupportedThe operation is not supported to the specified disk due to its disk category.由于磁盤種類限制,指定的磁盤不支持該操作。
400InvalidRegionId.MalFormedThe specified RegionId is not valid.指定的地域不存在,請檢查該參數是否正確。
403LoginAsNonRoot.RegionNotSupportThe specified region does not support login as non-root.-
403IncorrectDiskStatusThe current disk status does not support this operation.當前的磁盤不支持此操作,請您確認磁盤處于正常使用狀態,是否欠費。
403IncorrectInstanceStatusThe current status of the resource does not support this operation.該資源目前的狀態不支持此操作。
403InstanceLockedForSecurityThe instance is locked due to security.您的資源被安全鎖定,拒絕操作。
403InvalidSnapshot.TooOldThe disk is created from a snapshotId made before 2013-07-15, it cannot be re-initiated the specified disk any more since the detached first time.創建于2013年7月15日之前的快照不支持此操作。
403OperationDeniedThe snapshot which is used to create the specified disk has been deleted.用來創建指定磁盤的快照不存在。
403InstanceExpiredOrInArrearsThe specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).實例已過期或者欠費,請您續費或者結清后再進行操作。
403DiskCreatingSnapshotThe operation is denied due to a snapshot of the specified disk is not completed yet.指定的磁盤正在創建快照。
403InvalidSourceSnapshotThe snapshot which is used to create the specified disk has been deleted.用于創建指定磁盤的快照已被刪除。
403SharedImageDeletedThe specified image by others shared is deleted.指定的共享鏡像已刪除。
403DependencyViolation.WindowsInstanceThe instance creating is windows, cannot use ssh key pair to login.-
403UserNotInTheWhiteListThe user is not in volume white list.用戶不在共享塊存儲白名單中,請您提交工單申請白名單。
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。
403HibernationConfigured.InstanceOperationForbiddenThe operation is not permitted due to limit of the hibernation configured instance.不符合開啟休眠選項的實例的相關限制,操作不被允許。
403InvalidOperation.MultiAttachDiskMulti attach disk does not support this operation.開啟多重掛載特性的云盤不支持該操作。
403InvalidParameter.KMSKeyId.CMKUnauthorizedThe CMK needs to be added ECS tag.CMK 未授權
404InvalidDiskId.NotFoundThe specified disk does not exist.指定的磁盤不存在。請您檢查磁盤 ID 是否正確。
404InvalidImageId.NotFoundThe specified ImageId does not exist.指定的鏡像在該用戶賬號下不存在,請您檢查鏡像 ID 是否正確。
404InvalidDiskId.OperationNotSupportedThe operation is not supported due to image not exist.指定的鏡像不存在。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.內部錯誤,請重試。

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

變更歷史

變更時間變更內容概要操作
2023-08-25OpenAPI 錯誤碼發生變更查看變更詳情
2021-06-18OpenAPI 錯誤碼發生變更查看變更詳情