ezgh keys policy put <key> --file policy.json [--etag e] [flags]Replace a key’s policy with a JSON document, from --file, or stdin with --file -. The change applies only if the key hasn’t changed since --etag, so a save can’t erase someone else’s. The ETag is the key’s, not the policy’s: an alias write, a rename, a disable or a scheduled rotation moves it too. Without --etag, ezgh reads the current ETag just before saving; to protect a whole read, edit and save, pass the one ezgh keys policy get or ezgh keys get printed. A document that wouldn’t let you change it again is refused.
Part of ezgh keys policy.
Examples
ezgh keys policy put kms_… --file policy.json --etag '"0199…"'Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--etag |
string | the key’s ETag when it was read | |
--file |
string | the policy document, or - for stdin |
This command also takes the global flags.