1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +00:00
gcloud-help/gcloud/recaptcha/keys/update

172 lines
6 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud recaptcha keys update - update a Key
SYNOPSIS
gcloud recaptcha keys update KEY [--display-name=DISPLAY_NAME]
2023-08-23 10:30:46 +00:00
[--labels=[KEY=VALUE,...]]
2024-09-18 09:49:45 +00:00
[--express | --android (--allow-all-package-names
2022-03-01 04:29:52 +00:00
| --package-names=[PACKAGE_NAMES,...])
2023-05-17 10:38:17 +00:00
| [--ios : --allow-all-bundle-ids | --bundle-ids=[BUNDLE_IDS,...]
2024-07-31 09:35:16 +00:00
--key-id=KEY_ID --private-key-file=PATH_TO_FILE --team-id=TEAM_ID]
| [--web : --allow-amp-traffic
2022-03-01 04:29:52 +00:00
--security-preference=SECURITY_PREFERENCE --allow-all-domains
| --domains=[DOMAINS,...]]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Update a reCAPTCHA Key.
EXAMPLES
To update the information of a reCAPTCHA key, run:
$ gcloud recaptcha keys update test-key --labels="foo=bar" --web \
--domains=test.com.mx
POSITIONAL ARGUMENTS
Key resource - The reCAPTCHA Key to update. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but
2023-05-04 10:43:54 +00:00
can be set in other ways.
To set the project attribute:
2022-03-01 04:29:52 +00:00
◆ provide the argument key on the command line with a fully specified
name;
2024-07-31 09:35:16 +00:00
◆ provide the argument --project on the command line;
◆ set the property core/project.
2022-03-01 04:29:52 +00:00
This must be specified.
KEY
2023-05-04 10:43:54 +00:00
ID of the key or fully qualified identifier for the key.
To set the key attribute:
2022-03-01 04:29:52 +00:00
▸ provide the argument key on the command line.
FLAGS
--display-name=DISPLAY_NAME
A human-readable name for the key. Typically a site or app name.
2023-08-23 10:30:46 +00:00
--labels=[KEY=VALUE,...]
2022-03-01 04:29:52 +00:00
List of label KEY=VALUE pairs to add.
At most one of these can be specified:
2024-09-18 09:49:45 +00:00
Options for the creation of a site key for Express.
--express
Creates a Key configured for Express assessments.
2022-03-01 04:29:52 +00:00
Options for the creation of a site key for Android.
--android
Creates a Key configured for Android devices.
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2022-03-01 04:29:52 +00:00
Exactly one of these must be specified:
--allow-all-package-names
If set, package name enforcement will NOT be enabled on this key.
--package-names=[PACKAGE_NAMES,...]
Android package names of apps allowed to use the key.
Example of a valid package name: 'com.companyname.appname'
Options for the creation of a site key for iOS.
--ios
Creates a Key configured for iOS devices.
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2022-03-01 04:29:52 +00:00
2023-05-17 10:38:17 +00:00
At most one of these can be specified:
2022-03-01 04:29:52 +00:00
--allow-all-bundle-ids
If set, bundle id enforcement will NOT be enabled on this key.
--bundle-ids=[BUNDLE_IDS,...]
iOS bundle ids of apps allowed to use the key.
Example of a valid bundle id:
'com.companyname.productname.appname'
2023-05-17 10:38:17 +00:00
Fields that are required to perform Apple-specific integrity checks
(recommended for iOS keys).
--key-id=KEY_ID
The Apple developer key ID (10-character string).
This flag argument must be specified if any of the other
arguments in this group are specified.
2024-07-31 09:35:16 +00:00
--private-key-file=PATH_TO_FILE
2023-05-24 10:23:00 +00:00
File path to a private key (downloaded as a text file with a .p8
file extension) generated for your Apple Developer account.
2024-07-31 09:35:16 +00:00
Ensure that DeviceCheck is enabled for the private key. Use a
full or relative path to a local file containing the value of
private_key_file.
2023-05-17 10:38:17 +00:00
This flag argument must be specified if any of the other
arguments in this group are specified.
--team-id=TEAM_ID
The Apple team ID (10-character string) owning the provisioning
profile used to build your application.
This flag argument must be specified if any of the other
arguments in this group are specified.
2022-03-01 04:29:52 +00:00
Options for the creation of a site key for web.
--web
Creates a Key configured for websites.
2022-08-10 08:48:58 +00:00
This flag argument must be specified if any of the other arguments
in this group are specified.
2022-03-01 04:29:52 +00:00
--allow-amp-traffic
Whether this key can be used on AMP (Accelerated Mobile Pages)
websites.
--security-preference=SECURITY_PREFERENCE
Represents the possible challenge frequency and difficulty
configurations for a web key. usability: show fewer and easier
challenges. balance: show balanced (in amount and difficulty)
challenges. security: show more and harder challenges.
SECURITY_PREFERENCE must be one of: balance,
challenge-security-preference-unspecified, security, usability.
At most one of these can be specified:
--allow-all-domains
If set, domain name enforcement will NOT be enabled on this key.
--domains=[DOMAINS,...]
Domains or subdomains of websites allowed to use the key. All
subdomains of an allowed domain are automatically allowed. A
valid domain requires a host and must not include any path, port,
query or fragment.
Examples of valid domains: 'example.com' 'subdomain.example.com'
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.
API REFERENCE
This command uses the recaptchaenterprise/v1 API. The full documentation
for this API can be found at:
https://cloud.google.com/recaptcha-enterprise/
NOTES
This variant is also available:
$ gcloud alpha recaptcha keys update