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

ReplaceSystemDisk - 更換操作系統

調用ReplaceSystemDisk更換一臺ECS實例的操作系統。系統盤的云盤ID會發生變化,原云盤會被釋放。

接口說明

更換系統盤時,您需要注意:

  • 不支持更換系統盤的云盤類型。

  • 不支持變更系統盤計費方式。

  • 實例的狀態必須為已停止(Stopped)狀態。

    說明 僅適用于專有網絡 VPC 類型實例。如果 ECS 實例為按量付費計費模式,且開啟默認啟用節省停機模式,為防止地域范圍內的 ECS 實例庫存不足,引起的更換系統盤后無法重啟實例。您需要在停止該實例時設置為普通停機模式。具體操作,請參見 StopInstance
  • ECS 實例不能被安全鎖定,即實例的OperationLocks參數值包含"LockReason": "security"。更多信息,請參見安全鎖定時的 API 行為

  • 系統盤掛載的 ECS 實例不能有未支付的訂單。

  • 您可以通過參數SystemDisk.Size重新指定系統盤的容量大小。

更換系統盤后,建議您通過以下任一方式驗證是否更換成功:

  • 通過 DescribeDisks 接口查詢新系統盤的狀態。如果已掛載實例,則表示更換系統盤的操作已完成。

  • 通過 DescribeInstances 接口查詢更換系統盤的實例的狀態。如果返回值OperationLocks為空,則表示更換系統盤的操作已完成。

調試

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

授權信息

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

請求參數

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

指定實例的 ID。

i-bp67acfmxazb4ph****
ImageIdstring

重置系統時使用的鏡像 ID。

未設置DiskId參數時,該參數為必選參數。

m-bp67acfmxazb4ph****
SystemDisk.Sizeinteger

新的系統盤容量,單位為 GiB。取值范圍:

  • 普通云盤:Max{20, 參數 ImageId 對應的鏡像大小}~500。
  • ESSD 云盤:
    • PL0:Max{1, 參數 ImageId 對應的鏡像大小}~2048。
    • PL1:Max{20, 參數 ImageId 對應的鏡像大小}~2048。
    • PL2:Max{461, 參數 ImageId 對應的鏡像大小}~2048。
    • PL3:Max{1261, 參數 ImageId 對應的鏡像大小}~2048。
  • ESSD AutoPL 云盤:Max{1, 參數 ImageId 對應的鏡像大小}~2048。
  • 其他云盤:Max{20, 參數 ImageId 對應的鏡像大小}~2048。

默認值:Max{40, 參數 ImageId 對應的鏡像大小}

說明 超過Max{20, 更換前的系統盤容量}的云盤容量部分,將收取額外費用。
80
ClientTokenstring

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

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

是否使用阿里云提供的虛擬機系統配置(Windows:NTP、KMS;Linux:NTP、YUM)。

說明 掛載系統盤時(即設備名為/dev/xvda)有效。
true
Passwordstring

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

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

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

默認值:保持不變。

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

是否使用鏡像預設的密碼。

默認值:false。

說明 使用該參數時,Password 參數必須為空。同時您需要確保使用的鏡像已經設置了密碼。
false
KeyPairNamestring

密鑰對名稱。

說明 該參數僅對 Linux 系統 ECS 實例生效。您可以為 ECS 實例綁定一個 SSH 密鑰對,作為登錄憑證。使用了 SSH 密鑰對后,用戶名密碼的登錄憑證方式將被禁用。
testKeyPairName
DiskIdstring
說明 該參數已廢棄,為提高兼容性,建議您使用 ImageId
d-bp67acfmxazb4ph****
Platformstring
說明 已棄用。
CentOS
Architecturestring
說明 已棄用。
i386
SecurityEnhancementStrategystring

更換系統盤后,是否免費使用云安全中心服務。取值范圍:

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

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

默認值:Deactive。

Active
Encryptedboolean

是否加密云盤。取值范圍:

  • true:是。

  • false:否。

默認值:false。

false
KMSKeyIdstring

系統盤對應的 KMS 密鑰 ID。

e522b26d-abf6-4e0d-b5da-04b7******3c
EncryptAlgorithmstring
說明 該參數暫未開放使用。
hide
Arnarray<object>

該參數暫未開放使用。

object
RoleTypestring
說明 該參數暫未開放使用。
null
Rolearnstring
說明 該參數暫未開放使用。
null
AssumeRoleForlong
說明 該參數暫未開放使用。
0

返回參數

名稱類型描述示例值
object
DiskIdstring

新系統盤的云盤 ID。

d-bp67acfmxazb4ph****
RequestIdstring

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "DiskId": "d-bp67acfmxazb4ph****",
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400LoginAsNonRoot.ImageNotSupportThe specified image does not support login as non-root.此鏡像不支持NonRoot登錄。
400InvalidSystemDiskSize.ValueNotSupportedThe specified parameter SystemDisk.Size is invalid.指定的 SystemDisk.Size 不合法。
400InvalidParameter.ConflictThe specified image does not support the specified instance type.指定的鏡像不能用于指定的實例規格。
400InvalidSystemDiskSize.ImageNotSupportResizeThe specified image does not support resize.指定的鏡像不支持擴容。
400InvalidSystemDiskSizeThe specified parameter SystemDisk.Size is invalid.指定的 SystemDisk.Size 不合法。
400InvalidPassword.MalformedThe specified parameter "Password" is not valid.-
400InvalidPasswordParam.MismatchThe input password should be null when passwdInherit is true.啟用 PasswdInherit 后,用戶名密碼應該設置為空。
400OperationDeniedThe specified image contains the snapshot of the data disk,does not support this operation.包含了數據盤快照的鏡像,不支持此操作。
400InvalidDiskCategory.ValueNotSupportedThe specified parameter "DiskCategory" is not valid.-
400InvalidParameter.Conflict%s您輸入的參數無效,請檢查參數之間是否沖突。%s為變量,將根據調用API的實際情況動態返回錯誤信息。
400InvalidSystemDiskSize.ValueNotSupported%s當前操作不支持設置的系統盤大小。
400OperationDenied%s拒絕操作。
400InvalidKeyPairName.NotFoundThe specified KeyPairName does not exist.指定的 KeyPairName 不存在。
400DependencyViolation.IoOptimizeThe specified parameter InstanceId is not valid.指定的實例 IO 優化配置不合法。
400MissingParameter.ArchitectureArchitecture should not be null.參數 Architecture 不能為空。
400InvalidArchitecture.MalformedArchitecture is not valid.您輸入的參數 Architecture 無效,請查看該參數格式是否正確。
400MissingParameter.PlatformPlatform should not be null.參數 Platform 不能為空。
400InvalidPlatform.MalformedPlatform is not valid.指定的平臺無效。
400InvalidParameter.AllEmpty%s您沒有輸入任何參數,請輸入必要的參數。
400InvalidDiskId.NotFoundThe specified disk do not exist.指定的磁盤不存在。
400InvalidDatadisk.DiskStatusViolationThe operation is not permitted due to status of the Datadisk.當前數據盤的狀態不支持此操作。
400InvalidDatadisk.DiskCategoryViolationThe operation is not permitted due to category of the Datadisk.該數據盤的類型不支持該操作。
400InvalidDatadisk.ChargeTypeViolationThe operation is not permitted due to charge type of the Datadisk.-
400InvalidSystemDiskSize.ValueNotSupportedThe specified SystemDiskSize is not valid.指定的 SystemDisk.Size 不合法。
400MissingParameterThe input parameter "ImageId" that is mandatory for processing this request is not supplied.-
400InvalidInstance.NotFoundSystemDiskThe specified instance has no system disk.指定的實例沒有掛載系統盤。請確保指定的實例已掛載了系統盤。您可以調用 DescribeInstances 查詢指定實例的信息。
400InvalidParameter.DiskTypeThe specified disk type which has kms key can't convert to system disk.-
400DISK_IN_DEDICATED_BLOCK_STORAGE_CLUSTERThe disk in dedicated block storage cluster is not allowed to do this operation.-
400IncorrectDiskStatus.ReplicationStatusNotFoundDisk replication status not found.-
400IncorrectDiskStatus.InReplicationDisk already in replication.-
400InvalidInstanceType.NotSupportedThe specified instanceType is not supported by the image architecture.-
400InvalidRegionId.NotSupportReplaceEncryptedSystemDiskThe specified region not support replace encrypted system disk.-
400InvalidStorageClusterId.CapacityNotEnoughThe remaining capacity of the current dedicated storage cluster is less than the size of disk.磁盤所在專屬存儲集群的可用容量不足
400QuotaExceed.DiskCapacityThe used capacity of disk type has exceeded the quota in the zone, %s.指定磁盤類型的已用容量超出可用區配額限制,您可以前往配額中心查詢和申請提升磁盤容量配額。
403LoginAsNonRoot.RegionNotSupportThe specified region does not support login as non-root.-
403InvalidSystemDiskStatus.IsTransferingThe current status of the resource does not support this operation, system disk is transfering.當前資源的狀態不支持此操作,請再系統盤停止傳輸數據后重試。
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.您的資源被安全鎖定,拒絕操作。
403ImageNotSubscribedThe specified image has not be subscribed.指定的鏡像未在云市場鏡像中訂閱。
403ImageRemovedInMarketThe specified market image is not available, Or the specified user defined image includes product code because it is based on an image subscribed from marketplace, and that image in marketplace includeing exact the same product code has been removed.指定的市場鏡像不可用,或者指定的用戶定義鏡像包含產品代碼,因為它基于從市場訂購的鏡像,并且市場中包含完全相同的產品代碼的鏡像已被刪除。
403InstanceExpiredOrInArrearsThe specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).實例已過期或者欠費,請您續費或者結清后再進行操作。
403ChargeTypeViolationThe operation is not permitted due to charge type of the instance.付費方式不支持該操作,請您檢查實例的付費類型是否與該操作沖突。
403DiskCreatingSnapshotThe operation is denied due to a snapshot of the specified disk is not completed yet.指定的磁盤正在創建快照。
403IoOptimized.NotSupportedThe specified image is not support IoOptimized Instance.指定的鏡像不支持 I/O 優化型實例。
403ImageNotSupportInstanceTypeThe specified image don not support the InstanceType instance.指定的鏡像不支持此類實例規格。
403QuotaExceed.BuyImageThe specified image is from the image market,You have not bought it or your quota has been exceeded.您暫時不能使用指定的市場鏡像。
403INST_HAS_UNPAID_ORDERThe instance has unpaid order.該實例有未完成的賬單。
403OperationDenied.InstanceCreatingThe specified instance is creating.指定的實例已存在。
403DependencyViolation.WindowsInstanceThe instance creating is windows, cannot use ssh key pair to login.-
403InvalidParameter.NotMatch%s您輸入的參數無效,請檢查參數之間是否沖突。
403ResourcesNotInSameZoneThe specified instance and disk are not in the same zone.指定的實例和磁盤不在同一可用區。
403ImageNotSupportInstanceTypeThe specified instanceType is not supported by instance with marketplace image.指定的市場鏡像不支持該實例規格。
403OperationDenied.UnpaidOrderThe specified instance has unpaid order.指定的實例ID已存在未支付訂單,您可以登錄ECS管理控制臺支付。
403InvalidHostname.MismatchImageThe hostname of the current instance can not be applied to the image you choose.-
403OperationDenied.ImageNotValid%s當前鏡像不支持此操作。
403HibernationConfigured.InstanceOperationForbiddenThe operation is not permitted due to limit of the hibernation configured instance.不符合開啟休眠選項的實例的相關限制,操作不被允許。
403InvalidOperation.MultiAttachDiskMulti attach disk does not support this operation.開啟多重掛載特性的云盤不支持該操作。
403InvalidRegionId.NotSupportEncryptAlgorithmThe current region does not support creating encrypted disks with EncryptAlgorithm.-
403InvalidRegionId.NotExistsThe region not exists.-
403InvalidEncryptAlgorithmThe specified parameter EncryptAlgorithm is not valid.-
403InvalidEncrypted.NotMatchKmsKeyIdThe specified parameter Encrypted must be true when KmsKeyId is not empty.-
403InvalidEncrypted.NotMatchEncryptAlgorithmThe specified parameter Encrypted must be true when EncryptAlgorithm is not empty.-
403InvalidParameter.KmsNotEnabledThe specified operation need enable KMS.當前操作需要開啟KMS。
403InvalidParameter.DataEncryptedKeyCreateFailedCreate kms data encrypted key fail. If you need further assistance, you can contact the KMS Technical Support.-
403InvalidParameter.KMSKeyId.NotFoundThe specified KMSKeyId does not exist.指定的參數 KMSKeyId 不存在。
403InvalidParameter.KMSKeyId.CMKUnauthorizedThis operation for kmsKeyId is forbidden by KMS. If you need further assistance, you can contact the KMS Technical Support.-
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。
403InvalidKMSKeyId.NotSymmetricThe specified parameter KmsKeyId must be symmetric.-
403InvalidEncrypted.NotMatchKmsKeyIdThe specified parameter Encrypted must be true when kmsKeyId is not null.-
403InvalidDiskId.NotSupportReplaceEncryptedSystemDiskThe specified diskId not support replace encrypted system disk.-
403NotSupportSnapshotEncrypted.DiskCategoryThe specified disk category does not support creating encrypted system disks or creating encrypted data disks from snapshots. Check the DiskCategory or Encrypted parameter, or check your account for default encryption settings.該磁盤類型不支持創建加密系統盤或以快照方式創建加密數據盤,請檢查您輸入的磁盤類型、加密參數,或者檢查您是否做過賬號云盤默認加密配置。
403InvalidEncrypted.DefaultEncryptionUnsupportedThe specified parameter Encrypted must be true when default encryption is enabled.開啟云盤默認加密后新購云盤必須為加密云盤.
404InvalidInstanceId.NotFoundThe specified InstanceId does not exist.指定的實例ID未找到。
404InvalidInstanceId.NotFoundThe specified instance does not exist.指定的實例不存在,請您檢查實例 ID 是否正確。
404InvalidImageId.NotFoundThe specified ImageId does not exist.指定的鏡像在該用戶賬號下不存在,請您檢查鏡像 ID 是否正確。
404InvalidSystemDiskSize.MoreThanMaxSizeThe specified SystemDisk.Size parameter exceeds the maximum size.指定的系統盤大小超出最大容量。
404InvalidSystemDiskSize.LessThanImageSizeThe specified parameter SystemDisk.Size is less than the image size.指定的參數 SystemDisk.Size 小于鏡像文件大小數值。
404InvalidSystemDiskSize.LessThanMinSizeThe specified parameter SystemDisk.Size is less than the min size.指定的系統盤小于最低容量。
404NoSuchResourceThe specified resource is not found.指定的資源不存在。
500OperationDeniedInternal Error.內部錯誤。
500InternalErrorThe request processing has failed due to some unknown error.內部錯誤,請重試。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.內部錯誤,請重試。
500OperationDeniedThe specified InstanceType or Zone is not available or not authorized.指定的實例規格或可用區不可用或者未授權。

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

變更歷史

變更時間變更內容概要操作
2024-06-27OpenAPI 錯誤碼發生變更查看變更詳情
2024-05-08OpenAPI 錯誤碼發生變更查看變更詳情
2024-01-15OpenAPI 錯誤碼發生變更查看變更詳情
2021-12-06OpenAPI 錯誤碼發生變更查看變更詳情