sub_services_keep_service_terms
Creates, updates, deletes, gets or lists a sub_services_keep_service_terms resource.
Overview​
| Name | sub_services_keep_service_terms |
| Type | Resource |
| Id | ovh.pack_xdsl.sub_services_keep_service_terms |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
is_allowed | boolean | Tells whether or not the service can be unpacked (wire: isAllowed) |
price | object | Price bill on the unpack action |
renew_period | number | Renew period in month of the service (wire: renewPeriod) |
renew_price | object | The price it will cost when it will be renew (wire: renewPrice) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain, pack_name | Get the unpack terms of a service of an xDSL pack. Returns whether the service can be taken out of the pack, the price billed and its renewal price and period. |
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"}}) |
domain | string | |
pack_name | string | The internal name of your pack (wire: packName) |
SELECT examples​
- get
Get the unpack terms of a service of an xDSL pack. Returns whether the service can be taken out of the pack, the price billed and its renewal price and period.
SELECT
is_allowed,
price,
renew_period,
renew_price
FROM ovh.pack_xdsl.sub_services_keep_service_terms
WHERE domain = '{{ domain }}' -- required
AND pack_name = '{{ pack_name }}' -- required
;