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-балансировщика
  • История изменений
  • Обучающие курсы

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

  • gRPC request
  • GetTargetStatesRequest
  • GetTargetStatesResponse
  • TargetState
  • HealthcheckStatus
  • ZoneHealthcheckStatus
  • Target
  1. Справочник API
  2. gRPC (англ.)
  3. LoadBalancer
  4. GetTargetStates

Application Load Balancer API, gRPC: LoadBalancerService.GetTargetStates

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

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

gRPC request

rpc GetTargetStates (GetTargetStatesRequest) returns (GetTargetStatesResponse)

GetTargetStatesRequest

{
  "load_balancer_id": "string",
  "backend_group_id": "string",
  "target_group_id": "string"
}

Field

Description

load_balancer_id

string

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

backend_group_id

string

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

target_group_id

string

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

GetTargetStatesResponse

{
  "target_states": [
    {
      "status": {
        "zone_statuses": [
          {
            "zone_id": "string",
            "status": "Status",
            "failed_active_hc": "bool"
          }
        ]
      },
      "target": {
        // Includes only one of the fields `ip_address`
        "ip_address": "string",
        // end of the list of possible fields
        "subnet_id": "string",
        "private_ipv4_address": "bool"
      }
    }
  ]
}

Field

Description

target_states[]

TargetState

Target states of the specified target group.

TargetState

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.

HealthcheckStatus

Health of the target.

Field

Description

zone_statuses[]

ZoneHealthcheckStatus

Statuses of the target in its availability zones.

ZoneHealthcheckStatus

Health of the target in the availability zone.

Field

Description

zone_id

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.healthy_threshold 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.unhealthy_threshold 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.unhealthy_threshold 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

failed_active_hc

bool

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.

Target

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

Field

Description

ip_address

string

IP address of the target.

Includes only one of the fields ip_address.

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

subnet_id

string

ID of the subnet that the target is connected to.

private_ipv4_address

bool

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 ООО «Яндекс.Облако»