-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
- Loading branch information
1 parent
9d00efe
commit c8ccabc
Showing
3 changed files
with
140 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,3 @@ | ||
```release-note:new-resource | ||
`google_network_security_url_lists` | ||
``` |
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 @@ | ||
package google |
136 changes: 136 additions & 0 deletions
136
website/docs/r/network_security_url_lists.html.markdown
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,136 @@ | ||
--- | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** Type: MMv1 *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in | ||
# .github/CONTRIBUTING.md. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
subcategory: "Network security" | ||
description: |- | ||
UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns. | ||
--- | ||
|
||
# google\_network\_security\_url\_lists | ||
|
||
UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns. | ||
|
||
~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider. | ||
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources. | ||
|
||
To get more information about UrlLists, see: | ||
|
||
* [API documentation](https://cloud.google.com/secure-web-proxy/docs/reference/network-security/rest/v1alpha1/projects.locations.urlLists) | ||
* How-to Guides | ||
* [Use UrlLists]( https://cloud.google.com/secure-web-proxy/docs/use-url-list) | ||
|
||
<div class = "oics-button" style="float: right; margin: 0 0 -15px"> | ||
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgit.luolix.top%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=network_security_url_lists_basic&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank"> | ||
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;"> | ||
</a> | ||
</div> | ||
## Example Usage - Network Security Url Lists Basic | ||
|
||
|
||
```hcl | ||
resource "google_network_security_url_lists" "default" { | ||
provider = google-beta | ||
name = "my-url-lists" | ||
location = "us-central1" | ||
values = ["www.example.com"] | ||
} | ||
``` | ||
<div class = "oics-button" style="float: right; margin: 0 0 -15px"> | ||
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgit.luolix.top%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=network_security_url_lists_advanced&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank"> | ||
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;"> | ||
</a> | ||
</div> | ||
## Example Usage - Network Security Url Lists Advanced | ||
|
||
|
||
```hcl | ||
resource "google_network_security_url_lists" "default" { | ||
provider = google-beta | ||
name = "my-url-lists" | ||
location = "us-central1" | ||
description = "my description" | ||
values = ["www.example.com", "about.example.com", "github.com/example-org/*"] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
|
||
* `values` - | ||
(Required) | ||
FQDNs and URLs. | ||
|
||
* `name` - | ||
(Required) | ||
Short name of the UrlList resource to be created. | ||
This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. 'urlList'. | ||
|
||
* `location` - | ||
(Required) | ||
The location of the url lists. | ||
|
||
|
||
- - - | ||
|
||
|
||
* `description` - | ||
(Optional) | ||
Free-text description of the resource. | ||
|
||
* `project` - (Optional) The ID of the project in which the resource belongs. | ||
If it is not provided, the provider project is used. | ||
|
||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are exported: | ||
|
||
* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{location}}/urlLists/{{name}}` | ||
|
||
* `create_time` - | ||
Output only. Time when the security policy was created. | ||
A timestamp in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine fractional digits. | ||
Examples: '2014-10-02T15:01:23Z' and '2014-10-02T15:01:23.045123456Z' | ||
|
||
* `update_time` - | ||
Output only. Time when the security policy was updated. | ||
A timestamp in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine fractional digits. | ||
Examples: '2014-10-02T15:01:23Z' and '2014-10-02T15:01:23.045123456Z'. | ||
|
||
|
||
## Timeouts | ||
|
||
This resource provides the following | ||
[Timeouts](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts) configuration options: | ||
|
||
- `create` - Default is 30 minutes. | ||
- `update` - Default is 30 minutes. | ||
- `delete` - Default is 30 minutes. | ||
|
||
## Import | ||
|
||
|
||
UrlLists can be imported using any of these accepted formats: | ||
|
||
``` | ||
$ terraform import google_network_security_url_lists.default projects/{{project}}/locations/{{location}}/urlLists/{{name}} | ||
$ terraform import google_network_security_url_lists.default {{project}}/{{location}}/{{name}} | ||
$ terraform import google_network_security_url_lists.default {{location}}/{{name}} | ||
``` | ||
|
||
## User Project Overrides | ||
|
||
This resource supports [User Project Overrides](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#user_project_override). |