List AWS accounts being analyzed
curl --request GET \
--url https://{host}/api/v2/analysis/cloud/awsimport requests
url = "https://{host}/api/v2/analysis/cloud/aws"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/api/v2/analysis/cloud/aws', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/v2/analysis/cloud/aws",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/v2/analysis/cloud/aws"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/v2/analysis/cloud/aws")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/v2/analysis/cloud/aws")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"accountId": "<string>",
"accountName": "<string>",
"analysisName": "<string>",
"policyInstanceId": "<string>",
"policyName": "<string>",
"analysisId": "<string>",
"href": "<string>",
"analysisStatus": "<string>",
"analysisResults": "<string>",
"analysisCompletedOn": 123
}
]AWS: Onboard Accounts
List AWS accounts being analyzed
Returns the set of analyses that have been created, with details needed to reference them elsewhere.
GET
/
analysis
/
cloud
/
aws
List AWS accounts being analyzed
curl --request GET \
--url https://{host}/api/v2/analysis/cloud/awsimport requests
url = "https://{host}/api/v2/analysis/cloud/aws"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/api/v2/analysis/cloud/aws', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/v2/analysis/cloud/aws",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/v2/analysis/cloud/aws"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/v2/analysis/cloud/aws")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/v2/analysis/cloud/aws")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"accountId": "<string>",
"accountName": "<string>",
"analysisName": "<string>",
"policyInstanceId": "<string>",
"policyName": "<string>",
"analysisId": "<string>",
"href": "<string>",
"analysisStatus": "<string>",
"analysisResults": "<string>",
"analysisCompletedOn": 123
}
]Response
List of analyses
AWS account ID linked to the analysis.
Friendly account display name, when configured.
Internal name assigned to the analysis (defaults to accountId).
Identifier of the policy instance applied to this analysis.
Human-readable policy name applied to the analysis.
Unique identifier for the analysis entity.
Link to the analysis resource.
Link to the status endpoint for this analysis.
Link to the results endpoint for this analysis run.
Unix epoch timestamp (ms) of the latest completed analysis run.

