This Choreo retrieves the list of Machine Type resources for 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
Zone: us-central1-a
The following is a sample of the JSON information returned by this Choreo:
{
"kind": "compute#machineTypeList",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes",
"id": "projects/568511846799/zones/us-central1-a/machineTypes",
"items": [
{
"kind": "compute#machineType",
"id": "4618642685664990776",
"creationTimestamp": "2013-04-25T13:32:49.088-07:00",
"name": "f1-micro",
"description": "1 vCPU (shared physical core) and 0.6 GB RAM",
"guestCpus": 1,
"memoryMb": 614,
"imageSpaceGb": 0,
"maximumPersistentDisks": 4,
"maximumPersistentDisksSizeGb": "3072",
"zone": "us-central1-a",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes/f1-micro"
},
{
"kind": "compute#machineType",
"id": "7224129552184485774",
"creationTimestamp": "2013-04-25T13:32:45.550-07:00",
"name": "g1-small",
"description": "1 vCPU (shared physical core) and 1.7 GB RAM",
"guestCpus": 1,
"memoryMb": 1740,
"imageSpaceGb": 0,
"maximumPersistentDisks": 4,
"maximumPersistentDisksSizeGb": "3072",
"zone": "us-central1-a",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes/g1-small"
},
{
"kind": "compute#machineType",
"id": "13043554592196512955",
"creationTimestamp": "2012-11-16T11:46:10.572-08:00",
"name": "n1-highcpu-2",
"description": "2 vCPUs, 1.8 GB RAM",
"guestCpus": 2,
"memoryMb": 1843,
"imageSpaceGb": 10,
"maximumPersistentDisks": 16,
"maximumPersistentDisksSizeGb": "10240",
"zone": "us-central1-a",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes/n1-highcpu-2"
},
{
"kind": "compute#machineType",
"id": "13043555176034896271",
"creationTimestamp": "2012-11-16T11:47:07.825-08:00",
"name": "n1-highcpu-2-d",
"description": "2 vCPUs, 1.8 GB RAM, 1 scratch disk (870 GB)",
"guestCpus": 2,
"memoryMb": 1843,
"imageSpaceGb": 10,
"scratchDisks": [
{
"diskGb": 870
}
],
"maximumPersistentDisks": 16,
"maximumPersistentDisksSizeGb": "10240",
"deprecated": {
"state": "DEPRECATED",
"replacement": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes/n1-highcpu-2",
"deprecated": "2013-12-02T20:00:00-08:00"
},
"zone": "us-central1-a",
"selfLink": "https://www.googleapis.com/compute/v1/projects/568511846799/zones/us-central1-a/machineTypes/n1-highcpu-2-d"
}
]
}