diff --git a/coxedge/provider.go b/coxedge/provider.go index 8a40c08..adf73e8 100644 --- a/coxedge/provider.go +++ b/coxedge/provider.go @@ -39,10 +39,10 @@ func Provider() *schema.Provider { //"coxedge_cdn_settings": resourceCDNSettings(), //"coxedge_delivery_domain": resourceDeliveryDomain(), "coxedge_environment": resourceEnvironment(), - "coxedge_firewall_rule": resourceFirewallRule(), + //"coxedge_firewall_rule": resourceFirewallRule(), "coxedge_network_policy_rule": resourceNetworkPolicyRule(), //"coxedge_origin_setting": resourceOriginSettings(), - "coxedge_script": resourceScript(), + //"coxedge_script": resourceScript(), //"coxedge_site": resourceSite(), "coxedge_user": resourceUser(), //"coxedge_waf_settings": resourceWAFSettings(), diff --git a/docs/resources/firewall_rule.md b/docs/resources/firewall_rule.md deleted file mode 100644 index 304f05b..0000000 --- a/docs/resources/firewall_rule.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "coxedge_firewall_rule Resource - terraform-provider-coxedge" -subcategory: "" -description: Deploy and manage Firewall Rules used to control and limit access to your sites. - ---- - -# coxedge_firewall_rule (Resource) -Deploy and manage Firewall Rules used to control and limit access to your sites. - -Example Usage ---- -``` -terraform { - required_providers { - coxedge = { - version = "0.4.9" - source = "coxedge/coxedge" - - } -} - -provider "coxedge" { - key = "[INSERT API KEY HERE]" -} - -resource "coxedge_firewall_rule" "testing" { - organization_id = "organization_id" - environment_name = "environment name" - site_id = "site-id" - action = "ALLOW" - ip_start = "192.168.0.6" - name = "firewall.test.1" - ip_end = "192.168.0.7" - - timeouts { - create = "20m" - } -} -``` - - - - -## Schema - -### Required - -- `action` (String) - Filter IP addresses, which are either ALLOW or BLOCK. This parameter is optional. If not provided, it will return both the type of IP addresses. -- `environment_name` (String)- Name of the environment belonging to the organization. -- `ip_start` (String) - The start ip adress for the rule. -- `name` (String) - The name of the rule. -- `organization_id` (String) - The id of the organization. -- `site_id` (String) - The ID of the site for which the firewall rule is applied to. This parameter is required. - -### Optional - -- `enabled` (Boolean) - Whether or not the rule is enabled. -- `ip_end` (String) - The end ip adress for the rule. -- `timeouts` (Block List, Min: 1) - Can pass custom timeout while create. Example: create = "20m" - -### Read-Only - -- `id` (String) The unique identifier for the rule. - - diff --git a/docs/resources/script.md b/docs/resources/script.md deleted file mode 100644 index 5616004..0000000 --- a/docs/resources/script.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "coxedge_script Resource - terraform-provider-coxedge" -subcategory: "" -description: Deploy and manage Serverless Scripts used to interact with requests made to the site. - ---- - -# coxedge_script (Resource) -Deploy and manage Serverless Scripts used to interact with requests made to the site. - -Example Usage ---- -``` -terraform { - required_providers { - coxedge = { - version = "0.4.9" - source = "coxedge/coxedge" - - } -} - -provider "coxedge" { - key = "[INSERT API KEY HERE]" -} - -resource "coxedge_script" "testing" { - organization_id = "organization_id" - site_id = "site-id" - environment_name = "environment_name" - name = "script-test" - routes = ["v1/api"] - code = "sample script test" - - timeouts { - create = "20m" - update = "20m" - } -} -``` - - - -## Argument Reference -The following arguments are supported: - -### Required - -- `code` (String) - The contents of the script. The JavaScript code used for the script or the Base64 encoded contents of the script -- `environment_name` (String) - Name of the environment belonging to the organization. -- `name` (String) - The display name of the script. -- `organization_id` (String) - The id of the organization. -- `routes` (List of String) - The routes that incoming requests should respond with a script. -- `site_id` (String) - The ID of the site that the script belongs to. - -### Optional -- `timeouts` (Block List, Min: 1) - Can pass custom timeout while create/update. Example: create="20m" / update = "20m" - -### Read-Only - -- `created_at` (String) - Creation timestamp of the script. -- `id` (String) The ID of this resource. -- `stack_id` (String) - The ID of the site that the script belongs to. -- `updated_at` (String) - The date on which the script was last updated. -- `version` (String) - The version number of the script. - -