github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/google/r/compute_http_health_check.html.markdown (about) 1 --- 2 layout: "google" 3 page_title: "Google: google_compute_http_health_check" 4 sidebar_current: "docs-google-compute-http-health-check" 5 description: |- 6 Manages an HTTP Health Check within GCE. 7 --- 8 9 # google\_compute\_http\_health\_check 10 11 Manages an HTTP health check within GCE. This is used to monitor instances 12 behind load balancers. Timeouts or HTTP errors cause the instance to be 13 removed from the pool. For more information, see [the official 14 documentation](https://cloud.google.com/compute/docs/load-balancing/health-checks) 15 and 16 [API](https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks). 17 18 ## Example Usage 19 20 ```js 21 resource "google_compute_http_health_check" "default" { 22 name = "test" 23 request_path = "/health_check" 24 25 timeout_sec = 1 26 check_interval_sec = 1 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `name` - (Required) A unique name for the resource, required by GCE. 35 Changing this forces a new resource to be created. 36 37 - - - 38 39 * `check_interval_sec` - (Optional) The number of seconds between each poll of 40 the instance instance (default 5). 41 42 * `description` - (Optional) Textual description field. 43 44 * `healthy_threshold` - (Optional) Consecutive successes required (default 2). 45 46 * `host` - (Optional) HTTP host header field (default instance's public ip). 47 48 * `port` - (Optional) TCP port to connect to (default 80). 49 50 * `project` - (Optional) The project in which the resource belongs. If it 51 is not provided, the provider project is used. 52 53 * `request_path` - (Optional) URL path to query (default /). 54 55 * `timeout_sec` - (Optional) The number of seconds to wait before declaring 56 failure (default 5). 57 58 * `unhealthy_threshold` - (Optional) Consecutive failures required (default 2). 59 60 61 ## Attributes Reference 62 63 In addition to the arguments listed above, the following computed attributes are 64 exported: 65 66 * `self_link` - The URI of the created resource.