Reassign a Cluster Label

PUT /api/v2.2/clusters/reassign-label

This API is used to reassign a label from one cluster to another.

Required Role

The following roles can make this API call:

  • A user who is part of the system-admin group.

  • A user invoking this API must be part of a group associated with a role that allows editing a cluster configuration. See Managing Groups and Managing Roles for more information.

Parameters

Parameter

Description

label

Label to be moved from the source cluster.

destination_cluster

ID or label of the cluster to move the label to.

Examples

Reassign a label from one cluster to another

curl -X PUT -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json"
-d '{"label":"Hadoop-hive", "destination_cluster": 1710}' \
https://api.qubole.com/api/v2.2/clusters/reassign-label

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.