Skip to content
Proud to collaborate with Microsoft for Startups

gcp.compute.vm.delete ​

Delete a GCE VM / MIG

Deletes a GCE VM / MIG via LTIP. Swallows RESOURCE_NOT_FOUND.

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • name: VM / MIG name (required)
  • zone: GCE zone, e.g. 'us-central1-a' (required; 'region' is a deprecated alias)
  • project_id: Explicit project (optional)

Outputs:

  • name
  • existed: bool

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namestringYes——
zonestringNo—GCE zone, e.g. 'us-central1-a'. Required (may be supplied via the 'region' alias).
regionstringNo—Deprecated alias for 'zone'. A bare region (e.g. 'us-central1') is NOT a valid zone.
project_idstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
namestringNo——
zonestringNo——
regionstringNo——
project_idstringNo——
existedbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "gcp.compute.vm.delete",
  "initial_data": {
    "connection_uuid": "value",
    "name": "value"
  }
}