Skip to main content

List Children of Parent (GCP)

POST 

/cloud/gcp/parent/:parent_id/children

List all the children, both folder resources and project resources, of the given parent. A parent can be an organization resource or a folder resource.

The request body parameter is the content of the Service Account Key (JSON) file, which is required.

Request

Path Parameters

    parent_id stringrequired

    GCP parent resource ID

Query Parameters

    projectNextPageToken string

    Token to request next page of projects

    projectPageSize int32

    Page size for paging projects. Valid range is 1-300 inclusive. A page size of 0 returns a nextPageToken but no projects.

    folderNextPageToken string

    Token to request next page of folders

    folderPageSize int32

    Page size for paging folders. Valid range is 1-300 inclusive. A page size of 0 returns a nextPageToken but no folders.

    parentType stringrequired

    Possible values: [folders, organizations]

    Parent type

Body

required

The content of the credentials object is the Service Account Key for your Google Cloud service account

    cloudAccount object
    accountId string

    GCP organization resource ID

    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
    response object[]

    List of node info

  • 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

  • ]
  • projectNextPageToken string

    Next page token for project

    folderNextPageToken string

    Next page token for folder

    organizationName string

    Organization name

Loading...