terraform-provider-google/website/docs/d/datasource_google_project_organization_policy.html.markdown
The Magician 9fa1d462d2 Adding datasources for folder and project org policy (#3137)
<!-- This change is generated by MagicModules. -->
/cc @chrisst
2019-03-14 09:45:45 -07:00

1.3 KiB

layout page_title sidebar_current description
google Google: google_project_organization_policy docs-google-datasource-project-organization-policy Retrieve Organization policies for a Google Project.

google_project_organization_policy

Allows management of Organization policies for a Google Project. For more information see the official documentation

Example Usage

data "google_project_organization_policy" "policy" {
  project    = "project-id"
  constraint = "constraints/serviceuser.services"
}

output "version" {
  value = "${data.google_project_organization_policy.policy.version}"
}

Argument Reference

The following arguments are supported:

  • project - (Required) The project ID.

  • constraint - (Required) (Required) The name of the Constraint the Policy is configuring, for example, serviceuser.services. Check out the complete list of available constraints.

Attributes Reference

See google_project_organization_policy resource for details of the available attributes.