Skip to main content

subscriptions

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

Overview​

Namesubscriptions
TypeResource
Idovh.me.subscriptions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
registeredbooleanDetermine whether you are registered or not
typestringThe type of subscription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscription_typeGet this object properties (Deprecated, will be removed)
listselectx_pagination_modeList of all OVH things you can subscribe to (Deprecated, will be removed)
updateupdatesubscription_typeAlter this object properties (Deprecated, will be removed)

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"}})
subscription_typestringThe type of subscription (wire: subscriptionType)
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 this object properties (Deprecated, will be removed)

SELECT
registered,
type
FROM ovh.me.subscriptions
WHERE subscription_type = '{{ subscription_type }}' -- required
;

UPDATE examples​

Alter this object properties (Deprecated, will be removed)

UPDATE ovh.me.subscriptions
SET
registered = {{ registered }}
WHERE
subscription_type = '{{ subscription_type }}' --required;