Retrieve information about a set of folders based on a parent ID. See the REST API for more details.
data "google_folders" "my-org-folders" {
parent_id = "organizations/${var.organization_id}"
}
data "google_folder" "first-folder" {
folder = data.google_folders.my-org-folders.folders[0].name
}
The following arguments are supported:
parent_id
- (Required) A string parent as defined in the REST API.The following attributes are exported:
folders
- A list of folders matching the provided filter. Structure is defined below.The folders
block supports:
name
- The id of the folderparent
- The parent id of the folderdisplay_name
- The display name of the folderstate
- The lifecycle state of the foldercreate_time
- The timestamp of when the folder was createdupdate_time
- The timestamp of when the folder was last modifieddelete_time
- The timestamp of when the folder was requested to be deleted (if applicable)etag
- Entity tag identifier of the folder