younifyd
Menu

Storage.projects.hmac Keys.create

Creates a new HMAC key for the specified service account.

POST/projects/{projectId}/hmacKeys

Use it in a workflow

  1. Add a step and choose the Google Cloud Storage connector.
  2. Pick the Storage.projects.hmac Keys.create action (under projects).
  3. Fill in the fields below, then reference the result from later steps as {{storageProjectsHmacKeysCreate.response.data}}.

Request

Path parameters

projectIdstringrequired

Project ID owning the service account.

Query parameters

altstring

Data format for the response.

One ofjson

fieldsstring

Selector specifying which fields to include in a partial response.

keystring

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_tokenstring

OAuth 2.0 token for the current user.

prettyPrintboolean

Returns response with indentations and line breaks.

quotaUserstring

An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

uploadTypestring

Upload protocol for media (e.g. "media", "multipart", "resumable").

userIpstring

Deprecated. Please use quotaUser instead.

serviceAccountEmailstringrequired

Email address of the service account.

userProjectstring

The project to be billed for this request.

Response

Returns 200 with an object. Read it in later steps with {{storageProjectsHmacKeysCreate.response.data.<field>}}.

kindstring

The kind of item this is. For HMAC keys, this is always storage#hmacKey.

Default "storage#hmacKey"

metadataobject

JSON template to produce a JSON-style HMAC Key metadata resource.

accessIdstring

The ID of the HMAC Key.

etagstring

HTTP 1.1 Entity tag for the HMAC key.

idstring

The ID of the HMAC key, including the Project ID and the Access ID.

kindstring

The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.

Default "storage#hmacKeyMetadata"

projectIdstring

Project ID owning the service account to which the key authenticates.

selfLinkstring

The link to this resource.

serviceAccountEmailstring

The email address of the key's associated service account.

statestring

The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.

timeCreatedstring (date-time)

The creation time of the HMAC key in RFC 3339 format.

updatedstring (date-time)

The last modification time of the HMAC key metadata in RFC 3339 format.

secretstring

HMAC secret key material.

json
{
  "kind": "storage#hmacKey",
  "metadata": {
    "accessId": "string",
    "etag": "string",
    "id": "string",
    "kind": "storage#hmacKeyMetadata",
    "projectId": "string",
    "selfLink": "string",
    "serviceAccountEmail": "string",
    "state": "string",
    "timeCreated": "2025-01-01T00:00:00Z",
    "updated": "2025-01-01T00:00:00Z"
  },
  "secret": "string"
}

Need more? See the Google Cloud Storage guide for connection setup and behaviour shared by every action.