Detach the Cluster from the Package Management Environment

PUT /api/v1.2/package/<env ID>/detach_cluster

Use this API to detach the cluster from the Package Management environment. In case, if you detach an environment from the Airflow 1.8.2 cluster with Python 3.5, then you must attach another Python 3.5 environment to get the Airflow cluster running. Otherwise, the cluster does not start.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin or system-user group.
  • Users who belong to a group associated with a role that allows updating an environment. See Managing Groups and Managing Roles for more information.

Parameters

None

Request API Syntax

curl -X PUT -H "X-AUTH-TOKEN: <API-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v1.2/package/<env ID>/detach_cluster"

Sample API Request

Here is detaching a cluster from the environment with 120 as its ID.

curl -X PUT -H "X-AUTH-TOKEN: <API-TOKEN>" -H "Content-Type: application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v1.2/package/120/detach_cluster"