GET
/
cloud
/
v1
/
loadbalancers
/
{project_id}
/
{region_id}
/
{loadbalancer_id}
/
status
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
)
load_balancer_status = client.cloud.load_balancers.statuses.get(
    loadbalancer_id="loadbalancer_id",
    project_id=0,
    region_id=0,
)
print(load_balancer_status.id)
{
  "id": "00000000-0000-4000-8000-000000000000",
  "listeners": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "name": "My Load Balancer Listener",
      "operating_status": "ONLINE",
      "pools": [
        {
          "health_monitor": {
            "id": "00000000-0000-4000-8000-000000000000",
            "operating_status": "ONLINE",
            "provisioning_status": "ACTIVE",
            "type": "HTTP"
          },
          "id": "00000000-0000-4000-8000-000000000000",
          "members": [
            {
              "address": "95.85.95.85",
              "id": "00000000-0000-4000-8000-000000000000",
              "operating_status": "ONLINE",
              "protocol_port": 53,
              "provisioning_status": "ACTIVE"
            }
          ],
          "name": "My Load Balancer Pool",
          "operating_status": "ONLINE",
          "provisioning_status": "ACTIVE"
        }
      ],
      "provisioning_status": "ACTIVE"
    }
  ],
  "name": "My Load Balancer",
  "operating_status": "ONLINE",
  "provisioning_status": "ACTIVE",
  "tags": [
    {
      "key": "my-tag",
      "read_only": false,
      "value": "my-tag-value"
    }
  ]
}

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

region_id
integer
required

Region ID

loadbalancer_id
string
required

Load balancer ID

Response

200 - application/json

Load Balancer status

id
string<uuid>
required

UUID of the entity

Examples:

"00000000-0000-4000-8000-000000000000"

listeners
ListenerStatusSerializer · object[]
required

Listeners of the Load Balancer

name
string
required

Name of the load balancer

Examples:

"My Load Balancer"

operating_status
enum<string>
required

Operating status of the entity

Available options:
DEGRADED,
DRAINING,
ERROR,
NO_MONITOR,
OFFLINE,
ONLINE
provisioning_status
enum<string>
required

Provisioning status of the entity

Available options:
ACTIVE,
DELETED,
ERROR,
PENDING_CREATE,
PENDING_DELETE,
PENDING_UPDATE
tags
TagSerializer · object[]

List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.

Examples:
[
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
]