Skip to main content

workloads

Creates, updates, deletes, gets or lists a workloads resource.

Overview

Nameworkloads
TypeResource
Idgoogle.composer.workloads

Fields

NameDatatypeDescription
namestringName of a workload.
statusobjectWorkload status.
typestringType of a workload.

Methods

NameAccessible byRequired ParamsDescription
listSELECTenvironmentsId, locationsId, projectsIdLists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

SELECT examples

Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-3..-airflow-..* and newer.

SELECT
name,
status,
type
FROM google.composer.workloads
WHERE environmentsId = '{{ environmentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';