# Google Compute Engine

> Start, stop, create and delete Google Cloud virtual machines, change their size and labels, and take disk snapshots. Start a workflow when an instance starts or stops, is created or deleted, or a snapshot is taken.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/google-compute-engine

## Actions

### Change machine type

Give a stopped instance more or fewer CPUs and memory. Stop it first with 'Stop instance', and start it again afterwards.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Machine type (`machine_type`, text, required): The new machine type, such as e2-standard-4.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "TERMINATED",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "setMachineType",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Create instance

Create a virtual machine and start it, from an operating system image, an instance template or a machine image.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Name (`name`, text, required): Lowercase letters, digits and dashes, starting with a letter, such as web-2. Must be new in the zone.
- Start from (`start_from`, text): What the instance is made from. Defaults to an operating system image. One of: `image` (An operating system image), `instance_template` (An instance template), `machine_image` (A machine image). Default: `image`.
- Operating system (`image`, text): The newest image of this system is used. Or give an image of your own, such as global/images/my-image. Only when Start from is An operating system image. Default: `projects/debian-cloud/global/images/family/debian-12`.
- Machine type (`machine_type`, text): How many CPUs and how much memory. Defaults to e2-medium (2 CPUs, 4 GB). Only when Start from is An operating system image. Default: `e2-medium`.
- Disk size (GB) (`disk_size_gb`, number): The boot disk's size. Defaults to the image's own, usually 10 GB. Only when Start from is An operating system image. From 10 to 65536.
- External IP address (`external_ip`, true/false): Give it an address reachable from the internet. On by default. Only when Start from is An operating system image. Default: `true`.
- Instance template (`instance_template`, text): The template to copy. Pick one, or give its name. Only when Start from is An instance template.
- Machine image (`machine_image`, text): The machine image to restore. Pick one, or give its name. Only when Start from is A machine image.
- Labels (`labels`, object): Labels to add or change, such as env: prod. Lowercase letters, digits, - and _.
- Description (`description`, text): A note shown in the Google Cloud console.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "insert",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Create snapshot

Take a snapshot of a disk, a backup it can be restored from later. The instance can keep running.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Disk (`disk`, text, required): The disk. Pick one, or give its name; an instance's boot disk usually has the instance's name.
- Snapshot name (`name`, text): Lowercase letters, digits and dashes. Defaults to the disk's name and the time, such as web-1-20261117-170000.
- Description (`description`, text): A note shown in the Google Cloud console.
- Labels (`labels`, object): Labels for the snapshot, such as env: prod.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `operation` (object): The operation Compute Engine ran
- `snapshot` (object): The snapshot

**Example output**

```json
{
  "done": true,
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "createSnapshot",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  },
  "snapshot": {
    "created": "2026-11-17T09:00:02.345-08:00",
    "description": "",
    "disk_size_gb": 10,
    "id": "2345678901234567890",
    "labels": {},
    "locations": [
      "us"
    ],
    "name": "web-1-20261117-170000",
    "source_disk": "web-1",
    "source_disk_zone": "us-central1-a",
    "status": "READY",
    "storage_bytes": 1234567890
  }
}
```

### Delete instance

Delete an instance for good, with the disks set to be deleted with it (usually its boot disk). Take a snapshot first to keep its data.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `deleted` (true/false): True once it is gone
- `done` (true/false): True once Compute Engine has finished
- `instance` (text): The instance deleted
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "deleted": true,
  "done": true,
  "instance": "web-1",
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "delete",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Delete snapshot

Delete a snapshot for good.

**Inputs**

- Snapshot (`snapshot`, text, required): The snapshot. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `deleted` (true/false): True once it is gone
- `done` (true/false): True once Compute Engine has finished
- `operation` (object): The operation Compute Engine ran
- `snapshot` (text): The snapshot deleted

**Example output**

```json
{
  "deleted": true,
  "done": true,
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "delete",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": ""
  },
  "snapshot": "web-1-20261117-170000"
}
```

### Get instance

Get one instance: its status, machine type, IP addresses, labels and when it last started and stopped.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.

**Outputs**

- `instance` (object): The instance

**Example output**

```json
{
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  }
}
```

### Get operation

Check on a change Compute Engine is making, such as one started with 'Wait until done' off, and optionally wait for it to finish.

**Inputs**

- Zone (`zone`, text): The operation's zone. Leave blank for a snapshot deletion, which isn't in a zone.
- Operation (`operation`, text, required): The operation's name, from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) for it to finish. Off by default. Default: `false`.

**Outputs**

- `operation` (object): The operation

**Example output**

```json
{
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "start",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Get serial console output

Read what an instance has written to its serial console, such as its boot messages, to see why it won't start.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Port (`port`, text): Which serial port. Port 1 is the console. One of: `1` (Port 1 (the console)), `2` (Port 2), `3` (Port 3), `4` (Port 4). Default: `1`.
- Start at byte (`start`, number): Read only output after this point: give 'next' from an earlier read. Leave blank for all that is kept. At least 0.

**Outputs**

- `contents` (text): The output
- `next` (number): Where the next read should start, for 'Start at byte'
- `start` (number): Where this output starts

**Example output**

```json
{
  "contents": "Booting from Hard Disk 0...\nDebian GNU/Linux 12 web-1 ttyS0\n",
  "next": 52,
  "start": 0
}
```

### List disks

List your persistent disks in every zone, or one, with their size, type and the instances using them.

**Inputs**

- Zone (`zone`, text): Only this zone. Leave blank for every zone.
- Most to return (`limit`, number): The most to return. Defaults to 100. From 1 to 5000.

**Outputs**

- `count` (number): How many
- `disks` (list): The disks

**Example output**

```json
{
  "count": 1,
  "disks": [
    {
      "attached_to": [
        "web-1"
      ],
      "created": "2026-11-02T08:15:30.123-08:00",
      "id": "8901234567890123456",
      "labels": {},
      "last_attached": "2026-11-02T08:15:31.456-08:00",
      "name": "web-1",
      "size_gb": 10,
      "source_image": "debian-12-bookworm-v20261020",
      "status": "READY",
      "type": "pd-balanced",
      "zone": "us-central1-a"
    }
  ]
}
```

### List instances

List your instances in every zone, or one, with their status, machine type, IP addresses and labels.

**Inputs**

- Zone (`zone`, text): Only this zone. Leave blank for every zone.
- Status (`status`, text): Only instances with this status. One of: `RUNNING`, `TERMINATED` (Stopped), `SUSPENDED`.
- Label (`label`, text): Only instances with this label, such as env=prod, or just env.
- Most to return (`limit`, number): The most to return. Defaults to 100. From 1 to 5000.

**Outputs**

- `count` (number): How many
- `instances` (list): The instances

**Example output**

```json
{
  "count": 1,
  "instances": [
    {
      "created": "2026-11-02T08:15:30.123-08:00",
      "deletion_protection": false,
      "description": "",
      "external_ip": "34.123.45.67",
      "id": "4567123456789012345",
      "internal_ip": "10.128.0.2",
      "labels": {
        "env": "prod"
      },
      "last_started": "2026-11-17T09:00:12.456-08:00",
      "last_stopped": "2026-11-16T18:00:03.789-08:00",
      "last_suspended": "",
      "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
      "machine_type": "e2-medium",
      "name": "web-1",
      "status": "RUNNING",
      "status_message": "",
      "zone": "us-central1-a"
    }
  ]
}
```

### List machine types

List the machine types a zone offers, with their CPUs and memory.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Name starts with (`starts_with`, text): Only types whose name starts with this, such as e2.

**Outputs**

- `count` (number): How many
- `machine_types` (list): The machine types

**Example output**

```json
{
  "count": 1,
  "machine_types": [
    {
      "cpus": 2,
      "description": "2 vCPUs, 4 GB RAM",
      "memory_gb": 4.0,
      "name": "e2-medium",
      "shared_cpu": true
    }
  ]
}
```

### List operations

List the changes Compute Engine has made or is making in a zone, such as instances started, stopped or created, and who started each.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Status (`status`, text): Only operations in this state. One of: `RUNNING`, `PENDING` (Waiting to start), `DONE`.
- Most to return (`limit`, number): The most to return. Defaults to 100. From 1 to 5000.

**Outputs**

- `count` (number): How many
- `operations` (list): The operations

**Example output**

```json
{
  "count": 1,
  "operations": [
    {
      "done": true,
      "ended": "2026-11-17T09:00:15.678-08:00",
      "error": "",
      "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
      "progress": 100,
      "started": "2026-11-17T09:00:01.234-08:00",
      "status": "DONE",
      "target": "web-1",
      "type": "start",
      "user": "lodol@my-project.iam.gserviceaccount.com",
      "zone": "us-central1-a"
    }
  ]
}
```

### List snapshots

List your disk snapshots, newest first.

**Inputs**

- Most to return (`limit`, number): The most to return. Defaults to 100. From 1 to 5000.

**Outputs**

- `count` (number): How many
- `snapshots` (list): The snapshots

**Example output**

```json
{
  "count": 1,
  "snapshots": [
    {
      "created": "2026-11-17T09:00:02.345-08:00",
      "description": "",
      "disk_size_gb": 10,
      "id": "2345678901234567890",
      "labels": {},
      "locations": [
        "us"
      ],
      "name": "web-1-20261117-170000",
      "source_disk": "web-1",
      "source_disk_zone": "us-central1-a",
      "status": "READY",
      "storage_bytes": 1234567890
    }
  ]
}
```

### Reset instance

Restart an instance at once, like pressing a reset button. Anything not saved to disk is lost.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "reset",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Resume instance

Carry on a suspended instance from where it was paused.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "resume",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Set instance labels

Add, change or remove an instance's labels. Labels it already has and you don't name are kept.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Labels (`labels`, object): Labels to add or change, such as env: prod. Lowercase letters, digits, - and _.
- Remove labels (`remove`, list): Keys of labels to take off, such as env.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `changed` (true/false): False if the labels were already so, and nothing was sent
- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `labels` (object): Its labels now

**Example output**

```json
{
  "changed": true,
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "labels": {
    "env": "prod"
  }
}
```

### Start instance

Start a stopped instance. Billing for its CPU and memory resumes.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "RUNNING",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "start",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Stop instance

Shut down an instance. Its disks are kept and still billed; its CPU and memory aren't.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "TERMINATED",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "stop",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```

### Suspend instance

Pause an instance, keeping what is in its memory, so it can carry on where it left off with 'Resume instance'.

**Inputs**

- Zone (`zone`, text, required): The zone, such as us-central1-a. Pick one, or give it from an earlier step.
- Instance (`instance`, text, required): The instance. Pick one, or give its name from an earlier step.
- Wait until done (`wait`, true/false): Wait (up to four minutes) until Compute Engine has finished, and return the result. Turn off to return at once. Default: `true`.

**Outputs**

- `done` (true/false): True once Compute Engine has finished
- `instance` (object): The instance, as it is now
- `operation` (object): The operation Compute Engine ran

**Example output**

```json
{
  "done": true,
  "instance": {
    "created": "2026-11-02T08:15:30.123-08:00",
    "deletion_protection": false,
    "description": "",
    "external_ip": "34.123.45.67",
    "id": "4567123456789012345",
    "internal_ip": "10.128.0.2",
    "labels": {
      "env": "prod"
    },
    "last_started": "2026-11-17T09:00:12.456-08:00",
    "last_stopped": "2026-11-16T18:00:03.789-08:00",
    "last_suspended": "",
    "link": "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/web-1",
    "machine_type": "e2-medium",
    "name": "web-1",
    "status": "SUSPENDED",
    "status_message": "",
    "zone": "us-central1-a"
  },
  "operation": {
    "done": true,
    "ended": "2026-11-17T09:00:15.678-08:00",
    "error": "",
    "name": "operation-1763456789012-6431f2c1a2b3c-4d5e6f70-81a2b3c4",
    "progress": 100,
    "started": "2026-11-17T09:00:01.234-08:00",
    "status": "DONE",
    "target": "web-1",
    "type": "suspend",
    "user": "lodol@my-project.iam.gserviceaccount.com",
    "zone": "us-central1-a"
  }
}
```
