HP OneView REST API Reference

certificates
certificates.html[10/17/2013 10:36:02 AM]
The following example retrieves a list of SSL certificates based on the
filter criteria.
An example URI is included.
GET https://example.net//rest/certificates?
sort=ascending&start=0&count=2&filter=localhost&filter=testcert
POST Imports the given SSL certificate into the appliance.
Parameter Attributes Description
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
SSLCertificate Required SSL certificate information
Response Description
SSLCertificate SSL Certificate information and import status
flag
Response Codes
REST API Response Codes
Examples
The following example imports the given SSL certificate into the
appliance.
An example URI and request body are included.
POST https://example.net/rest/certificates
{"type":"SSLCertificateDTO",
"status":null,
"base64SSLCertData":"-----BEGIN CERTIFICATE-----...-----END
CERTIFICATE-----",
"aliasName":"localhostone",
"verifyTrustChainAndRevocation":false,
"verifyRevocationStatus":false
}
POST Imports the given list of SSL certificates into the appliance.
Parameter Attributes Description
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
SSLCertificate Required List of SSL certificates to be imported
Response Description
SSLCertificate List of SSL certificates with the import
status updated