Elastic Load Balancing
amazonaws · Cloud
Elastic Load Balancing A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections fr
Authentication
Sample Requests
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener. If the certificate in already in the certificate list, the call is successful but the certificate is not added again. For more information, see <a href="https://docs.aws.amazon
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates?Action=AddListenerCertificates&Version=2015-12-01&ListenerArn=example&Certificates=example"
import requests
params = {
"Action": "AddListenerCertificates",
"Version": "2015-12-01",
"ListenerArn": "example",
"Certificates": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates');
url.searchParams.set('Action', 'AddListenerCertificates');
url.searchParams.set('Version', '2015-12-01');
url.searchParams.set('ListenerArn', 'example');
url.searchParams.set('Certificates', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates")
q := baseURL.Query()
q.Set("Action", "AddListenerCertificates")
q.Set("Version", "2015-12-01")
q.Set("ListenerArn", "example")
q.Set("Certificates", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates")
uri.query = URI.encode_www_form({
"Action" => "AddListenerCertificates",
"Version" => "2015-12-01",
"ListenerArn" => "example",
"Certificates" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddListenerCertificates?" . http_build_query([
"Action" => "AddListenerCertificates",
"Version" => "2015-12-01",
"ListenerArn" => "example",
"Certificates" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules. Each tag consists of a key and an optional value. If a resource already has a tag with
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags?Tags=example&Action=AddTags&Version=2015-12-01&ResourceArns=example"
import requests
params = {
"Tags": "example",
"Action": "AddTags",
"Version": "2015-12-01",
"ResourceArns": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags');
url.searchParams.set('Tags', 'example');
url.searchParams.set('Action', 'AddTags');
url.searchParams.set('Version', '2015-12-01');
url.searchParams.set('ResourceArns', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags")
q := baseURL.Query()
q.Set("Tags", "example")
q.Set("Action", "AddTags")
q.Set("Version", "2015-12-01")
q.Set("ResourceArns", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags")
uri.query = URI.encode_www_form({
"Tags" => "example",
"Action" => "AddTags",
"Version" => "2015-12-01",
"ResourceArns" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=AddTags?" . http_build_query([
"Tags" => "example",
"Action" => "AddTags",
"Version" => "2015-12-01",
"ResourceArns" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. For more information, see the following: Listeners f
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener?Port=1&Tags=example&Action=CreateListener&Version=2015-12-01&Protocol=HTTP&SslPolicy=example&AlpnPolicy=example&Certificates=example&DefaultActions=example&LoadBalancerArn=example"
import requests
params = {
"Port": "1",
"Tags": "example",
"Action": "CreateListener",
"Version": "2015-12-01",
"Protocol": "HTTP",
"SslPolicy": "example",
"AlpnPolicy": "example",
"Certificates": "example",
"DefaultActions": "example",
"LoadBalancerArn": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener');
url.searchParams.set('Port', '1');
url.searchParams.set('Tags', 'example');
url.searchParams.set('Action', 'CreateListener');
url.searchParams.set('Version', '2015-12-01');
url.searchParams.set('Protocol', 'HTTP');
url.searchParams.set('SslPolicy', 'example');
url.searchParams.set('AlpnPolicy', 'example');
url.searchParams.set('Certificates', 'example');
url.searchParams.set('DefaultActions', 'example');
url.searchParams.set('LoadBalancerArn', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener")
q := baseURL.Query()
q.Set("Port", "1")
q.Set("Tags", "example")
q.Set("Action", "CreateListener")
q.Set("Version", "2015-12-01")
q.Set("Protocol", "HTTP")
q.Set("SslPolicy", "example")
q.Set("AlpnPolicy", "example")
q.Set("Certificates", "example")
q.Set("DefaultActions", "example")
q.Set("LoadBalancerArn", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener")
uri.query = URI.encode_www_form({
"Port" => "1",
"Tags" => "example",
"Action" => "CreateListener",
"Version" => "2015-12-01",
"Protocol" => "HTTP",
"SslPolicy" => "example",
"AlpnPolicy" => "example",
"Certificates" => "example",
"DefaultActions" => "example",
"LoadBalancerArn" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/elasticloadbalancingv2/2015-12-01/#Action=CreateListener?" . http_build_query([
"Port" => "1",
"Tags" => "example",
"Action" => "CreateListener",
"Version" => "2015-12-01",
"Protocol" => "HTTP",
"SslPolicy" => "example",
"AlpnPolicy" => "example",
"Certificates" => "example",
"DefaultActions" => "example",
"LoadBalancerArn" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Elastic Load Balancing?
Elastic Load Balancing is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Elastic Load Balancing is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?