This page describes how to find the email address of a project's Cloud Storage service agent, which is a specialized service account created and managed by Cloud Storage. For an overview of Cloud Storage service agents, including when they're created and how they're used, see Service Accounts for Cloud Storage. For a general overview of service accounts in Google Cloud, see Service Accounts.
To get the email address of a project's Cloud Storage service agent:
Console
- Open the Cloud Storage browser in the Google Cloud Console.
Open the Cloud Storage browser Click Settings.
In the Project Access tab, the email address appears in the Cloud Storage Service Account section.
Code samples
For more information, see the
Cloud Storage C++ API reference documentation.
For more information, see the
Cloud Storage Go API reference documentation.
For more information, see the
Cloud Storage Java API reference documentation.
For more information, see the
Cloud Storage Node.js API reference documentation.
For more information, see the
Cloud Storage Python API reference documentation.
For more information, see the
Cloud Storage Ruby API reference documentation.
C++
Go
Java
Node.js
Python
Ruby
JSON API
- Get an authorization access token from the OAuth 2.0 Playground. Configure the playground to use your own OAuth credentials.
Use
cURL
to call the JSON API with aGET
serviceAccount request:curl -X GET -H "Authorization: Bearer OAUTH2_TOKEN" \ "https://storage.googleapis.com/storage/v1/projects/PROJECT_ID/serviceAccount"
Where:
OAUTH2_TOKEN
is the name of the access token you generated in Step 1.PROJECT_ID
is the ID of the relevant project. For example,my-project
.