PATCH
/
cloud
/
v2
/
lblisteners
/
{project_id}
/
{region_id}
/
{listener_id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
task_id_list = client.cloud.load_balancers.listeners.update(
    listener_id="00000000-0000-4000-8000-000000000000",
    project_id=1,
    region_id=1,
)
print(task_id_list.tasks)
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Required range: x > 0
Examples:

1

listener_id
string<uuid4>
required

Listener ID

Examples:

"00000000-0000-4000-8000-000000000000"

Body

application/json
allowed_cidrs
string<ipvanynetwork>[] | null

Network CIDRs from which service will be accessible

Examples:
["10.0.0.0/8"]
connection_limit
integer

Limit of simultaneous connections

Required range: -1 <= x <= 1000000
Examples:

100000

name
string

Load balancer listener name

Examples:

"new_listener_name"

secret_id
string<uuid4> | null

ID of the secret where PKCS12 file is stored for TERMINATED_HTTPS or PROMETHEUS load balancer

Examples:

"af4a64e7-03ca-470f-9a09-b77d54c5abd8"

sni_secret_id
string<uuid4>[] | null

List of secret's ID containing PKCS12 format certificate/key bundfles for TERMINATED_HTTPS or PROMETHEUS listeners

Examples:
[
"af4a64e7-03ca-470f-9a09-b77d54c5abd8",
"12b43d95-d420-4c79-a883-49bf146cbdff"
]
timeout_client_data
integer | null

Frontend client inactivity timeout in milliseconds

Required range: 0 <= x <= 86400000
Examples:

50000

timeout_member_connect
integer | null

Backend member connection timeout in milliseconds

Required range: 0 <= x <= 86400000
Examples:

50000

timeout_member_data
integer | null

Backend member inactivity timeout in milliseconds

Required range: 0 <= x <= 86400000
Examples:

null

user_list
UserListItem · object[] | null

Load balancer listener users list

Examples:
[
{
"encrypted_password": "$5$isRr.HJ1IrQP38.m$oViu3DJOpUG2ZsjCBtbITV3mqpxxbZfyWJojLPNSPO5",
"username": "admin"
}
]

Response

200 - application/json

OK

tasks
string[]
required

List of task IDs

Examples:
["d478ae29-dedc-4869-82f0-96104425f565"]