Help Center/ Data Lake Insight/ API Reference/ APIs Related to Elastic Resource Pools/ Associating a Queue with an Elastic Resource Pool
Updated on 2024-08-19 GMT+08:00

Associating a Queue with an Elastic Resource Pool

Function

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

URI

  • URI format

    POST /v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues

  • Parameter description
    Table 1 URI parameters

    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.

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.