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. |
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/occm/api/azure/vsa/metadata/availability-zones |
Curl example
curl --request GET \
--location "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"
Additional input parameters
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 ] }