Skip to main content

service_scheduled_offer_changes

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

Overview​

Nameservice_scheduled_offer_changes
TypeResource
Idovh.telephony.service_scheduled_offer_changes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
offerstringThe current offer will be replace by this one on the next renew.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the scheduled offer change
createinsertbilling_account, service_name, offerSchedule an offer change
deletedeletebilling_account, service_nameCancel the scheduled offer change

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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
service_namestring (wire: serviceName)

SELECT examples​

Get the scheduled offer change

SELECT
offer
FROM ovh.telephony.service_scheduled_offer_changes
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Schedule an offer change

INSERT INTO ovh.telephony.service_scheduled_offer_changes (
offer,
billing_account,
service_name
)
SELECT
'{{ offer }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
;

DELETE examples​

Cancel the scheduled offer change

DELETE FROM ovh.telephony.service_scheduled_offer_changes
WHERE billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required
;