Mark Ginsburg
Mark Ginsburg

Reputation: 2269

What does gsutil use under the hood?

When I am transferring a local file to a Google Cloud Storage bucket with the Google CLoud utility gsutil, what protocol does it use? Encrypted SSH tunnel?

Upvotes: 0

Views: 843

Answers (2)

mhouglum
mhouglum

Reputation: 2593

Gsutil uses the apitools and boto libraries to send HTTPS requests (to GCS's JSON and XML APIs, respectively). You can see details about each request gsutil is making on your behalf if you run gsutil with the -D option, e.g.:

gsutil -D cp /some/file.txt gs://my-bucket/

Upvotes: 2

Dan Kowalczyk
Dan Kowalczyk

Reputation: 4653

It should be using HTTPS to upload to the Google Cloud Storage API. This Python client library shows some details of that connection.

Upvotes: 1

Related Questions