Send feedback
Kubernetes Engine API Connector Overview
Stay organized with collections
Save and categorize content based on your preferences.
The Workflows connector defines the built-in
functions that can be used to access other Google Cloud products within a
workflow.
This page provides an overview of the individual connector.
There is no need to import or load connector libraries in a workflow—connectors
work out of the box when used in a call step.
Kubernetes Engine API
Builds and manages container-based applications, powered by the open source Kubernetes technology.
To learn more, see the Kubernetes Engine API documentation .
Note: The Kubernetes Engine API is distinct from the Kubernetes API, which is
used to make requests to a Google Kubernetes Engine (GKE) cluster's control
plane endpoint. To call the Kubernetes API in a workflow, use the
Kubernetes API connector .
Kubernetes Engine connector sample
Module: googleapis.container.v1.projects.aggregated.usableSubnetworks
Functions
list
Lists subnetworks that are usable for creating clusters in a project.
Module: googleapis.container.v1.projects.locations
Functions
getServerConfig
Returns configuration info about the Google Kubernetes Engine service.
Module: googleapis.container.v1.projects.locations.clusters
Functions
completeIpRotation
Completes master IP rotation.
create
Creates a cluster, consisting of the specified number and type of Google
Compute Engine instances. By default, the cluster is created in the
project's default
network .
One firewall is added for the cluster. After cluster creation, the
Kubelet creates routes for each node to allow the containers on that
node to communicate with all other instances in the cluster. Finally, an
entry is added to the project's global metadata indicating which CIDR
range the cluster is using.
delete
Deletes the cluster, including the Kubernetes endpoint and all worker
nodes. Firewalls and routes that were configured during cluster creation
are also deleted. Other Google Compute Engine resources that might be in
use by the cluster, such as load balancer resources, are not deleted if
they weren't present when the cluster was initially created.
get
Gets the details of a specific cluster.
getJwks
Gets the public component of the cluster signing keys in JSON Web Key
format. This API is not yet intended for general use, and is not
available for all clusters.
list
Lists all clusters owned by a project in either the specified zone or
all zones.
setAddons
Sets the addons for a specific cluster.
setLegacyAbac
Enables or disables the ABAC authorization mechanism on a cluster.
setLocations
Sets the locations for a specific cluster. Deprecated. Use
projects.locations.clusters.update
instead.
setLogging
Sets the logging service for a specific cluster.
setMaintenancePolicy
Sets the maintenance policy for a cluster.
setMasterAuth
Sets master auth materials. Currently supports changing the admin
password or a specific cluster, either via password generation or
explicitly setting the password.
setMonitoring
Sets the monitoring service for a specific cluster.
setNetworkPolicy
Enables or disables Network Policy for a cluster.
setResourceLabels
Sets labels on a cluster.
startIpRotation
Starts master IP rotation.
update
Updates the settings of a specific cluster.
updateMaster
Updates the master for a specific cluster.
Module: googleapis.container.v1.projects.locations.clusters.nodePools
Functions
create
Creates a node pool for a cluster.
delete
Deletes a node pool from a cluster.
get
Retrieves the requested node pool.
list
Lists the node pools for a cluster.
rollback
Rolls back a previously Aborted or Failed NodePool upgrade. This makes
no changes if the last upgrade successfully completed.
setAutoscaling
Sets the autoscaling settings for the specified node pool.
setManagement
Sets the NodeManagement options for a node pool.
setSize
Sets the size for a specific node pool. The new size will be used for
all replicas, including future replicas created by modifying
NodePool.locations.
update
Updates the version and/or image type for the specified node pool.
Module: googleapis.container.v1.projects.locations.clusters.well_known
Module: googleapis.container.v1.projects.locations.operations
Functions
cancel
Cancels the specified operation.
get
Gets the specified operation.
list
Lists all operations in a project in a specific zone or all zones.
Module: googleapis.container.v1.projects.zones
Functions
getServerconfig
Returns configuration info about the Google Kubernetes Engine service.
Module: googleapis.container.v1.projects.zones.clusters
Functions
addons
Sets the addons for a specific cluster.
completeIpRotation
Completes master IP rotation.
create
Creates a cluster, consisting of the specified number and type of Google
Compute Engine instances. By default, the cluster is created in the
project's default
network .
One firewall is added for the cluster. After cluster creation, the
Kubelet creates routes for each node to allow the containers on that
node to communicate with all other instances in the cluster. Finally, an
entry is added to the project's global metadata indicating which CIDR
range the cluster is using.
delete
Deletes the cluster, including the Kubernetes endpoint and all worker
nodes. Firewalls and routes that were configured during cluster creation
are also deleted. Other Google Compute Engine resources that might be in
use by the cluster, such as load balancer resources, are not deleted if
they weren't present when the cluster was initially created.
get
Gets the details of a specific cluster.
legacyAbac
Enables or disables the ABAC authorization mechanism on a cluster.
list
Lists all clusters owned by a project in either the specified zone or
all zones.
locations
Sets the locations for a specific cluster. Deprecated. Use
projects.locations.clusters.update
instead.
logging
Sets the logging service for a specific cluster.
master
Updates the master for a specific cluster.
monitoring
Sets the monitoring service for a specific cluster.
resourceLabels
Sets labels on a cluster.
setMaintenancePolicy
Sets the maintenance policy for a cluster.
setMasterAuth
Sets master auth materials. Currently supports changing the admin
password or a specific cluster, either via password generation or
explicitly setting the password.
setNetworkPolicy
Enables or disables Network Policy for a cluster.
startIpRotation
Starts master IP rotation.
update
Updates the settings of a specific cluster.
Module: googleapis.container.v1.projects.zones.clusters.nodePools
Functions
autoscaling
Sets the autoscaling settings for the specified node pool.
create
Creates a node pool for a cluster.
delete
Deletes a node pool from a cluster.
get
Retrieves the requested node pool.
list
Lists the node pools for a cluster.
rollback
Rolls back a previously Aborted or Failed NodePool upgrade. This makes
no changes if the last upgrade successfully completed.
setManagement
Sets the NodeManagement options for a node pool.
setSize
Sets the size for a specific node pool. The new size will be used for
all replicas, including future replicas created by modifying
NodePool.locations.
update
Updates the version and/or image type for the specified node pool.
Module: googleapis.container.v1.projects.zones.operations
Functions
cancel
Cancels the specified operation.
get
Gets the specified operation.
list
Lists all operations in a project in a specific zone or all zones.
Module: googleapis.container.v1beta1.projects.aggregated.usableSubnetworks
Functions
list
Lists subnetworks that can be used for creating clusters in a project.
Module: googleapis.container.v1beta1.projects.locations
Functions
getServerConfig
Returns configuration info about the Google Kubernetes Engine service.
list
Fetches locations that offer Google Kubernetes Engine.
Module: googleapis.container.v1beta1.projects.locations.clusters
Functions
completeIpRotation
Completes master IP rotation.
create
Creates a cluster, consisting of the specified number and type of Google
Compute Engine instances. By default, the cluster is created in the
project's default
network .
One firewall is added for the cluster. After cluster creation, the
Kubelet creates routes for each node to allow the containers on that
node to communicate with all other instances in the cluster. Finally, an
entry is added to the project's global metadata indicating which CIDR
range the cluster is using.
delete
Deletes the cluster, including the Kubernetes endpoint and all worker
nodes. Firewalls and routes that were configured during cluster creation
are also deleted. Other Google Compute Engine resources that might be in
use by the cluster, such as load balancer resources, are not deleted if
they weren't present when the cluster was initially created.
get
Gets the details for a specific cluster.
getJwks
Gets the public component of the cluster signing keys in JSON Web Key
format. This API is not yet intended for general use, and is not
available for all clusters.
list
Lists all clusters owned by a project in either the specified zone or
all zones.
setAddons
Sets the addons for a specific cluster.
setLegacyAbac
Enables or disables the ABAC authorization mechanism on a cluster.
setLocations
Sets the locations for a specific cluster. Deprecated. Use
projects.locations.clusters.update
instead.
setLogging
Sets the logging service for a specific cluster.
setMaintenancePolicy
Sets the maintenance policy for a cluster.
setMasterAuth
Sets master auth materials. Currently supports changing the admin
password or a specific cluster, either via password generation or
explicitly setting the password.
setMonitoring
Sets the monitoring service for a specific cluster.
setNetworkPolicy
Enables or disables Network Policy for a cluster.
setResourceLabels
Sets labels on a cluster.
startIpRotation
Starts master IP rotation.
update
Updates the settings for a specific cluster.
updateMaster
Updates the master for a specific cluster.
Module: googleapis.container.v1beta1.projects.locations.clusters.nodePools
Functions
create
Creates a node pool for a cluster.
delete
Deletes a node pool from a cluster.
get
Retrieves the requested node pool.
list
Lists the node pools for a cluster.
rollback
Rolls back a previously Aborted or Failed NodePool upgrade. This makes
no changes if the last upgrade successfully completed.
setAutoscaling
Sets the autoscaling settings of a specific node pool.
setManagement
Sets the NodeManagement options for a node pool.
setSize
SetNodePoolSizeRequest sets the size of a node pool. The new size will
be used for all replicas, including future replicas created by modifying
NodePool.locations.
update
Updates the version and/or image type of a specific node pool.
Module: googleapis.container.v1beta1.projects.locations.clusters.well_known
Module: googleapis.container.v1beta1.projects.locations.operations
Functions
cancel
Cancels the specified operation.
get
Gets the specified operation.
list
Lists all operations in a project in the specified zone or all zones.
Module: googleapis.container.v1beta1.projects.zones
Functions
getServerconfig
Returns configuration info about the Google Kubernetes Engine service.
Module: googleapis.container.v1beta1.projects.zones.clusters
Functions
addons
Sets the addons for a specific cluster.
completeIpRotation
Completes master IP rotation.
create
Creates a cluster, consisting of the specified number and type of Google
Compute Engine instances. By default, the cluster is created in the
project's default
network .
One firewall is added for the cluster. After cluster creation, the
Kubelet creates routes for each node to allow the containers on that
node to communicate with all other instances in the cluster. Finally, an
entry is added to the project's global metadata indicating which CIDR
range the cluster is using.
delete
Deletes the cluster, including the Kubernetes endpoint and all worker
nodes. Firewalls and routes that were configured during cluster creation
are also deleted. Other Google Compute Engine resources that might be in
use by the cluster, such as load balancer resources, are not deleted if
they weren't present when the cluster was initially created.
get
Gets the details for a specific cluster.
legacyAbac
Enables or disables the ABAC authorization mechanism on a cluster.
list
Lists all clusters owned by a project in either the specified zone or
all zones.
locations
Sets the locations for a specific cluster. Deprecated. Use
projects.locations.clusters.update
instead.
logging
Sets the logging service for a specific cluster.
master
Updates the master for a specific cluster.
monitoring
Sets the monitoring service for a specific cluster.
resourceLabels
Sets labels on a cluster.
setMaintenancePolicy
Sets the maintenance policy for a cluster.
setMasterAuth
Sets master auth materials. Currently supports changing the admin
password or a specific cluster, either via password generation or
explicitly setting the password.
setNetworkPolicy
Enables or disables Network Policy for a cluster.
startIpRotation
Starts master IP rotation.
update
Updates the settings for a specific cluster.
Module: googleapis.container.v1beta1.projects.zones.clusters.nodePools
Functions
autoscaling
Sets the autoscaling settings of a specific node pool.
create
Creates a node pool for a cluster.
delete
Deletes a node pool from a cluster.
get
Retrieves the requested node pool.
list
Lists the node pools for a cluster.
rollback
Rolls back a previously Aborted or Failed NodePool upgrade. This makes
no changes if the last upgrade successfully completed.
setManagement
Sets the NodeManagement options for a node pool.
setSize
SetNodePoolSizeRequest sets the size of a node pool. The new size will
be used for all replicas, including future replicas created by modifying
NodePool.locations.
update
Updates the version and/or image type of a specific node pool.
Module: googleapis.container.v1beta1.projects.zones.operations
Functions
cancel
Cancels the specified operation.
get
Gets the specified operation.
list
Lists all operations in a project in the specified zone or all zones.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Kubernetes Engine API Connector Overview\n\nThe Workflows connector defines the built-in\nfunctions that can be used to access other Google Cloud products within a\nworkflow.\n\nThis page provides an overview of the individual connector.\nThere is no need to import or load connector libraries in a workflow---connectors\nwork out of the box when used in a call step.\n\nKubernetes Engine API\n---------------------\n\nBuilds and manages container-based applications, powered by the open source Kubernetes technology.\nTo learn more, see the [Kubernetes Engine API documentation](https://cloud.google.com/container-engine/).\n| **Note:** The Kubernetes Engine API is distinct from the Kubernetes API, which is used to make requests to a Google Kubernetes Engine (GKE) cluster's control plane endpoint. To call the Kubernetes API in a workflow, use the [Kubernetes API connector](/workflows/docs/reference/connectors/gke/Overview).\n\nKubernetes Engine connector sample\n----------------------------------\n\n### YAML\n\n # This workflow demonstrates how to use the Google Kubernetes Engine (GKE) connector:\n # Create a GKE cluster and then delete it\n # Each step waits until the long-running operation of creating or deleting the cluster completes\n # Expected output: \"SUCCESS\"\n main:\n params: []\n steps:\n - init:\n assign:\n - project_id: ${sys.get_env(\"GOOGLE_CLOUD_PROJECT_ID\")}\n - cluster_zone: \"us-central1-a\"\n - cluster_id: \"CLUSTER_ID\" # replace CLUSTER_ID placeholder\n - cluster_full_name: ${\"projects/\" + project_id + \"/locations/\" + cluster_zone + \"/clusters/\" + cluster_id}\n - create_gke_cluster:\n call: googleapis.container.v1.projects.zones.clusters.create\n args:\n projectId: ${project_id}\n zone: ${cluster_zone}\n body:\n cluster:\n name: ${cluster_id}\n initial_node_count: 1\n parent: ${\"projects/\" + project_id + \"/locations/\" + cluster_zone}\n - assert_running:\n call: assert_cluster_status\n args:\n expected_status: \"RUNNING\"\n project_id: ${project_id}\n cluster_zone: ${cluster_zone}\n cluster_id: ${cluster_id}\n cluster_full_name: ${cluster_full_name}\n - delete_gke_cluster:\n call: googleapis.container.v1.projects.zones.clusters.delete\n args:\n projectId: ${project_id}\n zone: ${cluster_zone}\n clusterId: ${cluster_id}\n name: ${cluster_full_name}\n - the_end:\n return: \"SUCCESS\"\n\n assert_cluster_status:\n params:\n [expected_status, project_id, cluster_zone, cluster_id, cluster_full_name]\n steps:\n - get_cluster:\n call: googleapis.container.v1.projects.zones.clusters.get\n args:\n projectId: ${project_id}\n zone: ${cluster_zone}\n clusterId: ${cluster_id}\n name: ${cluster_full_name}\n result: cluster\n - compare:\n switch:\n - condition: ${cluster.status == expected_status}\n next: end\n - fail:\n raise: ${\"Expected VM status is \" + expected_status + \". Received \" + cluster.status + \" instead.\"}\n\n### JSON\n\n {\n \"main\": {\n \"params\": [],\n \"steps\": [\n {\n \"init\": {\n \"assign\": [\n {\n \"project_id\": \"${sys.get_env(\\\"GOOGLE_CLOUD_PROJECT_ID\\\")}\"\n },\n {\n \"cluster_zone\": \"us-central1-a\"\n },\n {\n \"cluster_id\": \"CLUSTER_ID\"\n },\n {\n \"cluster_full_name\": \"${\\\"projects/\\\" + project_id + \\\"/locations/\\\" + cluster_zone + \\\"/clusters/\\\" + cluster_id}\"\n }\n ]\n }\n },\n {\n \"create_gke_cluster\": {\n \"call\": \"googleapis.container.v1.projects.zones.clusters.create\",\n \"args\": {\n \"projectId\": \"${project_id}\",\n \"zone\": \"${cluster_zone}\",\n \"body\": {\n \"cluster\": {\n \"name\": \"${cluster_id}\",\n \"initial_node_count\": 1\n },\n \"parent\": \"${\\\"projects/\\\" + project_id + \\\"/locations/\\\" + cluster_zone}\"\n }\n }\n }\n },\n {\n \"assert_running\": {\n \"call\": \"assert_cluster_status\",\n \"args\": {\n \"expected_status\": \"RUNNING\",\n \"project_id\": \"${project_id}\",\n \"cluster_zone\": \"${cluster_zone}\",\n \"cluster_id\": \"${cluster_id}\",\n \"cluster_full_name\": \"${cluster_full_name}\"\n }\n }\n },\n {\n \"delete_gke_cluster\": {\n \"call\": \"googleapis.container.v1.projects.zones.clusters.delete\",\n \"args\": {\n \"projectId\": \"${project_id}\",\n \"zone\": \"${cluster_zone}\",\n \"clusterId\": \"${cluster_id}\",\n \"name\": \"${cluster_full_name}\"\n }\n }\n },\n {\n \"the_end\": {\n \"return\": \"SUCCESS\"\n }\n }\n ]\n },\n \"assert_cluster_status\": {\n \"params\": [\n \"expected_status\",\n \"project_id\",\n \"cluster_zone\",\n \"cluster_id\",\n \"cluster_full_name\"\n ],\n \"steps\": [\n {\n \"get_cluster\": {\n \"call\": \"googleapis.container.v1.projects.zones.clusters.get\",\n \"args\": {\n \"projectId\": \"${project_id}\",\n \"zone\": \"${cluster_zone}\",\n \"clusterId\": \"${cluster_id}\",\n \"name\": \"${cluster_full_name}\"\n },\n \"result\": \"cluster\"\n }\n },\n {\n \"compare\": {\n \"switch\": [\n {\n \"condition\": \"${cluster.status == expected_status}\",\n \"next\": \"end\"\n }\n ]\n }\n },\n {\n \"fail\": {\n \"raise\": \"${\\\"Expected VM status is \\\" + expected_status + \\\". Received \\\" + cluster.status + \\\" instead.\\\"}\"\n }\n }\n ]\n }\n }\n\nModule: googleapis.container.v1.projects.aggregated.usableSubnetworks\n---------------------------------------------------------------------\n\nModule: googleapis.container.v1.projects.locations\n--------------------------------------------------\n\nModule: googleapis.container.v1.projects.locations.clusters\n-----------------------------------------------------------\n\nModule: googleapis.container.v1.projects.locations.clusters.nodePools\n---------------------------------------------------------------------\n\nModule: googleapis.container.v1.projects.locations.clusters.well_known\n----------------------------------------------------------------------\n\nModule: googleapis.container.v1.projects.locations.operations\n-------------------------------------------------------------\n\nModule: googleapis.container.v1.projects.zones\n----------------------------------------------\n\nModule: googleapis.container.v1.projects.zones.clusters\n-------------------------------------------------------\n\nModule: googleapis.container.v1.projects.zones.clusters.nodePools\n-----------------------------------------------------------------\n\nModule: googleapis.container.v1.projects.zones.operations\n---------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.aggregated.usableSubnetworks\n--------------------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.locations\n-------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.locations.clusters\n----------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.locations.clusters.nodePools\n--------------------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.locations.clusters.well_known\n---------------------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.locations.operations\n------------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.zones\n---------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.zones.clusters\n------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.zones.clusters.nodePools\n----------------------------------------------------------------------\n\nModule: googleapis.container.v1beta1.projects.zones.operations\n--------------------------------------------------------------"]]