Get Saved Resource Hierarchy (GCP)
GET/cloud/:cloud_type/accounts/:account_id/hierarchy
Get the previously saved resource hierarchy for the specified cloud account ID.
Request
Path Parameters
Possible values: [gcp
]
Cloud type
GCP account ID
Responses
- 200
- 400
- 404
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
To get the list of resource IDs and its details, Refer List Children of Parent.
aws: List Children of Parent (AWS)
To get the display name of resource, Refer List Children of Parent.
aws: List Children of Parent (AWS)
gcp: List Children of Parent (GCP). Display name is the organization name if nodeType
is ORG
Possible values: [ORG
, FOLDER
, PROJECT
, SUBSCRIPTION
, MANAGEMENT_GROUP
, TENANT
, ACCOUNT
, OU
]
Member account node type. Supported values based on cloud type:
aws: ORG, OU, or ACCOUNT
gcp: ORG, FOLDER, or PROJECT
azure: SUBSCRIPTION, MANAGEMENT_GROUP, or TENANT
Possible values: [ALL
, INCLUDE
, EXCLUDE
]
Organization Member accounts Selection type.
ALL: Include the resource and all its children
INCLUDE: Include the specified resource
EXCLUDE: Exclude the specified resource
{
"resourceId": "root",
"displayName": "Root",
"nodeType": "ORG",
"selectionType": "ALL"
}
bad_request / unauthorized_access
invalid_account_id_format