The following query parameters can be used with all methods and all resources in the Google Cloud Storage JSON API.
Query parameters that apply to all Google Cloud Storage JSON API operations are shown in the table below.
Notes (on API keys and auth tokens):
-
For authenticated requests, the
key
parameter is required, unless you provide an OAuth 2.0 token with the request. For anonymous requests, such as requests for publicly shared resources, the key is not required. - You must send an authorization token with every request that is marked (AUTHENTICATED) . OAuth 2.0 is the preferred authorization protocol.
-
You can provide an OAuth 2.0 token with any request in one of two ways:
-
Using the
access_token
query parameter like this:?access_token=
oauth2-token
-
Using the HTTP
Authorization
header like this:Authorization: Bearer
oauth2-token
-
Using the
All parameters are optional except where noted.
Parameter | Meaning | Notes |
---|---|---|
access_token
|
OAuth 2.0 token for the current user. |
|
callback
|
Callback function. |
|
fields
|
Selector specifying a subset of fields to include in the response. |
|
key
|
API key. (REQUIRED*) |
|
prettyPrint
|
Returns response with indentations and line breaks. |
|
quotaUser
|
Alternative to
userIp
.
|
|
userIp
|
IP address of the end user for whom the API call is being made. |
|