Brokers
Available API Paths
- /api/projects/{projectId}/brokers/{brokerId}
- /api/projects/{projectId}/brokers
- /api/projects/{projectId}/brokers/{brokerId}/connect
- /api/projects/{projectId}/brokers/{brokerId}/license
- /api/projects/{projectId}/brokers/{brokerId}/listeners
- /api/projects/{projectId}/brokers/{brokerId}/publish
/api/projects/{projectId}/brokers/{brokerId}
The following methods are available for this path:
GET
Returns 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
Deletes 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 |
|
/api/projects/{projectId}/brokers
The following methods are available for this path:
GET
Returns 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 |
|
/api/projects/{projectId}/brokers/{brokerId}/connect
The following methods are available for this path:
GET
Tries to connect to specified 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
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
Gets 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 |
|
/api/projects/{projectId}/brokers/{brokerId}/publish
The following methods are available for this path:
POST
Publishes a message
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 |
200 | The topic the message was published to. |
|
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 |
|