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.

Request

HTTP request

POST https://www.googleapis.com/storage/v1/projects/projectId/hmacKeys

Parameters

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 This parameter is currently ignored.

Request body

Do not supply a request body with this method.

Response

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.

此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
Cloud Storage
需要帮助?请访问我们的支持页面