summaryrefslogtreecommitdiffstats
path: root/docs/credentials/extract_credentials.md
diff options
context:
space:
mode:
authorPierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>2020-03-06 18:18:20 +0100
committerPierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>2020-03-06 18:18:20 +0100
commitd75c2d9b44062009823328db1a68563f9316f819 (patch)
tree99ec647f094c57a92805e4915448c1ab2bc92b08 /docs/credentials/extract_credentials.md
parentMerge pull request #6194 from jakemcdermott/6191-fix-unnecessary-panel-reload (diff)
downloadawx-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.md11
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")
+```