github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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 ```hcl 16 resource "ultradns_probe_http" "probe" { 17 zone = "${ultradns_tcpool.pool.zone}" 18 name = "${ultradns_tcpool.pool.name}" 19 pool_record = "10.2.1.1" 20 21 agents = ["DALLAS", "AMSTERDAM"] 22 23 interval = "ONE_MINUTE" 24 threshold = 1 25 26 http_probe { 27 transaction { 28 method = "POST" 29 url = "http://localhost/index" 30 transmitted_data = "{}" 31 follow_redirects = true 32 33 limit { 34 name = "run" 35 36 warning = 1 37 critical = 2 38 fail = 3 39 } 40 41 limit { 42 name = "avgConnect" 43 44 warning = 4 45 critical = 5 46 fail = 6 47 } 48 49 limit { 50 name = "avgRun" 51 52 warning = 7 53 critical = 8 54 fail = 9 55 } 56 57 limit { 58 name = "connect" 59 60 warning = 10 61 critical = 11 62 fail = 12 63 } 64 } 65 66 total_limits { 67 warning = 13 68 critical = 14 69 fail = 15 70 } 71 } 72 } 73 ``` 74 75 ## Argument Reference 76 77 The following arguments are supported: 78 79 * `zone` - (Required) The domain of the pool to probe. 80 * `name` - (Required) The name of the pool to probe. 81 - `pool_record` - (optional) IP address or domain. If provided, a record-level probe is created, otherwise a pool-level probe is created. 82 - `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"`. 83 - `threshold` - (Required) Number of agents that must agree for a probe state to be changed. 84 - `http_probe` - (Required) an HTTP Probe block. 85 - `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"`. 86 87 HTTP Probe block 88 - `transaction` - (Optional) One or more Transaction blocks. 89 - `total_limits` - (Optional) A Limit block, but with no `name` attribute. 90 91 Transaction block 92 - `method` - (Required) HTTP method. Valid values are`"GET"`, `"POST"`. 93 - `url` - (Required) URL to probe. 94 - `transmitted_data` - (Optional) Data to send to URL. 95 - `follow_redirects` - (Optional) Whether to follow redirects. 96 - `limit` - (Required) One or more Limit blocks. Only one limit block may exist for each name. 97 98 Limit block 99 - `name` - (Required) Kind of limit. Valid values are `"lossPercent"`, `"total"`, `"average"`, `"run"` & `"avgRun"`. 100 - `warning` - (Optional) Amount to trigger a warning. 101 - `critical` - (Optional) Amount to trigger a critical. 102 - `fail` - (Optional) Amount to trigger a failure.