Flowg API (v0.45.6)
Fetch current profile
Fetch the profile of the currently authenticated user
Authorizations:
jwtAuthpatAuth
Responses
Response samples
- 200
- 401
- 500
Content type
application/json
{- "permissions": {
- "can_edit_acls": true,
- "can_edit_forwarders": true,
- "can_edit_pipelines": true,
- "can_edit_streams": true,
- "can_edit_transformers": true,
- "can_send_logs": true,
- "can_view_acls": true,
- "can_view_forwarders": true,
- "can_view_pipelines": true,
- "can_view_streams": true,
- "can_view_transformers": true
}, - "success": true,
- "user": {
- "name": "string",
- "roles": [
- "string"
]
}
}Restore Authentication Database
Upload a full snapshot of the authentication database.
Authorizations:
jwtAuthpatAuth
Request Body schema: multipart/form-data
| backup | string <binary> <application/octet-stream> (MultipartFile) |
Responses
Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Get Forwarder
Get forwarder
Authorizations:
jwtAuthpatAuth
path Parameters
| forwarder required | string non-empty |
Responses
Response samples
- 200
- 401
- 403
- 404
Content type
application/json
{- "forwarder": {
- "config": {
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "type": "http",
- "url": "string"
}, - "version": 2
}, - "success": true
}Save Forwarder
Save forwarder
Authorizations:
jwtAuthpatAuth
path Parameters
| forwarder required | string non-empty |
Request Body schema: application/json
object (ModelsForwarderV2) | |||||
| |||||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Get Pipeline
Get pipeline
Authorizations:
jwtAuthpatAuth
path Parameters
| pipeline required | string non-empty |
Responses
Response samples
- 200
- 401
- 403
- 404
Content type
application/json
{- "flow": {
- "edges": [
- {
- "id": "string",
- "source": "string",
- "sourceHandle": "string",
- "target": "string"
}
], - "nodes": [
- {
- "data": {
- "property1": "string",
- "property2": "string"
}, - "id": "string",
- "position": {
- "x": 0.1,
- "y": 0.1
}, - "type": "string"
}
], - "version": 2
}, - "success": true
}Save Pipeline
Save pipeline
Authorizations:
jwtAuthpatAuth
path Parameters
| pipeline required | string non-empty |
Request Body schema: application/json
object (ModelsFlowGraphV2) | |||||||
| |||||||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Ingest OpenTelemetry logs
Run OpenTelemetry logs through a pipeline
Authorizations:
jwtAuthpatAuth
path Parameters
| pipeline required | string non-empty |
Request Body schema: application/json
Array of objects (V1ResourceLogs) | |||||||
Array
| |||||||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "processed_count": 0,
- "success": true
}Ingest Structured Logs
Run structured logs through a pipeline
Authorizations:
jwtAuthpatAuth
path Parameters
| pipeline required | string non-empty |
Request Body schema: application/json
Array of objects or null | |||
Array
| |||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "processed_count": 0,
- "success": true
}Save Role
Save Role
Authorizations:
jwtAuthpatAuth
path Parameters
| role required | string non-empty |
Request Body schema: application/json
| scopes | Array of strings or null |
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 400
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Save User
Save User
Authorizations:
jwtAuthpatAuth
path Parameters
| user required | string non-empty |
Request Body schema: application/json
| password | string |
| roles | Array of strings or null |
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Patch User Roles
Patch User Roles
Authorizations:
jwtAuthpatAuth
path Parameters
| user required | string non-empty |
Request Body schema: application/json
| roles | Array of strings or null |
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Configure Stream
Configure Stream retention and indexes
Authorizations:
jwtAuthpatAuth
path Parameters
| stream required | string non-empty |
Request Body schema: application/json
object (ModelsStreamConfig) | |||||||
| |||||||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}Query Stream
Query logs from a stream
Authorizations:
jwtAuthpatAuth
path Parameters
| stream required | string non-empty |
query Parameters
| from required | string <date-time> |
| to required | string <date-time> |
| filter | null or string |
Responses
Response samples
- 200
- 400
- 401
- 403
- 500
Content type
application/json
{- "records": [
- {
- "fields": {
- "property1": "string",
- "property2": "string"
}, - "timestamp": "2019-08-24T14:15:22Z"
}
], - "success": true
}Watch Logs
Server-Sent Events endpoint to watch logs in real time.
Authorizations:
jwtAuthpatAuth
path Parameters
| stream required | string non-empty |
query Parameters
| filter | null or string |
Responses
Response samples
- 401
- 403
- 500
Content type
application/json
{- "code": 0,
- "context": {
- "property1": null,
- "property2": null
}, - "error": "string",
- "status": "string"
}Test Forwarder
Test forwarder
Authorizations:
jwtAuthpatAuth
path Parameters
| forwarder required | string non-empty |
Request Body schema: application/json
object or null | |||
| |||
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 404
- 500
Content type
application/json
{- "success": true
}Test Transformer
Test Transformer
Authorizations:
jwtAuthpatAuth
Request Body schema: application/json
| code | string |
object or null |
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "record": {
- "property1": "string",
- "property2": "string"
}, - "success": true
}Save Transformer
Save Transformer
Authorizations:
jwtAuthpatAuth
path Parameters
| transformer required | string non-empty |
Request Body schema: application/json
| script | string |
Responses
Request samples
- Payload
Content type
application/json
{ }Response samples
- 200
- 401
- 403
- 500
Content type
application/json
{- "success": true
}