This custom node is a simple node that allows to create or delete an NGSIv2 registration.
This operation allows to create a new registration.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:create
payload JSON Object
A msg.payload
contains a NGSIv2 registration data.
{
"description": "Relative Humidity Context Source",
"dataProvided": {
"entities": [
{
"id": "room",
"type": "Room"
}
],
"attrs": [
"relativeHumidity"
]
},
"provider": {
"http": {
"url": "http://orion:1026"
}
}
}
payload string
A msg.payload
contains a registration id.
63ed51173bdeaadaf909c57b
statusCode Number
A msg.statusCode
contains a status code.
201
This operation allows to delete a existing registration.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:delete
payload string
A msg.payload
contains a registration id.
63ed51173bdeaadaf909c57b
statusCode Number
A msg.statusCode
contains a status code.
204
This operation allows to create or delete a registration.
name
: A name for a node instanceContext Broker
: An endpoint of a context brokerServicePath
: FIWARE Service PathAction type
:value of actionType in payload
payload JSON Object
When creating a new registration, A msg.payload
should contain a JSON Object with actionType and registration data.
{
"actionType": "delete",
"id": "63ed53123bdeaadaf909c57d"
}
payload string
A msg.payload
contains a registration id.
63ed51173bdeaadaf909c57b
statusCode Number
A msg.statusCode
contains a status code.
201
payload JSON Object
When deleting a existing registration, A msg.payload
should contain a JSON Object with actionType and registration id.
{
"actionType": "delete",
"id": "63ea11e4a0cec98fc6017aae"
}
statusCode Number
A msg.statusCode
contains a status code.
204