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

broken resources/data calls due to typo in path? #173

Open
mkol5222 opened this issue Aug 22, 2023 · 0 comments
Open

broken resources/data calls due to typo in path? #173

mkol5222 opened this issue Aug 22, 2023 · 0 comments

Comments

@mkol5222
Copy link

TF failing to retrieve OU data. Might it be related to wrong API path called?

Error: FAILED: GET, https://api.eu1.dome9.com/v2/organizationalunit/00000000-0000-0000-0000-000000000000, 500, 500 Internal Server Error, An error has occured.
│ 
│   with data.dome9_organizational_unit.root,
│   on kubernetes.tf line 1, in data "dome9_organizational_unit" "root":
│    1: data "dome9_organizational_unit" "root" {
│ 

which seems due to typo in REST API call path - based on API documentation and real working call

curl --request GET \
     --url https://api.dome9.com/v2/OrganizationalUnit/00000000-0000-0000-0000-000000000000 \
     --header 'accept: application/json' \
     --header 'authorization: Basic yyy'

TYPO:
OrganizationalUnit vs organizationalunit

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