Skip to main content

Create quote

Contributors netapp-ranuk

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.

Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:

Create quote for single node

You can perform this workflow to create a volume quote for a single node working environment.

1. Select the working environment

Perform the workflow Create Azure single node working environment and choose the publicId value for the working environment field in the input parameter.

2. Generate the volume quote

HTTP method Path

POST

/occm/api/azure/vsa/quote

curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/azure/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
{
  "providerVolumeType": "Premium_LRS",
  "verifyNameUniqueness": true,
  "name": "vol3",
  "size": {
    "size": 10,
    "unit": "GB"
  },
  "enableCompression": true,
  "enableDeduplication": true,
  "enableThinProvisioning": true,
  "svmName": "svm_ShirleyAzureVsa2601",
  "iops": null,
  "snapshotPolicyName": "default",
  "autoVsaCapacityManagementEnabled": true,
  "exportPolicyInfo": {
    "_ips": "10.0.0.0/16",
    "ips": [
      "10.0.0.0/16"
    ],
    "policyType": "custom"
  },
  "workingEnvironmentId": "VsaWorkingEnvironment-IsDYFJf8"
}
Output

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

JSON output example
{
    "numOfDisks": 0,
    "diskSize": {
        "size": 1.0,
        "unit": "TB"
    },
    "aggregateName": "aggr1",
    "newAggregate": false,
    "autoVsaCapacityManagement": true
}

Create quote for high availability pair

You can use this workflow to create a volume quote for an HA working environment.

1. Create the working environment

Perform the workflow Create Azure HA working environment and choose the publicId value for the working environment field in the input parameter.

2. Generate the volume quote

HTTP method Path

POST

/occm/api/azure/ha/quote

curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/azure/ha/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
{
  "providerVolumeType": "Premium_LRS",
  "verifyNameUniqueness": true,
  "name": "vol3",
  "size": {
    "size": 10,
    "unit": "GB"
  },
  "enableCompression": true,
  "enableDeduplication": true,
  "enableThinProvisioning": true,
  "svmName": "svm_ShirleyAzureVsa2601",
  "iops": null,
  "snapshotPolicyName": "default",
  "autoVsaCapacityManagementEnabled": true,
  "exportPolicyInfo": {
    "_ips": "10.0.0.0/16",
    "ips": [
      "10.0.0.0/16"
    ],
    "policyType": "custom"
  },
  "workingEnvironmentId": "VsaWorkingEnvironment-IsDYFJf8"
}
Output

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

JSON output example
{
    "numOfDisks": 0,
    "diskSize": {
        "size": 1.0,
        "unit": "TB"
    },
    "aggregateName": "aggr1",
    "newAggregate": false,
    "autoVsaCapacityManagement": true
}