Skip to content

Integrations

Google Cloud connector

Automate Google Cloud operations from workflows, agents, the API and MCP: VMs, Cloud Run, GKE, Cloud SQL, buckets, IAM, Pub/Sub, secrets, logs and metrics, with approval for destructive actions.

Last updated 10 min read Edit this page on GitHub
On this page

The Google Cloud connector (gcp) adds 115 management actions for operations and platform teams: start, stop and resize VMs, deploy a Cloud Run revision and roll back its traffic, scale GKE node pools and instance groups, stop Cloud SQL instances out of hours, manage buckets, service accounts and IAM bindings, publish to Pub/Sub, rotate secrets, and read logs, metrics and budgets. Every action becomes a reference: a workflow step, an agent tool, an API call (POST /api/v1/references/{id}/execute) and an MCP tool. The existing Firebase, Gmail, Google Drive, Docs, Tasks and Gemini connectors are unchanged.

Set up#

  1. In the Google Cloud console, open IAM & Admin → Service accounts and create a service account for UserTasks (for example usertasks-ops).
  2. Grant it only the roles the workflows need (see Permissions).
  3. Open the account, then Keys → Add key → Create new key → JSON, and download the key file.
  4. In UserTasks, go to Integrations → Connectors → Cloud Storage and choose Google Cloud. Paste the whole key file into Service Account JSON key.
  5. Set Project ID (defaults to the key's project), and a Default region and Default zone if you use regional and zonal actions.
  6. Click Test connection. It mints a token and reads the project, and says which part failed: the key, impersonation, a missing permission or a wrong project ID.
Bash
usertasks connectors create -f gcp.yaml
usertasks connectors test <id>
YAML
connector_key: gcp
name: Google Cloud (production)
config:
  project_id: my-project-123
  region: us-central1
  zone: us-central1-a
credentials:
  service_account_json: "${GCP_SA_KEY_JSON}"

The key is stored encrypted, is never shown again and is never written to logs. Tokens are short-lived (one hour) and cached per workspace until shortly before they expire.

Set Impersonate service account to act as another service account. UserTasks exchanges the key's token for a short-lived token of that account through the IAM Service Account Credentials API. Keep the key's own account powerless, and give the roles to the impersonated account. The key's account needs Service Account Token Creator (roles/iam.serviceAccountTokenCreator) on the impersonated account, and the project must have iamcredentials.googleapis.com enabled. You can also use one key with several connectors that impersonate different accounts, for example a read-only account for reporting agents and an operator account for approval workflows.

Endpoints and self-hosting#

The connector needs no extra services. Calls go straight to Google over HTTPS, and every request passes the server's egress guard. Universe domain (default googleapis.com) moves every call to another Google Cloud universe. Endpoint overrides sends one service's calls elsewhere, for example Private Service Connect: {"compute": "https://compute-myendpoint.p.googleapis.com"}. Credentials are only ever sent to HTTPS hosts in the universe domain, or to an override you configured.

Permissions#

Grant the service account the smallest set of roles. Pick the rows you need:

  • Read-only (inventory, logs, metrics): roles/viewer, roles/logging.viewer, roles/monitoring.viewer
  • Compute Engine operations (start / stop / resize / snapshot): roles/compute.instanceAdmin.v1 (add roles/compute.storageAdmin for disks and snapshots; roles/compute.securityAdmin for firewall rules)
  • Cloud Run deploys and traffic: roles/run.developer plus roles/iam.serviceAccountUser on the service's runtime service account
  • Cloud Functions: roles/cloudfunctions.developer · GKE node pools: roles/container.clusterAdmin · Cloud SQL start / stop / backup: roles/cloudsql.editor
  • Storage buckets: roles/storage.admin (bucket IAM included) · Pub/Sub: roles/pubsub.editor · Secret Manager: roles/secretmanager.admin (or secretAccessor / secretVersionAdder for one secret)
  • IAM changes (bindings, service accounts, keys, custom roles): roles/resourcemanager.projectIamAdmin, roles/iam.serviceAccountAdmin, roles/iam.serviceAccountKeyAdmin, roles/iam.roleAdmin — grant only to a connector that needs them
  • APIs: roles/serviceusage.serviceUsageAdmin · Billing: roles/billing.viewer on the billing account
  • Impersonation: the key's service account needs roles/iam.serviceAccountTokenCreator on the impersonated account

Enable each API you use (APIs & Services → Library). A call to a disabled API fails with SERVICE_DISABLED, and the message names the API to enable.

Safety#

  • Risk levels. Every action is marked Read, Change or Destructive. Destructive actions delete or terminate resources, change access (IAM policies and bindings, service accounts, keys, custom roles, firewall rules, disabling an API) or read or write secrets. Agents always ask a person to approve a destructive call, even when the agent's other tools run without approval. MCP clients must pass confirm: true to run one.
  • Dry run. Cloud Run deploy, traffic and delete send validateOnly. Add or Remove IAM Binding and Set VM Instance Labels show the before and after without writing.
  • Concurrency. IAM changes use the policy etag, and a concurrent change is retried. Label changes use the label fingerprint.
  • Public access. Create Bucket turns on uniform bucket-level access and public access prevention. Granting a role to allUsers or allAuthenticatedUsers needs allow_public: true.
  • Secrets. Access Secret Version returns secret_value, and Create Service Account Key returns private_key_json. The integration call log keeps a copy with these values masked. Secret inputs (secret_value) are masked in call logs too. The value is still in the workflow step's output for the next steps to use, so limit who can open those runs, and prefer impersonation over keys.
  • Generic calls. Call Google Cloud API reaches any *.googleapis.com method and is treated as destructive. Call Google Cloud API (Read) only sends GET.

How calls behave#

  • Defaults. project_id, region, zone and billing_account_id default to the connector's settings. A required path value that is still empty fails before anything is sent, and the error names the input.
  • Paging. List actions take page_size and page_token and return nextPageToken. Set all_pages: true to follow the token and merge the pages (max_pages, default 10). The hard cap is 50 pages or 5,000 items, and truncated: true with the remaining nextPageToken says there is more.
  • Long-running operations. Actions that start an operation return done, status, operation_url, target, error and response. Set wait_for_completion: true to poll until it finishes (wait_timeout_seconds, default 60, max 600). A failed operation fails the step with Google's error code. One still running after the wait returns status 202 with timed_out: true; pass its operation_url to Get Operation Status later. For operations that take many minutes (creating a GKE node pool, a large Cloud SQL backup), keep the wait short and poll Get Operation Status after a workflow Wait step instead of holding one step open.
  • Errors. Failures keep Google's status and body, and error_message starts with Google's code, for example PERMISSION_DENIED (HTTP 403): Permission 'compute.instances.stop' denied …, followed by what to do.
  • Retries. A 429 is retried after Retry-After. A 502, 503 or 504 is retried only for reads and other idempotent calls, with backoff, within the call's timeout. A 401 gets one retry with a fresh token.

Examples#

Stop non-production VMs every evening (with approval). A scheduled workflow runs List VM Instances (All Zones) with filter: labels.env = dev AND status = RUNNING and all_pages: true, creates an approval task listing them, then loops over the approved ones with Stop VM Instance and wait_for_completion: true.

Roll back a bad deploy. An agent with Get Cloud Run Service, List Cloud Run Revisions and Update Cloud Run Traffic finds the last ready revision and moves 100% of traffic to it. Update Cloud Run Traffic is a change, not destructive, so it runs without approval unless you require approval for every tool.

Time-boxed access request. A form collects the member, role and reason. After the manager approves, Add or Remove IAM Binding grants the role with a condition such as {"title": "until Friday", "expression": "request.time < timestamp(\"2026-12-04T18:00:00Z\")"}. The step is destructive, so an agent can't run it without a person's approval.

Budget check. List Budgets returns each budget's amount, for example {"specifiedAmount": {"currencyCode": "USD", "units": "5000"}}, and its thresholds. A workflow can compare it with List Metric Time Series and notify the owner.

Actions#

Identity, projects and IAM policy#

Enable: cloudresourcemanager.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
Get IdentityReadWho the connector acts as (service account, impersonated account) and whether it can read the default project. Use it to check the connection.—service_account, impersonated_service_account, effective_identity, project_id, universe_domain, project
Search ProjectsReadProjects the connector can see. query uses Resource Manager syntax, e.g. labels.env:prod or parent:folders/123.query, pagingprojects, nextPageToken
Get ProjectReadA project: number (name), ID, display name, state, parent and labels.project_idname, projectId, displayName, state, parent, labels, etag
Update Project LabelsChangeReplace the project's labels with labels_json (read them with Get Project first to keep existing ones). Returns an operation.project_id, labels_json*, waitoperation
Get Project IAM PolicyReadThe project's IAM policy (bindings of roles to members, with conditions) and its etag.project_idversion, bindings, etag, auditConfigs
Set Project IAM PolicyDestructiveReplace the whole project IAM policy. policy_json must carry the etag from Get Project IAM Policy; a concurrent change makes Google refuse it (409 ABORTED). Prefer Add or Remove IAM Binding for single changes.project_id, policy_json*version, bindings, etag
Add or Remove IAM BindingDestructiveGrant or revoke one role for one member on the project: reads the policy, changes the binding and writes it back with its etag (retried on a concurrent change). dry_run shows the bindings before and after without writing. Public members (allUsers) need allow_public.project_id, action, role, member*, condition_json, allow_public, dry_runaction, role, member, changed, applied, dry_run, etag, bindings_before, bindings_after
Test Project PermissionsReadWhich of the given permissions the connector has on the project (e.g. before a workflow runs).project_id, permissions*permissions

APIs (Service Usage)#

Enable: serviceusage.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Enabled APIsReadAPIs enabled in the project.project_id, pagingservices, nextPageToken
Enable APIChangeEnable an API in the project, e.g. run.googleapis.com. Returns an operation.project_id, service_name*, waitoperation
Disable APIDestructiveDisable an API in the project. Resources that depend on it stop working.project_id, service_name*, disable_dependent_services, waitoperation

Compute Engine#

Enable: compute.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List ZonesReadCompute Engine zones and their status.project_id, filter, order_by, pagingitems, nextPageToken
List VM InstancesReadVM instances in a zone. filter examples: status = RUNNING, labels.env = prod, name = web-*.project_id, zone, filter, order_by, pagingitems, nextPageToken
List VM Instances (All Zones)ReadVM instances in every zone: items is a map of "zones/<zone>" → { instances: [...] }.project_id, filter, pagingitems, nextPageToken, unreachables
Get VM InstanceReadOne VM instance: status (RUNNING, TERMINATED …), machine type, disks, network interfaces, labels.project_id, zone, instance*name, id, status, machineType, zone, networkInterfaces, disks, labels, labelFingerprint, selfLink, creationTimestamp
Start VM InstanceChangeStart a stopped (TERMINATED) instance.project_id, zone, instance*, waitoperation
Stop VM InstanceChangeStop an instance (it keeps its disks; you stop paying for vCPU and memory).project_id, zone, instance*, discard_local_ssd, waitoperation
Reset VM InstanceChangeHard-reset an instance (like pressing the reset button; unsaved memory is lost).project_id, zone, instance*, waitoperation
Suspend VM InstanceChangeSuspend an instance (memory is saved to disk).project_id, zone, instance*, waitoperation
Resume VM InstanceChangeResume a suspended instance.project_id, zone, instance*, waitoperation
Delete VM InstanceDestructiveDelete an instance. Boot and data disks marked auto-delete are deleted with it.project_id, zone, instance*, waitoperation
Create VM InstanceChangeCreate an instance from an Instance resource (or from an instance template plus {"name": "..."}).project_id, zone, instance_json*, source_instance_template, waitoperation
Change Machine TypeChangeResize an instance to another machine type. The instance must be stopped (stop, change, start).project_id, zone, instance, machine_type, waitoperation
Set VM Instance LabelsChangeAdd, change or remove labels on an instance (reads the label fingerprint for you). dry_run shows the labels before and after.project_id, zone, instance*, labels_json, remove_labels, dry_run, waitoperation
Get Serial Port OutputReadConsole output of an instance (boot logs) for troubleshooting.project_id, zone, instance*, port, startcontents, start, next
List DisksReadPersistent disks in a zone (size, type, status, users).project_id, zone, filter, order_by, pagingitems, nextPageToken
Resize DiskChangeGrow a persistent disk (disks can only grow). Resize the file system inside the VM afterwards.project_id, zone, disk, size_gb, waitoperation
Create Disk SnapshotChangeSnapshot a persistent disk (e.g. before a change).project_id, zone, disk, snapshot_name, description, labels_json, waitoperation
Delete DiskDestructiveDelete a persistent disk (it must not be attached). Its data is gone unless snapshotted.project_id, zone, disk*, waitoperation
List SnapshotsReadDisk snapshots in the project.project_id, filter, order_by, pagingitems, nextPageToken
Delete SnapshotDestructiveDelete a disk snapshot.project_id, snapshot*, waitoperation
List Managed Instance GroupsReadZonal managed instance groups (target size, template, status).project_id, zone, filter, order_by, pagingitems, nextPageToken
Resize Managed Instance GroupChangeSet the target size of a zonal managed instance group (scale out or in).project_id, zone, group, size, waitoperation
Resize Regional Instance GroupChangeSet the target size of a regional managed instance group.project_id, region, group, size, waitoperation
List Firewall RulesReadVPC firewall rules (direction, source ranges, allowed ports, target tags).project_id, filter, order_by, pagingitems, nextPageToken
Create Firewall RuleDestructiveCreate a VPC firewall rule (opens or closes network access).project_id, firewall_json*, waitoperation
Delete Firewall RuleDestructiveDelete a VPC firewall rule.project_id, firewall*, waitoperation

Cloud Run#

Enable: run.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Cloud Run ServicesReadCloud Run services in a region (region "-" lists every region).project_id, region, pagingservices, nextPageToken
Get Cloud Run ServiceReadA Cloud Run service: URL, latest revisions, traffic split, template (image, env, scaling) and conditions.project_id, region, service*name, uri, latestReadyRevision, latestCreatedRevision, traffic, trafficStatuses, template, terminalCondition, etag
Deploy Cloud Run RevisionChangeDeploy a new revision of an existing service: a new container image and/or environment variables (other settings kept). dry_run validates without deploying.project_id, region, service*, image, env_json, container_name, revision_suffix, dry_run, waitoperation
Update Cloud Run TrafficChangeSend traffic to the latest revision, to one revision (roll back), or split it with traffic_json. Percentages must add up to 100. dry_run validates only.project_id, region, service*, revision, traffic_json, dry_run, waitoperation
Delete Cloud Run ServiceDestructiveDelete a Cloud Run service and all its revisions. dry_run validates only.project_id, region, service*, dry_run, waitoperation
List Cloud Run RevisionsReadRevisions of a service (newest first), e.g. to pick one to roll back to.project_id, region, service*, pagingrevisions, nextPageToken
List Cloud Run JobsReadCloud Run jobs in a region.project_id, region, pagingjobs, nextPageToken
Run Cloud Run JobChangeStart an execution of a Cloud Run job. Optional overrides (args, env, task count, timeout). Returns an operation; with wait_for_completion the response is the finished execution.project_id, region, job*, overrides_json, waitoperation
List Job ExecutionsReadExecutions of a Cloud Run job, with succeeded / failed task counts.project_id, region, job*, pagingexecutions, nextPageToken

Cloud Functions#

Enable: cloudfunctions.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Cloud FunctionsReadCloud Functions (1st and 2nd gen) in a region (region "-" lists every region).project_id, region, filter, pagingfunctions, nextPageToken
Get Cloud FunctionReadA function: state, runtime, trigger, service config and URL.project_id, region, function*name, state, environment, buildConfig, serviceConfig, eventTrigger, url, updateTime
Delete Cloud FunctionDestructiveDelete a Cloud Function.project_id, region, function*, waitoperation

Google Kubernetes Engine#

Enable: container.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List GKE ClustersReadGKE clusters in a location ("-" = all locations).project_id, locationclusters, missingZones
Get GKE ClusterReadA GKE cluster: status, version, endpoint, node pools.project_id, location, clustername, status, currentMasterVersion, endpoint, location, nodePools, resourceLabels, selfLink
List GKE Node PoolsReadNode pools of a cluster (machine type, size, autoscaling).project_id, location, clusternodePools
Resize GKE Node PoolChangeSet the node count of a node pool (per zone for multi-zone pools). Pools with autoscaling may change it again.project_id, location, cluster, node_pool, node_count, waitoperation
Set GKE Node Pool AutoscalingChangeTurn node pool autoscaling on or off and set its limits.project_id, location, cluster, node_pool, enabled, min_node_count, max_node_count, waitoperation
Delete GKE Node PoolDestructiveDelete a node pool and its nodes (workloads are rescheduled if other pools have room).project_id, location, cluster, node_pool*, waitoperation

Cloud SQL#

Enable: sqladmin.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Cloud SQL InstancesReadCloud SQL instances (state, version, tier, region).project_id, filter, pagingitems, nextPageToken
Get Cloud SQL InstanceReadA Cloud SQL instance: state (RUNNABLE, SUSPENDED, STOPPED …), activation policy, tier, IPs.project_id, instance*name, state, databaseVersion, region, settings, ipAddresses, connectionName, selfLink
Start Cloud SQL InstanceChangeStart a stopped instance (activation policy ALWAYS).project_id, instance*, waitoperation
Stop Cloud SQL InstanceChangeStop an instance (activation policy NEVER). Storage is still billed.project_id, instance*, waitoperation
Restart Cloud SQL InstanceChangeRestart an instance (connections drop briefly).project_id, instance*, waitoperation
Create Cloud SQL BackupChangeTake an on-demand backup of an instance.project_id, instance*, description, waitoperation
List Cloud SQL BackupsReadBackups of an instance (status, type, window).project_id, instance*, pagingitems, nextPageToken

Cloud Storage buckets#

Enable: storage.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List BucketsReadCloud Storage buckets in the project.project_id, prefix, pagingitems, nextPageToken
Get BucketReadA bucket: location, storage class, versioning, lifecycle rules, labels, access settings.bucket*name, location, storageClass, versioning, lifecycle, labels, iamConfiguration, metageneration, timeCreated
Create BucketChangeCreate a bucket with uniform bucket-level access and public access prevention on.project_id, bucket*, location, storage_class, labels_json, versioningname, id, location, storageClass, timeCreated
Update BucketChangePatch bucket settings: labels, versioning, lifecycle, retention, default storage class …bucket, patch_jsonname, labels, versioning, lifecycle, metageneration
Set Bucket VersioningChangeTurn object versioning on or off.bucket, enabledname, versioning
Set Bucket LifecycleChangeReplace the bucket's lifecycle rules ([] removes them all).bucket, rules_jsonname, lifecycle
Delete BucketDestructiveDelete an empty bucket (Google refuses a bucket that still has objects).bucket*—
Get Bucket IAM PolicyReadWho can access the bucket (role bindings) and the policy etag.bucket*bindings, etag, version
Set Bucket IAM PolicyDestructiveReplace the bucket IAM policy. Include the etag from Get Bucket IAM Policy so a concurrent change is refused.bucket, policy_jsonbindings, etag

IAM: service accounts, keys and roles#

Enable: iam.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Service AccountsReadService accounts in the project (email, display name, disabled).project_id, pagingaccounts, nextPageToken
Get Service AccountReadOne service account.project_id, service_account*name, email, uniqueId, displayName, description, disabled
Create Service AccountDestructiveCreate a service account (grant it roles separately).project_id, account_id*, display_name, descriptionname, email, uniqueId, displayName
Disable Service AccountDestructiveDisable a service account: it can no longer authenticate (reversible with Enable).project_id, service_account*—
Enable Service AccountDestructiveRe-enable a disabled service account.project_id, service_account*—
Delete Service AccountDestructiveDelete a service account (prefer Disable: deletion cannot be undone after 30 days and breaks its role bindings).project_id, service_account*—
List Service Account KeysReadKeys of a service account (id, type, validity, disabled). Never returns private key material.project_id, service_account*, key_typeskeys
Create Service Account KeyDestructiveCreate a key and return the key file JSON once (private_key_json; masked in call logs). Store it in a secret store straight away. Prefer impersonation or workload identity over keys.project_id, service_account*name, validAfterTime, validBeforeTime, keyAlgorithm, private_key_json
Disable Service Account KeyDestructiveDisable a key (e.g. a leaked one) without deleting it.project_id, service_account, key_id—
Delete Service Account KeyDestructiveDelete a key permanently.project_id, service_account, key_id—
List Predefined RolesReadGoogle's predefined roles (FULL view includes their permissions).view, pagingroles, nextPageToken
List Custom RolesReadCustom roles defined in the project.project_id, view, show_deleted, pagingroles, nextPageToken
Get RoleReadA predefined or custom role with its permissions.role_name*name, title, description, includedPermissions, stage, etag
Create Custom RoleDestructiveCreate a project custom role from a list of permissions.project_id, role_id, title, description, permissions*, stagename, title, includedPermissions, etag
Delete Custom RoleDestructiveDelete a project custom role (recoverable for 7 days with undelete).project_id, role_id*name, deleted

Pub/Sub#

Enable: pubsub.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List Pub/Sub TopicsReadPub/Sub topics in the project.project_id, pagingtopics, nextPageToken
Create Pub/Sub TopicChangeCreate a Pub/Sub topic (optionally with labels and message retention).project_id, topic*, labels_json, message_retentionname, labels
Delete Pub/Sub TopicDestructiveDelete a topic (its subscriptions are detached, not deleted).project_id, topic*—
Publish Pub/Sub MessageChangePublish one message. message is sent as UTF-8 text (objects as JSON); base64 encoding is done for you.project_id, topic, message, attributes_json, ordering_keymessage_id, messageIds
List Pub/Sub SubscriptionsReadSubscriptions in the project.project_id, pagingsubscriptions, nextPageToken
Create Pub/Sub SubscriptionChangeCreate a pull (or push, with push_config_json) subscription on a topic.project_id, subscription, topic, ack_deadline_seconds, filter, push_config_json, labels_jsonname, topic, ackDeadlineSeconds
Delete Pub/Sub SubscriptionDestructiveDelete a subscription and its unacknowledged messages.project_id, subscription*—
Pull Pub/Sub MessagesChangePull messages from a subscription, decoded (data_text, data_json when JSON). auto_acknowledge acknowledges them; otherwise pass the ack_ids to Acknowledge Messages after processing.project_id, subscription*, max_messages, auto_acknowledgemessages, count, acknowledged
Acknowledge Pub/Sub MessagesChangeAcknowledge pulled messages so they are not delivered again.project_id, subscription, ack_ids—

Secret Manager#

Enable: secretmanager.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
List SecretsReadSecrets (metadata only: names, labels, replication; never values).project_id, filter, pagingsecrets, nextPageToken
Get Secret MetadataReadA secret's metadata (not its value).project_id, secret*name, labels, replication, createTime, etag
Create SecretDestructiveCreate an empty secret (automatic replication). Add its value with Add Secret Version.project_id, secret*, labels_jsonname, createTime
Add Secret VersionDestructiveStore a new value for a secret (it becomes "latest"). The value is never written to call logs.project_id, secret, secret_valuename, state, createTime
Access Secret VersionDestructiveRead a secret value (secret_value). High risk: agents ask a person first, and the value is masked in call logs.project_id, secret*, versionname, secret_value, data_crc32c
List Secret VersionsReadVersions of a secret and their state (ENABLED, DISABLED, DESTROYED).project_id, secret*, filter, pagingversions, nextPageToken
Disable Secret VersionDestructiveDisable a version (it can no longer be accessed; reversible).project_id, secret, versionname, state
Destroy Secret VersionDestructiveDestroy a version's value permanently.project_id, secret, versionname, state
Delete SecretDestructiveDelete a secret and all its versions.project_id, secret*—

Cloud Logging and Monitoring#

Enable: logging.googleapis.com, monitoring.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
Query LogsReadLog entries matching a Logging query, newest first by default. Always bound it in time, e.g. severity>=ERROR AND timestamp>="2026-11-28T00:00:00Z".project_id, filter*, order_by, pagingentries, nextPageToken
Write Log EntryChangeWrite an entry to a Cloud Logging log (e.g. an approval decision, for audit). Give text or payload_json.project_id, log_id*, severity, text, payload_json, labels_json—
List Metric Time SeriesReadCloud Monitoring metric data, e.g. CPU of VMs: filter metric.type="compute.googleapis.com/instance/cpu/utilization".project_id, filter, start_time, end_time*, alignment_period, per_series_aligner, cross_series_reducer, group_by_field, view, pagingtimeSeries, nextPageToken, unit
List Alert PoliciesReadCloud Monitoring alert policies (conditions, enabled, notification channels).project_id, filter, pagingalertPolicies, nextPageToken
Enable or Disable Alert PolicyChangeTurn an alert policy on or off (e.g. mute during a maintenance window).project_id, alert_policy, enabledname, displayName, enabled

Billing#

Enable: cloudbilling.googleapis.com, billingbudgets.googleapis.com.

ActionRiskWhat it doesInputs (* required)Outputs
Get Project Billing InfoReadWhether billing is enabled on the project and its billing account.project_idname, projectId, billingAccountName, billingEnabled
List BudgetsReadBudgets of a billing account (amount, thresholds, scope), e.g. a 5,000 USD monthly budget.billing_account_id, pagingbudgets, nextPageToken
Get BudgetReadOne budget: amount, filter (projects, services) and alert thresholds.billing_account_id, budget*name, displayName, amount, budgetFilter, thresholdRules, etag

Operations and any Google Cloud API#

ActionRiskWhat it doesInputs (* required)Outputs
Get Operation StatusReadThe current state of a long-running operation started by another action (pass its operation_url). wait_for_completion waits for it to finish.operation_url*, waitoperation
Call Google Cloud API (Read)ReadGET any Google Cloud REST URL on googleapis.com (the long tail not covered by other actions), e.g. https://compute.googleapis.com/compute/v1/projects/my-project/regions.url*, query_json, pagingdata
Call Google Cloud APIDestructiveCall any Google Cloud REST method on googleapis.com with any HTTP method. Treated as destructive (agents ask first). Operations in the answer are normalised and can be awaited.url, method, body_json, query_json, waitoperation

Was this page helpful?