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



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.
Optional query parameters
userProject string The project to be billed for this request.

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.