diff options
author | Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr> | 2020-03-06 18:18:20 +0100 |
---|---|---|
committer | Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr> | 2020-03-06 18:18:20 +0100 |
commit | d75c2d9b44062009823328db1a68563f9316f819 (patch) | |
tree | 99ec647f094c57a92805e4915448c1ab2bc92b08 /docs/credentials/extract_credentials.md | |
parent | Merge pull request #6194 from jakemcdermott/6191-fix-unnecessary-panel-reload (diff) | |
download | awx-d75c2d9b44062009823328db1a68563f9316f819.tar.xz awx-d75c2d9b44062009823328db1a68563f9316f819.zip |
Explain how to extract credentials/settings
Diffstat (limited to 'docs/credentials/extract_credentials.md')
-rw-r--r-- | docs/credentials/extract_credentials.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/credentials/extract_credentials.md b/docs/credentials/extract_credentials.md new file mode 100644 index 0000000000..7234d56517 --- /dev/null +++ b/docs/credentials/extract_credentials.md @@ -0,0 +1,11 @@ +Extract credentials +=================== + +Credentials and encrypted settings can be extracted using the following snippet: + +```python +# awx-manage shell_plus +>>> from awx.main.utils import decrypt_field +>>> cred = Credential.objects.get(name="my private key") +>>> decrypt_field(cred, "ssh_key_data") +``` |