技術員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機純凈版,64位旗艦版,綠色軟件,免費軟件下載基地!

當前位置:主頁 > 教程 > 服務器類 >

阿里云如何使用重新初始化磁盤接口

來源:技術員聯(lián)盟┆發(fā)布時間:2017-12-09 00:33┆點擊:

  重新初始化磁盤

  描述

  重新初始化磁盤到初始狀態(tài),磁盤狀態(tài)必須為使用中(In_use)的狀態(tài),且實例狀態(tài)必須為 Stopped 時,才能執(zhí)行此操作。但是如果實例創(chuàng)建后在第一次啟動前,掛載在其上的磁盤也不能重新初始化。

  調(diào)用此接口,磁盤恢復到創(chuàng)建時的初始狀態(tài),即:

  如果為數(shù)據(jù)盤且是直接創(chuàng)建的空盤,則初始化到空盤狀態(tài)

  如果為數(shù)據(jù)盤且是通過快照創(chuàng)建的,則初始化到快照狀態(tài)

  如果為系統(tǒng)盤,則初始化到鏡像的初始狀態(tài)

  請求參數(shù)

名稱 類型 是否必須 描述
Action   String     系統(tǒng)規(guī)定參數(shù),取值:ReInitDisk  
DiskId   String     指定的磁盤設備 ID  

  返回參數(shù)

  全是公共返回參數(shù),詳見公共返回參數(shù)

  錯誤碼

錯誤代碼 描述 Http 狀態(tài)碼 語義
MissingParameter   The input parameter "DiskId" that is mandatory for processing this request is not supplied.   400   DiskId 未指定  
InvalidDiskId.NotFound   The specified disk does not exist.   404   指定的磁盤不存在  
IncorrectDiskStatus   The current disk status does not support this operation.   403   磁盤狀態(tài)不正確  
IncorrectInstanceStatus   The current status of the resource does not support this operation.   403   指定的實例狀態(tài)不正確  
InstanceLockedForSecurity   The instance is locked due to security.   403   指定的實例被安全鎖定  
InvalidSnapshot.TooOld   The 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.   403   指定磁盤的源快照創(chuàng)建于 2013 年 7 月 15 日(含)之前,不能重新初始化  
InvalidSourceSnapshot   The snapshot which is used to create the specified disk has been deleted.   403   指定磁盤的源快照已被刪除,不能重新初始化  
InstanceExpiredOrInArrears   The specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode).   403   指定的實例已欠費  
DiskCreatingSnapshot   The operation is denied due to a snapshot of the specified disk is not completed yet.   403   指定的磁盤正在創(chuàng)建快照  
IncorrectDiskStatus.NeverUsed   The specified disk has never been used after creating.   403   磁盤創(chuàng)建后未被使用,內(nèi)容沒有變化  

  示例

  請求示例

  https://ecs.aliyuncs.com/?Action=ReInitDisk

  &DiskId=d-23jbf2v5m

  &<公共請求參數(shù)>

  返回示例

  XML格式

  

  F3CD6886-D8D0-4FEE-B93E-1B73239673DE

  

  JSON格式

  {

  "RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE"