Create a quote
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 a quote for a single node
You can use this workflow to Create a quote for a single node system.
1. Select the system
Perform the workflow Get system and choose the publicId
and svmName
values of the required system for workingEnvironmentId
and svmName
parameters in the JSON input.
2. Select the aggregate
Perform the Get aggregates workflow and choose the name
value of the required aggregate for the aggregateName
parameter in the JSON input.
3. Select the Google Cloud disk type
Perform the Get Google Cloud disk types workflow and choose the size
and supportedDiskType
values of the required disk type for the diskSize
and providerVolumeType
parameters in the JSON input.
4. Generate the volume quote
HTTP method | Path |
---|---|
POST |
/occm/api/gcp/vsa/quote |
- curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/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-sfrf3wvj",
"svmName": "svm_zivgcp01we02",
"aggregateName": "ziv01agg01",
"name": "zivagg01vol01",
"size": {
"size": "100",
"unit": "GB"
},
"enableThinProvisioning": "true",
"providerVolumeType": "pd-ssd",
"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
}
Create a quote for a high availability pair
You can use this workflow to Create a quote for an HA system.
1. Select the system
Perform the workflow Get system and choose the publicId
and svmName
values of the required system for workingEnvironmentId
and svmName
parameters in the JSON input.
2. Select the aggregate
Perform the Get aggregates workflow and choose the name
value of the required aggregate for the aggregateName
parameter in the JSON input.
3. Select the Google Cloud disk type
Perform the Get gcp disk types workflow and choose the size
and supportedDiskType
values of the required disk type for the diskSize
and providerVolumeType
parameters in the JSON input.
4. Generate the volume quote
HTTP method | Path |
---|---|
POST |
/occm/api/gcp/ha/quote |
- curl example
curl --location --request POST 'https://api.bluexp.netapp.com/occm/api/gcp/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
{
"workingEnvironmentId": "vsaworkingenvironment-blg9ei6u",
"svmName": "svm_ziv01we02ha",
"aggregateName": "ziv01we02agg01ha",
"name": "ziv01we02agg01havol01",
"size": {
"size": "100",
"unit": "GB"
},
"enableThinProvisioning": "true",
"providerVolumeType": "pd-ssd",
"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": "ziv01we02agg01ha",
"newAggregate": false,
"autoVsaCapacityManagement": true
}