Skip to main content

image_versions

Creates, updates, deletes, gets or lists an image_versions resource.

Overview​

Nameimage_versions
TypeResource
Idgoogle.composer.image_versions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
creationDisabledbooleanWhether it is impossible to create an environment with the image version.
imageVersionIdstringThe string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b.c"
isDefaultbooleanWhether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.
releaseDateobjectThe date of the version release. (id: Date)
supportedPythonVersionsarraysupported python versions
upgradeDisabledbooleanWhether it is impossible to upgrade an environment running with the image version.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsIdincludePastReleases, pageSize, pageTokenList ImageVersions for provided location.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
includePastReleasesboolean
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

List ImageVersions for provided location.

SELECT
creationDisabled,
imageVersionId,
isDefault,
releaseDate,
supportedPythonVersions,
upgradeDisabled
FROM google.composer.image_versions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND includePastReleases = '{{ includePastReleases }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;