github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/website/source/docs/providers/ultradns/r/probe_http.html.markdown (about) 1 --- 2 layout: "ultradns" 3 page_title: "UltraDNS: ultradns_probe_http" 4 sidebar_current: "docs-ultradns-resource-probe-http" 5 description: |- 6 Provides an UltraDNS HTTP probe 7 --- 8 9 # ultradns\_probe\_http 10 11 Provides an UltraDNS HTTP probe 12 13 ## Example Usage 14 ``` 15 resource "ultradns_probe_http" "probe" { 16 zone = "${ultradns_tcpool.pool.zone}" 17 name = "${ultradns_tcpool.pool.name}" 18 pool_record = "10.2.1.1" 19 20 agents = ["DALLAS", "AMSTERDAM"] 21 22 interval = "ONE_MINUTE" 23 threshold = 1 24 25 http_probe { 26 transaction { 27 method = "POST" 28 url = "http://localhost/index" 29 transmitted_data = "{}" 30 follow_redirects = true 31 32 limit { 33 name = "run" 34 35 warning = 1 36 critical = 2 37 fail = 3 38 } 39 limit { 40 name = "avgConnect" 41 42 warning = 4 43 critical = 5 44 fail = 6 45 } 46 limit { 47 name = "avgRun" 48 49 warning = 7 50 critical = 8 51 fail = 9 52 } 53 limit { 54 name = "connect" 55 56 warning = 10 57 critical = 11 58 fail = 12 59 } 60 } 61 62 total_limits { 63 warning = 13 64 critical = 14 65 fail = 15 66 } 67 } 68 } 69 ``` 70 71 ## Argument Reference 72 73 The following arguments are supported: 74 75 * `zone` - (Required) The domain of the pool to probe. 76 * `name` - (Required) The name of the pool to probe. 77 - `pool_record` - (optional) IP address or domain. If provided, a record-level probe is created, otherwise a pool-level probe is created. 78 - `agents` - (Required) List of locations that will be used for probing. One or more values must be specified. Valid values are `"NEW_YORK"`, `"PALO_ALTO"`, `"DALLAS"` & `"AMSTERDAM"`. 79 - `threshold` - (Required) Number of agents that must agree for a probe state to be changed. 80 - `http_probe` - (Required) an HTTP Probe block. 81 - `interval` - (Optional) Length of time between probes in minutes. Valid values are `"HALF_MINUTE"`, `"ONE_MINUTE"`, `"TWO_MINUTES"`, `"FIVE_MINUTES"`, `"TEN_MINUTES"` & `"FIFTEEN_MINUTE"`. Default: `"FIVE_MINUTES"`. 82 83 HTTP Probe block 84 - `transaction` - (Optional) One or more Transaction blocks. 85 - `total_limits` - (Optional) A Limit block, but with no `name` attribute. 86 87 Transaction block 88 - `method` - (Required) HTTP method. Valid values are`"GET"`, `"POST"`. 89 - `url` - (Required) URL to probe. 90 - `transmitted_data` - (Optional) Data to send to URL. 91 - `follow_redirects` - (Optional) Whether to follow redirects. 92 - `limit` - (Required) One or more Limit blocks. Only one limit block may exist for each name. 93 94 Limit block 95 - `name` - (Required) Kind of limit. Valid values are `"lossPercent"`, `"total"`, `"average"`, `"run"` & `"avgRun"`. 96 - `warning` - (Optional) Amount to trigger a warning. 97 - `critical` - (Optional) Amount to trigger a critical. 98 - `fail` - (Optional) Amount to trigger a failure.