github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/openstack/r/lb_monitor_v1.html.markdown (about)

     1  ---
     2  layout: "openstack"
     3  page_title: "OpenStack: openstack_lb_monitor_v1"
     4  sidebar_current: "docs-openstack-resource-lb-monitor-v1"
     5  description: |-
     6    Manages a V1 load balancer monitor resource within OpenStack.
     7  ---
     8  
     9  # openstack\_lb\_monitor_v1
    10  
    11  Manages a V1 load balancer monitor resource within OpenStack.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "openstack_lb_monitor_v1" "monitor_1" {
    17    type = "PING"
    18    delay = 30
    19    timeout = 5
    20    max_retries = 3
    21    admin_state_up = "true"
    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 LB monitor. If omitted, the
    31      `OS_REGION_NAME` environment variable is used. Changing this creates a new
    32      LB monitor.
    33  
    34  * `type` - (Required) The type of probe, which is PING, TCP, HTTP, or HTTPS,
    35      that is sent by the monitor to verify the member state. Changing this
    36      creates a new monitor.
    37  
    38  * `delay` - (Required) The time, in seconds, between sending probes to members.
    39      Changing this creates a new monitor.
    40  
    41  * `timeout` - (Required) Maximum number of seconds for a monitor to wait for a
    42      ping reply before it times out. The value must be less than the delay value.
    43      Changing this updates the timeout of the existing monitor.
    44  
    45  * `max_retries` - (Required) Number of permissible ping failures before changing
    46      the member's status to INACTIVE. Must be a number between 1 and 10. Changing
    47      this updates the max_retries of the existing monitor.
    48  
    49  * `url_path` - (Optional) Required for HTTP(S) types. URI path that will be
    50      accessed if monitor type is HTTP or HTTPS. Changing this updates the
    51      url_path of the existing monitor.
    52  
    53  * `http_method` - (Optional) Required for HTTP(S) types. The HTTP method used
    54      for requests by the monitor. If this attribute is not specified, it defaults
    55      to "GET". Changing this updates the http_method of the existing monitor.
    56  
    57  * `expected_codes` - (Optional) equired for HTTP(S) types. Expected HTTP codes
    58      for a passing HTTP(S) monitor. You can either specify a single status like
    59      "200", or a range like "200-202". Changing this updates the expected_codes
    60      of the existing monitor.
    61  
    62  * `admin_state_up` - (Optional) The administrative state of the monitor.
    63      Acceptable values are "true" and "false". Changing this value updates the
    64      state of the existing monitor.
    65  
    66  * `tenant_id` - (Optional) The owner of the monitor. Required if admin wants to
    67      create a monitor for another tenant. Changing this creates a new monitor.
    68  
    69  ## Attributes Reference
    70  
    71  The following attributes are exported:
    72  
    73  * `region` - 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.
    82  * `tenant_id` - See Argument Reference above.