List Children of Parent (GCP)
POST/cloud/gcp/parent/:parent_id/children
For GCP only. 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
Organization resource ID if accountType
is organization.
Project ID if accountType
is account or masterServiceAccount.
Possible values: [account
, masterServiceAccount
, organization
]
Cloud Account Type.
account: GCP Project
organization: GCP Organization
masterServiceAccount: Onboards all GCP projects that are accessible by the service account.
Enable or disable this account on Prisma Cloud.
Default value: false
List of Account Groups that must be mapped to this account. To get the account group ids,call List Account Groups API
Account name for the GCP account that will be onboarded on Prisma Cloud. (must be unique)
ID of the project.
Get the project ID from the credentials json file that is generated from the GCP Terraform template.
credentials object
Add contents of the JSON file, which contains the credentials, that is generated from the GCP Terraform template.
Responses
- 200
- 400
- 500
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
Next page token for folder
Organization name
Next page token for project
response object[]
List of node info
Display name
true = Has child
Node ID
Parent
Possible values: [ORG
, FOLDER
, PROJECT
, SUBSCRIPTION
, MANAGEMENT_GROUP
, TENANT
, ACCOUNT
, OU
]
Node type
{
"folderNextPageToken": "string",
"organizationName": "string",
"projectNextPageToken": "string",
"response": [
{
"displayName": "string",
"hasChild": true,
"id": "string",
"parent": "string",
"type": "ORG"
}
]
}
bad_request / unauthorized_access
internal_error