Skip to main content

license_windows_news

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

Overview​

Namelicense_windows_news
TypeResource
Idovh.order.license_windows_news

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectduration, ip, versionservice_type, sql_versionGet prices and contracts information
listselectip, versionservice_type, sql_version, x_pagination_modeGet allowed durations for 'new' option
createinsertduration, ip, versionCreate order

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"}})
durationstringDuration
ipstring (ipv4)Ip on which this license would be installed (for dedicated your main server Ip)
versionstringThis license version
service_typestring# DEPRECATED # The kind of service on which this license will be used # Will not be used, keeped only for compatibility # (wire: serviceType)
sql_versionstringThe SQL Server version to enable on this license Windows license (wire: sqlVersion)
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 prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.license_windows_news
WHERE duration = '{{ duration }}' -- required
AND ip = '{{ ip }}' -- required
AND version = '{{ version }}' -- required
AND service_type = '{{ service_type }}'
AND sql_version = '{{ sql_version }}'
;

INSERT examples​

Create order

INSERT INTO ovh.order.license_windows_news (
ip,
service_type,
sql_version,
version,
duration
)
SELECT
'{{ ip }}' /* required */,
'{{ service_type }}',
'{{ sql_version }}',
'{{ version }}' /* required */,
'{{ duration }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;