Skip to main content

Modify volume

Contributors netapp-ranuk

You can modify the configuration of an existing volume.

Choose the workflow to use based 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 environment and choose the publicId and svmName values of the working environment for used as 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/gcp/vsa/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

curl example
curl --location --request PUT 'https://cloudmanager.cloud.netapp.com/occm/api/gcp/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) string

  • <SVM_NAME> (svmName) string

  • <VOLUME_NAME> (volumeName) string

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

JSON input example
{
  "exportPolicyInfo": {
    "policyType": "custom",
    "ips": [
      "10.000.0.0/20"
    ],
    "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 environment and choose the publicId and svmName values of the working environment for used as 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/gcp/ha/volumes/{workingEnvironmentId}/{svmName}/{volumeName}

curl example
curl --location --request PUT 'https://cloudmanager.cloud.netapp.com/occm/api/gcp/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) string

  • <SVM_NAME> (svmName) string

  • <VOLUME_NAME> (volumeName) string

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

JSON input example
{
  "exportPolicyInfo": {
    "policyType": "custom",
    "ips": [
      "10.138.0.0/20"
    ],
    "nfsVersion": [
      "nfs3"
    ]
  }
}
Output

None