github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/icinga2/r/service.html.markdown (about)

     1  ---
     2  layout: "icinga2"
     3  page_title: "Icinga2: service"
     4  sidebar_current: "docs-icinga2-resource-service"
     5  description: |-
     6    Configures a service resource. This allows service to be configured, updated and deleted.
     7  ---
     8  
     9  # icinga2\_service
    10  
    11  Configures an Icinga2 service resource. This allows service to be configured, updated,
    12  and deleted.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  # Configure a new service to be monitored by an Icinga2 Server
    18  provider "icinga2" {
    19    api_url = "https://192.168.33.5:5665/v1"
    20  }
    21  
    22  resource "icinga2_service" "my-service" {
    23    hostname      = "c1-mysql-1"
    24    servicename   = "ssh"
    25    check_command = "ssh"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `check_command` - (Required) The name of an existing Icinga2 CheckCommand object that is used to determine if the service is available on the host.
    34  * `hostname` - (Required) The host to check the service's status on
    35  * `servicename` - (Required) The name of the service.
    36