Get zones
You can perform this workflow to retrieve the GCP regions and zones over which a Cloud Volumes ONTAP working environment might be created.
|
This workflow is applicable only for an HA working environment. |
1. Select the project
Perform the workflow Get projects and choose projectId
value of the required project for projectId
query parameter.
2. Get the zones
HTTP method | Path |
---|---|
GET |
/occm/api/gcp/ha/metadata/zones |
- curl example
curl --location --request GET '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'
- Input
-
Query parameter:
-
<PROJECT_ID>
projectId
string
-
- Output
-
The JSON output example includes the list of GCP 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"
}
]
}
]