v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Load Balancers

Replace load balancer L7 rule properties

put/cloud/v1/l7policies/{project_id}/{region_id}/{l7policy_id}/rules/{l7rule_id}

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

l7policy_idstring required

L7 policy ID

Example:023f2e34-7806-443b-bfae-16c324569a3d

L7 policy ID

l7rule_idstring required

L7 rule ID

Example:023f2e34-7806-443b-bfae-16c324569a3d

L7 rule ID

Request body

compare_type'CONTAINS' | 'ENDS_WITH' | 'EQUAL_TO' | 'REGEX' | 'STARTS_WITH'
invertboolean

When true the logic of the rule is inverted.

keystring

The key to use for the comparison. Required for COOKIE and HEADER type only.

tagsstring[]

A list of simple strings assigned to the l7 rule

type'COOKIE' | 'FILE_TYPE' | 'HEADER' | 'HOST_NAME' | 'PATH' | 'SSL_CONN_HAS_CERT' | 'SSL_DN_FIELD' | 'SSL_VERIFY_RESULT'
valuestring

The value to use for the comparison

Example request

{
  "invert": true,
  "key": "the name of the cookie or header to evaluate.",
  "tags": [
    "test_tag_1",
    "test_tag_2"
  ],
  "value": "/images*"
}

Response

OK

tasksstring[] required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
idstring required

Example response

{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}