On September 15, 2026
, all Cloud Composer 1 versions and versions 2.0.x of Cloud Composer 2 will reach their planned end of life
. You will not be able to use environments with these versions. We recommend planning migration to Cloud Composer 3
. Cloud Composer 2 versions 2.1.x and later are still supported and are not impacted by this change.
List Composer Image Versions
Stay organized with collections
Save and categorize content based on your preferences.
Lists image versions for Cloud Composer
Code sample
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.
[[["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"]],[],[[["\u003cp\u003eThe provided content showcases a Node.js code sample for interacting with Cloud Composer's ImageVersionsClient.\u003c/p\u003e\n"],["\u003cp\u003eThe code demonstrates how to authenticate to Cloud Composer using Application Default Credentials, with a link provided for more detail.\u003c/p\u003e\n"],["\u003cp\u003eThe code sample illustrates how to use the \u003ccode\u003elistImageVersions\u003c/code\u003e function to retrieve a list of image versions available for a given project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe provided resource can be used to help find more Google Cloud products.\u003c/p\u003e\n"]]],[],null,["Lists image versions for Cloud Composer\n\nCode sample \n\nNode.js\n\n\nTo authenticate to Cloud Composer, set up Application Default Credentials.\nFor more information, see\n\n[Set up authentication for a local development environment](/docs/authentication/set-up-adc-local-dev-environment).\n\n // Imports the Google Cloud client library\n\n // remove this line after package is released\n // eslint-disable-next-line node/no-missing-require\n const {ImageVersionsClient} = require('https://cloud.google.com/nodejs/docs/reference/orchestration-airflow/latest/overview.html');\n\n // TODO(developer): replace with your prefered project ID.\n // const projectId = 'my-project'\n\n // Creates a client\n // eslint-disable-next-line no-unused-vars\n const client = new https://cloud.google.com/nodejs/docs/reference/orchestration-airflow/latest/overview.html();\n\n async function listImageVersions() {\n const [versions] = await client.listImageVersions({\n parent: `projects/${projectId}/locations/${location}`,\n });\n console.info(versions);\n }\n listImageVersions();\n\nWhat's next\n\n\nTo search and filter code samples for other Google Cloud products, see the\n[Google Cloud sample browser](/docs/samples?product=composer)."]]