Difference between revisions of "Gcloud kms keys"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
  [[gcloud kms keys list]]
 
  [[gcloud kms keys list]]
 +
[[gcloud kms keys list --location global --keyring sops]]
 +
[[gcloud kms keys create]]
  
<pre>
+
== Help ==
ERROR: (gcloud.kms.keys) Command name argument expected.
 
  
Available groups for gcloud kms keys:
+
ERROR: (gcloud.kms.keys) Command name argument expected.
 
+
      versions                Create and manage versions.
+
Available groups for gcloud kms keys:
 
+
Available commands for gcloud kms keys:
+
      versions                Create and manage versions.
 
+
      add-iam-policy-binding    Add IAM policy binding for a kms key.
+
Available commands for gcloud kms keys:
      create                    Create a new key.
+
      describe                  Get metadata for a given key.
+
      [[gcloud kms keys add-iam-policy-binding|add-iam-policy-binding]]     Add IAM policy binding for a kms key.
      get-iam-policy            Get the IAM policy for a key.
+
      [[gcloud kms keys create|create]]                     Create a new key.
      list                      List the keys within a keyring.
+
      [[gcloud kms keys describe|describe]]                   Get metadata for a given key.
      remove-iam-policy-binding  Remove IAM policy binding for a kms key.
+
      [[gcloud kms keys get-iam-policy|get-iam-policy]]             Get the IAM policy for a key.
      remove-rotation-schedule  Remove the rotation schedule for a key.
+
      [[gcloud kms keys list|list]]                       List the keys within a keyring.
      set-iam-policy            Set the IAM policy for a key.
+
      [[gcloud kms keys remove-iam-policy-binding|remove-iam-policy-binding]] Remove IAM policy binding for a kms key.
      set-primary-version        Set the primary version of a key.
+
      [[gcloud kms keys remove-rotation-schedule|remove-rotation-schedule]]   Remove the rotation schedule for a key.
      set-rotation-schedule      Update the rotation schedule for a key.
+
      [[gcloud kms keys set-iam-policy|set-iam-policy]]             Set the IAM policy for a key.
      update                    Update a key.
+
      [[gcloud kms keys set-primary-version|set-primary-version]]       Set the primary version of a key.
 
+
      [[gcloud kms keys set-rotation-schedule|set-rotation-schedule]]     Update the rotation schedule for a key.
For detailed information on this command and its flags, run:
+
      [[gcloud kms keys update|update]]                     Update a key.
  gcloud kms keys --help
+
</pre>
+
For detailed information on this command and its flags, run:
 +
  gcloud kms keys --help
  
 
== See also ==
 
== See also ==
 +
* {{gcloud kms keys}}
 
* {{gcloud kms}}
 
* {{gcloud kms}}
 
  
 
[[Category:GCP]]
 
[[Category:GCP]]
 +
[[Category:KMS]]

Latest revision as of 09:06, 31 October 2022

https://cloud.google.com/sdk/gcloud/reference/kms/keys

gcloud kms keys list
gcloud kms keys list --location global --keyring sops
gcloud kms keys create

Help[edit]

ERROR: (gcloud.kms.keys) Command name argument expected.

Available groups for gcloud kms keys:

      versions                Create and manage versions.

Available commands for gcloud kms keys:

      add-iam-policy-binding     Add IAM policy binding for a kms key.
      create                     Create a new key.
      describe                   Get metadata for a given key.
      get-iam-policy             Get the IAM policy for a key.
      list                       List the keys within a keyring.
      remove-iam-policy-binding  Remove IAM policy binding for a kms key.
      remove-rotation-schedule   Remove the rotation schedule for a key.
      set-iam-policy             Set the IAM policy for a key.
      set-primary-version        Set the primary version of a key.
      set-rotation-schedule      Update the rotation schedule for a key.
      update                     Update a key.

For detailed information on this command and its flags, run:
  gcloud kms keys --help

See also[edit]

Advertising: