List of Deployments

GET /api/v1.2/airflow_deployment/(<cluster_label> or <cluster_id>)/list'

Use this API to receive the list of deployments on Airflow cluster.

Required Role

A user with system-admin or system-user role, or read access to the cluster can run this API.

Syntax

curl -i -X GET -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \
'https://api.qubole.com/api/v1.2/airflow_deployment/(<cluster_label> or <cluster_id>)/list' /

Note

The above syntax uses https://api.qubole.com as the endpoint. For more information about endpoints to access QDS see Supported Qubole Endpoints on Different Cloud Providers.

Sample Query

curl -i -X GET -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \
'https://api.qubole.com/api/v1.2/airflow_deployment/7/list' /

Sample Response

{
   "data": [
       {
           "id": 4,
           "type": "airflow_deployment_run",
           "attributes": {
               "branch": "master",
               "repo_url": "https://github.com/<user account>/<repo name>",
               "status": "success",
               "cluster_id": 7,
               "commit_message": "Update qubole-airflow.yaml",
               "commit_id": "902fef2ccb6781afa49e6479ea6bb0ec99614987",
               "created_at": "2020-07-13T00:11:35Z",
               "updated_at": "2020-07-13T00:12:11Z",
               "owner": "<user name>"
        }
    },
   {
   "id": 3,
       "type": "airflow_deployment_run",
       "attributes": {
           "branch": "master",
           "repo_url": "https://github.com/<user account>/<repo name>",
           "status": "success",
           "cluster_id": 7,
           "commit_message": "Update qubole-airflow.yaml",
           "commit_id": "902fef2ccb6781afa49e6479ea6bb0ec99614987",
           "created_at": "2020-07-13T00:06:16Z",
           "updated_at": "2020-07-13T00:06:48Z",
           "owner": "<user name>"
        }
    }
  ]
}