File: //snap/google-cloud-cli/current/help/man/man1/gcloud_compute_interconnects_macsec_add-key.1
.TH "GCLOUD_COMPUTE_INTERCONNECTS_MACSEC_ADD\-KEY" 1
.SH "NAME"
.HP
gcloud compute interconnects macsec add\-key \- add pre\-shared key to a Compute Engine interconnect MACsec configuration
.SH "SYNOPSIS"
.HP
\f5gcloud compute interconnects macsec add\-key\fR \fINAME\fR \fB\-\-key\-name\fR=\fIKEY_NAME\fR [\fB\-\-start\-time\fR=\fISTART_TIME\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fBgcloud compute interconnects macsec add\-key\fR is used to add a pre\-shared
key to MACsec configuration of interconnect.
For an example, refer to the \fBEXAMPLES\fR section below.
.SH "EXAMPLES"
To add a pre\-shared key to MACsec configuration, run:
.RS 2m
$ gcloud compute interconnects macsec add\-key example\-interconnect \e
\-\-key\-name=default\-key \-\-start\-time=2021\-02\-01T12:12:12Z
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fINAME\fR
Name of the interconnect to update.
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-key\-name\fR=\fIKEY_NAME\fR
A name of pre\-shared key being added to MACsec configuration of the
interconnect. The name must be 1\-63 characters long, and comply with RFC1035.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-start\-time\fR=\fISTART_TIME\fR
A RFC3339 timestamp on or after which the key is valid. startTime can be in the
future. If the keychain has a single key, \-\-start\-time can be omitted. If the
keychain has multiple keys, \-\-start\-time is mandatory for each key. The start
times of two consecutive keys must be at least 6 hours apart.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha compute interconnects macsec add\-key
.RE
.RS 2m
$ gcloud beta compute interconnects macsec add\-key
.RE