gcloud dataplex encryption-config create

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 EncryptionConfigdefault in organizationtest-org-id at locationus-central1 with keytest-key, run:
gclouddataplexencryption-configcreatedefault--location=us-central1--organization=test-org-id--key='test-key'
POSITIONAL ARGUMENTS
Encryption config resource - Arguments and flags that define the DataplexEncryptionConfig you want to create. The arguments in this group can be used tospecify the attributes of this resource.

This must be specified.

ENCRYPTION_CONFIG
ID of the encryption config or fully qualified identifier for the encryptionconfig.

To set theencryption_config attribute:

  • provide the argumentencryption_config on the command line.

This positional argument must be specified if any of the other arguments in thisgroup are specified.

--location=LOCATION
The location of the Dataplex resource.

To set thelocation attribute:

  • provide the argumentencryption_config on the command line with afully specified name;
  • provide the argument--location on the command line;
  • set the propertydataplex/location.
--organization=ORGANIZATION
The name of encryption config to use.

To set theorganization attribute:

  • provide the argumentencryption_config on the command line with afully specified name;
  • provide the argument--organization on the command line.
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:
gcloudalphadataplexencryption-configcreate

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-13 UTC.