Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page rules status uses disabled not paused #60

Closed
SteveGoldthorpe-Work opened this issue May 16, 2018 · 0 comments
Closed

page rules status uses disabled not paused #60

SteveGoldthorpe-Work opened this issue May 16, 2018 · 0 comments

Comments

@SteveGoldthorpe-Work
Copy link
Contributor

terraform-provider-cloudflare v1.0.0

resource "cloudflare_page_rule" "testing123" {
  zone = "domain.com
  target = "http://testing123.domain.com/*"
  priority = 3
  actions = {
    forwarding_url = {
      url = "http://http.invalid/"
      status_code = "302"
    }
  }
  status = "paused"
}
terraform apply
...
1 error(s) occurred:

* cloudflare_page_rule.testing123: 1 error(s) occurred:

* cloudflare_page_rule.testing123: Failed to create page rule: error from makeRequest: HTTP status 400: content "{\"success\":false,\"errors\":[{\"code\":1004,\"message\":\"Page Rule validation failed: See messages for details.\"}],\"messages\":[{\"code\":1,\"message\":\".status: Invalid page rule status\",\"type\":null}],\"result\":null}"

This is because the status for page rules should be active or disabled (not paused).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant