Updated on 2023-12-21 GMT+08:00

Unbinding a Storage Device

Function

This API is used to unbind a storage device from a specified namespace.

URI

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

Table 1 Path parameter

Parameter

Mandatory

Type

Description

namespace

Yes

String

Namespace from which a storage device is to be unbound.

name

Yes

String

PVC name.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

deleteVolume

No

Boolean

Whether to delete the volume. The value can be true or false.

  • true: Both the volume and its corresponding storage device are deleted.
  • false: Only the volume is deleted.

storageType

No

String

Type of storage. The options are as follows:

  • bs: EVS disk
  • nfs: SFS file system
    NOTE:

    When deleteVolume is set to true, storageType is optional. When deleteVolume is set to false, storageType is mandatory.

Request

N/A

Response

N/A

Status Code

Table 3 Status Code

Status Code

Description

200

The SFS file system is successfully deleted.

For more status codes, see Status Codes.