Unbinding a Storage Device
Function
This API is used to unbind a storage device from a specified namespace. This API is an extension of the native API Deleting a PersistentVolumeClaim. It has been added with two parameters that specify the storage class and whether to delete the volume, respectively.
URI
DELETE /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
namespace |
Yes |
String |
Namespace from which a storage device is to be unbound. |
|
name |
Yes |
String |
PVC name. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
deleteVolume |
No |
Boolean |
Whether to delete the volume. The value can be true or false.
|
|
storageType |
No |
String |
Type of storage. The options are as follows:
|
Request
N/A
Response
N/A
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
The SFS file system is successfully deleted. |
For more status codes, see Status Codes.
Last Article: Reading Imported PVCs
Next Article: Kubernetes-native APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.