Add documentation for import in google_folder_organization_policy (#746)

* Remove import support for org policy

* Add ForceNew to org_id field

* Revert "Remove import support for org policy"

This reverts commit f65d9fb347d6b0998be55ef823c5726e876c53ae.

* Add import documentation for google_organization_policy
This commit is contained in:
Vincent Roseberry 2017-11-17 09:24:48 -08:00 committed by GitHub
parent 17ea5ea970
commit aa63af1fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,7 @@ func resourceGoogleOrganizationPolicy() *schema.Resource {
"org_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"constraint": {
Type: schema.TypeString,

View File

@ -103,4 +103,11 @@ exported:
* `etag` - (Computed) The etag of the organization policy. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.
* `update_time` - (Computed) The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
* `update_time` - (Computed) The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
## Import
Organization Policies can be imported using the `org_id` and the `contraint`, e.g.
```
$ terraform import google_folder_organization_policy.services_policy 123456789:constraints/serviceuser.services