github.com/dougneal/terraform@v0.6.15-0.20170330092735-b6a3840768a4/website/source/docs/providers/github/r/organization_webhook.html.markdown (about)

     1  ---
     2  layout: "github"
     3  page_title: "GitHub: github_organization_webhook"
     4  sidebar_current: "docs-github-resource-organization-webhook"
     5  description: |-
     6    Creates and manages webhooks for Github organizations
     7  ---
     8  
     9  # github\_organization\_webhook
    10  
    11  This resource allows you to create and manage webhooks for Github organization.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "github_organization_webhook" "foo" {
    17    name = "web"
    18    configuration {
    19      url = "https://google.de/"
    20      content_type = "form"
    21      insecure_ssl = false
    22    }
    23    active = false
    24  
    25    events = ["issues"]
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `name` - (Required) The type of the webhook. See a list of [available hooks](https://api.github.com/hooks).
    34  
    35  * `events` - (Required) A list of events which should trigger the webhook. Defaults to `["push"]`. See a list of [available events](https://developer.github.com/v3/activity/events/types/)
    36  
    37  * `config` - (Required) key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`.
    38  
    39  * `active` - (Optional) Indicate of the webhook should receive events. Defaults to `true`.
    40  
    41  ## Attributes Reference
    42  
    43  The following additional attributes are exported:
    44  
    45  * `url` - URL of the webhook