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

MSP/zaaid not working #324

Open
plehr opened this issue Dec 4, 2024 · 1 comment
Open

MSP/zaaid not working #324

plehr opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@plehr
Copy link

plehr commented Dec 4, 2024

Hi,

I tried to use terraform with site24x7, but zaaid is not working / ignored by provider:

terraform {
  required_version = "~> 0.15.0"
  required_providers {
    site24x7 = {
      source = "site24x7/site24x7"
    }
  }
}

provider "site24x7" {
  oauth2_client_id     = "<ClientID>"
  oauth2_client_secret = "<ClientSecret>"
  oauth2_refresh_token = "<RefreshToken>"
  data_center          = "US"
  zaaid                = "<zaaid from msp>"
  retry_min_wait       = 1
  retry_max_wait       = 30
  max_retries          = 1
}

resource "site24x7_website_monitor" "monitor" {
  display_name          = "Example Monitor"
  website               = "https://plehr.de"
  check_frequency       = "1"
}

Could you please check the current version with msp?
I used role "Super Admin" to perform this action and generated my secret as described with following scope: Site24x7.account.All,Site24x7.admin.All,Site24x7.reports.All,Site24x7.operations.All,Site24x7.msp.All,Site24x7.bu.All

Console output:

│ Error: You are not authorized to perform this operation.You are trying to access the API of the MSP customer. Please pass the customer's ZAAID in the request.

│   with site24x7_website_monitor.monitor,
│   on terraform.tf line 23, in resource "site24x7_website_monitor" "monitor":
│   23: resource "site24x7_website_monitor" "monitor" {

Thank you

@sujithrams-zoho
Copy link
Collaborator

Hi Plehr,
Kindly pass the customer's ZAAID here "".
provider "site24x7" {
oauth2_client_id = ""
oauth2_client_secret = ""
oauth2_refresh_token = ""
data_center = "US"
zaaid = ""
retry_min_wait = 1
retry_max_wait = 30
max_retries = 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

2 participants