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.
[[["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-06-30 UTC."],[[["\u003cp\u003eThis endpoint allows you to poll the execution of an Airflow CLI command and retrieve its logs via a POST HTTP request to a specific environment.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the environment's resource name, defined using the path parameters, and includes details like the execution ID, pod name, pod namespace, and the next line number in its body.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes an array of \u003ccode\u003eLine\u003c/code\u003e objects representing the command's output, a boolean indicating if the command has finished, and \u003ccode\u003eExitInfo\u003c/code\u003e detailing the command's exit status.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires authorization through the \u003ccode\u003ecomposer.environments.executeAirflowCommand\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eData is transmitted and received in the form of JSON, and the provided data will show the structure of the JSON that is exchanged.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.environments.pollAirflowCommand\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.PollAirflowCommandResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Line](#Line)\n - [JSON representation](#Line.SCHEMA_REPRESENTATION)\n- [ExitInfo](#ExitInfo)\n - [JSON representation](#ExitInfo.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nPolls Airflow CLI command execution and fetches logs.\n\n### HTTP request\n\n`POST https://composer.googleapis.com/v1beta1/{environment=projects/*/locations/*/environments/*}:pollAirflowCommand`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nResponse to PollAirflowCommandRequest.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nLine\n----\n\nContains information about a single line from logs.\n\nExitInfo\n--------\n\nInformation about how a command ended."]]