This API call retrieves cluster SSL certificate details.
To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/v1.0/onpremise/sslCertificate
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| entityType | string | entity type, possible values = "SERVER, COLLECTOR"
| path | required |
| entityId | integer | Node ID, which can be extracted from the URL in 'Node details' view. | path | required |
| Code | Type | Description |
|---|---|---|
| 200 | S | Success |
| 500 | - | Internal server error. |
SSLDetails object| Element | Type | Description |
|---|---|---|
| customKeyStore | boolean | - |
| customKeyStoreWritable | boolean | - |
| default | boolean | - |
| expirationDate | string | - |
| inProgress | boolean | - |
| issuer | string | - |
| restartRequired | boolean | - |
| subject | string | - |
{"customKeyStore": true,"customKeyStoreWritable": true,"default": true,"expirationDate": "string","inProgress": true,"issuer": "string","restartRequired": true,"subject": "string"}
In this example, you check the SSL certificate details on 32 node of the myManaged.cluster.com cluster. In return you receive information on current SSL certificate.
curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/sslCertificate/SERVER/32" -H "accept: application/json" -H "Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890"
https://myManaged.cluster.com/api/v1.0/onpremise/sslCertificate/SERVER/32
{"issuer": "EV SSL Intermediate CA RSA","subject": "n32.myManaged.cluster.com","expirationDate": 1615956886000,"customKeyStore": false,"customKeyStoreWritable": true,"inProgress": false,"restartRequired": false,"default": false}
200