This API is used to modify the scaling policy of a queue associated with an elastic resource pool.
PUT /v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/queues/{queue_name}
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. |
queue_name |
Yes |
String |
Name of a bound queue. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
queue_scaling_policies |
Yes |
Array of objects |
Scaling policy of a queue in an elastic resource pool. A policy contains the period, priority, and CU range. There must be a default scaling policy (period [00:00, 24:00]) for each queue. For details about the parameters, see Table 3. |
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. |
Modify the scaling policy of a queue associated with an elastic resource pool.
{ "queue_scaling_policies" : [ { "priority" : 100, "impact_start_time" : "10:00", "impact_stop_time" : "22:00", "min_cu":"64", "max_cu":"752" }, { "priority" : 50, "impact_start_time" : "22:00", "impact_stop_time" : "10:00", "min_cu":"64", "max_cu":"752" } ] }
{ "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.