Create quote

Contributors netapp-ranuk Download PDF of this page

You can create a quote for a new volume which returns a resource quote needed to satisfy the request. The resource quote contains aggregate information where the volume will be created and confirms if the space is available. This is a recommended step but is not mandatory.

1. Select the working environment

Perform the workflow Get working environments and choose the publicId value for the working environment and svmName.

2. Select the aggregate

Perform the workflow Get aggregates and choose the name value.

3. Select the permutations configuration

Perform the workflow Get permutations and choose the size and diskType values for step 4.

4. Generate the volume quote

HTTP method Path

POST

/occm/api/vsa/quote

curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/vsa/volumes/quote' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID> --header 'Authorization: Bearer <ACCESS_TOKEN>' --d @JSONinput
Input

The JSON input example includes the list of input parameters.

JSON input example
{
  "workingEnvironmentId": "VsaWorkingEnvironment-5dZfyKS5",
  "svmName": "svm_ziv01we01",
  "aggregateName": "ziv01agg01",
  "name": "ziv1vol02",
  "size": {
    "size": "100",
    "unit": "GB"
  },
  "enableThinProvisioning": "true",
  "providerVolumeType": "gp2",
  "verifyNameUniqueness": "true"
}
Output

The JSON output example includes an example of the quote details.

JSON output example

{
    "numOfDisks": 0,
    "diskSize": {
        "size": 100.0,
        "unit": "GB"
    },
    "aggregateName": "ziv01agg01",
    "newAggregate": false,
    "autoVsaCapacityManagement": true
}