[prev in list] [next in list] [prev in thread] [next in thread]
List: bacula-users
Subject: Re: [Bacula-users] Baculum API Syntax
From: Marcin Haba <ganiuszka () gmail ! com>
Date: 2020-04-17 16:27:02
Message-ID: CAOqQBvO0N-E9J54ODS2Wx=4q7AdaSDySpco9HhizoMJQrm+kxw () mail ! gmail ! com
[Download RAW message or body]
Hello Ethan,
According to the documentation you need to use 'create' keyword with
your POST request parameters. Instead of using:
name=JOB_TEST_02
you need to use:
create[name]=JOB_TEST_02
and so on.
Best regards,
Marcin Haba (gani)
On Fri, 17 Apr 2020 at 17:03, Ethan King <ethankingatwork@gmail.com> wrote:
>
> I am running Baculum/Bacula 9.6.3 and everything seems to be working great. My \
> question regarding the syntax of Baculum Web API. I am trying to initiate a job \
> run using the "/api/v1/jobs/run" endpoint but can't figure out the syntax based on \
> the documentation (https://www.bacula.org/downloads/baculum/baculum-api).
> If you could reply with a simple example of the URL string that shows the \
> parameters in their correct format, I would greatly appreciate it.
> When I run something along the lines of
>
> /api/v1/jobs/run?name=JOB_TEST_02&client=DAL-FVSWRK-006-fd&storage=STORAGE_01&pool=POOL_01&fileset=Test_File_Set_01&level=F
>
> I am getting a response of:
>
> {
> "output": "Job does not exist.",
> "error": 50
> }
>
> I can successfully run the job from the Baculum UI.
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
--
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ
"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic