HP OneView REST API Reference

certificates
certificates.html[10/17/2013 10:36:02 AM]
REST API Response Codes
Examples
The following example gets the existing SSL certificate information.
An example URI is included.
GET https://example.net/rest/certificates/https
PUT Creates a Self Signed Certificate based on input certificate data. This is an asynchronous API and
returns the TaskResourceV2 data object that contains the information about the task to be
monitored for this purpose. X-API-Version in the HTTP header should be at least 2.
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Request Body Attributes Description
CertificateV2 Required Certificate data to be used as input
configuration
for the certificate
Response Description
TaskResourceV2 Reference to the task object to be monitored for
completion status
Response Codes
REST API Response Codes
Examples
The following example creates a self signed certificate.
An example URI and request body are included.
PUT https://example.net/rest/certificates/https
{
"type":"CertificateDtoV2",
"commonName":"example.net",
"issuer":"",
"validFrom":"",
"validUntil":"",
"expiresInDays":"",
"serialNumber":"",
"version":"",
"md5Fingerprint":"",
"sha1Fingerprint":"",
"country":"IN",
"state":"KAR",
"locality":"Bangalore",
"organization":"HP",
"organizationalUnit":"",
"alternativeName":"",
"contactPerson":"",
"email":"",
"surname":"",
"givenName":"",