Skip to main content

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.

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.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

GET

/occm/api/azure/vsa/metadata/regions

Curl example
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>"
Additional input parameters

The JSON input example includes the minimum list of parameters.

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.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

GET

/occm/api/azure/ha/metadata/regions

Curl example
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>"
Additional input parameters

The JSON input example includes the minimum list of parameters.

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