Amazon EC2 Auto Scaling Ec2 Auto Scaling Load Balancer API

The Ec2 Auto Scaling Load Balancer API from Amazon EC2 Auto Scaling — 3 operation(s) for ec2 auto scaling load balancer.

GitHub OpenAPI

Operations 3

POST /?Action=AttachLoadBalancers Attach Load Balancers #
POST /?Action=DescribeLoadBalancers Describe Load Balancers #
POST /?Action=DetachLoadBalancers Detach Load Balancers #

Documentation

Specifications

Schemas & Data

Other Resources

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-ec2-auto-scaling:amazon-ec2-auto-scaling-load-balancer-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-ec2-auto-scaling-load-balancer-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Auto Scaling Load Balancer API
  version: '2011-01-01'
  description: Generated from AWS's published Smithy model for Auto Scaling. 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://autoscaling.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=AttachLoadBalancers:
    post:
      operationId: AttachLoadBalancers
      summary: Attach Load Balancers
      description: This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types.
        We recommend using AttachTrafficSources to simplify how you manage traffic sources. However, we continue to support
        AttachLoadBalancers. You can use both the original AttachLoadBalancers API operation and AttachTrafficSources on the
        same Auto Scaling group. Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2
        Auto Scaling registers the running instances with these Classic Load Balancers. To describe the load balancers for
        an Auto Scaling group, call the DescribeLoadBalancers API. To detach a load balancer from the Auto Scaling group,
        call the DetachLoadBalancers API. This operation is additive and does not detach existing Classic Load Balancers or
        target groups from the Auto Scaling group. For more information, see Use Elastic Load Balancing to distribute traffic
        across the instances in your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AttachLoadBalancersResultType'
        '400':
          description: InstanceRefreshInProgressFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InstanceRefreshInProgressFault'
        '500':
          description: ResourceContentionFault; ServiceLinkedRoleFailure
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: AttachLoadBalancers
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/AttachLoadBalancersType'
            example:
              AutoScalingGroupName: my-auto-scaling-group
              LoadBalancerNames:
              - my-load-balancer
      tags:
      - Load Balancer
  /?Action=DescribeLoadBalancers:
    post:
      operationId: DescribeLoadBalancers
      summary: Describe Load Balancers
      description: This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources
        types. We recommend using DescribeTrafficSources to simplify how you manage traffic sources. However, we continue
        to support DescribeLoadBalancers. You can use both the original DescribeLoadBalancers API operation and DescribeTrafficSources
        on the same Auto Scaling group. Gets information about the load balancers for the specified Auto Scaling group. This
        operation describes only Classic Load Balancers. If you have Application Load Balancers, Network Load Balancers, or
        Gateway Load Balancers, use the DescribeLoadBalancerTargetGroups API instead. To determine the attachment status of
        the load balancer, use the State element in the response. When you attach a load balancer to an Auto Scaling group,
        the initial State value is Adding. The state transitions to Added after all Auto Scaling instances are registered
        with the load balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, the state
        transitions to InService after at least one Auto Scaling instance passes the health check. When the load balancer
        is in the InService state, Amazon EC2 Auto Scali
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DescribeLoadBalancersResponse'
              example:
                LoadBalancers:
                - State: Added
                  LoadBalancerName: my-load-balancer
        '400':
          description: InvalidNextToken
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidNextToken'
        '500':
          description: ResourceContentionFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeLoadBalancers
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/DescribeLoadBalancersRequest'
            example:
              AutoScalingGroupName: my-auto-scaling-group
      tags:
      - Load Balancer
  /?Action=DetachLoadBalancers:
    post:
      operationId: DetachLoadBalancers
      summary: Detach Load Balancers
      description: This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types.
        We recommend using DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support
        DetachLoadBalancers. You can use both the original DetachLoadBalancers API operation and DetachTrafficSources on the
        same Auto Scaling group. Detaches one or more Classic Load Balancers from the specified Auto Scaling group. This operation
        detaches only Classic Load Balancers. If you have Application Load Balancers, Network Load Balancers, or Gateway Load
        Balancers, use the DetachLoadBalancerTargetGroups API instead. When you detach a load balancer, it enters the Removing
        state while deregistering the instances in the group. When all instances are deregistered, then you can no longer
        describe the load balancer using the DescribeLoadBalancers API call. The instances remain running.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DetachLoadBalancersResultType'
        '500':
          description: ResourceContentionFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DetachLoadBalancers
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/DetachLoadBalancersType'
            example:
              AutoScalingGroupName: my-auto-scaling-group
              LoadBalancerNames:
              - my-load-balancer
      tags:
      - Load Balancer
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: autoscaling
  schemas:
    AttachLoadBalancersResultType:
      type: object
      properties: {}
    AttachLoadBalancersType:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        LoadBalancerNames:
          type: array
          items:
            type: string
          description: The names of the load balancers. You can specify up to 10 load balancers.
      required:
      - AutoScalingGroupName
      - LoadBalancerNames
    DescribeLoadBalancersRequest:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        NextToken:
          type: string
          description: The token for the next set of items to return. (You received this token from a previous call.)
        MaxRecords:
          type: integer
          description: The maximum number of items to return with this call. The default value is 100 and the maximum value
            is 100.
      required:
      - AutoScalingGroupName
    DescribeLoadBalancersResponse:
      type: object
      properties:
        LoadBalancers:
          type: array
          items:
            $ref: '#/components/schemas/LoadBalancerState'
          description: The load balancers.
        NextToken:
          type: string
          description: A string that indicates that the response contains more items than can be returned in a single response.
            To receive additional items, specify this string for the NextToken value when requesting the next set of items.
            This value is null when there are no more items to return.
    DetachLoadBalancersResultType:
      type: object
      properties: {}
    DetachLoadBalancersType:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        LoadBalancerNames:
          type: array
          items:
            type: string
          description: The names of the load balancers. You can specify up to 10 load balancers.
      required:
      - AutoScalingGroupName
      - LoadBalancerNames
    InstanceRefreshInProgressFault:
      type: object
      properties:
        message:
          type: string
    InvalidNextToken:
      type: object
      properties:
        message:
          type: string
    LoadBalancerState:
      type: object
      properties:
        LoadBalancerName:
          type: string
          description: The name of the load balancer.
        State:
          type: string
          description: 'One of the following load balancer states: Adding - The Auto Scaling instances are being registered
            with the load balancer. Added - All Auto Scaling instances are registered with the load balancer. InService -
            At least one Auto Scaling instance passed an ELB health check. Note that the load balancer enters this state immediately
            if you attach it in the CreateAutoScalingGroup API call. Removing - The Auto Scaling instances are being deregistered
            from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests
            to complete before deregistering the ins'
    ResourceContentionFault:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/auto-scaling/service/2011-01-01/auto-scaling-2011-01-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)