UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.
To get more information about UrlLists, see:
resource "google_network_security_url_lists" "default" {
name = "my-url-lists"
location = "us-central1"
values = ["www.example.com"]
}
resource "google_network_security_url_lists" "default" {
name = "my-url-lists"
location = "us-central1"
description = "my description"
values = ["www.example.com", "about.example.com", "github.com/example-org/*"]
}
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.
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'.
This resource provides the following Timeouts configuration options:
create
- Default is 30 minutes.update
- Default is 30 minutes.delete
- Default is 30 minutes.UrlLists can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/urlLists/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
In Terraform v1.5.0 and later, use an import
block to import UrlLists using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/urlLists/{{name}}"
to = google_network_security_url_lists.default
}
When using the terraform import
command, UrlLists can be imported using one of the formats above. For example:
$ 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}}
This resource supports User Project Overrides.