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

Error with publisher upgrade profiles #26

Open
nikskiz opened this issue Nov 30, 2023 · 0 comments
Open

Error with publisher upgrade profiles #26

nikskiz opened this issue Nov 30, 2023 · 0 comments

Comments

@nikskiz
Copy link

nikskiz commented Nov 30, 2023

I am defining upgrade profile

resource "netskope_publisher_upgrade_profiles" "weekly" {
  name         = "${var.identifier}-weekly-upgrade-profile"
  docker_tag   = "latest" 
  enabled      = true
  frequency    = "0 7 * * MON#1" # Monday 7AM every week
  release_type = "Latest"
  timezone     = "Australia/Sydney"
}

And terraform apply I get the error

Error: You cannot consume this service

If I run the request directly to the API it works

curl -X 'POST' \
  'https://<TENANT>.goskope.com/api/v2/infrastructure/publisherupgradeprofiles' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "testing",
  "frequency": "0 7 * * MON#1",
  "timezone": "Australia/Sydney",
  "docker_tag": "latest",
  "release_type": "Latest",
  "enabled": 1
}'
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