Example usage

Example request to run a job when the OAuth2 authorization is enabled:

curl \
  -X POST \
  'https://bacularis-api:9097/api/v3/jobs/run' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer 6bd7c887e768efb9a031d0545aa0552de0140fe2' \
  --data-raw '{"name": "BackupClient1", "level": "F", "client": "darkstar-fd","storage": "UP","pool": "Full-VTL","fileset": "ETC FS"}'

where:

  • API instance address is: bacularis-api

  • OAuth2 access token is: 6bd7c887e768efb9a031d0545aa0552de0140fe2

Example request to run a job when the Basic authentication is enabled:

curl \
  -X POST \
  'https://bacularis-api:9097/api/v3/jobs/run' \
  --basic \
  -u 'myuser:mypass' \
  -H 'Content-Type: application/json' \
  --data-raw '{"name": "BackupClient1", "level": "F", "client": "darkstar-fd","storage": "UP","pool": "Full-VTL","fileset": "ETC FS"}'

where:

  • API instance address is: bacularis-api

  • Basic user is: myuser

  • Basic user password is: mypass