mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-04-21 12:32:38 +00:00
EventManager: add "on-demand" trigger
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -2213,6 +2213,41 @@ paths:
|
||||
$ref: '#/components/responses/InternalServerError'
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultResponse'
|
||||
'/eventrules/run/{name}':
|
||||
parameters:
|
||||
- name: name
|
||||
in: path
|
||||
description: on-demand rule name
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
post:
|
||||
tags:
|
||||
- event manager
|
||||
summary: Run an on-demand event rule
|
||||
description: The rule's actions will run in background. SFTPGo will not monitor any concurrency and such. If you want to be notified at the end of the execution please add an appropriate action
|
||||
operationId: run_event_rule
|
||||
responses:
|
||||
'202':
|
||||
description: successful operation
|
||||
content:
|
||||
application/json; charset=utf-8:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ApiResponse'
|
||||
example:
|
||||
message: Event rule started
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest'
|
||||
'401':
|
||||
$ref: '#/components/responses/Unauthorized'
|
||||
'403':
|
||||
$ref: '#/components/responses/Forbidden'
|
||||
'404':
|
||||
$ref: '#/components/responses/NotFound'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalServerError'
|
||||
default:
|
||||
$ref: '#/components/responses/DefaultResponse'
|
||||
/events/fs:
|
||||
get:
|
||||
tags:
|
||||
@@ -4667,6 +4702,7 @@ components:
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
description: |
|
||||
Supported event trigger types:
|
||||
* `1` - Filesystem event
|
||||
@@ -4674,6 +4710,7 @@ components:
|
||||
* `3` - Schedule
|
||||
* `4` - IP blocked
|
||||
* `5` - Certificate renewal
|
||||
* `6` - On demand, like schedule but executed on demand
|
||||
LoginMethods:
|
||||
type: string
|
||||
enum:
|
||||
|
||||
Reference in New Issue
Block a user