This API is used to batch update the priorities of forwarding policies.
This API is only used to update the priorities of forwarding policies added to a listener of a dedicated load balancer when action is set to REDIRECT_TO_POOL.
POST /v3/{project_id}/elb/l7policies/batch-update-priority
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the token used for IAM authentication. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
l7policies |
No |
Array of BatchUpdatePriorityRequestBody objects |
Specifies the forwarding policy. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
Specifies the ID of the forwarding policy. Minimum: 1 Maximum: 36 |
priority |
Yes |
Integer |
Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when enhance_l7policy_enable is set to true. If this parameter is passed and enhance_l7policy_enable is set to false, an error will be returned. This parameter is unsupported for shared load balancers.
This parameter is invalid for shared load balancers. Minimum: 1 Maximum: 10000 |
Status code: 202
Parameter |
Type |
Description |
---|---|---|
request_id |
String |
Specifies the backend server. |
Batch updating the priorities of forwarding policies
POST https://{ELB_Endpoint}/v3/060576782980d5762f9ec014dd2f1148/elb/l7policies/batch-update-priority { "l7policies" : [ { "id" : "1fe93e12-6e07-47a9-8f81-3346c015601d", "priority" : 11 } ] }
Status code: 202
Created
{ "request_id" : "e5c07525-1470-47b6-9b0c-567527a036aa" }
Status Code |
Description |
---|---|
202 |
Created |
See Error Codes.