Thanks for answering and sharing those links. But I really don’t want to install any package just simple use API links.
I want to achieve below:
- GET username / password / url
- POST username / password / url
- UPDATE password for specific username
So If I asked what should be the complete API command to first authenticate and if I run command to get/update/add credentials.
For example:
curl https://domain.passbolt/------- ?
Just for your understanding what i want to achieve is;
I have written an Ansible playbook which checks the inventory ( hosts ) and then update the password of all those host by checking it from TEAMPASS ( Now how to use the API of PASSBOLT to get a password and if there is no password then create that entry )
for example:
# Teampass, ask for a new password string
#
- name: teampass - generate new password
uri:
url: “{{ api_url }}/new_password/{{ password_length }}{{ api_suffix }}”
headers: “{{ default_headers }}”
return_content: yes
body_format: json
register: new_password
failed_when: “‘password’ not in new_password.json”
I think there should be very simple two-line of commands
- Authenticate to PASSBOLT server
- GET username and password
- PUT/UPDATE username and password