Create A Pool

For Airflow version 1.10.0 and older:

POST /airflow-webserver-<cluster-id>/api/experimental/pools

For Airflow 1.10.2 and later:

POST /airflow-rbacwebserver-<cluster-id>/api/experimental/pools

You can use this API to create a pool.

Note

To run the experimental APIs, you require to have Airflow version 1.10.0 and above.

Required Role

A user with read permission to the cluster can make this API call.

Syntax

curl -X POST \  https://<ENV>.qubole.com/airflow-rbacwebserver-<Cluster-ID>/api/experimental/pools \

Note

You need to specify the QDS environment in the above syntax. It works with all the environments described in Supported Qubole Endpoints on Different Cloud Providers.

Sample Query

curl -X POST \  https://api.qubole.com/airflow-rbacwebserver-3/api/experimental/pools \
  -H "Accept: application/json"
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'X-AUTH-TOKEN: <AUTH_TOKEN>'\
  -d '{"description": "This is a demo pool for qubole",
  "name": "testing_pools", "slots": 2 }'

Sample Response

{
  "description": "This is a demo pool for qubole",
  "id": 3,
  "pool": "testing_pools",
  "slots": 2
}