Projects.hmacKeys: create

Creates a new HMAC key for the specified service account. Try it now.

The authenticated user must have storage.hmacKeys.create permission for the project in which the key will be created.

For general information about HMAC keys in Cloud Storage, see HMAC Keys.


HTTP request


In addition to standard query parameters, the following query parameters apply to this method:


Parameter name Value Description
Path parameters
projectId string The project ID of the project that owns the service account.
Required query parameters
serviceAccountEmail string The email address of the service account.

Request body

Do not supply a request body with this method.


If successful, this method returns a Projects.hmacKeys resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.