0
votes

I am using google cloud storage and bigquery services of google cloud platform. I'm using service account to authenticate my application and cloud sdk to perform any actions on them.As of now, I'm able to connect and also able to perform any actions. I am curious to know that let suppose if my service account file get modified or somehow the path of that file get lost. Is there is anyway to verify my service account whether it is valid account or not and based on that I can print my code(error codes) and take action on that?

1

1 Answers

0
votes

Using Google Cloud SDK commands, you can request additional debugging information:

  1. Google Cloud gcloud has two flags that give user control over information that are displayed:

--log-http Logs all HTTP server requests

--verbosity Can display error or critical`

  1. Cloud Storage gsutil has two options:

-D requests additional debug information

-DD requests full HTTP upstream payload

However, to have greater control over processes and errors, use Google Cloud Client Libraries, to authenticate and access Cloud Storage.