Add Queue

Run the following to add a queue.

Request URL

POST
http://<cm_host>:7180/cmf/clusters/<Cluster-id>/queue-manager-api/api/v1/environments/support/clusters/<Cluster-id>/resources/scheduler/partitions/default/queues/<path-to-the-queue>

Request Body

{
  "queuePath": "{queue-path}",
  "queueName": "{queue-name}",
  "capacity": "{queue-capacity}",
  "maximum-capacity": "{queue-maximum-capacity}",
  "siblingCapacities": [
    {
      "queuePath": "{sibling-queue-path}",
      "queueName": "{sibling-queue-name}",
      "capacity": "{sibling-queue-capacity}",
      "maximum-capacity": "{sibling-queue-maximum-capacity}",
    }
  ],
  "message": "Added {queue-name}"
}  
Parameter Description
cm_host Cloudera Manager host address
Cluster-id Name of the cluster
queuePath Path to the queue
queueName Name of the queue
capacity Capacity of the queue
maximum-capacity Maximum capacity of the queue
siblingCapacities Capacity of the sibling queue

Example Request

curl -v -X POST -b cookie.txt --key cm-auto-host_key_decrypted.pem --cert cm-auto-host_cert_chain.pem --cacert cm-auto-global_cacerts.pem -H "Referer: https://<cm_host>:7183/cmf/clusters/Cluster%201/queue-manager/" 

my-cluster-1.my-cluster.root.hwx.site:7180/cmf/clusters/Cluster201/queue-manager-api/api/v1/environments/support/clusters/Cluster201/resources/scheduler/partitions/default/queues/root.samplequeue -d @request.json