File: //snap/google-cloud-cli/current/help/man/man1/gcloud_certificate-manager_trust-configs_create.1
.TH "GCLOUD_CERTIFICATE\-MANAGER_TRUST\-CONFIGS_CREATE" 1
.SH "NAME"
.HP
gcloud certificate\-manager trust\-configs create \- create TrustConfig
.SH "SYNOPSIS"
.HP
\f5gcloud certificate\-manager trust\-configs create\fR (\fITRUST_CONFIG\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR) (\fB\-\-allowlisted\-certificates\fR=[\fIALLOWLISTED_CERTIFICATES\fR,...]\ \fB\-\-trust\-store\fR=[\fIintermediate\-cas\fR=\fIINTERMEDIATE\-CAS\fR],[\fItrust\-anchors\fR=\fITRUST\-ANCHORS\fR]) [\fB\-\-async\fR] [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Create a TrustConfig.
.SH "EXAMPLES"
To create a TrustConfig from PEM certificate files, run:
.RS 2m
$ gcloud certificate\-manager trust\-configs create my\-trust\-config \e
\-\-description="my description" \e
\-\-labels=my\-key1=my\-value1,my\-key2=my\-value2 \e
\-\-trust\-store=trust\-anchors=ta.pem,\e
intermediate\-cas="ica1.pem;ica2.pem"
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
TrustConfig resource \- Name of the TrustConfig to create. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5trust_config\fR on the command line with a fully
specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fITRUST_CONFIG\fR
ID of the trustConfig or fully qualified identifier for the trustConfig.
To set the \f5trust_config\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5trust_config\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Certificate Manager location.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5trust_config\fR on the command line with a fully
specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
default value of location is [global].
.RE
.sp
.RE
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
At least one of these must be specified:
.RS 2m
.TP 2m
\fB\-\-allowlisted\-certificates\fR=[\fIALLOWLISTED_CERTIFICATES\fR,...]
Allowlisted PEM\-encoded certificates. Certificates should be provided in files.
For multiple file names, separate them by a comma (','). One file can contain
multiple certificates.
Examples:
.RS 2m
Single file: \-\-allowlisted\-certificates=ac.pem
.RE
.RS 2m
Multiple files: \-\-allowlisted\-certificates=ac1.pem,ac2.pem
.RE
.TP 2m
\fB\-\-trust\-store\fR=[\fIintermediate\-cas\fR=\fIINTERMEDIATE\-CAS\fR],[\fItrust\-anchors\fR=\fITRUST\-ANCHORS\fR]
Trust Store with the given trust anchor and intermediate CA PEM\-encoded
certificates. Certificates should be provided in files. For multiple file names,
separate them by a semicolon (';') and quote them ('"'). One file can contain
multiple certificates. Intermediate CAs are optional.
Examples:
.RS 2m
Single files: \-\-trust\-store trust\-anchors=ta.pem,intermediate\-cas=ica.pem
.RE
.RS 2m
No intermediate CAs: \-\-trust\-store trust\-anchors=ta.pem
.RE
.RS 2m
Multiple files: \-\-trust\-store trust\-anchors="ta1.pem;ta2.pem",intermediate\-cas="ica1.pem;ica2.pem"
.RE
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR
Human\-readable description of the resource.
.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.
.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 "API REFERENCE"
This command uses the \fBcertificatemanager/v1\fR API. The full documentation
for this API can be found at: https://cloud.google.com/certificate\-manager
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha certificate\-manager trust\-configs create
.RE
.RS 2m
$ gcloud beta certificate\-manager trust\-configs create
.RE