GCP Cloud Discovery Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 10:32 PM
I am trying to discover the GCP Cloud Account, but I am getting this below error always. Can anyone give solution to fix this issue? I have attached the error image as well below.
Pattern name - GCP Service Account Identification
Step no - 4. Check if it's a Folder
Error:-
Feb 16, 2023 11:45:07 AM:: Starting step: 'Check If it's a Folder'
Feb 16, 2023 11:45:09 AM:: Test failed: Custom operation Cloud REST Query failed to execute script due to Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Cloud request failed. URL: https://cloudresourcemanager.googleapis.com/v1/projects/406774267654 Status: 403 Response: HttpResponseProxy{HTTP/1.1 403 Forbidden [Vary: X-Origin, Vary: Referer, Content-Type: application/json; charset=UTF-8, Date: Thu, 16 Feb 2023 06:15:08 GMT, Server: ESF, Cache-Control: private, X-XSS-Protection: 0, X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Server-Timing: gfet4t7; dur=1130, Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000, Accept-Ranges: none, Vary: Origin,Accept-Encoding, Connection: close, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: application/json; charset=UTF-8,Chunked: true]}} (script_include:GoogleApiCommand; line 124). Check the discovery logs for more details.
Error in Pattern
Thanks,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 08:33 AM
Hi @RK41
It's pretty clear that the acccount cred which you added in SNOW doesn't have enough privileges for the API call, you need to check the docs and work with your cloud admin team to provide necessary permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2023 09:47 PM
Nope, It has a owner permission.