set-gcp-config-source-configuration

Sets the configuration for the GCP secrets configuration source.

Synopsis

asadmin [asadmin-options] set-gcp-config-source-configuration [--help]
[--projectname=projectname]
[--jsonkeyfile=jsonkeyfile]
[--target=server]
[--dynamic={false|true}]
[--enabled={true|false}]

Description

The set-gcp-config-source-configuration provides configuration options for the config source which fetches data from GCP Secrets Manager.

Options

asadmin-options

Options for the asadmin utility. For information about these options, see the asadmin help page.

--help
-?

Displays the help text for the subcommand.

--projectname

The name of the GCP project to fetch secrets from.

--jsonkeyfile

The path to the JSON key file which a service account uses to authenticate with GCP Secrets. This file will be copied to the config/ directory.

--target

Specifies the target where the configuration source resides.
Valid values are as follows:

server

Specifies the DAS (default).

instance-name

Specifies a Payara Server instance.

cluster-name

Specifies a cluster.

configuration-name

Specifies a named configuration.

--dynamic

Configure the config source dynamically, which will not require a restart.

--enabled

Enables or disables the config source.

Example

Example 1 Setting the configuration of the GCP Config Source

This example configures the GCP Config Source.

asadmin set-gcp-config-source-configuration --dynamic true --enabled true --jsonKeyFile /path/to/token/file.json --projectName project-name

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also