Batch Updating Forwarding Policy Priorities
Function
This API is used to batch update the priorities of forwarding policies.
Constraints
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.
Calling Method
For details, see Calling APIs.
URI
POST /v3/{project_id}/elb/l7policies/batch-update-priority
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
Request Parameters
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 each forwarding policy of the same listener. This parameter is available only for dedicated load balancers and will take effect 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.
a) If the highest priority of existing forwarding policies is the maximum (10,000), the forwarding policy will fail to create because the final priority for creating the forwarding policy is the sum of 1 and 10,000, which exceeds the maximum. In this case, please specify a value or adjust the priorities of existing forwarding policies. b) If no forwarding policies exist, the highest priority of existing forwarding policies will be set to 1 by default. For shared load balancers, this parameter is unsupported. Minimum: 1 Maximum: 10000 |
Response Parameters
Status code: 202
Parameter |
Type |
Description |
---|---|---|
request_id |
String |
Specifies the backend server. |
Example Requests
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 } ] }
Example Responses
Status code: 202
Created
{ "request_id" : "e5c07525-1470-47b6-9b0c-567527a036aa" }
Status Codes
Status Code |
Description |
---|---|
202 |
Created |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot