Skip to main content

Modify volume

Contributors netapp-ranuk

You can modify the configuration of an existing volume.

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.

2. Select the volume

Perform the workflow Get volumes and choose the name for the volumeName path parameter.

3. Modify the volume

HTTP method Path

PUT

/occm/api/onprem/volumes/<ONPREM_WORKING_ENV_ID>/<SVM_NAME>/<VOLUME_NAME>

curl example
curl --location --request PUT '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
Input

Path parameters:

  • <WORKING_ENV_ID> (workingEnvironmentId)

  • <SVM_NAME> (svmName)

  • <VOLUME_NAME> (volumeName)

The JSON input example includes the minimum list of input parameters.

JSON input example
{
  "exportPolicyInfo": {
    "policyType": "custom",
    "ips": [
      "1xx.00.0.0/16"
    ],
    "nfsVersion": [
      "nfs3"
    ]
  }
}
Output

None