Skip to main content

certificates

Creates, updates, deletes, gets or lists a certificates resource.

Overview​

Namecertificates
TypeResource
Idovh.ssl.certificates

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
common_namestringThe CN field in your certificate (wire: commonName)
service_namestringThe internal name of your certificate offer (wire: serviceName)
subject_alt_namearrayThe SAN field for multidomain certificate (wire: subjectAltName)
authoritystringThe authority your certificate is issued from (comodo, sectigo)
certificatestringYour certificate
chainstringThe issuer chain of your certificate
csrstringThe CSR used to create your certificate
iamobjectIAM resource metadata
statusstringCurrent status of your certificate (creating, error, ok, validating)
typestringType of your certificate (DV, EV, OV)
validity_endstring (date-time)Your certificate is invalid from this date (wire: validityEnd)
validity_startstring (date-time)Your certificate is valid from this date (wire: validityStart)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns an SSL certificate: status, type (DV, OV or EV), issuing authority, common name, alternative names, validity dates, and the certificate and its issuer chain once issued.
listselectiam_tags, x_pagination_modeReturns the identifiers of the SSL certificates of the account.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
service_namestringService name (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns an SSL certificate: status, type (DV, OV or EV), issuing authority, common name, alternative names, validity dates, and the certificate and its issuer chain once issued.

SELECT
common_name,
service_name,
subject_alt_name,
authority,
certificate,
chain,
csr,
iam,
status,
type,
validity_end,
validity_start
FROM ovh.ssl.certificates
WHERE service_name = '{{ service_name }}' -- required
;