managed/yba-cli/docs/yba_ear_gcp_create.md
Create a YugabyteDB Anywhere GCP encryption at rest configuration
Create a GCP encryption at rest configuration in YugabyteDB Anywhere
yba ear gcp create [flags]
yba ear gcp create --name <config-name> \
--credentials-file-path <credentials-file-path> \
--key-ring-name <key-ring-name> --crypto-key-name <crypto-key-name> \
--protection-level <protection-level>
--credentials-file-path string GCP Credentials File Path. Can also be set using environment variable GOOGLE_APPLICATION_CREDENTIALS.
--location string [Optional] The geographical region where the Cloud KMS resource is stored and accessed. (default "global")
--key-ring-name string [Required] Name of the key ring. If key ring with same name already exists then it will be used, else a new one will be created automatically.
--crypto-key-name string [Required] Name of the cryptographic key that will be used for encrypting and decrypting universe key. If crypto key with same name already exists then it will be used, else a new one will be created automatically.
--protection-level string [Optional] The protection level to use for this key. Allowed values: software, hsm. (default "hsm")
--endpoint string [Optional] GCP KMS Endpoint.
-h, --help help for create
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the configuration for the action. Required for create, delete, describe, update and refresh.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)