github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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  ```hcl
    16  resource "github_organization_webhook" "foo" {
    17    name = "web"
    18  
    19    configuration {
    20      url          = "https://google.de/"
    21      content_type = "form"
    22      insecure_ssl = false
    23    }
    24  
    25    active = false
    26  
    27    events = ["issues"]
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `name` - (Required) The type of the webhook. See a list of [available hooks](https://api.github.com/hooks).
    36  
    37  * `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/)
    38  
    39  * `config` - (Required) key/value pair of configuration for this webhook. Available keys are `url`, `content_type`, `secret` and `insecure_ssl`.
    40  
    41  * `active` - (Optional) Indicate of the webhook should receive events. Defaults to `true`.
    42  
    43  ## Attributes Reference
    44  
    45  The following additional attributes are exported:
    46  
    47  * `url` - URL of the webhook