Modify volume

Contributors netapp-ranuk

You can modify the configuration of an existing volume.

Choose the correct workflow depending on the type of Cloud Volumes ONTAP deployment:

Modify volume for single node

You can use this workflow to modify the configuration of an existing volume for a single node working environment.

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/vsa/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

curl example
curl --location --request PUT '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>' --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": [
      "172.31.0.0/16"
    ],
    "nfsVersion": [
      "nfs3"
    ]
  }
}
Output

None

Modify volume for high availability pair

You can use this workflow to modify the configuration of an existing volume for an HA working environment.

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/aws/ha/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

curl example
curl --location --request PUT '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>' --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": [
      "172.31.0.0/16"
    ],
    "nfsVersion": [
      "nfs3"
    ]
  }
}
Output

None