Skip to main content

ssls

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

Overview​

Namessls
TypeResource
Idovh.ip_loadbalancing.ssls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of your SSL certificate
display_namestringHuman readable name for your ssl certificate, this field is for you (wire: displayName)
expire_datestring (date-time)Expire date of your SSL certificate (wire: expireDate)
fingerprintstringFingerprint of your SSL certificate
sanarraySubject Alternative Name of your SSL certificate
serialstringSerial of your SSL certificate (Deprecated, use fingerprint instead !)
subjectstringSubject of your SSL certificate
typestringType of your SSL certificate. 'built' for SSL certificates managed by the IP Load Balancing. 'custom' for user manager certificates. (built, built_not_routed, custom)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameGet an SSL certificate
listselectservice_nameexpire_date, fingerprint, serial, type, x_pagination_modeList SSL certificates
createinsertservice_name, certificate, keyCreate a custom SSL certificate
updateupdateid, service_nameUpdate an SSL certificate
deletedeleteid, service_nameDelete an SSL certificate

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"}})
idintegerId of your SSL certificate
service_namestringThe internal name of your IP load balancing (wire: serviceName)
expire_datestring (date-time)Filter the value of expireDate property (<) (wire: expireDate)
fingerprintstringFilter the value of fingerprint property (like)
serialstringFilter the value of serial property (like)
typestringFilter the value of type property (=)
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​

Get an SSL certificate

SELECT
id,
display_name,
expire_date,
fingerprint,
san,
serial,
subject,
type
FROM ovh.ip_loadbalancing.ssls
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a custom SSL certificate

INSERT INTO ovh.ip_loadbalancing.ssls (
certificate,
chain,
display_name,
key,
service_name
)
SELECT
'{{ certificate }}' /* required */,
'{{ chain }}',
'{{ display_name }}',
'{{ key }}' /* required */,
'{{ service_name }}'
RETURNING
id,
display_name,
expire_date,
fingerprint,
san,
serial,
subject,
type
;

UPDATE examples​

Update an SSL certificate

UPDATE ovh.ip_loadbalancing.ssls
SET
display_name = '{{ display_name }}'
WHERE
id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete an SSL certificate

DELETE FROM ovh.ip_loadbalancing.ssls
WHERE id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;