forked from hashicorp/terraform-provider-google
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add folder data source (hashicorp#738)
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: "google" | ||
page_title: "Google: google_active_folder" | ||
sidebar_current: "docs-google-datasource-folder" | ||
description: |- | ||
Get a folder within GCP. | ||
--- | ||
|
||
# google\_active\_folder | ||
|
||
Get a folder within GCP by `display_name` and `parent`. | ||
|
||
## Example Usage | ||
|
||
```tf | ||
resource "google_folder" "new-folder" { | ||
display_name = "new-folder" | ||
parent = "folders/some-folder-id" | ||
} | ||
data "google_active_folder" "new-folder" { | ||
display_name = "${google_folder.new-folder.display_name}" | ||
parent = "${google_folder.new-folder.parent}" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `display_name` - (Required) The folder's display name. | ||
|
||
* `parent` - (Required) The resource name of the parent Folder or Organization. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following attributes are exported: | ||
|
||
* `name` - The resource name of the Folder. This uniquely identifies the folder. |