Skip to main content

GCPProjectHierarchy

This Script is part of the GCP Enrichment and Remediation Pack.#

Supported versions

Available on Cortex XSOAR (versions 6.8.0 and later), Cortex XSIAM, and Cortex XPANSE.

Determine GCP project hierarchy by looking up parent objects until the organization level is reached.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.8.0

Inputs#


Argument NameDescription
project_idThe project ID instead of the project number. No need to supply projects/ before the ID (i.e., use `project-name` instead of `projects/project-name` or `projects/111111111111`).

Outputs#


PathDescriptionType
GCPHierarchy.idID of the project/folder/organization object, such as `folders/folder-name`.string
GCPHierarchy.levelLevel in relation to the original project such as project, 1, 2, etc.string
GCPHierarchy.numberNumber of the project/folder/organization object such as `folders/111111111111`.string