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.
1. Get the list of regions
HTTP method | Path |
---|---|
GET |
/occm/api/azure/vsa/metadata/regions |
- Curl example
curl --location --request GET '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>'
- Input
-
Query parameters (Optional):
-
fields
, string -
subscriptionId
, string -
cloudProviderAccountId
, string
-
- Output
-
The JSON output provides an example of a list of Azure regions.
- JSON output example
[
{
"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.
1. Get the list of regions
HTTP method | Path |
---|---|
GET |
/occm/api/azure/ha/metadata/regions |
- Curl example
curl --location --request GET '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>'
- Input
-
(Optional) Query parameters:
-
fields
, string -
subscriptionId
, string -
cloudProviderAccountId
, string
-
- Output
-
The JSON output provides an example of a list of Azure regions.
- JSON output example
[
{
"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
}
]