Closed svenrademakers closed 1 year ago
useful commands curl commands:
basic authentication
curl "https://192.168.123.2/api/bmc?opt=get&type=usb" --header "Authorization: Basic cm9vdDp0dXJpbmc=" -k
token based authentication
curl -X POST -d '{"username": "xx", "password": "xx"}' https://192.168.123.2/api/bmc/authenticate -k
curl "https://192.168.123.2/api/bmc?opt=get&type=usb" --header "Authorization: Bearer pcNMg8so7V3MmIWwmZWN4lLUS1erLDBX0oQsDfkj0Vhq85VJ8LLb7cWCwgxbZkFV" -k
This task can be picked up after authentication is implemented in the bmcd.
Acceptance Criteria