mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 20:36:39 +00:00
102 lines
3.3 KiB
Text
102 lines
3.3 KiB
Text
NAME
|
|
gcloud beta redis acl-policies create - create a Redis ACL Policy
|
|
|
|
SYNOPSIS
|
|
gcloud beta redis acl-policies create (ACL_POLICY : --region=REGION)
|
|
--rules=[rule=RULE],[username=USERNAME] [--request-id=REQUEST_ID]
|
|
[GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
(BETA) Create a Redis ACL Policy with the specified rules.
|
|
|
|
EXAMPLES
|
|
To create an ACL Policy named my-acl-policy in region us-east1 with two
|
|
rules, run:
|
|
|
|
$ gcloud beta redis acl-policies create my-acl-policy \
|
|
--region=us-east1 \
|
|
--rules="username=user1,rule='on ~keys:* +get'" \
|
|
--rules="username=user2,rule='off ~* -@all'"
|
|
|
|
POSITIONAL ARGUMENTS
|
|
Acl policy resource - The ACL Policy to create. The arguments in this
|
|
group can be used to specify the attributes of this resource. (NOTE) Some
|
|
attributes are not given arguments in this group but can be set in other
|
|
ways.
|
|
|
|
To set the project attribute:
|
|
◆ provide the argument acl_policy on the command line with a fully
|
|
specified name;
|
|
◆ provide the argument --project on the command line;
|
|
◆ set the property core/project.
|
|
|
|
This must be specified.
|
|
|
|
ACL_POLICY
|
|
ID of the acl policy or fully qualified identifier for the acl
|
|
policy.
|
|
|
|
To set the acl_policy attribute:
|
|
▸ provide the argument acl_policy on the command line.
|
|
|
|
This positional argument must be specified if any of the other
|
|
arguments in this group are specified.
|
|
|
|
--region=REGION
|
|
The name of the Redis region of the acl policy. Overrides the default
|
|
redis/region property value for this command invocation.
|
|
|
|
To set the region attribute:
|
|
▸ provide the argument acl_policy on the command line with a fully
|
|
specified name;
|
|
▸ provide the argument --region on the command line;
|
|
▸ set the property redis/region.
|
|
|
|
REQUIRED FLAGS
|
|
--rules=[rule=RULE],[username=USERNAME]
|
|
Required, The ACL rules within the ACL policy. Specify this flag
|
|
multiple times for multiple rules. Each rule consists of 'username' and
|
|
'rule'.
|
|
|
|
rule
|
|
The Redis ACL rule string.
|
|
|
|
username
|
|
The username for the ACL rule.
|
|
|
|
Shorthand Example:
|
|
|
|
--rules=rule=string,username=string --rules=rule=string,username=string
|
|
|
|
JSON Example:
|
|
|
|
--rules='[{"rule": "string", "username": "string"}]'
|
|
|
|
File Example:
|
|
|
|
--rules=path_to_file.(yaml|json)
|
|
|
|
OPTIONAL FLAGS
|
|
--request-id=REQUEST_ID
|
|
Idempotent request UUID.
|
|
|
|
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 redis/v1beta1 API. The full documentation for this
|
|
API can be found at: https://cloud.google.com/memorystore/docs/redis/
|
|
|
|
NOTES
|
|
This command is currently in beta and might change without notice. These
|
|
variants are also available:
|
|
|
|
$ gcloud redis acl-policies create
|
|
|
|
$ gcloud alpha redis acl-policies create
|
|
|