---
title: "ezgh keys policy get"
description: "Show a key's policy."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh keys policy get

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh keys policy get <key>
```

Print a key's policy as a JSON document, ready to edit and give to `ezgh keys policy put`. The key's ETag goes to stderr.

Part of [`ezgh keys policy`](/cli/reference/keys-policy).

## Examples

```sh
ezgh keys policy get kms_… > policy.json
```

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/keys-policy-get/index.mdx
