mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 23:08:48 +00:00
gcloud: Tue Mar 1 21:43:54 UTC 2022
This commit is contained in:
parent
c1c3b75313
commit
21878eea72
1018 changed files with 4838 additions and 3409 deletions
|
|
@ -30,23 +30,23 @@ EXAMPLES
|
|||
Create a new secret named 'my-secret' in 'us-central1' with data from a
|
||||
file:
|
||||
|
||||
$ gcloud secrets create my-secret --data-file=/tmp/secret
|
||||
--replication-policy=user-managed \
|
||||
--locations=us-central1
|
||||
$ gcloud secrets create my-secret --data-file=/tmp/secret \
|
||||
--replication-policy=user-managed --locations=us-central1
|
||||
|
||||
Create a new secret named 'my-secret' in 'us-central1' and 'us-east1' with
|
||||
the value "s3cr3t":
|
||||
|
||||
$ printf "s3cr3t" | gcloud secrets create my-secret --data-file=-
|
||||
--replication-policy=user-managed --locations=us-central1,us-east1
|
||||
$ printf "s3cr3t" | gcloud secrets create my-secret --data-file=- \
|
||||
--replication-policy=user-managed \
|
||||
--locations=us-central1,us-east1
|
||||
|
||||
Create a new secret named 'my-secret' in 'us-central1' and 'us-east1' with
|
||||
the value "s3cr3t" in PowerShell (Note: PowerShell will add a newline to
|
||||
the resulting secret):
|
||||
|
||||
$ Write-Output "s3cr3t" | gcloud secrets create my-secret \
|
||||
--data-file=-
|
||||
--replication-policy=user-managed --locations=us-central1,us-east1
|
||||
--data-file=- --replication-policy=user-managed \
|
||||
--locations=us-central1,us-east1
|
||||
|
||||
Create a secret with an automatic replication policy and a next rotation
|
||||
time:
|
||||
|
|
@ -57,8 +57,8 @@ EXAMPLES
|
|||
Create a secret with an automatic replication policy and a rotation period:
|
||||
|
||||
$ gcloud secrets create my-secret \
|
||||
--next-rotation-time="2030-01-01T15:30:00-05:00"
|
||||
--rotation-period="7200s"
|
||||
--next-rotation-time="2030-01-01T15:30:00-05:00" \
|
||||
--rotation-period="7200s"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
Secret resource - The secret to create. This represents a Cloud resource.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue