GET /api/v1/maintenance/certificate
Use this method to return information about or save (export) the XClarity Orchestrator server certificate.
Authentication
Authentication with username and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/maintenance/certificate
Query parameters
Parameters | Required / Optional | Description |
---|---|---|
format={type} | Optional | Response format. This can be one of the following values.
|
The following example retrieves the server certificate in JSON format.
GET https://192.0.2.0/api/v1/communications/certificates/7633531801c5688f7d3b830d57cdea73
The following example exports the server certificate as a file in PEM format.
GET https://192.0.2.0/api/v1/communications/certificates/7633531801c5688f7d3b830d57cdea73?format=pem
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. If a query parameter is specified and the value of that parameter has no matches, the response body returns default values. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
When format=pem is specified, the response body is returned only when the request generates an error (see Status messages).
When format=json is specified and the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
Attributes | Type | Description | ||
---|---|---|---|---|
pem | String | Server certificate, in PEM format | ||
_links | Object | Server certificate URI (see Links) |
The following example is returned if the request is successful.
{
"pem": "-----BEGIN CERTIFICATE-----\nMIIDuDCCAqCgAwIBAgIUQ1JWiK2/0UvzWcreE
YEtuQ6TgiYwDQYJKoZIhvcNAQEL\nBQAwSzEMMAoGA1UECwwDRENHMQ8wDQYDVQQKDAZMZW5vdm8x
EDAOBgNVBAcMB1Jh\nbGVpZ2gxCzAJBgNVBAgMAk5DMQswCQYDVQQGEwJVUzAeFw0yMDEwMDgxNDU
0MDRa\nFw0zMDEwMDYxNDU0MDRaMIGSMQswCQYDVQQGEwJVUzEPMA0GA1UECgwGTGVub3Zv\nMUUw
QwYDVQQDDDxHZW5lcmF0ZWQgYnkgTGVub3ZvIE1hbmFnZW1lbnQgRWNvc3lz\ndGVtIG9uIElQIDE
wLjI0My4xNy4xMDgxCzAJBgNVBAgMAk5DMQwwCgYDVQQLDANE\nQ0cxEDAOBgNVBAcMB1JhbGVpZ2
gwggEiMA0GCSqG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