Amazon Elastic Load Balancing Targets API

Operations for registering and deregistering targets

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /?Action=DeregisterTargets Deregister targets from a target group · Deregister Targets #
Ask an LLM
“How do I stop a load balancer from sending traffic to a specific EC2 instance?”
“Does deregistering a target stop traffic immediately or after a delay?”
Tell an agent destructive · confirm first
Deregister targets {targets} from target group {target_group}.
Remove {targets} from {target_group} so they stop receiving load balancer traffic.
POST /?Action=RegisterTargets Register targets with a target group · Register Targets #
Ask an LLM
“How do I add EC2 instances to a target group so the load balancer can route traffic to them?”
“Can I register the same instance with a target group on different ports?”
Tell an agent
Register targets {targets} with target group {target_group}.
Add {targets} to {target_group} so they start receiving traffic.
POST /?Action=DescribeTargetHealth Check the health of targets · Describe Target Health #
Ask an LLM
“Are my registered targets healthy, and which ones are unhealthy?”
“Can I include anomaly detection when checking target health?”
Tell an agent
Describe the health of targets {targets} in {target_group}.
Check health for all targets in {target_group}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-elastic-load-balancing:amazon-elastic-load-balancing-targets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-elastic-load-balancing-targets-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Elastic Load Balancing Targets API
  version: '2015-12-01'
  description: Generated from AWS's published Smithy model for Elastic Load Balancing. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://elasticloadbalancing.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=DeregisterTargets:
    post:
      operationId: DeregisterTargets
      summary: Deregister Targets
      description: 'Deregisters the specified targets from the specified target group. After the targets are deregistered,
        they no longer receive traffic from the load balancer. The load balancer stops sending requests to targets that are
        deregistering, but uses connection draining to ensure that in-flight traffic completes on the existing connections.
        This deregistration delay is configured by default but can be updated for each target group. For more information,
        see the following: Deregistration delay in the Application Load Balancers User Guide Deregistration delay in the Network
        Load Balancers User Guide Deregistration delay in the Gateway Load Balancers User Guide Note: If the specified target
        does not exist, the action returns successfully.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DeregisterTargetsOutput'
        '400':
          description: InvalidTargetException; TargetGroupNotFoundException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidTargetException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeregisterTargets
                  Version:
                    type: string
                    const: '2015-12-01'
              - $ref: '#/components/schemas/DeregisterTargetsInput'
            example:
              TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
              Targets:
              - Id: i-0f76fade
      tags:
      - Targets
  /?Action=RegisterTargets:
    post:
      operationId: RegisterTargets
      summary: Register Targets
      description: 'Registers the specified targets with the specified target group. If the target is an EC2 instance, it
        must be in the running state when you register it. By default, the load balancer routes requests to registered targets
        using the protocol and port for the target group. Alternatively, you can override the port for a target when you register
        it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.
        For more information, see the following: Register targets for your Application Load Balancer Register targets for
        your Network Load Balancer Register targets for your Gateway Load Balancer'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/RegisterTargetsOutput'
        '400':
          description: InvalidTargetException; TargetGroupNotFoundException; TooManyRegistrationsForTargetIdException; TooManyTargetsException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidTargetException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: RegisterTargets
                  Version:
                    type: string
                    const: '2015-12-01'
              - $ref: '#/components/schemas/RegisterTargetsInput'
            example:
              TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
              Targets:
              - Id: i-80c8dd94
              - Id: i-ceddcd4d
      tags:
      - Targets
  /?Action=DescribeTargetHealth:
    post:
      operationId: DescribeTargetHealth
      summary: Describe Target Health
      description: Describes the health of the specified targets or all of your targets.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DescribeTargetHealthOutput'
              example:
                TargetHealthDescriptions:
                - Target:
                    Id: i-0f76fade
                    Port: 80
                  TargetHealth:
                    State: unused
                    Reason: Target.NotInUse
                    Description: Given target group is not configured to receive traffic from ELB
                - HealthCheckPort: '80'
                  Target:
                    Id: i-0f76fade
                    Port: 80
                  TargetHealth:
                    State: healthy
        '500':
          description: HealthUnavailableException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/HealthUnavailableException'
        '400':
          description: InvalidTargetException; TargetGroupNotFoundException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidTargetException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeTargetHealth
                  Version:
                    type: string
                    const: '2015-12-01'
              - $ref: '#/components/schemas/DescribeTargetHealthInput'
            example:
              TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
      tags:
      - Targets
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: elasticloadbalancing
  schemas:
    AdministrativeOverride:
      type: object
      properties:
        State:
          type: string
          enum:
          - unknown
          - no_override
          - zonal_shift_active
          - zonal_shift_delegated_to_dns
          description: The state of the override.
        Reason:
          type: string
          enum:
          - AdministrativeOverride.Unknown
          - AdministrativeOverride.NoOverride
          - AdministrativeOverride.ZonalShiftActive
          - AdministrativeOverride.ZonalShiftDelegatedToDns
          description: The reason code for the state.
        Description:
          type: string
          description: A description of the override state that provides additional details.
    AnomalyDetection:
      type: object
      properties:
        Result:
          type: string
          enum:
          - anomalous
          - normal
          description: The latest anomaly detection result.
        MitigationInEffect:
          type: string
          enum:
          - 'yes'
          - 'no'
          description: Indicates whether anomaly mitigation is in progress.
    DeregisterTargetsInput:
      type: object
      properties:
        TargetGroupArn:
          type: string
          description: The Amazon Resource Name (ARN) of the target group.
        Targets:
          type: array
          items:
            $ref: '#/components/schemas/TargetDescription'
          description: The targets. If you specified a port override when you registered a target, you must specify both the
            target ID and the port when you deregister it.
      required:
      - TargetGroupArn
      - Targets
    DeregisterTargetsOutput:
      type: object
      properties: {}
    DescribeTargetHealthInput:
      type: object
      properties:
        TargetGroupArn:
          type: string
          description: The Amazon Resource Name (ARN) of the target group.
        Targets:
          type: array
          items:
            $ref: '#/components/schemas/TargetDescription'
          description: The targets.
        Include:
          type: array
          items:
            type: string
            enum:
            - AnomalyDetection
            - All
          description: Used to include anomaly detection information.
      required:
      - TargetGroupArn
    DescribeTargetHealthOutput:
      type: object
      properties:
        TargetHealthDescriptions:
          type: array
          items:
            $ref: '#/components/schemas/TargetHealthDescription'
          description: Information about the health of the targets.
    HealthUnavailableException:
      type: object
      properties:
        Message:
          type: string
    InvalidTargetException:
      type: object
      properties:
        Message:
          type: string
    RegisterTargetsInput:
      type: object
      properties:
        TargetGroupArn:
          type: string
          description: The Amazon Resource Name (ARN) of the target group.
        Targets:
          type: array
          items:
            $ref: '#/components/schemas/TargetDescription'
          description: The targets.
      required:
      - TargetGroupArn
      - Targets
    RegisterTargetsOutput:
      type: object
      properties: {}
    TargetDescription:
      type: object
      properties:
        Id:
          type: string
          description: The ID of the target. If the target type of the target group is instance, specify an instance ID. If
            the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function.
            If the target type is alb, specify the ARN of the Application Load Balancer target.
        Port:
          type: integer
          description: The port on which the target is listening. If the target group protocol is GENEVE, the supported port
            is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose
            port matches the target group port. This parameter is not used if the target is a Lambda function.
        AvailabilityZone:
          type: string
          description: An Availability Zone or all. This determines whether the target receives traffic from the load balancer
            nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer. For Application
            Load Balancer target groups, the specified Availability Zone value is only applicable when cross-zone load balancing
            is off. Otherwise the parameter is ignored and treated as all. This parameter is not supported if the target type
            of the target group is instance or alb. If the target type is ip and the IP address is in a subnet of the VPC
            for the target group, the Availabili
        QuicServerId:
          type: string
          description: The server ID for the targets. This value is required if the protocol is QUIC or TCP_QUIC and can't
            be used with other protocols. The ID consists of the 0x prefix followed by 16 hexadecimal characters. Any letters
            must be lowercase. The value must be unique at the listener level. You can't modify the server ID for a registered
            target. You must deregister the target and then provide a new server ID when you register the target again.
      required:
      - Id
    TargetHealth:
      type: object
      properties:
        State:
          type: string
          enum:
          - initial
          - healthy
          - unhealthy
          - unhealthy.draining
          - unused
          - draining
          - unavailable
          description: The state of the target.
        Reason:
          type: string
          enum:
          - Elb.RegistrationInProgress
          - Elb.InitialHealthChecking
          - Target.ResponseCodeMismatch
          - Target.Timeout
          - Target.FailedHealthChecks
          - Target.NotRegistered
          - Target.NotInUse
          - Target.DeregistrationInProgress
          - Target.InvalidState
          - Target.IpUnusable
          - Target.HealthCheckDisabled
          - Elb.InternalError
          description: 'The reason code. If the target state is healthy, a reason code is not provided. If the target state
            is initial, the reason code can be one of the following values: Elb.RegistrationInProgress - The target is in
            the process of being registered with the load balancer. Elb.InitialHealthChecking - The load balancer is still
            sending the target the minimum number of health checks required to determine its health status. If the target
            state is unhealthy, the reason code can be one of the following values: Target.ResponseCodeMismatch - The health
            checks did not return an expected HTTP code. Target.Time'
        Description:
          type: string
          description: A description of the target health that provides additional details. If the state is healthy, a description
            is not provided.
    TargetHealthDescription:
      type: object
      properties:
        Target:
          $ref: '#/components/schemas/TargetDescription'
        HealthCheckPort:
          type: string
          description: The port to use to connect with the target.
        TargetHealth:
          $ref: '#/components/schemas/TargetHealth'
        AnomalyDetection:
          $ref: '#/components/schemas/AnomalyDetection'
        AdministrativeOverride:
          $ref: '#/components/schemas/AdministrativeOverride'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/elastic-load-balancing-v2/service/2015-12-01/elastic-load-balancing-v2-2015-12-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)