gcloud compute interconnects macsec update-key Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud compute interconnects macsec update-key - update pre-shared key in a Compute Engine interconnect MACsec configuration
- SYNOPSIS
gcloud compute interconnects macsec update-keyNAME--key-name=KEY_NAME[--start-time=START_TIME][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
gcloud compute interconnects macsec update-keyis used to update apre-shared key in MACsec configuration of interconnect.For an example, refer to the
EXAMPLESsection below.- EXAMPLES
- To update a pre-shared key in MACsec configuration, run:
gcloudcomputeinterconnectsmacsecupdate-keyexample-interconnect--key-name=default-key--start-time=2021-02-01T12:12:12Z - POSITIONAL ARGUMENTS
NAME- Name of the interconnect to update.
- REQUIRED FLAGS
--key-name=KEY_NAME- A name of pre-shared key being added to MACsec configuration of theinterconnect. The name must be 1-63 characters long, and comply with RFC1035.
- OPTIONAL FLAGS
--start-time=START_TIME- A RFC3339 timestamp on or after which the key is valid. startTime can be in thefuture. If the keychain has a single key, --start-time can be omitted. If thekeychain has multiple keys, --start-time is mandatory for each key. The starttimes of two consecutive keys must be at least 6 hours apart.
- 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
- These variants are also available:
gcloudalphacomputeinterconnectsmacsecupdate-keygcloudbetacomputeinterconnectsmacsecupdate-key
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.