mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Thu Jul 17 11:02:31 UTC 2025
This commit is contained in:
parent
e53f7148d8
commit
fe3a430c1d
365 changed files with 6027 additions and 1863 deletions
|
|
@ -14,25 +14,25 @@ DESCRIPTION
|
|||
consists of a member, a role, and an optional condition.
|
||||
|
||||
EXAMPLES
|
||||
To add an IAM policy binding for the role of 'roles/editor' for the user
|
||||
'test-user@gmail.com' with backup 'my-backup' in instance 'my-instance' and
|
||||
cluster 'my-cluster', run:
|
||||
To add an IAM policy binding for the role of roles/editor for the user
|
||||
test-user@gmail.com with backup my-backup in instance my-instance and
|
||||
cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups add-iam-policy-binding my-backup \
|
||||
--instance='my-instance' --cluster='my-cluster' \
|
||||
--member='user:test-user@gmail.com' --role='roles/editor'
|
||||
--instance=`my-instance` --cluster=`my-cluster` \
|
||||
--member=`user:test-user@gmail.com` --role=`roles/editor`
|
||||
|
||||
To add an IAM policy binding which expires at the end of the year 2020 for
|
||||
the role of 'roles/bigtable.admin' and the user 'test-user@gmail.com' with
|
||||
backup 'my-backup' in instance 'my-instance' and cluster 'my-cluster', run:
|
||||
the role of roles/bigtable.admin and the user test-user@gmail.com with
|
||||
backup my-backup in instance my-instance and cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups add-iam-policy-binding my-backup \
|
||||
--instance='my-instance' --cluster='my-cluster' \
|
||||
--member='user:test-user@gmail.com' \
|
||||
--role='roles/bigtable.admin' \
|
||||
--condition='expression=request.time <
|
||||
timestamp("2021-01-01T00:00:00Z"),title=expires_end_of_2020,descrip\
|
||||
tion=Expires at midnight on 2020-12-31'
|
||||
--instance=`my-instance` --cluster=`my-cluster` \
|
||||
--member=`user:test-user@gmail.com` \
|
||||
--role=`roles/bigtable.admin` \
|
||||
--condition=`expression=request.time < \
|
||||
timestamp("2021-01-01T00:00:00Z"),title=expires_end_of_2020,\
|
||||
description=Expires at midnight on 2020-12-31`
|
||||
|
||||
See https://cloud.google.com/iam/docs/managing-policies for details of
|
||||
policy role and member types.
|
||||
|
|
@ -61,7 +61,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -69,7 +69,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -14,30 +14,30 @@ DESCRIPTION
|
|||
(ALPHA) Creates a backup of a Cloud Bigtable table.
|
||||
|
||||
EXAMPLES
|
||||
To create a backup 'BACKUP_NAME' asyncronously from table 'TABLE_NAME'
|
||||
which expires at '2019-03-30T10:49:41Z', run:
|
||||
To create a backup BACKUP_NAME asyncronously from table TABLE_NAME which
|
||||
expires at 2019-03-30T10:49:41Z, run:
|
||||
|
||||
$ gcloud alpha bigtable backups create BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--table=TABLE_NAME --expiration-date=2019-03-30T10:49:41Z \
|
||||
--async
|
||||
|
||||
To create a backup 'BACKUP_NAME' syncronously from table 'TABLE_NAME' which
|
||||
To create a backup BACKUP_NAME syncronously from table TABLE_NAME which
|
||||
expires in 2 weeks from now, run:
|
||||
|
||||
$ gcloud alpha bigtable backups create BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--table=TABLE_NAME --retention-period=2w
|
||||
|
||||
To create a hot backup 'BACKUP_NAME' from table 'TABLE_NAME' which expires
|
||||
in 2 weeks from now, run:
|
||||
To create a hot backup BACKUP_NAME from table TABLE_NAME which expires in 2
|
||||
weeks from now, run:
|
||||
|
||||
$ gcloud alpha bigtable backups create BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--table=TABLE_NAME --retention-period=2w --backup-type=HOT
|
||||
|
||||
To create a hot backup 'BACKUP_NAME' from table 'TABLE_NAME' which will be
|
||||
converted to a standard backup at '2019-03-31T10:49:41Z' and expires in 2
|
||||
To create a hot backup BACKUP_NAME from table TABLE_NAME which will be
|
||||
converted to a standard backup at 2019-03-31T10:49:41Z and expires in 2
|
||||
weeks from now, run:
|
||||
|
||||
$ gcloud alpha bigtable backups create BACKUP_NAME \
|
||||
|
|
@ -45,7 +45,7 @@ EXAMPLES
|
|||
--table=TABLE_NAME --retention-period=2w --backup-type=HOT \
|
||||
--hot-to-standard-time=2019-03-31T10:49:41Z
|
||||
|
||||
To create a hot backup 'BACKUP_NAME' from table 'TABLE_NAME' which will be
|
||||
To create a hot backup BACKUP_NAME from table TABLE_NAME which will be
|
||||
converted to a standard backup in 1 week from now and expires in 2 weeks
|
||||
from now, run:
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -86,7 +86,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -46,7 +46,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -47,7 +47,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ DESCRIPTION
|
|||
(ALPHA) Get an IAM policy on a Cloud Bigtable Backup.
|
||||
|
||||
EXAMPLES
|
||||
To get the IAM policy on the backup 'my-backup' in instance 'my-instance'
|
||||
and cluster 'my-cluster', run:
|
||||
To get the IAM policy on the backup my-backup in instance my-instance and
|
||||
cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups get-iam-policy my-backup \
|
||||
--instance='my-instance' --cluster='my-cluster'
|
||||
--instance=`my-instance` --cluster=`my-cluster`
|
||||
|
||||
See https://cloud.google.com/iam/docs/managing-policies for more
|
||||
information.
|
||||
|
|
@ -45,7 +45,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -53,7 +53,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -14,26 +14,25 @@ DESCRIPTION
|
|||
binding consists of a member, a role, and an optional condition.
|
||||
|
||||
EXAMPLES
|
||||
To remove an IAM policy binding for the role of 'roles/editor' for the user
|
||||
'test-user@gmail.com' with backup 'my-backup' in instance 'my-instance' and
|
||||
cluster 'my-cluster', run:
|
||||
To remove an IAM policy binding for the role of roles/editor for the user
|
||||
test-user@gmail.com with backup my-backup in instance my-instance and
|
||||
cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups remove-iam-policy-binding \
|
||||
my-backup --instance='my-instance' --cluster='my-cluster' \
|
||||
--member='user:test-user@gmail.com' --role='roles/editor'
|
||||
my-backup --instance=`my-instance` --cluster=`my-cluster` \
|
||||
--member=`user:test-user@gmail.com` --role=`roles/editor`
|
||||
|
||||
To remove an IAM policy binding which expires at the end of the year 2020
|
||||
for the role of 'roles/bigtable.admin' and the user 'test-user@gmail.com'
|
||||
with backup 'my-backup' in instance 'my-instance' and cluster 'my-cluster',
|
||||
run:
|
||||
for the role of roles/bigtable.admin and the user test-user@gmail.com with
|
||||
backup my-backup in instance my-instance and cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups remove-iam-policy-binding \
|
||||
my-backup --instance='my-instance' --cluster='my-cluster' \
|
||||
--member='user:test-user@gmail.com' \
|
||||
--role='roles/bigtable.admin' \
|
||||
--condition='expression=request.time <
|
||||
timestamp("2021-01-01T00:00:00Z"),title=expires_end_of_2020,descrip\
|
||||
tion=Expires at midnight on 2020-12-31'
|
||||
my-backup --instance=`my-instance` --cluster=`my-cluster` \
|
||||
--member=`user:test-user@gmail.com` \
|
||||
--role=`roles/bigtable.admin` \
|
||||
--condition=`expression=request.time < \
|
||||
timestamp("2021-01-01T00:00:00Z"),title=expires_end_of_2020,\
|
||||
description=Expires at midnight on 2020-12-31`
|
||||
|
||||
See https://cloud.google.com/iam/docs/managing-policies for details of
|
||||
policy role and member types.
|
||||
|
|
@ -62,7 +61,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -70,7 +69,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ DESCRIPTION
|
|||
(ALPHA) Set an IAM policy on a Cloud Bigtable Backup.
|
||||
|
||||
EXAMPLES
|
||||
To set the IAM policy from file 'my-policy' on the backup 'my-backup' in
|
||||
instance 'my-instance' and cluster 'my-cluster', run:
|
||||
To set the IAM policy from file my-policy on the backup my-backup in
|
||||
instance my-instance and cluster my-cluster, run:
|
||||
|
||||
$ gcloud alpha bigtable backups set-iam-policy my-backup \
|
||||
--instance='my-instance' --cluster='my-cluster' my-policy
|
||||
--instance=`my-instance` --cluster=`my-cluster` my-policy
|
||||
|
||||
See https://cloud.google.com/iam/docs/managing-policies for more
|
||||
information.
|
||||
|
|
@ -44,7 +44,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -52,7 +52,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
|
|
@ -14,27 +14,27 @@ DESCRIPTION
|
|||
--expiration-date and --retention-period.
|
||||
|
||||
EXAMPLES
|
||||
To update the expire time of backup 'BACKUP_NAME' to 7 days from now, run:
|
||||
To update the expire time of backup BACKUP_NAME to 7 days from now, run:
|
||||
|
||||
$ gcloud alpha bigtable backups update BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--retention-period=7d
|
||||
|
||||
To update the hot-to-standard time of backup 'BACKUP_NAME' to
|
||||
'2019-03-31T10:49:41Z', run:
|
||||
To update the hot-to-standard time of backup BACKUP_NAME to
|
||||
2019-03-31T10:49:41Z, run:
|
||||
|
||||
$ gcloud alpha bigtable backups update BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--hot-to-standard-time=2019-03-31T10:49:41Z
|
||||
|
||||
To update the hot-to-standard time of backup 'BACKUP_NAME' to 7 days from
|
||||
To update the hot-to-standard time of backup BACKUP_NAME to 7 days from
|
||||
now, run:
|
||||
|
||||
$ gcloud alpha bigtable backups update BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
--hot-to-standard-time=+P7d
|
||||
|
||||
To clear the hot-to-standard time of backup 'BACKUP_NAME', run:
|
||||
To clear the hot-to-standard time of backup BACKUP_NAME, run:
|
||||
|
||||
$ gcloud alpha bigtable backups update BACKUP_NAME \
|
||||
--instance=INSTANCE_NAME --cluster=CLUSTER_NAME \
|
||||
|
|
@ -64,7 +64,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--cluster=CLUSTER
|
||||
Name of the Cloud Bigtable cluster.
|
||||
Name of the Bigtable cluster.
|
||||
|
||||
To set the cluster attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
@ -72,7 +72,7 @@ POSITIONAL ARGUMENTS
|
|||
▸ provide the argument --cluster on the command line.
|
||||
|
||||
--instance=INSTANCE
|
||||
Name of the Cloud Bigtable instance.
|
||||
Name of the Bigtable instance.
|
||||
|
||||
To set the instance attribute:
|
||||
▸ provide the argument backup on the command line with a fully
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue