List Ancestors (AWS) - Legacy
POST/cloud-accounts-manager/v1/cloudAccounts/awsAccounts/:account_id/ancestors
For AWS only. Lists the ancestors of the given member accounts and organizational units (OUs) for the specified cloud account ID. A successful response returns an array of accounts and/or OUs each of which is mapped to an array of ancestor resource IDs.
Request
Path Parameters
account_id stringrequired
Account ID
- application/json
Body
required
Cloud Account JSON
property name* object
Responses
- 200
- 400
- 404
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
resourceId string
Resource ID
ancestors object[]
List of ancestors
id string
Node ID
type string
Possible values: [ORG
, FOLDER
, PROJECT
, SUBSCRIPTION
, MANAGEMENT_GROUP
, TENANT
, ACCOUNT
, OU
]
Node type
displayName string
Display name
parent string
Parent
hasChild boolean
Possible values: [true
, false
]
Has Child
status string
Status
responseCode int32
Response code
[
{
"resourceId": "string",
"ancestors": [
{
"id": "string",
"type": "ORG",
"displayName": "string",
"parent": "string",
"hasChild": true
}
],
"status": "string",
"responseCode": 0
}
]
bad_request / unauthorized_access
invalid_account_id_format
Loading...