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:
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'" }

--
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 [email protected] <mailto:[email protected]>. 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                   [email protected]
 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


--
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/vgkpo0%24u6f%241%40ciao.gmane.io.

Reply via email to