Get All Certificates
On an end-customer Service Now, use this API to retrieve all SSL certificates received from a Service Now partner.
URI
https://[host]/api/juniper/servicenow/certificate-management/certificates (HTTP method = GET)
Consumes
None
Produces
- application/vnd.juniper.servicenow.certificate-management.certificates+json;version=1
- application/vnd.juniper.servicenow.certificate-management.certificates+xml;version=1
Response Elements
Element | Type | Description |
---|---|---|
uri | String | URI of the certificate collection in Service Now |
size | Integer | Number of records in the collection |
certificate | certificate | A certificate in the collection |
uri | String | URI of the certificate |
href | String | Link to the certificate |
Key | Integer | ID of the certificate |
name | String | Name of the certificate |
aliasName | String | Alias of the certificate Issuer |
issuerName | String | Name of the Service Now partner who issued the certificate |
serialNumber | Integer | Serial number of the certificate |
signatureAlgorithmName | String | Algorithm used for signing the SSL certificate |
notBefore | String | Date and time before which the certificate is not valid |
notAfter | String | Date and time after which the certificate is not valid |
Sample Output
Sample XML Output
<certificates uri="/api/juniper/servicenow/certificate-management/certificates/" size="1"> <certificate href="/api/juniper/servicenow/certificate-management/certificates/3866625" uri="/api/juniper/servicenow/certificate-management/certificates/3866625" key="3866625"> <name>EMAILADDRESS=test@ec.com, CN=Ec 01, OU=Service Automation EC, O=EC 01, L=Bangalore, ST=Karnataka, C=IN</name> <aliasName>sn-partner</aliasName> <issuerName>EMAILADDRESS=user@example.com, CN=Service Automation CA, OU=Service Automation CA, O=Juniper Networks, L=Bangalore, ST=Karnataka, C=IN</issuerName> <serialNumber>4</serialNumber> <signatureAlgorithmName>SHA1withRSA</signatureAlgorithmName> <notBefore>1394688197000</notBefore> <notAfter>1426224197000</notAfter> </certificate> </certificates>
Sample JSON Output
{ "certificates": { "@uri": "/api/juniper/servicenow/certificate-management/certificates/", "@size": "1", "certificate": { "@href": "/api/juniper/servicenow/certificate-management/certificates/3866625", "@uri": "/api/juniper/servicenow/certificate-management/certificates/3866625", "@key": "3866625", "name": "EMAILADDRESS=test@ec.com, CN=Ec 01, OU=Service Automation EC, O=EC 01, L=Bangalore, ST=Karnataka, C=IN", "aliasName": "sn-partner", "issuerName": "EMAILADDRESS=user@example.com, CN=Service Automation CA, OU=Service Automation CA, O=Juniper Networks, L=Bangalore, ST=Karnataka, C=IN", "serialNumber": 4, "signatureAlgorithmName": "SHA1withRSA", "notBefore": 1394688197000, "notAfter": 1426224197000 } } }