gcloud storage hmac update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud storage hmac update - change the status of a service account HMAC
- SYNOPSIS
gcloud storage hmac updateACCESS_ID(--activate|--deactivate)[--etag=ETAG,-eETAG][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
gcloud storage hmac updatesets the state of the specified key.Valid state arguments areandACTIVE. To set a key to stateINACTIVE, useDELETEDgcloud storage hmacdeleteon ankey. If anetag is set in the command, it will only succeed if the provided etag matchesthe etag of the stored key.INACTIVE- EXAMPLES
- To activate an HMAC key:
gcloudstoragehmacupdateGOOG56JBMFZX6PMPTQ62VD2--activateTo set the state of an HMAC key to
provided its etag isINACTIVE:M42da=gcloudstoragehmacupdateGOOG56JBMFZX6PMPTQ62VD2--deactivate--etag=M42da= - POSITIONAL ARGUMENTS
ACCESS_ID- Access ID for HMAC key to update.
- REQUIRED FLAGS
- Exactly one of these must be specified:
--activate- Sets the state of the specified key to
.ACTIVE --deactivate- Sets the state of the specified key to
.INACTIVE
- Exactly one of these must be specified:
- OPTIONAL FLAGS
--etag=ETAG,-eETAG- If provided, the update will only be performed if the specified etag matches theetag of the stored key.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This variant is also available:
gcloudalphastoragehmacupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.