Skip to main content

List Ancestors (GCP)

POST 

/cloud/:cloud_type/accounts/:account_id/ancestors

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.

Request

Path Parameters

    cloud_type stringrequired

    Possible values: [gcp]

    Cloud Type

    account_id stringrequired

    Account ID

Body

required

Cloud service provider resource IDs

    resourceIds string[]

    Array of resource IDs (Subscription and/or Management Group IDs)

Responses

success

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

  • ]
Loading...