projects

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

put/projects/{projectId}/hmacKeys/{accessId}

Request

  • Base URL: https://storage.googleapis.com/storage/v1
  • URL: https://storage.googleapis.com/storage/v1/projects/{projectId}/hmacKeys/{accessId}
  • Auth: one of:
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/devstorage.full_control) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/devstorage.full_control)

Path parameters

projectIdstring required

Project ID owning the service account of the updated key.

accessIdstring required

Name of the HMAC key being updated.

Query parameters

userProjectstring

The project to be billed for this request.

Request body

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.

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.

Response

Successful response

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/devstorage.full_control was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/devstorage.full_control was removed from the endpoint's security scheme Oauth2c

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/devstorage.full_control was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/devstorage.full_control was removed from the endpoint's security scheme Oauth2c