Skip to main content

Delete aggregate

Contributors netapp-ranuk

You can delete an existing disk aggregate in an Azure working environment.

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

Delete aggregate for single node

You can use this workflow to delete an aggregate for a single node working environment.

Step 1. Create the working environment

Perform the workflow Create Azure single node working environment and choose the publicId value of the working environment for the workingEnvironmentId path parameter.

Step 2. Create an aggregate to delete

Perform the workflow Create aggregate to create an aggregate with the name aggr2. Use aggr2 value for the aggregateName path parameter.

Step 3. Delete the aggregate

HTTP method Path

DELETE

/occm/api/azure/vsa/aggregates/{workingEnvironmentId}/{aggregateName}

Curl example
curl --location --request DELETE 'https://cloudmanager.cloud.netapp.com/occm/api/azure/vsa/aggregates/<WORKING_ENV_ID>/<AGGR_NAME>' --header 'Content-Type: application/json' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>'
Additional input parameters

The JSON input example includes the minimum list of parameters.

Path parameters:
* <WORKING_ENV_ID> (workingEnvironmentId) string
* <AGGR_NAME> (aggregateName) string

Output

None

Delete aggregate for high availability pair

You can use this workflow to delete an aggregate for an HA working environment.

Step 1. Create the working environment

Perform the workflow Create Azure HA working environment and choose the publicId value of the working environment for the workingEnvironmentId path parameter.

Step 2. Create an aggregate to delete

Perform the workflow Create aggregate to create an aggregate with the name aggr2. Use aggr2 value for the aggregateName path parameter.

Step 3. Delete the aggregate

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

DELETE

/occm/api/azure/ha/aggregates/{workingEnvironmentId}/{aggregateName}

Curl example
curl --location
--request DELETE 'https://cloudmanager.cloud.netapp.com/occm/api/azure/ha/aggregates/<WORKING_ENV_ID>/<AGGR_NAME>'
--header 'Content-Type: application/json'
--header 'x-agent-id: <AGENT_ID>'
--header 'Authorization: Bearer <ACCESS_TOKEN>'
Additional input parameters

The JSON input example includes the minimum list of parameters.

Path parameters:
* <WORKING_ENV_ID> (workingEnvironmentId) string
* <AGGR_NAME> (aggregateName) string

Output

None

Delete aggregate for high availability pair

You can use this workflow to delete an aggregate for an HA working environment.

Step 1. Create the working environment

Perform the workflow Create Azure HA working environment and choose the publicId value of the working environment for the workingEnvironmentId path parameter.

Step 2. Create an aggregate to delete

Perform the workflow Create aggregate to create an aggregate with the name aggr2. Use aggr2 value for the aggregateName path parameter.

Step 3. Delete the aggregate

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

DELETE

/occm/api/azure/ha/aggregates/{workingEnvironmentId}/{aggregateName}

Curl example
curl --request DELETE \
--location "https://cloudmanager.cloud.netapp.com/occm/api/azure/ha/aggregates/<WORKING_ENV_ID>/aggr2" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>"
Input

Path parameters:
* <WORKING_ENV_ID> (workingEnvironmentId) string
* <AGGR_NAME> (aggregateName) string

Output

None