github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/openstack/r/lb_monitor_v2.html.markdown (about) 1 --- 2 layout: "openstack" 3 page_title: "OpenStack: openstack_lb_monitor_v2" 4 sidebar_current: "docs-openstack-resource-lb-monitor-v2" 5 description: |- 6 Manages a V2 monitor resource within OpenStack. 7 --- 8 9 # openstack\_lb\_monitor\_v2 10 11 Manages a V2 monitor resource within OpenStack. 12 13 ## Example Usage 14 15 ```hcl 16 resource "openstack_lb_monitor_v2" "monitor_1" { 17 pool_id = "${openstack_lb_pool_v2.pool_1.id}" 18 type = "PING" 19 delay = 20 20 timeout = 10 21 max_retries = 5 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `region` - (Required) The region in which to obtain the V2 Networking client. 30 A Networking client is needed to create an . If omitted, the 31 `OS_REGION_NAME` environment variable is used. Changing this creates a new 32 monitor. 33 34 * `pool_id` - (Required) The id of the pool that this monitor will be assigned to. 35 36 * `name` - (Optional) The Name of the Monitor. 37 38 * `tenant_id` - (Optional) Required for admins. The UUID of the tenant who owns 39 the monitor. Only administrative users can specify a tenant UUID 40 other than their own. Changing this creates a new monitor. 41 42 * `type` - (Required) The type of probe, which is PING, TCP, HTTP, or HTTPS, 43 that is sent by the load balancer to verify the member state. Changing this 44 creates a new monitor. 45 46 * `delay` - (Required) The time, in seconds, between sending probes to members. 47 48 * `timeout` - (Required) Maximum number of seconds for a monitor to wait for a 49 ping reply before it times out. The value must be less than the delay 50 value. 51 52 * `max_retries` - (Required) Number of permissible ping failures before 53 changing the member's status to INACTIVE. Must be a number between 1 54 and 10.. 55 56 * `url_path` - (Optional) Required for HTTP(S) types. URI path that will be 57 accessed if monitor type is HTTP or HTTPS. 58 59 * `http_method` - (Optional) Required for HTTP(S) types. The HTTP method used 60 for requests by the monitor. If this attribute is not specified, it 61 defaults to "GET". 62 63 * `expected_codes` - (Optional) Required for HTTP(S) types. Expected HTTP codes 64 for a passing HTTP(S) monitor. You can either specify a single status like 65 "200", or a range like "200-202". 66 67 * `admin_state_up` - (Optional) The administrative state of the monitor. 68 A valid value is true (UP) or false (DOWN). 69 70 71 ## Attributes Reference 72 73 The following attributes are exported: 74 75 * `id` - The unique ID for the monitor. 76 * `tenant_id` - See Argument Reference above. 77 * `type` - See Argument Reference above. 78 * `delay` - See Argument Reference above. 79 * `timeout` - See Argument Reference above. 80 * `max_retries` - See Argument Reference above. 81 * `url_path` - See Argument Reference above. 82 * `http_method` - See Argument Reference above. 83 * `expected_codes` - See Argument Reference above. 84 * `admin_state_up` - See Argument Reference above.