This Choreo retrieves the list of regions available to the specified project. The documentation for this Google Compute resource can be found here.
Here is an example of acceptable inputs:
ClientID: {YOUR CLIENT ID}
ClientSecret: {YOUR CLIENT SECRET}
RefreshToken: {YOUR REFRESH TOKEN}
Project: 568511846799
The following is a sample of the JSON information returned by this Choreo:
{
"kind": "compute#regionList",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/regions",
"id": "projects/568511846799/regions",
"items": [
{
"kind": "compute#region",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/regions/europe-west1",
"id": "6603556478508187659",
"creationTimestamp": "2013-07-01T11:19:06.827-07:00",
"name": "europe-west1",
"description": "europe-west1",
"status": "UP",
"zones": [
"https://www.googleapis.com/compute/v1/projects/568511846799/zones/europe-west1-a",
"https://www.googleapis.com/compute/v1/projects/568511846799/zones/europe-west1-b"
],
"quotas": [
{
"metric": "CPUS",
"limit": 24,
"usage": 0
},
{
"metric": "DISKS_TOTAL_GB",
"limit": 5120,
"usage": 0
},
{
"metric": "STATIC_ADDRESSES",
"limit": 7,
"usage": 0
},
{
"metric": "IN_USE_ADDRESSES",
"limit": 23,
"usage": 0
}
]
},
{
"kind": "compute#region",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/regions/us-central1",
"id": "4214189281803384339",
"creationTimestamp": "2013-07-01T11:19:06.834-07:00",
"name": "us-central1",
"description": "us-central1",
"status": "UP",
"zones": [
"https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a",
"https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-b"
],
"quotas": [
{
"metric": "CPUS",
"limit": 24,
"usage": 0
},
{
"metric": "DISKS_TOTAL_GB",
"limit": 5120,
"usage": 0
},
{
"metric": "STATIC_ADDRESSES",
"limit": 7,
"usage": 0
},
{
"metric": "IN_USE_ADDRESSES",
"limit": 23,
"usage": 0
}
]
},
{
"kind": "compute#region",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/regions/us-central2",
"id": "603845331132396737",
"creationTimestamp": "2013-07-01T11:19:06.828-07:00",
"name": "us-central2",
"description": "us-central2",
"status": "UP",
"zones": [
"https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central2-a"
],
"quotas": [
{
"metric": "CPUS",
"limit": 24,
"usage": 0
},
{
"metric": "DISKS_TOTAL_GB",
"limit": 5120,
"usage": 0
},
{
"metric": "STATIC_ADDRESSES",
"limit": 7,
"usage": 0
},
{
"metric": "IN_USE_ADDRESSES",
"limit": 23,
"usage": 0
}
]
}
]
}