mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Explain how to extract credentials/settings
This commit is contained in:
11
docs/credentials/extract_credentials.md
Normal file
11
docs/credentials/extract_credentials.md
Normal file
@@ -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")
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user