Dear Jörg Steffens,
When I made another profile with complete access, I was able to resolve the
aforementioned issue. Another issue, though, is that I receive the
following error when I set the "runCommand" argument to "run" and begin
running via the REST API. Additionally, I'm not sure how to set up the
"Create Schedule" function when passing JSON from a REST API.
Would you please check my configure files?
--------------------------------
models.py:
class scheduleResource(BaseModel):
name: str = Body(..., title="Schedule name")
description: Optional[str] = Body(None, title="Schedule Description")
run: Optional[List[str]] = Body(
None,
title="A list of run statements",
example=["Full 1st Sat at 12:00", "Incremental Sun-Fri at 11:00"],
)
enabled: Optional[bareosBool] = Body(
None, title="Schedule enabled? Yes, if unset", example="no"
)
---------------------------------------------
openapi.json:
"run": {
"title": "A list of run statements",
"type": "array",
"items": {
"type": "string"
},
"example": [
"Full 1st Sat at 12:00",
"Incremental Sun-Fri at 11:00"
]
},
--------------------------------------------------------
Error:
{ "message": "Could not add schedule with command 'configure add schedule
name=Test description=Test123 run=FullMondayat17:50 enabled=yes'. Message:
'failed: configure error: Time must be preceded by keyword AT.\nconfigure
error: unexpected token 105 BCT_UNQUOTED_STRING in resource
definition\nconfigure error: ParseAllTokens failed.\n'" }
[image: 1.png]
Best Regard,
Minh Hoa
--
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/276489c3-3a47-4d77-95c4-5c8cad959dc3n%40googlegroups.com.