Skip to main content

Get Compute Instance

Returns the specified Instance resource. Gets a list of available instances by making a list() request.

External Documentation

To learn more, visit the GCP documentation.

Basic Parameters

ParameterDescription
InstanceName of the instance resource to return.
ProjectProject ID for this request.
ZoneThe name of the zone for this request.

Advanced Parameters

ParameterDescription
FieldsSelector specifying which fields to include in a partial response.

Example Output

{
"kind": "compute#instance",
"id": "9167772395593820681",
"creationTimestamp": "2022-12-29T09:56:54.771-08:00",
"name": "test-instance",
"description": "",
"tags": {
"fingerprint": "42WmSpB8rSM="
},
"machineType": "https://blinkops.com",
"status": "RUNNING",
"zone": "https://blinkops.com",
"canIpForward": false,
"networkInterfaces": [
{
"kind": "compute#networkInterface",
"network": "https://blinkops.com",
"subnetwork": "https://blinkops.com",
"networkIP": "1.1.1.1",
"name": "nic0",
"accessConfigs": [
{
"kind": "compute#accessConfig",
"type": "ONE_TO_ONE_NAT",
"name": "External NAT",
"natIP": "1.1.1.1",
"networkTier": "PREMIUM"
}
],
"fingerprint": "xkwN6FFa7Tw=",
"stackType": "IPV4_ONLY"
}
],
"disks": [
{
"kind": "compute#attachedDisk",
"type": "PERSISTENT",
"mode": "READ_WRITE",
"source": "https://blinkops.com",
"deviceName": "test-instance",
"index": 0,
"boot": true,
"autoDelete": true,
"licenses": [
"https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-11-bullseye"
],
"interface": "SCSI",
"guestOsFeatures": [
{
"type": "UEFI_COMPATIBLE"
},
{
"type": "VIRTIO_SCSI_MULTIQUEUE"
},
{
"type": "GVNIC"
}
],
"diskSizeGb": "10",
"architecture": "X86_64"
}
],
"metadata": {
"kind": "compute#metadata",
"fingerprint": "5c6Q1lcqqGY="
},
"serviceAccounts": [
{
"email": "test@blinkops.com",
"scopes": [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/trace.append"
]
}
],
"selfLink": "https://blinkops.com",
"scheduling": {
"onHostMaintenance": "MIGRATE",
"automaticRestart": true,
"preemptible": false,
"provisioningModel": "STANDARD"
},
"cpuPlatform": "Intel Broadwell",
"labelFingerprint": "42WmSpB8rSM=",
"startRestricted": false,
"deletionProtection": false,
"reservationAffinity": {
"consumeReservationType": "ANY_RESERVATION"
},
"displayDevice": {
"enableDisplay": false
},
"shieldedInstanceConfig": {
"enableSecureBoot": false,
"enableVtpm": true,
"enableIntegrityMonitoring": true
},
"shieldedInstanceIntegrityPolicy": {
"updateAutoLearnPolicy": true
},
"confidentialInstanceConfig": {
"enableConfidentialCompute": false
},
"fingerprint": "_tRWvOmUzR0=",
"lastStartTimestamp": "2022-12-29T09:57:02.305-08:00",
"keyRevocationActionType": "NONE"
}

Workflow Library Example

Get Compute Instance with Gcp and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop