Skip to main content

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

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

success

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

  • ]
Loading...