Get Azure regions
This workflow retrieves the Azure regions in which an Cloud Volumes ONTAP working environment may be created.
Ensure that you've the Azure subscription ID. You can easily obtain the ID from the Azure portal. |
Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:
Get Azure regions for single node
You can perform this workflow to retrieve the Azure regions for a single node working environment.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/occm/api/azure/vsa/metadata/regions |
curl --request GET
--location "https://cloudmanager.cloud.netapp.com/occm/api/azure/vsa/metadata/regions?subscriptionId=<SUBSCRIPTION_ID>"
--header "Content-Type: application/json"
--header "x-agent-id: <AGENT_ID>"
--header "Authorization: Bearer <ACCESS_TOKEN>"
The JSON input example includes the minimum list of parameters.
Query parameters (Optional):
-
fields
, string -
subscriptionId
, string -
cloudProviderAccountId
, string
The JSON output provides an example of a list of Azure regions.
[ { "displayName": "Central US", "name": "centralus", "vnets": null }, { "displayName": "East US", "name": "eastus", "vnets": null }, { "displayName": "East US 2", "name": "eastus2", "vnets": null }, { "displayName": "West US 2", "name": "westus2", "vnets": null } ]
Get Azure regions for high availability pair
You can perform this workflow to retrieve the Azure regions for an HA working environment.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/occm/api/azure/ha/metadata/regions |
curl --request GET
--location "https://cloudmanager.cloud.netapp.com/occm/api/azure/ha/metadata/regions?subscriptionId=<SUBSCRIPTION_ID>"
--header "Content-Type: application/json"
--header "x-agent-id: <AGENT_ID>"
--header "Authorization: Bearer <ACCESS_TOKEN>"
The JSON input example includes the minimum list of parameters.
(Optional) Query parameters:
-
fields
, string -
subscriptionId
, string -
cloudProviderAccountId
, string
The JSON output provides an example of a list of Azure regions.
[ { "displayName": "Central US", "name": "centralus", "vnets": null }, { "displayName": "East US", "name": "eastus", "vnets": null }, { "displayName": "East US 2", "name": "eastus2", "vnets": null }, { "displayName": "West US 2", "name": "westus2", "vnets": null } ]