Executes Airflow CLI command.
HTTP request
POST https://composer.googleapis.com/v1/{environment=projects/*/locations/*/environments/*}:executeAirflowCommand
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 |
---|
{ "command": string, "subcommand": string, "parameters": [ string ] } |
Fields | |
---|---|
command |
Airflow command. |
subcommand |
Airflow subcommand. |
parameters[] |
Parameters for the Airflow command/subcommand as an array of arguments. It may contain positional arguments like |
Response body
Response to ExecuteAirflowCommandRequest.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "executionId": string, "pod": string, "podNamespace": string, "error": string } |
Fields | |
---|---|
execution |
The unique ID of the command execution for polling. |
pod |
The name of the pod where the command is executed. |
pod |
The namespace of the pod where the command is executed. |
error |
Error message. Empty if there was no error. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.