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 \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL that uses gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires parameters such as \u003ccode\u003eexecutionId\u003c/code\u003e, \u003ccode\u003epod\u003c/code\u003e, \u003ccode\u003epodNamespace\u003c/code\u003e, and \u003ccode\u003enextLineNumber\u003c/code\u003e to specify the command being monitored and the desired log retrieval point.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses contain an array of \u003ccode\u003eLine\u003c/code\u003e objects in the \u003ccode\u003eoutput\u003c/code\u003e field which represents log lines, a boolean \u003ccode\u003eoutputEnd\u003c/code\u003e indicating the completion of command execution, and an \u003ccode\u003eExitInfo\u003c/code\u003e object detailing the command's exit status.\u003c/p\u003e\n"],["\u003cp\u003eAccess to this endpoint requires 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"]]],[],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/v1/{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."]]