Skip to main content

Get zones

Contributors netapp-ranuk

You can perform this workflow to retrieve the Google Cloud regions and zones over which a Cloud Volumes ONTAP working environment might be created.

Note This workflow is applicable only for an HA working environment.

Step 1. Select the project

Perform the workflow Get projects and choose projectId value of the required project for projectId query parameter.

Step 2. Get the zones

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

GET

/occm/api/gcp/ha/metadata/zones

Curl example
curl --request GET \
--location "https://cloudmanager.cloud.netapp.com/occm/api/gcp/ha/metadata/zones?project=<PROJECT_ID>" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Content-Type: application/json"
Additional input parameters

The JSON input example includes the minimum list of parameters.

Query parameter:

  • <PROJECT_ID> projectId string

Output

The JSON output example includes the list of Google Cloud regions and zones.

JSON output example
[
    {
        "displayName": "asia-east1",
        "name": "asia-east1",
        "location": "Changhua County, Taiwan",
        "zones": [
            {
                "name": "asia-east1-a"
            },
            {
                "name": "asia-east1-b"
            },
            {
                "name": "asia-east1-c"
            }
        ]
    },
    {
        "displayName": "asia-east2",
        "name": "asia-east2",
        "location": "Hong Kong",
        "zones": [
            {
                "name": "asia-east2-c"
            },
            {
                "name": "asia-east2-b"
            },
            {
                "name": "asia-east2-a"
            }
        ]
    }
]