Get Azure regions

Contributors netapp-ranuk

This workflow retrieves the Azure regions in which an Cloud Volumes ONTAP working environment may be created.

Note Ensure that you’ve the Azure subscription ID. You can easily obtain the ID from the Azure portal.

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
    }
]