|
| 1 | +<!-- |
| 2 | + ---------------------------------------------------------------------------- |
| 3 | +
|
| 4 | + *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** |
| 5 | +
|
| 6 | + ---------------------------------------------------------------------------- |
| 7 | +
|
| 8 | + This file is automatically generated by Magic Modules and manual |
| 9 | + changes will be clobbered when the file is regenerated. |
| 10 | +
|
| 11 | + Please read more about how to change this file in |
| 12 | + .github/CONTRIBUTING.md. |
| 13 | +
|
| 14 | + ---------------------------------------------------------------------------- |
| 15 | +--> |
| 16 | + |
1 | 17 | ---
|
2 | 18 | layout: "google"
|
3 | 19 | page_title: "Google: google_compute_target_http_proxy"
|
4 | 20 | sidebar_current: "docs-google-compute-target-http-proxy"
|
5 | 21 | description: |-
|
6 |
| - Creates a Target HTTP Proxy resource in GCE. |
| 22 | + Represents a TargetHttpProxy resource, which is used by one or more global |
| 23 | +forwarding rule to route incoming HTTP requests to a URL map. |
7 | 24 | ---
|
8 | 25 |
|
9 | 26 | # google\_compute\_target\_http\_proxy
|
10 | 27 |
|
11 |
| -Creates a target HTTP proxy resource in GCE. For more information see |
12 |
| -[the official |
13 |
| -documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) and |
14 |
| -[API](https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies). |
| 28 | +Represents a TargetHttpProxy resource, which is used by one or more global |
| 29 | +forwarding rule to route incoming HTTP requests to a URL map. |
| 30 | + |
| 31 | +To get more information about TargetHttpProxy, see: |
15 | 32 |
|
| 33 | +* [API documentation](https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies) |
| 34 | +* How-to Guides |
| 35 | + * [Official Documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) |
16 | 36 |
|
17 | 37 | ## Example Usage
|
18 | 38 |
|
@@ -66,34 +86,55 @@ resource "google_compute_http_health_check" "default" {
|
66 | 86 |
|
67 | 87 | The following arguments are supported:
|
68 | 88 |
|
69 |
| -* `name` - (Required) A unique name for the resource, required by GCE. Changing |
70 |
| - this forces a new resource to be created. |
| 89 | +* `name` - |
| 90 | + (Required) |
| 91 | + Name of the resource. Provided by the client when the resource is |
| 92 | +created. The name must be 1-63 characters long, and comply with |
| 93 | +RFC1035. Specifically, the name must be 1-63 characters long and match |
| 94 | +the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the |
| 95 | +first character must be a lowercase letter, and all following |
| 96 | +characters must be a dash, lowercase letter, or digit, except the last |
| 97 | +character, which cannot be a dash. |
| 98 | +* `url_map` - |
| 99 | + (Required) |
| 100 | + A reference to UrlMap resource |
71 | 101 |
|
72 |
| -* `url_map` - (Required) The URL of a URL Map resource that defines the mapping |
73 |
| - from the URL to the BackendService. |
74 |
| - |
75 |
| -* `project` - (Optional) The ID of the project in which the resource belongs. If it |
76 |
| - is not provided, the provider project is used. |
77 | 102 |
|
78 | 103 | - - -
|
79 | 104 |
|
80 |
| -* `description` - (Optional) A description of this resource. Changing this |
81 |
| - forces a new resource to be created. |
| 105 | +* `description` - |
| 106 | + (Optional) |
| 107 | + An optional description of this resource. |
| 108 | +* `project` (Optional) The ID of the project in which the resource belongs. |
| 109 | + If it is not provided, the provider project is used. |
82 | 110 |
|
83 | 111 |
|
84 | 112 | ## Attributes Reference
|
85 | 113 |
|
86 |
| -In addition to the arguments listed above, the following computed attributes are |
87 |
| -exported: |
88 |
| - |
89 |
| -* `proxy_id` - A unique ID assigned by GCE. |
| 114 | +In addition to the arguments listed above, the following computed attributes are exported: |
90 | 115 |
|
| 116 | +* `creation_timestamp` - |
| 117 | + Creation timestamp in RFC3339 text format. |
| 118 | +* `proxy_id` - |
| 119 | + The unique identifier for the resource. |
91 | 120 | * `self_link` - The URI of the created resource.
|
92 | 121 |
|
| 122 | + |
| 123 | +## Timeouts |
| 124 | + |
| 125 | +This resource provides the following |
| 126 | +[Timeouts](/docs/configuration/resources.html#timeouts) configuration options: |
| 127 | + |
| 128 | +- `create` - Default is 4 minutes. |
| 129 | +- `update` - Default is 4 minutes. |
| 130 | +- `delete` - Default is 4 minutes. |
| 131 | + |
93 | 132 | ## Import
|
94 | 133 |
|
95 |
| -Target HTTP Proxy can be imported using the `name`, e.g. |
| 134 | +TargetHttpProxy can be imported using any of these accepted formats: |
96 | 135 |
|
97 | 136 | ```
|
98 |
| -$ terraform import compute_target_http_proxy.foobar foobar |
| 137 | +$ terraform import google_compute_target_http_proxy.default projects/{{project}}/global/targetHttpProxies/{{name}} |
| 138 | +$ terraform import google_compute_target_http_proxy.default {{project}}/{{name}} |
| 139 | +$ terraform import google_compute_target_http_proxy.default {{name}} |
99 | 140 | ```
|
0 commit comments