Skip to main content

outplan_notifications

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

Overview​

Nameoutplan_notifications
TypeResource
Idovh.telephony.outplan_notifications

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerThe id of the notification
blockstringThe blocking type of the associate lines (blockAllCalls, blockIncomingCalls, blockOutgoingCalls, none)
notify_emailstringOverride the nichandle email for this notification (wire: notifyEmail)
percentagenumberThe notification percentage of maximum outplan

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, idGet an out-of-plan alert
listselectbilling_accountx_pagination_modeList out-of-plan alerts
createinsertbilling_account, block, percentageCreate an out-of-plan alert
deletedeletebilling_account, idDelete an out-of-plan alert

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)
idintegerId of the object
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 an out-of-plan alert

SELECT
id,
block,
notify_email,
percentage
FROM ovh.telephony.outplan_notifications
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples​

Create an out-of-plan alert

INSERT INTO ovh.telephony.outplan_notifications (
block,
notify_email,
percentage,
billing_account
)
SELECT
'{{ block }}' /* required */,
'{{ notify_email }}',
{{ percentage }} /* required */,
'{{ billing_account }}'
RETURNING
id,
block,
notify_email,
percentage
;

DELETE examples​

Delete an out-of-plan alert

DELETE FROM ovh.telephony.outplan_notifications
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
;