google_network_security_url_lists

UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.

To get more information about UrlLists, see:

Open in Cloud Shell

Example Usage - Network Security Url Lists Basic

resource "google_network_security_url_lists" "default" {
  name        = "my-url-lists"
  location    = "us-central1"
  values = ["www.example.com"]
}
Open in Cloud Shell

Example Usage - Network Security Url Lists Advanced

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/*"]
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

UrlLists can be imported using any of these accepted formats:

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}}

User Project Overrides

This resource supports User Project Overrides.