Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Application Load Balancer
  • Начало работы
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Start
        • Stop
        • AddListener
        • RemoveListener
        • UpdateListener
        • AddSniMatch
        • UpdateSniMatch
        • RemoveSniMatch
        • GetTargetStates
        • ListOperations
        • StartZonalShift
        • CancelZonalShift
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • Логи L7-балансировщика
  • История изменений
  • Обучающие курсы

В этой статье:

  • HTTP request
  • Path parameters
  • Response
  • TargetState
  • HealthcheckStatus
  • ZoneHealthcheckStatus
  • Target
  1. Справочник API
  2. REST (англ.)
  3. LoadBalancer
  4. GetTargetStates

Application Load Balancer API, REST: LoadBalancer.GetTargetStates

Статья создана
Yandex Cloud
Обновлена 26 ноября 2024 г.
  • HTTP request
  • Path parameters
  • Response
  • TargetState
  • HealthcheckStatus
  • ZoneHealthcheckStatus
  • Target

Returns the statuses of all targets of the specified backend group in all their availability zones.

HTTP requestHTTP request

GET https://alb.api.cloud.yandex.net/apploadbalancer/v1/loadBalancers/{loadBalancerId}/targetStates/{backendGroupId}/{targetGroupId}

Path parametersPath parameters

Field

Description

loadBalancerId

string

Required field. ID of the application load balancer that the backend group is attributed to.

backendGroupId

string

Required field. ID of the backend group that the target group is attributed to.

targetGroupId

string

Required field. ID of the target group to get target states of.

ResponseResponse

HTTP Code: 200 - OK

{
  "targetStates": [
    {
      "status": {
        "zoneStatuses": [
          {
            "zoneId": "string",
            "status": "string",
            "failedActiveHc": "boolean"
          }
        ]
      },
      "target": {
        // Includes only one of the fields `ipAddress`
        "ipAddress": "string",
        // end of the list of possible fields
        "subnetId": "string",
        "privateIpv4Address": "boolean"
      }
    }
  ]
}

Field

Description

targetStates[]

TargetState

Target states of the specified target group.

TargetStateTargetState

A target state resource.

Field

Description

status

HealthcheckStatus

Health of the target, i.e. its statuses in all availability zones.

target

Target

Required field. Target.

HealthcheckStatusHealthcheckStatus

Health of the target.

Field

Description

zoneStatuses[]

ZoneHealthcheckStatus

Statuses of the target in its availability zones.

ZoneHealthcheckStatusZoneHealthcheckStatus

Health of the target in the availability zone.

Field

Description

zoneId

string

Required field. ID of the availability zone.

status

enum (Status)

Status of the target in the availability zone.

  • STATUS_UNSPECIFIED
  • HEALTHY: All of the health checks specified in HttpBackend.healthchecks or GrpcBackend.healthchecks are passed
    (the number depends on the HealthCheck.healthyThreshold setting) and the target is ready to receive traffic.
  • PARTIALLY_HEALTHY: Some of the health checks specified in HttpBackend.healthchecks or GrpcBackend.healthchecks failed
    (the number depends on the HealthCheck.unhealthyThreshold setting).
    The target is ready to receive traffic from the load balancer nodes which, based on their health checks,
    consider the target healthy.
  • UNHEALTHY: All of the health checks specified in HttpBackend.healthchecks or GrpcBackend.healthchecks failed
    (the number depends on the HealthCheck.unhealthyThreshold setting) and the target is not receiving traffic.
  • DRAINING: Target is being deleted and the application load balancer is no longer sending traffic to this target.
  • TIMEOUT

failedActiveHc

boolean

Indicates whether the target has been marked UNHEALTHY due to failing active health checks,
which determine target statuses as configured in HttpBackend.healthchecks or GrpcBackend.healthchecks.

Currently the only type of health checks is active, as described above.
Passive health checks, which determine the health of a target based on its responses to production requests
(HTTP 5xx status codes, connection errors etc.), are not implemented yet.

TargetTarget

A target resource.
For details about the concept, see documentation.

Field

Description

ipAddress

string

IP address of the target.

Includes only one of the fields ipAddress.

Reference to the target. As of now, targets must only be referred to by their IP addresses.

subnetId

string

ID of the subnet that the target is connected to.

privateIpv4Address

boolean

If set, will not require subnet_id to validate the target.
Instead, the address should belong to one of the following ranges:
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
Only one of subnet_id or private_ipv4_address should be set.

Была ли статья полезна?

Предыдущая
RemoveSniMatch
Следующая
ListOperations
Проект Яндекса
© 2025 ООО «Яндекс.Облако»