Skip to main content

renews

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

Overview​

Namerenews
TypeResource
Idovh.service.renews

Fields​

The following fields are returned by SELECT queries:

List possible renews for service

NameDatatypeDescription
renew_periodstring (duration)ISO8601 formatted renewal duration (wire: renewPeriod)
strategiesarrayList possible strategies

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_idinclude_optionsList possible renews for this service (Beta version)
createinsertservice_id, duration, servicesCreate a renew order (Beta version)

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_idstringService Id (wire: serviceId)
include_optionsbooleanInclude service's option(s) (wire: includeOptions)

SELECT examples​

List possible renews for this service (Beta version)

SELECT
renew_period,
strategies
FROM ovh.service.renews
WHERE service_id = '{{ service_id }}' -- required
AND include_options = '{{ include_options }}'
;

INSERT examples​

Create a renew order (Beta version)

INSERT INTO ovh.service.renews (
dry_run,
duration,
services,
service_id
)
SELECT
{{ dry_run }},
'{{ duration }}' /* required */,
'{{ services }}' /* required */,
'{{ service_id }}'
RETURNING
order_id,
date,
expiration_date,
password,
pdf_url,
price_with_tax,
price_without_tax,
retraction_date,
tax,
url
;