The "deleteBrokerConnection" action deletes a previously created broker connection. It will not be deleted if the connection is being used by one or more MQTT topics.
The "brokerConnectionName" parameter is required.
If FairCom's servers cannot delete the broker connection, it will log an error stating, "broker Connection Name xxx cannot be deleted because it is being used by the following topics: xxx, xxx, xxx."
Request examples
Minimal
{
"action": "deleteBrokerConnection",
"params": {
"brokerConnectionName": "MqttBroker1"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Note If the target object does not exist, the response returns success, and the debug property contains a warning that the object was not found.
Minimal
{
"result": {
},
"requestId": "1",
"debugInfo": {
"request": {
"action": "deleteBrokerConnection",
"params": {
"brokerConnectionName": "MqttBroker1"
},
"requestId": "1",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
},
"warnings": [
{
"code": 100,
"message": "Broker MqttBroker1 not found"
}
]
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
| brokerConnectionName | The
|
Optional with default of ""
|
string | 1 to 100 bytes |