List Ancestors (Azure)
For Azure only. 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.
Path Parameters
- account_id string required
Account ID
- application/json
Request Body required
Cloud service provider resource IDs
- resourceIds string[]
Array of resource IDs (Subscription and/or Management Group IDs)
Responses
- 200
- 400
- 404
- 500
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
ancestors object[]
List of ancestors
Array [displayName stringDisplay name
hasChild booleantrue = Has child
id stringNode ID
parent stringParent
type stringPossible values: [
TENANT
,MANAGEMENT_GROUP
,ACCOUNT
]Node type
]- resourceId string
Resource ID
- ]
[
{
"ancestors": [
{
"displayName": "string",
"hasChild": true,
"id": "string",
"parent": "string",
"type": "TENANT"
}
],
"resourceId": "string"
}
]
bad_request / unauthorized_access
invalid_account_id_format
internal_error
Loading...