Can't Create Schedule with Rest API in BareOS

67 views
Skip to first unread message

hòa ngô nguyễn minh

unread,
Nov 8, 2024, 4:13:22 AM11/8/24
to bareos-users
When I try create a schedule test with Rest API, i have a trouble, although i think attributes is correct. Please Help me!!
{
  "name": "Test11",
  "description": "Test11",
  "runCommand": [
    "Fri at 21:01"
  ],
  "enabled": "yes"
}
-----------------------
Code 500: Error: Internal Server Error
{ "message": "Could not add schedule with command 'configure add schedule name=Test11 description=Test11 runCommand=Friat21:01 enabled=yes'. Message: 'failed: configure: is an invalid command.\n'" }

Jörg Steffens

unread,
Nov 8, 2024, 5:39:09 AM11/8/24
to bareos...@googlegroups.com
Hello,

your REST-API server uses a Bareos user with insufficient permissions,
especially the Command ACL does not include the "configure" command.
When extending the permissions, this should work.

However, please note that the REST-API is: "This is an experimental and
preliminary backend for development purposes.".
The upcoming Bareos 24 will contain some grpc components that we plan to
extend in future versions. I assume that the REST-API will not be
developed further.

Regards,
Jörg

On 08.11.24 at 10:13 wrote hòa ngô nguyễn minh:
> --
> You received this message because you are subscribed to the Google
> Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bareos-users...@googlegroups.com
> <mailto:bareos-users...@googlegroups.com>.
> To view this discussion visit
> https://groups.google.com/d/msgid/bareos-users/1f35e82a-79fd-4139-bdaf-73ab4061ba15n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/1f35e82a-79fd-4139-bdaf-73ab4061ba15n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
https://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz


Message has been deleted

hòa ngô nguyễn minh

unread,
Nov 12, 2024, 4:26:21 AM11/12/24
to bareos-users
My REST-API server uses Bareos user with admin rights,
I read the BareOS Rest API modification guide and followed it but I can't create schedules through the API
Could you check it over and fix it for me?
-----------------------------------------------------------------------

1.png2.png

Best Regards,

Minh Hoa
Reply all
Reply to author
Forward
0 new messages