Modify a volume
You can modify the configuration of an existing volume.
Step 1. Select the working environment
Perform the workflow Get working environments and choose the publicId
and svmName
values for the workingEnvironmentId
and svmName
path parameters.
Step 2. Select the volume
Perform the workflow Get volumes and choose the name
for the volumeName
path parameter.
Step 3. Modify the volume
You can issue a REST API call to modify a volume.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
PUT |
/occm/api/onprem/volumes/<ONPREM_WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME> |
Curl example
curl --request PUT
--location "https://cloudmanager.cloud.netapp.com/occm/api/onprem/volumes/<ONPREM_WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--d @JSONinput
Additional input parameters
The JSON input example includes the minimum list of parameters.
Parameter | Type | Required | Description |
---|---|---|---|
<SVM_NAME> |
Path |
Yes |
Identifies the SVM name |
|
Path |
Yes |
Identifies the working environment |
<VOLUME_NAME> |
Path |
Yes |
Identifies the volume |
JSON input example
{
"exportPolicyInfo": {
"policyType": "custom",
"ips": [
"1xx.00.0.0/16"
],
"nfsVersion": [
"nfs3"
]
}
}
Output
None