List Ancestors (GCP)
For GCP only. Lists the ancestors of the given projects and folders for the specified cloud account ID. A successful response returns an array of projects and/or folders each of which is mapped to an array of ancestor resource IDs.
The body parameters resourceIds are required.
Path Parameters
- cloud_type string required
Possible values: [
gcp
]Cloud Type
- 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 [
- displayName string
Display name
- hasChild boolean
true = Has child
- id string
Node ID
- parent string
Parent
- type string
Possible values: [
ORG
,FOLDER
,PROJECT
,SUBSCRIPTION
,MANAGEMENT_GROUP
,TENANT
,ACCOUNT
,OU
]Node type
- ]
[
{
"displayName": "string",
"hasChild": true,
"id": "string",
"parent": "string",
"type": "ORG"
}
]
bad_request / unauthorized_access
invalid_account_id_format
internal_error
Loading...