Delete volume
You can delete an existing volume.
Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:
Delete volume for single node
You can use this workflow to delete a volume for a single node working environment.
Step 1. Select the working environment
Perform the workflow Get working environments and choose the publicId
and svmName
values of the working environment for the workingEnvironmentId
and svmName
path parameters.
Step 2. Select the volume
Perform the workflow Get volumes and choose the name
of the required volume for the volumeName
path parameter.
Step 3. Delete the volume
You can issue the REST API call to delete the volume.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
DELETE |
/occm/api/vsa/volumes/{workingEnvironmentId}/{svmName}/{volumeName} |
curl --request DELETE
--location "https://cloudmanager.cloud.netapp.com/occm/api/vsa/volumes/<WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>"
--header "Content-Type: application/json"
--header "x-agent-id: <AGENT_ID>"
--header "Authorization: Bearer <ACCESS_TOKEN>"
The JSON input example includes the minimum list of parameters.
Parameter | Type | Required | Description |
---|---|---|---|
<SVM_NAME> |
Path |
Yes |
Identifies the SVM |
|
Path |
Yes |
Identifies the working environment ID |
<VOLUME_NAME> |
Path |
Yes |
Identifies the volume |
None
Delete volume for high availability pair
You can use this workflow to delete a volume for an HA working environment.
Step 1. Select the working environment
Perform the workflow Get working environments and choose the publicId
and svmName
values of the working environment for the workingEnvironmentId
and svmName
path parameters.
Step 2. Select the volume
Perform the workflow Get volumes and choose the name
of teh required volume for volumeName
path parameter.
Step 3. Delete the volume
You can issue the REST API call to delete the volume.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
DELETE |
/occm/api/aws/ha/volumes/{workingEnvironmentId}/{svmName}/{volumeName} |
curl --request DELETE \
--location "https://cloudmanager.cloud.netapp.com/occm/api/aws/ha/volumes/<WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
The JSON input example includes the minimum list of parameters.
Parameter | Type | Required | Description |
---|---|---|---|
<SVM_NAME> |
Path |
Yes |
Identifies the SVM |
|
Path |
Yes |
Identifies the working environment ID |
<VOLUME_NAME> |
Path |
Yes |
Identifies the volume |
None