Skip to main content

Flowg API (v0.64.1)

auth

List Auth Providers

List available auth providers

Responses

Response samples

Content type
application/json
{
  • "auth_providers": [
    ],
  • "success": true
}

Get Auth Provider

Get Auth Provider

Authorizations:
jwtAuthpatAuth
path Parameters
auth_provider
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "auth_provider": {
    },
  • "success": true
}

Save Auth Provider

Save auth provider

Authorizations:
jwtAuthpatAuth
path Parameters
auth_provider
required
string non-empty
Request Body schema: application/json
required
object (ModelsAuthProvider)
name
required
string
display_name
required
string
required
object or object (ModelsAuthProviderConfig)

Responses

Request samples

Content type
application/json
{
  • "auth_provider": {
    }
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete Auth Provider

Delete Auth Provider

Authorizations:
jwtAuthpatAuth
path Parameters
auth_provider
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Change Password

Change Password of current user

Authorizations:
jwtAuthpatAuth
Request Body schema: application/json
old_password
required
string non-empty
new_password
required
string non-empty

Responses

Request samples

Content type
application/json
{
  • "new_password": "string",
  • "old_password": "string"
}

Response samples

Content type
application/json
{
  • "success": true
}

Authenticate

Create new Session cookie

Request Body schema: application/json
username
required
string
password
required
string

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "username": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "token": "string"
}

Fetch current profile

Fetch the profile of the currently authenticated user

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "permissions": {
    },
  • "success": true,
  • "user": {
    }
}

backup

Backup Authentication Database

Download a full snapshot of the authentication database.

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "context": {
    },
  • "error": "string",
  • "status": "string"
}

Backup Configuration

Download a full snapshot of the configuration database.

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "context": {
    },
  • "error": "string",
  • "status": "string"
}

Backup Logs Database

Download a full snapshot of the logs database.

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "context": {
    },
  • "error": "string",
  • "status": "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

Content type
application/json
{
  • "success": true
}

Restore Configuration

Upload a full snapshot of the configuration database.

Authorizations:
jwtAuthpatAuth
Request Body schema: multipart/form-data
backup
string <binary> <application/octet-stream> (MultipartFile)

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Restore Logs Database

Upload a full snapshot of the logs database.

Authorizations:
jwtAuthpatAuth
Request Body schema: multipart/form-data
backup
string <binary> <application/octet-stream> (MultipartFile)

Responses

Response samples

Content type
application/json
{
  • "success": true
}

forwarders

List Forwarders

List forwarders

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "forwarders": [
    ],
  • "success": true
}

Get Forwarder

Get forwarder

Authorizations:
jwtAuthpatAuth
path Parameters
forwarder
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "forwarder": {
    },
  • "success": true
}

Save Forwarder

Save forwarder

Authorizations:
jwtAuthpatAuth
path Parameters
forwarder
required
string non-empty
Request Body schema: application/json
required
object (ModelsForwarderV2)
required
object or object or object or object or object or object or object or object or object or object or object or object (ModelsForwarderConfigV2)
version
integer
Default: 2

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "success": true
}

Delete Forwarder

Delete forwarder

Authorizations:
jwtAuthpatAuth
path Parameters
forwarder
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}

pipelines

List Pipelines

List pipelines

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "pipelines": [
    ],
  • "success": true
}

Get Pipeline

Get pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "flow": {
    },
  • "success": true
}

Save Pipeline

Save pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty
Request Body schema: application/json
required
object (ModelsFlowGraphV2)
required
Array of objects or null (ModelsFlowNodeV2)
required
Array of objects or null (ModelsFlowEdgeV2)
hasLayout
boolean
Default: false
version
integer
Default: 2
version.minor
integer
Default: 1

Responses

Request samples

Content type
application/json
{
  • "flow": {
    }
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete Pipeline

Delete pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Ingest OpenTelemetry logs

Run OpenTelemetry logs through a pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty
header Parameters
Content-Encoding
string
Value: "gzip"
Request Body schema:

OpenTelemetry Export Logs Service Request

Array of objects (V1ResourceLogs)
Array
object (V1Resource)
schema_url
string
Array of objects (V1ScopeLogs)

Responses

Request samples

Content type
{ }

Response samples

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
required
Array of objects or null
Array
property name*
additional property
string

Responses

Request samples

Content type
application/json
{
  • "records": [
    ]
}

Response samples

Content type
application/json
{
  • "processed_count": 0,
  • "success": true
}

Ingest Textual Logs

Run textual logs through a pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty
Request Body schema: text/plain
string

Responses

Response samples

Content type
application/json
{
  • "processed_count": 0,
  • "success": true
}

Scrap Pipeline Metrics

Prometheus Exporter for the pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "context": {
    },
  • "error": "string",
  • "status": "string"
}

acls

List Roles

List known roles

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "roles": [
    ],
  • "success": true
}

Get Role

Get Role

Authorizations:
jwtAuthpatAuth
path Parameters
role
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "role": {
    },
  • "success": true
}

Save Role

Save Role

Authorizations:
jwtAuthpatAuth
path Parameters
role
required
string non-empty
Request Body schema: application/json
scopes
required
Array of strings or null

Responses

Request samples

Content type
application/json
{
  • "scopes": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete Role

Delete Role

Authorizations:
jwtAuthpatAuth
path Parameters
role
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Create Token

Create a new Personal Access Token for the current user

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "token": "string",
  • "token_uuid": "string"
}

List Tokens

List Personal Access Token UUIDs for the current user

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "token_uuids": [
    ]
}

Delete Token

Delete Personal Access Token UUIDs for the current user

Authorizations:
jwtAuthpatAuth
path Parameters
token-uuid
required
string <uuid>

Responses

Response samples

Content type
application/json
{
  • "success": true
}

List Users

List known users

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "users": [
    ]
}

Get User

Get User

Authorizations:
jwtAuthpatAuth
path Parameters
user
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "user": {
    }
}

Save User

Save User

Authorizations:
jwtAuthpatAuth
path Parameters
user
required
string non-empty
Request Body schema: application/json
roles
required
Array of strings or null
password
required
string

Responses

Request samples

Content type
application/json
{
  • "password": "string",
  • "roles": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete User

Delete User

Authorizations:
jwtAuthpatAuth
path Parameters
user
required
string non-empty

Responses

Response samples

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
required
Array of strings or null[ items non-empty ]

Responses

Request samples

Content type
application/json
{
  • "roles": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true
}

streams

List Streams

List known stream

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "streams": {
    },
  • "success": true
}

Get Stream Configuration

Get or Create Stream configuration

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "success": true
}

Configure Stream

Configure Stream retention and indexes

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty
Request Body schema: application/json
required
object (ModelsStreamConfig)
ttl
required
integer <int64>

TTL in seconds, 0 to disable

size
required
integer <int64>

Maximum size in MB, 0 to disable

indexed_fields
Array of strings or null[ items non-empty ]

Responses

Request samples

Content type
application/json
{
  • "config": {
    }
}

Response samples

Content type
application/json
{
  • "success": true
}

Purge Stream

Remove all logs (and indexes) related to a stream

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}

List Stream Fields

List known fields for a stream

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "fields": [
    ],
  • "success": true
}

Get Stream indices

Get distinct values for indexed fields in a Stream

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "indices": {
    },
  • "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
null or object

Responses

Response samples

Content type
application/json
{
  • "records": [
    ],
  • "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

Content type
application/json
{
  • "code": 0,
  • "context": {
    },
  • "error": "string",
  • "status": "string"
}

Get Stream usage

Get Stream usage

Authorizations:
jwtAuthpatAuth
path Parameters
stream
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "usage": 0
}

config

Get System configuration

Get System configuration

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "configuration": {
    },
  • "success": true
}

Update System configuration

Update System configuration

Authorizations:
jwtAuthpatAuth
Request Body schema: application/json
default_roles
Array of strings or null
syslog_allowed_origins
Array of strings or null

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{
  • "success": true
}

tests

Test Forwarder

Test forwarder

Authorizations:
jwtAuthpatAuth
path Parameters
forwarder
required
string non-empty
Request Body schema: application/json
required
object or null
property name*
additional property
string

Responses

Request samples

Content type
application/json
{
  • "record": {
    }
}

Response samples

Content type
application/json
{
  • "success": true
}

Test the pipeline

Test running structured logs through a pipeline

Authorizations:
jwtAuthpatAuth
path Parameters
pipeline
required
string non-empty
Request Body schema: application/json
required
object (ModelsFlowGraphV2)
required
Array of objects or null

Responses

Request samples

Content type
application/json
{
  • "flow": {
    },
  • "records": [
    ]
}

Response samples

Content type
application/json
{
  • "error": null,
  • "success": true,
  • "trace": [
    ]
}

Test Transformer

Test Transformer

Authorizations:
jwtAuthpatAuth
Request Body schema: application/json
code
required
string
required
object or null

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "record": {
    }
}

Response samples

Content type
application/json
{
  • "records": [
    ],
  • "success": true
}

transformers

List Transformers

List Transformers

Authorizations:
jwtAuthpatAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "transformers": [
    ]
}

Get Transformer

Get Transformer

Authorizations:
jwtAuthpatAuth
path Parameters
transformer
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "script": "string",
  • "success": true
}

Save Transformer

Save Transformer

Authorizations:
jwtAuthpatAuth
path Parameters
transformer
required
string non-empty
Request Body schema: application/json
script
required
string

Responses

Request samples

Content type
application/json
{
  • "script": "string"
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete Transformer

Delete Transformer

Authorizations:
jwtAuthpatAuth
path Parameters
transformer
required
string non-empty

Responses

Response samples

Content type
application/json
{
  • "success": true
}