Brokers
Available API Paths
- /api/projects/{projectId}/brokers
 - /api/projects/{projectId}/brokers/{brokerId}
 - /api/projects/{projectId}/brokers/{brokerId}/bridges
 - /api/projects/{projectId}/brokers/{brokerId}/bridges/{bridgeId}/config
 - /api/projects/{projectId}/brokers/{brokerId}/bridges/{bridgeId}/status
 - /api/projects/{projectId}/brokers/{brokerId}/info
 - /api/projects/{projectId}/brokers/{brokerId}/license
 - /api/projects/{projectId}/brokers/{brokerId}/listeners
 
/api/projects/{projectId}/brokers
The following methods are available for this path:
GET Viewer
Return a list of all currently available brokers in specified project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | A list of project brokers. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
POST Admin
Add a new broker connection to specified project
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | Id of added broker. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}
The following methods are available for this path:
GET Viewer
Return info about project broker specified by passed broker id.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | A broker info object. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
DELETE Admin
Delete project broker specified by passed broker id.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 204 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
PUT Editor
Update an existing broker connection config
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 204 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/bridges
The following methods are available for this path:
GET Viewer
Get a list of currently available bridges according to broker license
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | A list of currently available bridges |  | 
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/bridges/{bridgeId}/config
The following methods are available for this path:
GET Viewer
Get the configuration json of specified bridge
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
| bridgeId | path | string | A bridge id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | The bridge configuration json | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
PUT Viewer
Updates the configuration json of specified bridge
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
| bridgeId | path | string | A bridge id | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 204 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/bridges/{bridgeId}/status
The following methods are available for this path:
GET Viewer
Get the current status of specified bridge
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
| bridgeId | path | string | A bridge id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | The bridge status json | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/info
The following methods are available for this path:
GET Viewer
Tries to connect to specified broker and returns information about this broker
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | Information about connected broker. |  | 
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/license
The following methods are available for this path:
GET Viewer
Get broker license
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | The license object as defined by broker. |  | 
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/brokers/{brokerId}/listeners
The following methods are available for this path:
GET Viewer
Get all broker listeners as defined in mosquitto config along with a list of certificates currently attached to them.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| brokerId | path | string | A broker id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | A list containing currently defined broker listeners. |  | 
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  |