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
Key | Datatype | Required | Description |
---|---|---|---|
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
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"id":"\u003cstring\u003e","type":"aws_account","attributes":{"has_datadog_integration":"\u003cboolean\u003e","name":"\u003cstring\u003e"}},{"id":"\u003cstring\u003e","type":"aws_account","attributes":{"has_datadog_integration":"\u003cboolean\u003e","name":"\u003cstring\u003e"}}]}