跳转到主要内容
资源中心/云资源池/云盘相关接口

从云主机上卸载云盘

从云主机上卸载云盘

DELETE/zstack/v1/volumes/{uuid}/vm-instances?vmUuid={vmUuid}

操作 ID

DetachDataVolumeFromVm

起始版本

0.6

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

application/json

路径参数

  • uuid
    String必填

    云盘的UUID,唯一标示该资源

  • vmUuid
    String必填

    路径参数。

查询参数

  • vmUuid
    String

    查询参数。

请求体字段

  • vmUuid
    String

    云主机的UUID

  • systemTags
    List

    系统标签。

  • userTags
    List

    用户标签

响应状态

200 OK

DELETE 接口成功时返回空对象,失败时返回标准错误结构。

成功响应

{}

错误响应

{
  "error": {
    "code": "SYS.1001",
    "description": "A message or a operation timeout",
    "details": "Delete resource timeout after 300s"
  }
}