younifyd
Menu

Storage.projects.hmac Keys.update

Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.

PUT/projects/{projectId}/hmacKeys/{accessId}

Use it in a workflow

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

Request

Path parameters

projectIdstringrequired

Project ID owning the service account of the updated key.

accessIdstringrequired

Name of the HMAC key being updated.

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.

userProjectstring

The project to be billed for this request.

Request body

Enter the body as JSON in the step's Body field.

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.

json
{
  "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"
}

Response

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

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.

json
{
  "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"
}

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

Storage.projects.hmac Keys.update — Google Cloud Storage — Documentation