This API is used to associate a queue with an elastic resource pool.
POST /v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
elastic_resource_pool_name |
Yes |
String |
Elastic resource pool name. |
project_id |
Yes |
String |
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
queue_name |
Yes |
String |
Queue name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
is_success |
No |
Boolean |
Whether the request is successfully executed. Value true indicates that the request is successfully executed. |
message |
No |
String |
System prompt. If execution succeeds, the message may be left blank. |
Associate the lhm_sql queue with the elastic resource pool.
{ "queue_name" : "lhm_sql" }
{ "is_success" : true, "message" : "" }
Status Code |
Description |
---|---|
200 |
OK |
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Codes.