modem_sip_algs
Creates, updates, deletes, gets or lists a modem_sip_algs resource.
Overview​
| Name | modem_sip_algs |
| Type | Resource |
| Id | ovh.xdsl.modem_sip_algs |
Fields​
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
value | string | Status of the service (disabled, enabled) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name | Returns whether the SIP ALG service is enabled or disabled on the modem of the access. | |
create | insert | service_name, sip_alg | Changes the status of the SIP ALG service on the modem of the access. Returns the task that performs the change. |
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"}}) |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- get
Returns whether the SIP ALG service is enabled or disabled on the modem of the access.
SELECT
value
FROM ovh.xdsl.modem_sip_algs
WHERE service_name = '{{ service_name }}' -- required
;
INSERT examples​
- create
- Manifest
Changes the status of the SIP ALG service on the modem of the access. Returns the task that performs the change.
INSERT INTO ovh.xdsl.modem_sip_algs (
sip_alg,
service_name
)
SELECT
'{{ sip_alg }}' /* required */,
'{{ service_name }}'
RETURNING
id,
done_date,
function,
is_archived,
status,
todo_date,
update_date
;
# Description fields are for documentation purposes
- name: modem_sip_algs
props:
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the modem_sip_algs resource.
- name: sip_alg
value: "{{ sip_alg }}"
description: |
Status of the service
valid_values: ['disabled', 'enabled']