GCPProjectHierarchy

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

python · GCP Enrichment and Remediation

Details

IDGCPProjectHierarchy
Languagepython
From Version6.8.0
Docker Imagedemisto/python3:3.12.13.10116658

README

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

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 6.8.0

Inputs


Argument Name Description
project_id The 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


Path Description Type
GCPHierarchy.id ID of the project/folder/organization object, such as `folders/folder-name`. string
GCPHierarchy.level Level in relation to the original project such as project, 1, 2, etc. string
GCPHierarchy.number Number of the project/folder/organization object such as `folders/111111111111`. string
args:
- description: The 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`).
  name: project_id
  required: true
comment: Determine GCP project hierarchy by looking up parent objects until the organization level is reached.
commonfields:
  id: GCPProjectHierarchy
  version: -1
dockerimage: demisto/python3:3.12.13.10116658
enabled: true
name: GCPProjectHierarchy
outputs:
- contextPath: GCPHierarchy.id
  description: ID of the project/folder/organization object such as `folders/folder-name`.
  type: string
- contextPath: GCPHierarchy.level
  description: Level in relation to the original project such as project, 1, 2, etc.
  type: string
- contextPath: GCPHierarchy.number
  description: Number of the project/folder/organization object such as `folders/111111111111`.
  type: string
runas: DBotWeakRole
script: ''
scripttarget: 0
subtype: python3
tags: []
type: python
fromversion: 6.8.0
tests:
- No tests (auto formatted)