netskopeoss / terraform-provider-netskope

Apache License 2.0
6 stars 5 forks source link

Error with publisher upgrade profiles #26

Open nikskiz opened 9 months ago

nikskiz commented 9 months ago

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
}'