mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 17:16:44 +00:00
![Kit Ewbank](/assets/img/avatar_default.png)
* Add 'google_organization' data source. * Use 'GetResourceNameFromSelfLink'. * Remove 'resourcemanager_helpers'. * Use 'ConflictsWith' in schema. * Add 'organization' argument and make 'name' an output-only attribute.
1.5 KiB
1.5 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_organization | docs-google-datasource-organization | Get information about a Google Cloud Organization. |
google_organization
Use this data source to get information about a Google Cloud Organization.
data "google_organization" "org" {
domain = "example.com"
}
resource "google_folder" "sales" {
display_name = "Sales"
parent = "${data.google_organization.org.name}"
}
Argument Reference
The arguments of this data source act as filters for querying the available Organizations. The given filters must match exactly one Organizations whose data will be exported as attributes. The following arguments are supported:
organization
(Optional) - The name of the Organization in the form{organization_id}
ororganizations/{organization_id}
.domain
(Optional) - The domain name of the Organization.
~> NOTE: One of organization
or domain
must be specified.
Attributes Reference
The following additional attributes are exported:
id
- The Organization ID.name
- The resource name of the Organization in the formorganizations/{organization_id}
.directory_customer_id
- The Google for Work customer ID of the Organization.create_time
- Timestamp when the Organization was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".lifecycle_state
- The Organization's current lifecycle state.