Skip to main content
GET
/
analysis
/
cloud
/
aws
List AWS accounts being analyzed
curl --request GET \
  --url https://{host}/api/v2/analysis/cloud/aws
import 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

accountId
string

AWS account ID linked to the analysis.

accountName
string

Friendly account display name, when configured.

analysisName
string

Internal name assigned to the analysis (defaults to accountId).

policyInstanceId
string

Identifier of the policy instance applied to this analysis.

policyName
string

Human-readable policy name applied to the analysis.

analysisId
string

Unique identifier for the analysis entity.

href
string

Link to the analysis resource.

analysisStatus
string

Link to the status endpoint for this analysis.

analysisResults
string

Link to the results endpoint for this analysis run.

analysisCompletedOn
integer<int64>

Unix epoch timestamp (ms) of the latest completed analysis run.