| --- |
| # ---------------------------------------------------------------------------- |
| # |
| # *** 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: "Distributed Cloud Edge Network" |
| description: |- |
| A Distributed Cloud Edge network, which provides L3 isolation within a zone. |
| --- |
| |
| # google\_edgenetwork\_network |
| |
| A Distributed Cloud Edge network, which provides L3 isolation within a zone. |
| |
| |
| To get more information about Network, see: |
| |
| * [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.networks) |
| * How-to Guides |
| * [Create and manage networks](https://cloud.google.com/distributed-cloud/edge/latest/docs/networks#api) |
| |
| ## Example Usage - Edgenetwork Network |
| |
| |
| ```hcl |
| resource "google_edgenetwork_network" "example_network" { |
| network_id = "example-network" |
| location = "us-west1" |
| zone = "" |
| description = "Example network." |
| mtu = 9000 |
| labels = { |
| "environment" : "dev" |
| } |
| } |
| ``` |
| |
| ## Argument Reference |
| |
| The following arguments are supported: |
| |
| |
| * `location` - |
| (Required) |
| The Google Cloud region to which the target Distributed Cloud Edge zone belongs. |
| |
| * `zone` - |
| (Required) |
| The name of the target Distributed Cloud Edge zone. |
| |
| * `network_id` - |
| (Required) |
| A unique ID that identifies this network. |
| |
| |
| - - - |
| |
| |
| * `labels` - |
| (Optional) |
| Labels associated with this resource. |
| |
| * `description` - |
| (Optional) |
| A free-text description of the resource. Max length 1024 characters. |
| |
| * `mtu` - |
| (Optional) |
| IP (L3) MTU value of the network. Default value is `1500`. Possible values are: `1500`, `9000`. |
| |
| * `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}}/zones/{{zone}}/networks/{{network_id}}` |
| |
| * `name` - |
| The canonical name of this resource, with format |
| `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` |
| |
| * `create_time` - |
| The time when the subnet 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` - |
| The time when the subnet was last 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 20 minutes. |
| - `delete` - Default is 30 minutes. |
| |
| ## Import |
| |
| |
| Network can be imported using any of these accepted formats: |
| |
| * `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}` |
| * `{{project}}/{{location}}/{{zone}}/{{network_id}}` |
| * `{{location}}/{{zone}}/{{network_id}}` |
| * `{{location}}/{{network_id}}` |
| * `{{name}}` |
| |
| |
| In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import Network using one of the formats above. For example: |
| |
| ```tf |
| import { |
| id = "projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}" |
| to = google_edgenetwork_network.default |
| } |
| ``` |
| |
| When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Network can be imported using one of the formats above. For example: |
| |
| ``` |
| $ terraform import google_edgenetwork_network.default projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}} |
| $ terraform import google_edgenetwork_network.default {{project}}/{{location}}/{{zone}}/{{network_id}} |
| $ terraform import google_edgenetwork_network.default {{location}}/{{zone}}/{{network_id}} |
| $ terraform import google_edgenetwork_network.default {{location}}/{{network_id}} |
| $ terraform import google_edgenetwork_network.default {{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). |