see_offers
Creates, updates, deletes, gets or lists a see_offers resource.
Overview​
| Name | see_offers |
| Type | Resource |
| Id | ovh.sms.see_offers |
Fields​
The following fields are returned by SELECT queries:
- list
A structure describing all information about an sms pack offer
| Name | Datatype | Description |
|---|---|---|
country_destination | string | (wire: countryDestination) |
gift_price | number | (wire: giftPrice) |
gift_quantity | number | (wire: giftQuantity) |
language | string | |
price | number | |
quantity | integer | |
sms_quantity | number | (wire: smsQuantity) |
total_price | number | (wire: totalPrice) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | country_currency_price, country_destination, quantity, service_name | List SMS offers. Returns the SMS pack offers available for the account, by quantity and destination country. |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
country_currency_price | string | Filter to have the currency country prices (wire: countryCurrencyPrice) |
country_destination | string | Filter to have the country destination (wire: countryDestination) |
quantity | integer | Sms pack offer quantity |
service_name | string | The internal name of your SMS offer (wire: serviceName) |
SELECT examples​
- list
List SMS offers. Returns the SMS pack offers available for the account, by quantity and destination country.
SELECT
country_destination,
gift_price,
gift_quantity,
language,
price,
quantity,
sms_quantity,
total_price
FROM ovh.sms.see_offers
WHERE country_currency_price = '{{ country_currency_price }}' -- required
AND country_destination = '{{ country_destination }}' -- required
AND quantity = '{{ quantity }}' -- required
AND service_name = '{{ service_name }}' -- required
;