Get Azure availability zones
You can perform this workflow to retrieve the Azure availability zones by region.
|
Make sure that you’ve the Azure subscription ID. You can obtain the ID from the Azure portal. |
1. Get the availability zones
HTTP method | Path |
---|---|
GET |
/occm/api/azure/vsa/metadata/availability-zones |
- curl example
curl --location --request GET 'https://cloudmanager.cloud.netapp.com/occm/api/azure/vsa/metadata/availability-zones?region=<REGION>&subscriptionId=<SUBSCRIPTION_ID>' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --header 'Content-Type: application/json'
- Input
-
Query parameters:
-
<REGION>
region
string -
(Optional) <SUBSCRIPTION_ID>
subscriptionId
string -
(Optional)
cloudProviderAccountId
string
-
- Output
-
The JSON output example includes the list of Azure availability zones.
- JSON output example
{
"region": "eastus2",
"zones": [
1,
3,
2
]
}