List Ancestors (Azure)
POST/cloud-accounts-manager/v1/cloudAccounts/azureAccounts/:account_id/ancestors
Lists the ancestors of the given Azure management groups and subscriptions for the specified cloud account (Azure tenant) ID. Each resource ID in the request body is either a management group ID or a subscription ID. A successful response returns an array of ancestors for each given resource ID.
Request
Path Parameters
account_id stringrequired
Account ID
- application/json
Body
required
Cloud service provider resource IDs
resourceIds string[]
Array of resource IDs (Subscription and/or Management Group IDs)
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: [TENANT
, MANAGEMENT_GROUP
, ACCOUNT
]
Node type
displayName string
Display name
parent string
Parent
hasChild boolean
true = Has child
[
{
"resourceId": "string",
"ancestors": [
{
"id": "string",
"type": "TENANT",
"displayName": "string",
"parent": "string",
"hasChild": true
}
]
}
]
bad_request / unauthorized_access
invalid_account_id_format
Loading...