云容器实例 CCI-解绑存储:URI

时间:2025-02-12 14:55:26

URI

DELETE /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}

表1 Path参数

参数

是否必选

参数类型

描述

namespace

Yes

String

命名空间。

name

Yes

String

persistentvolumeclaims名称

表2 Query参数

参数

是否必选

参数类型

描述

deleteVolume

No

Boolean

是否删除volume,可选值为true和false:

  • true: 同时删除使用的存储
  • false:保留存储,只删除pvc

storageType

No

String

Type of storage,目前支持:

  • bs: 云硬盘存储
  • nfs: 文件存储
    说明:

    当deleteVolume=true时,storageType为非必填项;当deleteVolume=false时,storageType为必填项。

support.huaweicloud.com/api-cci/cci_02_2023.html