欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


阿里云如何使用重新初始化磁盘接口
阿里云如何使用删除磁盘接口
阿里云如何使用修改磁盘属性接口
阿里云调用 API 服务后返回什么结果
阿里云使用API可以进行哪些操作
阿里云如何使用卸载磁盘接口
MathType公式编号的格式怎么修改
Excel2013中表格怎么制作直观双饼图
阿里云如何使用挂载磁盘接口
阿里云如何使用查询磁盘接口
阿里云如何使用回滚磁盘接口
【 来源:网络 】【 点击:6 】 【 发布时间:2017_03_03 08:59:59 】

  回滚磁盘

  描述

  使用指定磁盘自身的快照回滚磁盘内容。

  实例状态必须为 Stopped 时,才可以执行此操作。

  磁盘状态必须为使用中(In_use)的状态,才能执行此操作。

  指定的 SnapshotId 必须是由 DiskId 创建的快照,否则报错。

  实例的 OperationLocks 中标记了 "LockReason" : "security" 的锁定状态,则报错。

  请求参数

名称 类型 是否必须 描述
Action String 系统规定参数,取值:ResetDisk
DiskId String 指定的磁盘设备 ID
SnapshotId String 恢复磁盘的快照 ID

  返回参数

  全是公共返回参数,详见公共返回参数

  错误码

错误代码 描述 Http 状态码 语义
MissingParameter The input parameter "DiskId" that is mandatory for processing this request is not supplied. 400 DiskId 参数未指定
MissingParameter The input parameter "SnapshotId" that is mandatory for processing this request is not supplied. 400 SnapshotId 参数未指定
InvalidDiskId.NotFound The specified disk does not exist. 404 指定的磁盘不存在
InvalidSnapshotId.NotFound The specified snapshot does not exist. 404 指定的快照不存在
IncorrectDiskStatus The current disk status does not support this operation. 403 磁盘状态不正确
IncorrectInstanceStatus The current status of the resource does not support this operation. 403 指定的实例状态不正确
InstanceLockedForSecurity The instance is locked due to security. 403 指定的实例被安全锁定
InvalidParameter.Mismatch The specified snapshot is not created from the specified disk. 403 指定的快照不是创建自指定的磁盘
InvalidSnapshot.TooOld The snapshotId is created before 2013-07-15, it cannot be restored since the first time the disk detached. 403 指定的快照创建于 2013 年 7 月 15 日(含)之前,不能回滚磁盘
InstanceExpiredOrInArrears The specified operation is denied as your prepay instance is expired (prepay mode) or in arrears (afterpay mode). 403 指定磁盘的源快照已被删除,不能重新初始化
OperationDenied The specified snapshot dees not support ResetDisk. 403 指定的快照不能用于回滚
InvalidSnapshotId.NotReady The specified snapshot has not completed yet. 403 指定的快照未完成

  示例

  请求示例

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

  &DiskId= d-23jbf2v5m

  &SnapshotId=s-snapshot1

  &<公共请求参数>

  返回示例

  XML格式

  

  F3CD6886-D8D0-4FEE-B93E-1B73239673DE

  

  JSON格式

  {

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

  }

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号