Skip to main content

smpp_allowed_i_ps

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

Overview​

Namesmpp_allowed_i_ps
TypeResource
Idovh.sms.smpp_allowed_i_ps

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameReturns the IP addresses allowed to connect to the SMPP account.
updateupdateservice_name, action, ipsAdds or removes IP addresses allowed to connect to the SMPP account, depending on the action.

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"}})
service_namestringThe internal name of your SMS offer (wire: serviceName)

SELECT examples​

Returns the IP addresses allowed to connect to the SMPP account.

SELECT
value
FROM ovh.sms.smpp_allowed_i_ps
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Adds or removes IP addresses allowed to connect to the SMPP account, depending on the action.

UPDATE ovh.sms.smpp_allowed_i_ps
SET
action = '{{ action }}',
ips = '{{ ips }}'
WHERE
service_name = '{{ service_name }}' --required
AND action = '{{ action }}' --required
AND ips = '{{ ips }}' --required;