Hi Guys,
I have a excel sheet with 10 machines and username and password for each machine
1. Would like to store them in vault ...
2. Using the http api to post them to vault.
3. I convert the excel sheet to json format.
Here is the post I am using
curl -H "X-Vault-Token: 1234-1234-1234-1234-1234" -H "Content-Type: application/json" -X POST -d '@test.json'
http://10.12.12.111:8200/v1/secret/machines/I get error about machines/ can't end in / so I remove it.
curl -H "X-Vault-Token: 1234-1234-1234-1234-1234" -H
"Content-Type: application/json" -X POST -d '@test.json'
http://10.12.12.111:8200/v1/secret/machinesSo what I tried to do is put all machines ip address under machines and the username and password per machine
/secret/machines/
10.1.12.10 username=test2 password=test2
/secret/machines/
10.1.12.11 username=test3 password=test3
/secret/machines/
10.1.12.12 username=test4 password=test4
/secret/machines/
10.1.12.13 username=test5 password=test5
Here is my json file format
{"Machine": "10.1.12.10", "Username": "test2", "password": "test2"},
{"Machine": "10.1.12.11", "Username": "test3", "password": "test3"},
{"Machine": "10.1.12.12", "Username": "test4", "password": "test4"},
{"Machine": "10.1.12.13", "Username": "test5", "password": "test5"},
Looking for the format to upload the json to vault or if a page about vault json format data page is available would be great....??? Thanks