List Projects of Parent (GCP)
POST/cloud/:cloud_type/parent/:parent_id/projects
List all the child projects 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
cloud_type stringrequired
Possible values: [gcp
]
Cloud type
parent_id stringrequired
GCP parent ID
Query Parameters
nextPageToken string
Token to request next page of projects
pageSize int32
Page size. Valid range is 1-300 inclusive. A page size of 0 returns a nextPageToken but no projects.
parentType stringrequired
Possible values: [folders
, organizations
]
Parent type
- application/json
Body
required
Service Account Key (JSON) file content
property name* object
Responses
- 200
- 400
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
response object[]
Response
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
nextPageToken string
Next page token
{
"response": [
{
"id": "string",
"type": "ORG",
"displayName": "string",
"parent": "string",
"hasChild": true
}
],
"nextPageToken": "string"
}
bad_request / unauthorized_access
Loading...