Service: Flow

Get

Get a flow by id

Request

Flow get request

表 2. Available fields in blickfeld.flow.services.FlowGetRequest
Field Type Default Unit

id

string

-

-

Flow id

as_node_red_json

bool

-

-

If true, the request returns the NodeRed JSON format which can be directly imported.

Response

Flow get response

表 3. Available fields in blickfeld.flow.services.FlowGetResponse
Field Type Default Unit

flow

config.Flow

-

-

Blickfeld Flow config with well-defined high-level attributes

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format which can be directly imported

List

Return list of flow ids

Response

Flow list response

表 4. Available fields in blickfeld.flow.services.FlowListResponse
Field Type Default Unit

ids

repeated string

-

-

List of Blickfeld Flow identifiers.

Store

Store flow

A "Reload" is required to apply the operation.

Request

Flow store request

表 5. Available fields in blickfeld.flow.services.FlowStoreRequest
Field Type Default Unit

id

string

-

-

ID of the flow

NOTE: For node_red_json, this has to match the ID in the NodeRED JSON format.

flow

config.Flow

-

-

Blickfeld Flow config with well-defined high-level attributes

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format which can be directly exported from NodeRED Admin UI

Delete

Delete stored flow

A "Reload" is required to apply the operation.

Request

Flow delete request

表 6. Available fields in blickfeld.flow.services.FlowDeleteRequest
Field Type Default Unit

id

string

-

-

Id of Blickfeld Flow

Watch

Watch flow changes

Request

Flow watch request

表 7. Available fields in blickfeld.flow.services.FlowWatchRequest
Field Type Default Unit

as_node_red_json

bool

-

-

If true, the request returns the NodeRed JSON format which can be directly imported.

Response Stream

Per change, a response is emitted

表 8. Available fields in blickfeld.flow.services.FlowWatchResponse
Field Type Default Unit

id

string

-

-

Id of Blickfeld Flow

flow

config.Flow

-

-

Blickfeld Flow config with well-defined high-level attributes

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format which can be directly exported from NodeRED Admin UI

type

config.data.WatchEvent.Type

-

-

Type of change

StoreGlobalNodes

Store global nodes

A "Reload" is required to apply the operation.

Request

Flow store global nodes request

表 9. Available fields in blickfeld.flow.services.FlowStoreGlobalNodesRequest
Field Type Default Unit

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format of all global configuration nodes

GetGlobalNodes

Get global nodes

Response

Flow get global nodes response

表 10. Available fields in blickfeld.flow.services.FlowGetGlobalNodesResponse
Field Type Default Unit

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format of all global configuration nodes

WatchGlobalNodes

Watch global nodes

Response Stream

Flow watch global nodes response

表 11. Available fields in blickfeld.flow.services.FlowWatchGlobalNodesResponse
Field Type Default Unit

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format of all global configuration nodes

Reload

Reload node-red

This reloads all nodes from the config and restart all nodes.