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