Amazon EC2 Container Service
amazonaws · Cloud
Amazon Elastic Container Service Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes it easy to run, stop, and manage Docker containers. You can host your cluster on a serverless infrastructure that's managed by Amazon ECS by launching your services or tasks on Fargate. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) or External (on-premises) instances that you
Authentication
Sample Requests
Lists the account settings for a specified principal.
Hover any highlighted part to learn what it does
| X-Amz-Target | AmazonEC2ContainerServiceV20141113.ListAccountSettings |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings?nextToken=example&maxResults=example" \ -H "X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListAccountSettings"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "AmazonEC2ContainerServiceV20141113.ListAccountSettings"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AmazonEC2ContainerServiceV20141113.ListAccountSettings'
},
});
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings")
q := baseURL.Query()
q.Set("nextToken", "example")
q.Set("maxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.ListAccountSettings")
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings")
uri.query = URI.encode_www_form({
"nextToken" => "example",
"maxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AmazonEC2ContainerServiceV20141113.ListAccountSettings"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAccountSettings?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListAccountSettings"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists the attributes for Amazon ECS resources within a specified target type and cluster. When you specify a target type and cluster, ListAttributes returns a list of attribute objects, one for each attribute on each resource. You can filter the list of results to a single attribute nam
Hover any highlighted part to learn what it does
| X-Amz-Target | AmazonEC2ContainerServiceV20141113.ListAttributes |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes?nextToken=example&maxResults=example" \ -H "X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListAttributes"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "AmazonEC2ContainerServiceV20141113.ListAttributes"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AmazonEC2ContainerServiceV20141113.ListAttributes'
},
});
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes")
q := baseURL.Query()
q.Set("nextToken", "example")
q.Set("maxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.ListAttributes")
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes")
uri.query = URI.encode_www_form({
"nextToken" => "example",
"maxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AmazonEC2ContainerServiceV20141113.ListAttributes"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListAttributes?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListAttributes"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of existing clusters.
Hover any highlighted part to learn what it does
| X-Amz-Target | AmazonEC2ContainerServiceV20141113.ListClusters |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters?nextToken=example&maxResults=example" \ -H "X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListClusters"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "AmazonEC2ContainerServiceV20141113.ListClusters"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AmazonEC2ContainerServiceV20141113.ListClusters'
},
});
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters")
q := baseURL.Query()
q.Set("nextToken", "example")
q.Set("maxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AmazonEC2ContainerServiceV20141113.ListClusters")
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/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters")
uri.query = URI.encode_www_form({
"nextToken" => "example",
"maxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AmazonEC2ContainerServiceV20141113.ListClusters"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/ecs/2014-11-13/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.ListClusters?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AmazonEC2ContainerServiceV20141113.ListClusters"
]),
]];
$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 Amazon EC2 Container Service?
Amazon EC2 Container Service 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. Amazon EC2 Container Service 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?