Scope of API for Certificate Monitoring REST Web Service
This is a web interface for the Certificate Monitoring REST Web Service. This web service contains Read APIs to view data in the Certificate Monitoring dashboard. The REST APIs URL fetches the report for customers.
Note |
You must specify the mandatory headers for using these API. See Specifying Mandatory API Headers |
Following is the resource summary for HCM-F Certificate Monitoring:
URL (Base URL) |
HTTPs Method |
|||
---|---|---|---|---|
GET |
POST |
PUT |
DEL |
|
Fetch Certificate Status for All Customers | ||||
|
Y |
N |
N |
N |
|
Y |
N |
N |
N |
|
Y |
N |
N |
N |
Collect Certificate Data OnDemand from All EndPoints and Store |
||||
|
N |
Y |
N |
N |
|
N |
Y |
N |
N |
|
N |
N |
Y |
N |
|
Y |
N |
N |
N |
|
Y |
N |
N |
N |
Fetch Certificate Status for All Customers
GET https://HCM-F_Server_IPaddress/ucmon/certificates/status/customers
Parameters
Nil
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
Fetch Certificate Status for Selected Customer
Request
GET https://HCM-F_Server_IPaddress/ucmon/certificates/status/customers/{customerId}
Parameter
Name |
Type |
Description |
---|---|---|
customerId |
int |
pkid of the customer |
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
[{"clustName":"Clustercucxn","clustId":"5","clustStatus":"Invalid","certCount":"3","lastExecutedDateTime":"Aug 13 2018 11:42:36 IST","lastSuccessDateTime":"Aug 10 2018 17:39:50 IST","clusterType":"CUCXN"},{"clustName":"Cluster-CUCM","clustId":"6","clustStatus":"Invalid","certCount":"17","lastExecutedDateTime":"Aug 13 2018 11:44:25 IST","lastSuccessDateTime":"Aug 12 2018 03:02:47 IST","clusterType":"CUCM"}]
Fetch Certificate Status for Single Cluster
Request
GET https://HCM-F_Server_IPaddress/ucmon/certificates/status/cluster/{clusterid}
Parameter
Name |
Type |
Description |
---|---|---|
clusterId |
int |
pkid of the cluster |
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
[{"signauth":"Self Signed","status":"Valid","name":"CallManager/CallManager.pem","fromdate":"Dec 12 2017 IST","expdate":"Dec 11 2022 IST","numdays":"1581","hostname":"xxxxx"}]
Collect Certificate Data OnDemand from All EndPoints and Store
Request
POST https://HCM-F_Server_IPaddress/ucmon/certificates/collect
Parameter
Nil
Response
Code |
Description |
---|---|
200 |
Or
|
401 |
Unauthorized |
Collect Certificate Data OnDemand for Given Customer
Request
POST https://HCM-F_Server_IPaddress/ucmon/certificates/collect/customercertificates
Parameter
Name |
Type |
Request for POST |
Description |
---|---|---|---|
custIds | string | List | List of pkids |
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
Set Parameters
Request
PUT https://HCM-F_Server_IPaddress/ucmon/certificates/configure
Parameter
Note |
All parameters are mandatory. |
Name |
Type |
Request for PUT |
Description |
---|---|---|---|
scheduleEnable |
String |
true or false |
true: enable scheduler false: disable scheduler |
scheduleTime |
String |
T00:00:00 to T23:59:59 |
Time of the day when the trigger is scheduled. Default time is 03:00:00. |
scheduleDay |
String |
Sunday, Monday, Tuesday,Wednesday, Thursday, Friday, and Saturday. |
Day of the week when the trigger is scheduled. Default day is Sunday. |
ToEmailIds* array (path) |
String |
<mailid1>@<domain>, <mailid2>@<domain>, ... .. <mailid10>@<domain> |
parm1, parm2 .... parm10 Minimum one email ID and maximum 10 email IDs can be configured. |
FromEmailId |
String |
<mailid1>@<domain> |
parmeter1.
Maximum one email ID must be configured. |
custNotificationEnable |
String |
true or false |
true - Enable Customer Notification |
expressWayECollectionEnable |
String |
true or false |
true - Enable Expressway E collection and retrieval false - Disable Expressway E collection and retrieval |
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
500 |
|
Get Parameters
Request
GET https://HCM-F_Server_IPaddress/ucmon/certificates/configure
Parameter
Name |
Type |
Request for PUT |
Description |
---|---|---|---|
scheduleEnable |
String |
true or false |
true: enable scheduler false: disable scheduler |
scheduleTime |
String |
T00:00:00 to T23:59:59 |
Time of the day when the trigger is scheduled. Default time is 03:00:00. |
scheduleDay |
String |
Sunday, Monday, Tuesday,Wednesday, Thursday, Friday, and Saturday. |
Day of the week when the trigger is scheduled. Default day is Sunday. |
ToEmailIds* array (path) |
String |
<mailid1>@<domain>, <mailid2>@<domain>, ... .. <mailid10>@<domain> |
parm1, parm2 .... parm10 Minimum one email ID and maximum 10 email IDs can be configured. |
FromEmailId |
String |
<mailid1>@<domain> |
parmeter1.
Maximum one email ID must be configured. |
custNotificationEnable |
String |
true or false |
true - Enable Customer Notification |
expressWayECollectionEnable |
String |
true or false |
true - Enable Expressway E collection and retrieval false - Disable Expressway E collection and retrieval |
Response
Code |
Description |
---|---|
200 |
|
401 |
Unauthorized |
Fetch Certificate Status per Certificate
Request
GET https://HCM-F_Server_IPaddress/ucmon/certificates/status/certificate/appId
Path Parameter
Enables you to fetch certificate status along with actions per certificate
Name |
Type |
Values Allowed |
Description |
---|---|---|---|
appId |
Integer |
Path |
pkid of the node |
Query Parameter
Name |
Description |
---|---|
certificate |
Certificate Type |
Example Response
Code |
Description |
---|---|
200 |
|
401 |
"Unauthorized" |