Listeners
All operations require authentication.
List listenersProduction
Returns the listeners of the load balancer.
Filters
The optional name and protocol query parameters narrow the list. Each one can be repeated (for example ?protocol=HTTP&protocol=HTTPS): repeated values of the same parameter are combined with OR, and different parameters are combined with AND. An unknown protocol value is rejected with a 400 InvalidParameter. The resourceStatus is computed from the live state of each resource, so it is not a filter: a status query parameter is rejected with a 400 InvalidParameter.
Path parameters
Loadbalancer ID
Project ID
Query parameters
Filter by listener name (case-insensitive substring match). Repeatable.
Filter by listener protocol. Repeatable.
HTTPHTTPSSCTPTCPTERMINATED_HTTPSUDPHeaders
Pagination cursor
Pagination size
Response
Computed hash representing the current target specification value
Creation date of the listener
Current state of the listener
Ongoing asynchronous tasks related to the listener
Unique identifier of the listener
Listener readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the listener
Last update date of the listener
Example uses loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener \
-H "authorization: Bearer $OVH_TOKEN"[ { "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "allowedCidrs": [ "string" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "operatingStatus": "DEGRADED", "protocol": "HTTP", "protocolPort": 0, "provisioningStatus": "ACTIVE", "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "allowedCidrs": [ "192.0.2.0/24" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "protocol": "HTTP", "protocolPort": 0, "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "updatedAt": "2024-01-01T12:00:00Z" }]
Get a listenerProduction
Returns the listener, including its default pool and operating status.
Path parameters
Listener ID
Loadbalancer ID
Project ID
Response
Computed hash representing the current target specification value
Creation date of the listener
Current state of the listener
Ongoing asynchronous tasks related to the listener
Unique identifier of the listener
Listener readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the listener
Last update date of the listener
Example uses listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "allowedCidrs": [ "string" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "operatingStatus": "DEGRADED", "protocol": "HTTP", "protocolPort": 0, "provisioningStatus": "ACTIVE", "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "allowedCidrs": [ "192.0.2.0/24" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "protocol": "HTTP", "protocolPort": 0, "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Create a listenerProduction
Creates a listener for a protocol and port, optionally forwarding to a default pool.
Path parameters
Loadbalancer ID
Project ID
Request body (required)
Desired target specification for the listener to create
Response
Computed hash representing the current target specification value
Creation date of the listener
Current state of the listener
Ongoing asynchronous tasks related to the listener
Unique identifier of the listener
Listener readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the listener
Last update date of the listener
Example uses loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "allowedCidrs": [ "string" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "operatingStatus": "DEGRADED", "protocol": "HTTP", "protocolPort": 0, "provisioningStatus": "ACTIVE", "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "allowedCidrs": [ "192.0.2.0/24" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "protocol": "HTTP", "protocolPort": 0, "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Delete a listenerProduction
Deletes the listener.
Path parameters
Listener ID
Loadbalancer ID
Project ID
Response
Computed hash representing the current target specification value
Creation date of the listener
Current state of the listener
Ongoing asynchronous tasks related to the listener
Unique identifier of the listener
Listener readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the listener
Last update date of the listener
Example uses listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "allowedCidrs": [ "string" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "operatingStatus": "DEGRADED", "protocol": "HTTP", "protocolPort": 0, "provisioningStatus": "ACTIVE", "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "allowedCidrs": [ "192.0.2.0/24" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "protocol": "HTTP", "protocolPort": 0, "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Update a listenerProduction
Replaces the listener's target specification as a whole. The body carries the complete desired state of every field publicCloud.loadbalancer.ListenerPutTargetSpec exposes, so read the listener first and restate every value you want to keep: a field left out of targetSpec is cleared, not carried over from the stored specification.
This matters most for the collection-valued and security-relevant fields. Leaving allowedCidrs out clears the allow list and reopens the listener to every source. Leaving sniContainerRefs out removes every SNI certificate, and leaving defaultTlsContainerRef out removes the default certificate. Leaving insertHeaders out stops every header from being inserted, and leaving tlsVersions out clears the TLS version restriction. Each of these is replaced as a whole. There is no per-element merge.
The create-only fields protocol and protocolPort cannot be changed once the listener exists. They are deliberately absent from the update model, and sending one is rejected with a 400.
name is required.
The optional checksum guards against a lost update: when supplied it must match the listener's current checksum or the request is rejected with a 409 checksum mismatch. Omitting it skips the check and forces the write (last-write-wins).
Path parameters
Listener ID
Loadbalancer ID
Project ID
Request body (required)
Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins).
Desired target specification for the listener
Response
Computed hash representing the current target specification value
Creation date of the listener
Current state of the listener
Ongoing asynchronous tasks related to the listener
Unique identifier of the listener
Listener readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the listener
Last update date of the listener
Example uses listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "allowedCidrs": [ "string" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "operatingStatus": "DEGRADED", "protocol": "HTTP", "protocolPort": 0, "provisioningStatus": "ACTIVE", "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "allowedCidrs": [ "192.0.2.0/24" ], "connectionLimit": 0, "defaultPool": { "id": "00000000-0000-0000-0000-000000000000" }, "defaultTlsContainerRef": "string", "description": "string", "insertHeaders": { "xForwardedFor": true, "xForwardedPort": true, "xForwardedProto": true, "xSslClientDn": true, "xSslClientHasCert": true, "xSslClientVerify": true }, "name": "string", "protocol": "HTTP", "protocolPort": 0, "sniContainerRefs": [ "string" ], "timeoutClientData": 0, "timeoutMemberConnect": 0, "timeoutMemberData": 0, "timeoutTcpInspect": 0, "tlsVersions": [ "string" ] }, "updatedAt": "2024-01-01T12:00:00Z"}
List L7 policiesProduction
Returns the L7 policies of the listener.
Filters
The optional name and action query parameters narrow the list. Each one can be repeated (for example ?action=REJECT&action=REDIRECT_TO_POOL): repeated values of the same parameter are combined with OR, and different parameters are combined with AND. An unknown action value is rejected with a 400 InvalidParameter. The resourceStatus is computed from the live state of each resource, so it is not a filter: a status query parameter is rejected with a 400 InvalidParameter.
Path parameters
Listener ID
Loadbalancer ID
Project ID
Query parameters
Filter by L7 policy action. Repeatable.
REDIRECT_PREFIXREDIRECT_TO_POOLREDIRECT_TO_URLREJECTFilter by L7 policy name (case-insensitive substring match). Repeatable.
Headers
Pagination cursor
Pagination size
Response
Computed hash representing the current target specification value
Creation date of the L7 policy
Current state of the L7 policy
Ongoing asynchronous tasks related to the L7 policy
Unique identifier of the L7 policy
L7 policy readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the L7 policy
Last update date of the L7 policy
Example uses listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId}/ l7policy \
-H "authorization: Bearer $OVH_TOKEN"[ { "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "operatingStatus": "DEGRADED", "position": 0, "provisioningStatus": "ACTIVE", "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "string", "id": "00000000-0000-0000-0000-000000000000", "invert": true, "key": "string", "operatingStatus": "DEGRADED", "provisioningStatus": "ACTIVE", "type": "string", "value": "string" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "position": 0, "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "CONTAINS", "invert": true, "key": "string", "type": "COOKIE", "value": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z" }]
Get an L7 policyProduction
Returns the L7 policy, including its action and matching rules.
Path parameters
L7 policy ID
Listener ID
Loadbalancer ID
Project ID
Response
Computed hash representing the current target specification value
Creation date of the L7 policy
Current state of the L7 policy
Ongoing asynchronous tasks related to the L7 policy
Unique identifier of the L7 policy
L7 policy readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the L7 policy
Last update date of the L7 policy
Example uses l7PolicyId = 00000000-0000-0000-0000-000000000000, listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId}/ l7policy/ {l7PolicyId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "operatingStatus": "DEGRADED", "position": 0, "provisioningStatus": "ACTIVE", "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "string", "id": "00000000-0000-0000-0000-000000000000", "invert": true, "key": "string", "operatingStatus": "DEGRADED", "provisioningStatus": "ACTIVE", "type": "string", "value": "string" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "position": 0, "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "CONTAINS", "invert": true, "key": "string", "type": "COOKIE", "value": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Create an L7 policyProduction
Creates an L7 policy that redirects or rejects traffic matching its rules. Position sets its evaluation order among the listener's policies.
Path parameters
Listener ID
Loadbalancer ID
Project ID
Request body (required)
Desired target specification for the L7 policy to create
Response
Computed hash representing the current target specification value
Creation date of the L7 policy
Current state of the L7 policy
Ongoing asynchronous tasks related to the L7 policy
Unique identifier of the L7 policy
L7 policy readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the L7 policy
Last update date of the L7 policy
Example uses listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId}/ l7policy \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "operatingStatus": "DEGRADED", "position": 0, "provisioningStatus": "ACTIVE", "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "string", "id": "00000000-0000-0000-0000-000000000000", "invert": true, "key": "string", "operatingStatus": "DEGRADED", "provisioningStatus": "ACTIVE", "type": "string", "value": "string" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "position": 0, "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "CONTAINS", "invert": true, "key": "string", "type": "COOKIE", "value": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Delete an L7 policyProduction
Deletes the L7 policy.
Path parameters
L7 policy ID
Listener ID
Loadbalancer ID
Project ID
Response
Computed hash representing the current target specification value
Creation date of the L7 policy
Current state of the L7 policy
Ongoing asynchronous tasks related to the L7 policy
Unique identifier of the L7 policy
L7 policy readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the L7 policy
Last update date of the L7 policy
Example uses l7PolicyId = 00000000-0000-0000-0000-000000000000, listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId}/ l7policy/ {l7PolicyId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "operatingStatus": "DEGRADED", "position": 0, "provisioningStatus": "ACTIVE", "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "string", "id": "00000000-0000-0000-0000-000000000000", "invert": true, "key": "string", "operatingStatus": "DEGRADED", "provisioningStatus": "ACTIVE", "type": "string", "value": "string" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "position": 0, "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "CONTAINS", "invert": true, "key": "string", "type": "COOKIE", "value": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Update an L7 policyProduction
Replaces the L7 policy's target specification as a whole, including its action and evaluation position.
Path parameters
L7 policy ID
Listener ID
Loadbalancer ID
Project ID
Request body (required)
Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins).
Desired target specification for the L7 policy
Response
Computed hash representing the current target specification value
Creation date of the L7 policy
Current state of the L7 policy
Ongoing asynchronous tasks related to the L7 policy
Unique identifier of the L7 policy
L7 policy readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the L7 policy
Last update date of the L7 policy
Example uses l7PolicyId = 00000000-0000-0000-0000-000000000000, listenerId = 00000000-0000-0000-0000-000000000000, loadbalancerId = 00000000-0000-0000-0000-000000000000, projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ loadbalancer/ {loadbalancerId}/ listener/ {listenerId}/ l7policy/ {l7PolicyId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "operatingStatus": "DEGRADED", "position": 0, "provisioningStatus": "ACTIVE", "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "string", "id": "00000000-0000-0000-0000-000000000000", "invert": true, "key": "string", "operatingStatus": "DEGRADED", "provisioningStatus": "ACTIVE", "type": "string", "value": "string" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "action": "REDIRECT_PREFIX", "description": "string", "name": "string", "position": 0, "redirectHttpCode": 0, "redirectPool": { "id": "00000000-0000-0000-0000-000000000000" }, "redirectPrefix": "string", "redirectUrl": "string", "rules": [ { "compareType": "CONTAINS", "invert": true, "key": "string", "type": "COOKIE", "value": "string" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}