Enumerate Gcp Regions

Enumerate Gcp Regions

Get the available regions for specified GCP cloud account

Request
URI
POST
https://{api_host}/iaas/api/cloud-accounts-gcp/region-enumeration
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Request Body

CloudAccount specification

CloudAccountGcpSpecification of type(s) application/json
Required
"CloudAccountGcpSpecification Object"
string
privateKey
Required

GCP Private key

boolean
createDefaultZones
Optional

Create default cloud zones for the enabled regions.

string
clientEmail
Required

GCP Client email

string
name
Required

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

array of string
regionIds
Required

A set of Region names to enable provisioning on. Refer to /iaas/cloud-accounts-gcp/region-enumeration.

string
projectId
Required

GCP Project ID

string
privateKeyId
Required

GCP Private key ID

array of object
tags
Optional

A set of tag keys and optional values to set on the Cloud Account

Responses
200

successful operation

Returns CloudAccountRegions of type(s) application/json
{
    "externalRegionIds": [
        "string"
    ]
}
array of string
externalRegionIds
Required

A set of region ids for the cloud account.


400

Invalid Request - bad data

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/iaas/api/cloud-accounts-gcp/region-enumeration