Amazon Inspector
amazonaws · Cloud
Amazon Inspector Amazon Inspector enables you to analyze the behavior of your AWS resources and to identify potential security issues. For more information, see Amazon Inspector User Guide .
Authentication
Sample Requests
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
Hover any highlighted part to learn what it does
| X-Amz-Target | InspectorService.GetExclusionsPreview |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview?nextToken=example&maxResults=example" \ -H "X-Amz-Target: InspectorService.GetExclusionsPreview"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "InspectorService.GetExclusionsPreview"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'InspectorService.GetExclusionsPreview'
},
});
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview")
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", "InspectorService.GetExclusionsPreview")
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview")
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"] = "InspectorService.GetExclusionsPreview"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.GetExclusionsPreview?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: InspectorService.GetExclusionsPreview"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
Hover any highlighted part to learn what it does
| X-Amz-Target | InspectorService.ListAssessmentRunAgents |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents?nextToken=example&maxResults=example" \ -H "X-Amz-Target: InspectorService.ListAssessmentRunAgents"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "InspectorService.ListAssessmentRunAgents"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'InspectorService.ListAssessmentRunAgents'
},
});
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents")
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", "InspectorService.ListAssessmentRunAgents")
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents")
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"] = "InspectorService.ListAssessmentRunAgents"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRunAgents?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: InspectorService.ListAssessmentRunAgents"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
Hover any highlighted part to learn what it does
| X-Amz-Target | InspectorService.ListAssessmentRuns |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns?nextToken=example&maxResults=example" \ -H "X-Amz-Target: InspectorService.ListAssessmentRuns"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "InspectorService.ListAssessmentRuns"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'InspectorService.ListAssessmentRuns'
},
});
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns")
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", "InspectorService.ListAssessmentRuns")
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/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns")
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"] = "InspectorService.ListAssessmentRuns"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/inspector/2016-02-16/#X-Amz-Target=InspectorService.ListAssessmentRuns?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: InspectorService.ListAssessmentRuns"
]),
]];
$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 Inspector?
Amazon Inspector 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 Inspector is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide