List related AWS accounts

GET {{baseUrl}}/api/v2/cost/aws_related_accounts?filter[management_account_id]=<string>

List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.

Request Params

KeyDatatypeRequiredDescription
filter[management_account_id]string(Required) The ID of the management account to filter by.

Request Body

{"data"=>[{"attributes"=>{"has_datadog_integration"=>false, "name"=>"string"}, "id"=>"123456789123", "type"=>"aws_account"}]}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;aws_account&quot;,&quot;attributes&quot;:{&quot;has_datadog_integration&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;aws_account&quot;,&quot;attributes&quot;:{&quot;has_datadog_integration&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;}}]}