Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex Network Load Balancer
  • Getting started
  • Step-by-step instructions
  • Concepts
  • Best practices for using the service
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
    • REST
      • Overview
      • NetworkLoadBalancer
        • Overview
        • addListener
        • attachTargetGroup
        • create
        • delete
        • detachTargetGroup
        • get
        • getTargetStates
        • list
        • listOperations
        • removeListener
        • start
        • stop
        • update
      • TargetGroup
      • Operation
  • Questions and answers
  1. API reference
  2. REST
  3. NetworkLoadBalancer
  4. getTargetStates

Network Load Balancer API, REST: NetworkLoadBalancer.getTargetStates

Written by
Yandex Cloud
  • HTTP request
  • Path parameters
  • Query parameters
  • Response

Gets states of target resources in the attached target group.

HTTP request

GET https://load-balancer.api.cloud.yandex.net/load-balancer/v1/networkLoadBalancers/{networkLoadBalancerId}:getTargetStates

Path parameters

Parameter Description
networkLoadBalancerId

ID of the NetworkLoadBalancer resource with an attached target group.

The maximum string length in characters is 50.

Query parameters

Parameter Description
targetGroupId

ID of the target group to get states of resources from.

The maximum string length in characters is 50.

Response

HTTP Code: 200 - OK

{
  "targetStates": [
    {
      "subnetId": "string",
      "address": "string",
      "status": "string"
    }
  ]
}
Field Description
targetStates[] object

List of states of targets within the target group that is specified in the GetTargetStatesRequest message.

targetStates[].
subnetId
string

ID of the subnet that the target is connected to.

targetStates[].
address
string

IP address of the target.

targetStates[].
status
string

Status of the target.

Status of the target.

  • INITIAL: The network load balancer is setting up health checks for this target.
  • HEALTHY: Health check passed and the target is ready to receive traffic.
  • UNHEALTHY: Health check failed and the target is not receiving traffic.
  • DRAINING: Target is being deleted and the network load balancer is no longer sending traffic to this target.
  • INACTIVE: The network load balancer is stopped and not performing health checks on this target.

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG
In this article:
  • HTTP request
  • Path parameters
  • Query parameters
  • Response