Brokers
Available API Paths
- /api/projects/{projectId}/brokers/{brokerId}
- /api/projects/{projectId}/brokers
- /api/projects/{projectId}/brokers/{brokerId}/info
- /api/projects/{projectId}/brokers/{brokerId}/license
- /api/projects/{projectId}/brokers/{brokerId}/listeners
/api/projects/{projectId}/brokers/{brokerId}
The following methods are available for this path:
GET
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
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 | |
/api/projects/{projectId}/brokers
The following methods are available for this path:
GET
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 | |
/api/projects/{projectId}/brokers/{brokerId}/info
The following methods are available for this path:
GET
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
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
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 | |