This URL gets all the trusted CA certificates available on the Manager.
Resource URL
GET /domain/sslconfiguration/trustedcerts
Response Parameters
Following fields are returned:
| Field Name | Description | Data Type |
|---|---|---|
| trustedCerts | List of all the trusted certificates | Array |
Details of objects in trustedCerts:
| Field Name | Description | Data Type |
|---|---|---|
| state | State of the certificate. It can be enabled or disabled. | Boolean |
| alias | Alias for the SSL key | String |
| issuedBy | Name of the issuer | String |
| fileName | Certificate file name | String |
| certType | Type of the certificate. It can be "Default" or "Custom". | String |
| validity | Validity details | Object |
| lastUpdated | Last update details | Object |
Details of the validity object:
| Field Name | Description | Data Type |
|---|---|---|
| from | Validity from date | String |
| to | Validity end date | String |
| status |
Status of the validity. The values can be:
|
String |
Details of the lastUpdated object:
| Field Name | Description | Data Type |
|---|---|---|
| time | Last update time | String |
| by | Last updated by user | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/sslconfiguration/trustedcerts
Response
{
"trustedCerts": [
{
"state": true,
"alias": "IGC/A",
"issuedBy": "IGC/A",
"fileName": null,
"certType": "Defaut",
"validity": {
"from": "2002-12-13 19:59:23.0",
"to": "2020-10-17 19:59:22.0",
"status": "VALID"
},
"lastUpdated": {
"time": "2016-10-20 11:48:15.0",
"by": "System"
}
},
{
"state": true,
"alias": "EC-ACC",
"issuedBy": "EC-ACC",
"fileName": null,
"certType": "Defaut",
"validity": {
"from": "2003-01-08 04:30:00.0",
"to": "2031-01-08 04:29:59.0",
"status": "VALID"
},
"lastUpdated": {
"time": "2016-10-20 11:48:15.0",
"by": "System"
}
},
…….
]
}
Error Information
Following error code is returned by this URL:
| S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 500 | 1001 | Internal error |