Associating a Queue with an Elastic Resource Pool

Function

This API is used to associate a queue with an elastic resource pool.

URI

Request

Table 2 Request parameter

Parameter

Mandatory

Type

Description

queue_name

Yes

String

Queue name.

Response

Table 3 Response parameters

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.

Example Request

Associate the lhm_sql queue with the elastic resource pool.

{
  "queue_name" : "lhm_sql"
}

Example Response

{
  "is_success" : true,
  "message" : ""
}

Status Codes

Status Code

Description

200

OK

Error Codes

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.