Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. def getDatabaseList(self,):
  2. try:
  3. parent = "projects/"+self._PROJECT_NAME + "/instances/" + self._INSTANCE_NAME
  4. response = self.service.projects().instances().databases().list(parent=parent).execute()
  5. except Exception, e:
  6. logging.info("Exception while getDatabaseList %s", e)
  7. return False
  8. return response
  9.  
  10. Exception while getDatabaseList <HttpError 403 when requesting https://spanner.googleapis.com/v1/projects/<projectName>/instances/<instanceName>/databases?alt=json&key=<APIKEY>
  11.  
  12. returned "Resource projects/<projectName>/instances/<instanceName> is missing IAM permission: spanner.databases.list.">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement