| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/projects/ |
Upload File : |
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Get the ancestors for a project.
description: |
*{command}* displays the ancestors for a project. Projects may be grouped under folders and an organization. This comand will print the folder and organization hierarchy for the given project.
examples: |
To print the ancestors for a project with ID `my-project`, run:
$ {command} my-project
request:
collection: cloudresourcemanager.projects
use_relative_name: false
method: getAncestry
arguments:
resource:
help_text: The project for which to display ancestors.
spec: !REF googlecloudsdk.command_lib.projects.resources:project
output:
flatten: ['ancestor[].resourceId']
format: table(id, type)