Polls Airflow CLI command execution and fetches logs.
HTTP request
POST https://composer.googleapis.com/v1beta1/{environment=projects/*/locations/*/environments/*}:pollAirflowCommand
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| environment | 
 The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" Authorization requires the following IAM permission on the specified resource  
 | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "executionId": string, "pod": string, "podNamespace": string, "nextLineNumber": integer } | 
| Fields | |
|---|---|
| executionId | 
 The unique ID of the command execution. | 
| pod | 
 The name of the pod where the command is executed. | 
| podNamespace | 
 The namespace of the pod where the command is executed. | 
| nextLineNumber | 
 Line number from which new logs should be fetched. | 
Response body
Response to PollAirflowCommandRequest.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "output": [ { object ( | 
| Fields | |
|---|---|
| output[] | 
 Output from the command execution. It may not contain the full output and the caller may need to poll for more lines. | 
| outputEnd | 
 Whether the command execution has finished and there is no more output. | 
| exitInfo | 
 The result exit status of the command. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Line
Contains information about a single line from logs.
| JSON representation | 
|---|
| { "lineNumber": integer, "content": string } | 
| Fields | |
|---|---|
| lineNumber | 
 Number of the line. | 
| content | 
 Text content of the log line. | 
ExitInfo
Information about how a command ended.
| JSON representation | 
|---|
| { "exitCode": integer, "error": string } | 
| Fields | |
|---|---|
| exitCode | 
 The exit code from the command execution. | 
| error | 
 Error message. Empty if there was no error. |