Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from google.cloud import storage
  2.  
  3. storage_client = storage.Client(project='[project-id]')
  4. bucket = storage_client.get_bucket([bucket-name])
  5.  
  6. blobs = bucket.list_blobs()
  7.  
  8. for blob in blobs:
  9. print(blob.name)
  10.  
  11. [service-account-ID]-compute@developer.gserviceaccount.com does not have storage.buckets.get access to [bucket-name]
  12.  
  13. gsutil ls gs://[bucket-name]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement