Certificates
Available API Paths
- /api/projects/{projectId}/certificates
- /api/projects/{projectId}/certificates/{certificateId}
- /api/projects/{projectId}/certificates/{certificateId}/deploy
- /api/projects/{projectId}/certificates/{certificateId}/undeploy
/api/projects/{projectId}/certificates
The following methods are available for this path:
GET Viewer
Return a list of certificates in the specified project. Optionally filter to certificates deployed on a broker by passing brokerId.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
| projectId | path | string | A project id |
| brokerId | query | string | If set, return only certificates deployed on the specified broker. |
| filename | query | string | Return the certificate with the specified filename. When set, the response is a single-element array and other list parameters are ignored. If brokerId is also set, the certificate must be deployed on that broker. |
Responses
| Status | Description | Response Content or Scheme |
| 200 | A list of project certificates. | |
| 401 | Unauthorized request error | |
| 403 | Request is not allowed error | |
| 404 | Resource is not found error | |
| 500 | Internal server error | |
POST Admin
Add a new certificate to the 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 | The id of the newly added certificate. | |
| 401 | Unauthorized request error | |
| 403 | Request is not allowed error | |
| 404 | Resource is not found error | |
| 500 | Internal server error | |
/api/projects/{projectId}/certificates/{certificateId}
The following methods are available for this path:
PUT Editor
Update a certificate in the specified project. Only undeployed certificates can be updated. Any combination of name, filename, and cert content may be provided.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
| projectId | path | string | A project id |
| certificateId | path | string | A certificate 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 | |
| 500 | Internal server error | |
DELETE Admin
Delete a certificate from the specified project. The request fails if the certificate is currently deployed on a broker.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
| projectId | path | string | A project id |
| certificateId | path | string | A certificate 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 | |
| 500 | Internal server error | |
/api/projects/{projectId}/certificates/{certificateId}/deploy
The following methods are available for this path:
POST Editor
Deploy an existing project certificate to one or more brokers. For each broker, specify the TLS listeners the certificate should be deployed to by port and optional bind address.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
| projectId | path | string | A project id |
| certificateId | path | string | A certificate id |
Request Body
| Name | Location | Type | Description |
| body | body | object | Properties: |
Responses
| Status | Description | Response Content or Scheme |
| 200 | Deployment result for each requested broker. | |
| 400 | Bad request error, mostly that means provided data is invalid | |
| 401 | Unauthorized request error | |
| 403 | Request is not allowed error | |
| 404 | Resource is not found error | |
| 500 | Internal server error | |
/api/projects/{projectId}/certificates/{certificateId}/undeploy
The following methods are available for this path:
POST Editor
Undeploy an existing project certificate from one or more brokers. For each broker, specify the TLS listeners the certificate should be removed from by port and optional bind address. The certificate remains in the project.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
| projectId | path | string | A project id |
| certificateId | path | string | A certificate id |
Request Body
| Name | Location | Type | Description |
| body | body | object | Properties: |
Responses
| Status | Description | Response Content or Scheme |
| 200 | Undeployment result for each requested broker. | |
| 400 | Bad request error, mostly that means provided data is invalid | |
| 401 | Unauthorized request error | |
| 403 | Request is not allowed error | |
| 404 | Resource is not found error | |
| 500 | Internal server error | |