Amazon Lightsail Load Balancers API

The Load Balancers API from Amazon Lightsail — 9 operation(s) for load balancers.

Business capability
IT Infrastructure Management BC-600.50

Operations 9

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 /ls/api/2016-11-28/AttachInstancesToLoadBalancer Add instances to a load balancer · Attaches one or more Lightsail instances to a load balancer #
Ask an LLM
“How do I put my web servers behind a Lightsail load balancer?”
“Can I add several instances to a load balancer at once?”
Tell an agent
Attach {instanceNames} to load balancer {loadBalancerName}.
Add instances {instanceNames} as targets of {loadBalancerName}.
POST /ls/api/2016-11-28/CreateLoadBalancer Create a load balancer · Creates a Lightsail load balancer #
Ask an LLM
“How do I create a load balancer for my Lightsail instances?”
“Can I set a custom health check path when creating it?”
Tell an agent
Create load balancer {loadBalancerName} forwarding to port {instancePort}.
Create {loadBalancerName} on port {instancePort} with health check {healthCheckPath}.
POST /ls/api/2016-11-28/DeleteLoadBalancer Delete a load balancer · Deletes a Lightsail load balancer and all its associated SSL/TLS certificates #
Ask an LLM
“How do I delete a load balancer I no longer need?”
“Are the load balancer's certificates deleted along with it?”
Tell an agent destructive · confirm first
Delete load balancer {loadBalancerName}.
Remove {loadBalancerName} and its TLS certificates.
POST /ls/api/2016-11-28/DetachInstancesFromLoadBalancer Remove instances from a load balancer · Detaches the specified instances from a Lightsail load balancer #
Ask an LLM
“How do I take an instance out of the load balancer for maintenance?”
“Can I detach several instances from a load balancer in one call?”
Tell an agent
Detach {instanceNames} from load balancer {loadBalancerName}.
Take instances {instanceNames} out of rotation on {loadBalancerName}.
POST /ls/api/2016-11-28/GetLoadBalancer Get one load balancer's details · Returns information about the specified Lightsail load balancer #
Ask an LLM
“Are the instances behind my load balancer healthy?”
“What's the DNS name of a specific load balancer?”
Tell an agent
Get load balancer {loadBalancerName}.
Show target health and DNS name for {loadBalancerName}.
POST /ls/api/2016-11-28/GetLoadBalancerMetricData Get health metrics for a load balancer · Returns information about health metrics for your Lightsail load balancer #
Ask an LLM
“How many requests is my load balancer handling?”
“Can I see 5xx errors or response time for a load balancer?”
Tell an agent
Get {metricName} for {loadBalancerName} from {startTime} to {endTime} every {period} seconds as {statistics} in {unit}.
Show load balancer {loadBalancerName} {metricName} since {startTime}.
POST /ls/api/2016-11-28/GetLoadBalancerTlsPolicies List load balancer TLS security policies · Returns a list of TLS security policies that you can apply to Lightsail load… #
Ask an LLM
“Which TLS security policies can I apply to a load balancer?”
“What protocols and ciphers does each TLS policy allow?”
Tell an agent
List the load balancer TLS policies.
Get more TLS policies from page {pageToken}.
POST /ls/api/2016-11-28/GetLoadBalancers List all load balancers · Returns information about all load balancers in an account #
Ask an LLM
“What load balancers are in my account?”
“Can I page through every load balancer I have?”
Tell an agent
List all my load balancers.
Get the next page of load balancers using {pageToken}.
POST /ls/api/2016-11-28/UpdateLoadBalancerAttribute Change a load balancer setting · Updates the specified attribute for a load balancer #
Ask an LLM
“How do I change the health check path or turn on session stickiness?”
“Can I redirect HTTP to HTTPS on my load balancer?”
Tell an agent
Set {attributeName} to {attributeValue} on load balancer {loadBalancerName}.
Update {loadBalancerName} so its {attributeName} is {attributeValue}.

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-lightsail:amazon-lightsail-load-balancers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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-lightsail-load-balancers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Lightsail Load Balancers API
  description: Amazon Lightsail is the easiest way to get started with Amazon Web Services (AWS) for developers who need to build websites or web applications.
  version: '2016-11-28'
  contact:
    name: AWS Support
    url: https://aws.amazon.com/premiumsupport/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  x-logo:
    url: https://a0.awsstatic.com/libra-css/images/logos/aws_logo_smile_1200x630.png
  x-generated-from: AWS Smithy 2.0 service model (https://github.com/aws/api-models-aws) — mechanical transform, no hand-authored operations
servers:
- url: https://lightsail.us-east-1.amazonaws.com
  description: Amazon Lightsail regional endpoint (us-east-1). Lightsail is regional — one endpoint per AWS Region, lightsail.{region}.amazonaws.com (IPv4) or lightsail.{region}.api.aws (dual-stack). See https://docs.aws.amazon.com/general/latest/gr/lightsail.html
security:
- sigv4: []
tags:


# --- truncated at 32 KB (64 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-lightsail/refs/heads/main/openapi/amazon-lightsail-load-balancers-api-openapi.yml