Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Application Load Balancer
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Start
        • Stop
        • AddListener
        • RemoveListener
        • UpdateListener
        • AddSniMatch
        • UpdateSniMatch
        • RemoveSniMatch
        • GetTargetStates
        • ListOperations
        • StartZonalShift
        • CancelZonalShift
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes

In this article:

  • HTTP request
  • Path parameters
  • Response
  • TargetState
  • HealthcheckStatus
  • ZoneHealthcheckStatus
  • Target
  1. API reference
  2. REST
  3. LoadBalancer
  4. GetTargetStates

Application Load Balancer API, REST: LoadBalancer.GetTargetStates

Written by
Yandex Cloud
Updated at November 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 request

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

Path 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.

Response

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.

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

zoneStatuses[]

ZoneHealthcheckStatus

Statuses of the target in its availability zones.

ZoneHealthcheckStatus

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.

Target

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.

Was the article helpful?

Previous
RemoveSniMatch
Next
ListOperations
Yandex project
© 2025 Yandex.Cloud LLC