-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Error occured using the command with the JSON key file for the Service Account:
node gcpOrgImporter.js –p <gcp-sa-jsonkeyfile> -I <dome9api> -s <dome9secret>
Despite entering the correct parameters & commands, I encountered the following error:
gcpOrgImporter.js:15
var cloudresourcemanager = google.cloudresourcemanager('v1');
^TypeError: google.cloudresourcemanager is not a function
at Object.<anonymous> (DRIVELOCATIONOFSCRIPT\onboarding-scripts\GCP\gcpOrgImporter.js:15:35)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
- I had done npm install and npm audit fix prior to running this command.
- I have verified the Dome9 api v2 id & secret key are working prior to this, as I tested with a few API calls such as the CloudAccounts API endpoint.
- Am using npm v6.13.4 and node 12.16.1.
- I also tried with node 8.17.0 but got the same error too
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels