Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.74 KB

File metadata and controls

64 lines (45 loc) · 1.74 KB
page_title subcategory description
sigsci_site Resource - terraform-provider-sigsci

sigsci_site (Resource)

Example Usage

resource "sigsci_site" "my-site" {
  short_name             = "manual_test"
  display_name           = "manual terraform test"
  block_duration_seconds = 86400
  agent_anon_mode        = ""
  agent_level            = "block"
  client_ip_rules        = ["X-Client-IP"]
}

Schema

Required

  • display_name (String) Display name of the site
  • short_name (String) Identifying name of the site

Optional

  • agent_anon_mode (String) Agent IP anonymization mode - "" (empty string) or 'EU'
  • agent_level (String) Agent action level - 'block', 'log' or 'off'
  • attack_threshold (Block Set) List entries (see below for nested schema)
  • block_duration_seconds (Number) Duration to block an IP in seconds
  • block_http_code (Number) HTTP response code to send when traffic is being blocked
  • block_redirect_url (String) URL to redirect to when blocking with a '301' or '302' HTTP status code
  • client_ip_rules (List of String) Headers used for assigning client IPs to requests
  • immediate_block (Boolean) Immediately block requests that contain attack signals

Read-Only

  • id (String) The ID of this resource.
  • primary_agent_key (Map of String, Sensitive) The sites primary Agent key

Nested Schema for attack_threshold

Required:

  • interval (Number)
  • threshold (Number)

Import

Import is supported using the following syntax:

terraform import sigsci_site.test id