redhat-cop / controller_configuration

A collection of roles to manage Ansible Controller and previously Ansible Tower
https://galaxy.ansible.com/infra/controller_configuration
GNU General Public License v3.0
263 stars 138 forks source link

API JSON don't contain information about sourced credentials #897

Open skynetmo opened 3 weeks ago

skynetmo commented 3 weeks ago

Hello,

i was implementing a playbook to get the list of sourced credentials from another credentials under AAP , but on the JSON i don't have any information that indicate those credentials are sourced from CyberArk for example . the inputs field on the JSON response is empty . is there a field on the JSON that give me details about the credential ? also is it possible to use controller_configuration collection to get this information ?

Thank you in advance,

sean-m-sullivan commented 3 weeks ago

You are correct there is no information from the controller application about sourced credentials under the specific credential. Which Json are you referring to, an export, or your config?

The credential API has it under api/v2/credentials/#/input_sources or api/v2/credential_input_sources/#

There is no indication that one is managed by the other in the config, and they have a relation in the database/api to each other

mondherGL commented 2 weeks ago

Hello ,

is there a way to get credentials informations using controller_configuration collection , for axample all credentials name and all credential_input_sources related to a credential ?