- NAME
-
- gcloud dataplex encryption-config create - create a Dataplex encryption config resource
- SYNOPSIS
-
-
gcloud dataplex encryption-config create
(ENCRYPTION_CONFIG
:--location
=LOCATION
--organization
=ORGANIZATION
) [--key
=KEY
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- An EncryptionConfig is created only for CMEK opted in organizations.
- EXAMPLES
-
To create an EncryptionConfig
default
in organizationtest-org-id
at locationus-central1
with keytest-key
, run:gcloud dataplex encryption-config create default --location=us-central1 --organization=test-org-id --key='test-key'
- POSITIONAL ARGUMENTS
-
-
Encryption config resource - Arguments and flags that define the Dataplex
EncryptionConfig you want to create. The arguments in this group can be used to
specify the attributes of this resource.
This must be specified.
ENCRYPTION_CONFIG
-
ID of the encryption config or fully qualified identifier for the encryption
config.
To set the
encryption_config
attribute:-
provide the argument
encryption_config
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
The location of the Dataplex resource.
To set the
location
attribute:-
provide the argument
encryption_config
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
dataplex/location
.
-
provide the argument
--organization
=ORGANIZATION
-
The name of encryption config to use.
To set the
organization
attribute:-
provide the argument
encryption_config
on the command line with a fully specified name; -
provide the argument
--organization
on the command line.
-
provide the argument
-
Encryption config resource - Arguments and flags that define the Dataplex
EncryptionConfig you want to create. The arguments in this group can be used to
specify the attributes of this resource.
- FLAGS
-
--key
=KEY
- The KMS key to use for encryption.
- 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 help
for details. - NOTES
-
This variant is also available:
gcloud alpha dataplex encryption-config create
gcloud dataplex encryption-config create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-13 UTC.