List Ancestors (GCP)
POST/cloud/:cloud_type/accounts/:account_id/ancestors
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.
Request
Path Parameters
cloud_type stringrequired
Possible values: [gcp
]
Cloud Type
account_id stringrequired
Account ID
- application/json
Body
required
Cloud service provider resource IDs
resourceIds string[]required
Array of resource IDs (project IDs and/or folder IDs)
credentials object
The content of the credentials object is the Service Account Key for your Google Cloud service account
token_uri string
private_key_id string
client_x509_cert_url string
project_id string
auth_uri string
auth_provider_x509_cert_url string
client_email string
private_key string
type string
client_id string
Responses
- 200
- 400
- 404
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
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
true = Has child
[
{
"id": "string",
"type": "ORG",
"displayName": "string",
"parent": "string",
"hasChild": true
}
]
bad_request / unauthorized_access
invalid_account_id_format
Loading...