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
GCP parent resource ID
Query Parameters
Token to request next page of projects
Page size for paging projects. Valid range is 1-300 inclusive. A page size of 0 returns a nextPageToken but no projects.
Token to request next page of folders
Page size for paging folders. Valid range is 1-300 inclusive. A page size of 0 returns a nextPageToken but no folders.
Possible values: [folders
, organizations
]
Parent type
- application/json
Body
required
The content of the credentials object is the Service Account Key for your Google Cloud service account
cloudAccount object
GCP organization resource ID
credentials object
The content of the credentials object is the Service Account Key for your Google Cloud service account
Responses
- 200
- 400
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
response object[]
List of node info
Node ID
Possible values: [ORG
, FOLDER
, PROJECT
, SUBSCRIPTION
, MANAGEMENT_GROUP
, TENANT
, ACCOUNT
, OU
]
Node type
Display name
Parent
true = Has child
Next page token for project
Next page token for folder
Organization name
{
"response": [
{
"id": "string",
"type": "ORG",
"displayName": "string",
"parent": "string",
"hasChild": true
}
],
"projectNextPageToken": "string",
"folderNextPageToken": "string",
"organizationName": "string"
}
bad_request / unauthorized_access