Skip to main content

telephony_default_ip_restrictions

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

Overview​

Nametelephony_default_ip_restrictions
TypeResource
Idovh.me.telephony_default_ip_restrictions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
subnetstring (ipv4-block)The IPv4 subnet you want to allow (example: 192.0.2.0/24)
typestringThe protocol you want to restrict (sip/mgcp) (mgcp, sip)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectx_pagination_modeThe default SIP IP restictions for your future VoIP lines
createinsertsubnet, typeCreate a default IP restriction for your future VoIP lines
deletedeleteidDelete a default IP restriction for your future VoIP lines

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"}})
idinteger
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

SELECT
id,
subnet,
type
FROM ovh.me.telephony_default_ip_restrictions
WHERE id = '{{ id }}' -- required
;

INSERT examples​

Create a default IP restriction for your future VoIP lines

INSERT INTO ovh.me.telephony_default_ip_restrictions (
subnet,
type
)
SELECT
'{{ subnet }}' /* required */,
'{{ type }}' /* required */
RETURNING
id,
subnet,
type
;

DELETE examples​

Delete a default IP restriction for your future VoIP lines

DELETE FROM ovh.me.telephony_default_ip_restrictions
WHERE id = '{{ id }}' --required
;