Skip to main content

attached_domain_ssls

Creates, updates, deletes, gets or lists an attached_domain_ssls resource.

Overview​

Nameattached_domain_ssls
TypeResource
Idovh.hosting_web.attached_domain_ssls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idintegerThe task ID working on this Hosted SSL (wire: taskId)
is_reportablebooleanIf the hostedssl is currently bound to a report (wire: isReportable)
providerstringProvider of the Hosted SSL (COMODO, CUSTOM, LETSENCRYPT, SECTIGO)
regenerablebooleanRegenerable flag
statusstringStatus of the Hosted SSL (created, creating, deleting, importing, regenerating)
typestringType of the Hosted SSL (CUSTOM, DV, EV)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, service_nameReturns the provider, type and status of the SSL certificate of the attached domain.
createinsertdomain, service_nameCreates the free Let's Encrypt SSL certificate of the attached domain.
updateupdatedomain, service_nameUpdates the SSL certificate of the attached domain. Set regenerate to true to regenerate it.
deletedeletedomain, service_nameDeletes the SSL certificate of the attached domain.
regenerateexecdomain, serviceNameRegenerates the SSL certificate of the attached domain.

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"}})
domainstringDomain
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the provider, type and status of the SSL certificate of the attached domain.

SELECT
task_id,
is_reportable,
provider,
regenerable,
status,
type
FROM ovh.hosting_web.attached_domain_ssls
WHERE domain = '{{ domain }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Creates the free Let's Encrypt SSL certificate of the attached domain.

INSERT INTO ovh.hosting_web.attached_domain_ssls (
domain,
service_name
)
SELECT
'{{ domain }}',
'{{ service_name }}'
RETURNING
task_id,
is_reportable,
provider,
regenerable,
status,
type
;

UPDATE examples​

Updates the SSL certificate of the attached domain. Set regenerate to true to regenerate it.

UPDATE ovh.hosting_web.attached_domain_ssls
SET
regenerate = {{ regenerate }}
WHERE
domain = '{{ domain }}' --required
AND service_name = '{{ service_name }}' --required
RETURNING
task_id,
is_reportable,
provider,
regenerable,
status,
type;

DELETE examples​

Deletes the SSL certificate of the attached domain.

DELETE FROM ovh.hosting_web.attached_domain_ssls
WHERE domain = '{{ domain }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Regenerates the SSL certificate of the attached domain.

EXEC ovh.hosting_web.attached_domain_ssls.regenerate
@domain='{{ domain }}' --required,
@serviceName='{{ serviceName }}' --required
;