This custom node is a simple node that allows to append, appendStrict, update, replace or delete several entities in a single batch operation.
Entity data shall be provided as part of the msg.payload
.
Details
It allows to append several entities.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:append
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Array or JSON Object
A msg.payload
should contain NGSIv2 entities as JSON Array or JSON Object.
[
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
}
]
statusCode Number
A msg.statusCode
contains a status code.
204
It allows to append several entities strictly.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:appendStrict
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Array or JSON Object
A msg.payload
should contain NGSIv2 entities as JSON Array or JSON Object.
[
{
"id": "urn:ngsi-ld:WeatherObserved:sensor003",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor004",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
}
]
statusCode Number
A msg.statusCode
contains a status code.
204
It allows to update several entities.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:update
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Array or JSON Object
A msg.payload
should contain NGSIv2 entities as JSON Array or JSON Object.
[
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 30.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 30.6,
"metadata": {}
}
}
]
statusCode Number
A msg.statusCode
contains a status code.
204
It allows to replace several entities.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:replace
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Array or JSON Object
A msg.payload
should contain NGSIv2 entities as JSON Array or JSON Object.
[
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
}
]
statusCode Number
A msg.statusCode
contains a status code.
204
It allows to delete several entities.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:delete
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Array or JSON Object
A msg.payload
should contain NGSIv2 entities as JSON Array or JSON Object.
[
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
}
]
statusCode Number
A msg.statusCode
contains a status code.
204
It allows to append, appendStrict, update, replace or delete several entities.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:value of actionType in payload
Representation
:normalized
orkeyValues
Override metadata
: If true, it replaces the existing metadataForced update
: If true, it triggers matching subscriptionsFlow control
: If true, it enables flow control mechanismEncode forbidden chars
:off
oron
payload JSON Object
When appending entities, a msg.payload
should contain actionType and NGSIv2 entities as JSON Object.
A msg.payload
should contain actionType
and entities
as JSON Object.
{
"actionType": "append",
"entities": [
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
}
]
}
statusCode Number
A msg.statusCode
contains a status code.
204
payload JSON Object
When appending entities strictly, a msg.payload
should contain actionType and NGSIv2 entities as JSON Object.
A msg.payload
should contain actionType
and entities
as JSON Object.
{
"actionType": "appendStrict",
"entities": [
{
"id": "urn:ngsi-ld:WeatherObserved:sensor003",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor004",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 20.6,
"metadata": {}
}
}
]
}
statusCode Number
A msg.statusCode
contains a status code.
204
payload JSON Object
When updating entities, a msg.payload
should contain actionType and NGSIv2 entities as JSON Object.
A msg.payload
should contain actionType
and entities
as JSON Object.
{
"actionType": "update",
"entities": [
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 30.6,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"temperature": {
"type": "Number",
"value": 30.6,
"metadata": {}
}
}
]
}
statusCode Number
A msg.statusCode
contains a status code.
204
payload JSON Object
When replacing entities, a msg.payload
should contain actionType and NGSIv2 entities as JSON Object.
A msg.payload
should contain actionType
and entities
as JSON Object.
{
"actionType": "replace",
"entities": [
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
}
]
}
statusCode Number
A msg.statusCode
contains a status code.
204
payload JSON Object
When deleting entities, a msg.payload
should contain actionType and NGSIv2 entities as JSON Object.
A msg.payload
should contain actionType
and entities
as JSON Object.
{
"actionType": "delete",
"entities": [
{
"id": "urn:ngsi-ld:WeatherObserved:sensor001",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
},
{
"id": "urn:ngsi-ld:WeatherObserved:sensor002",
"type": "Sensor",
"humidity": {
"type": "Number",
"value": 31,
"metadata": {}
}
}
]
}
statusCode Number
A msg.statusCode
contains a status code.
204