Skip to main content

packs

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

Overview​

Namepacks
TypeResource
Idovh.pack_siptrunk.packs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
pack_namestringName of the SIP trunk pack (wire: packName)
iamobjectIAM resource metadata

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpack_nameGet this object properties
listselectiam_tags, x_pagination_modeList available services
change_contactexecpackNameChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

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"}})
packNamestringThe internal name of your pack
pack_namestringThe internal name of your pack (wire: packName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
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
pack_name,
iam
FROM ovh.pack_siptrunk.packs
WHERE pack_name = '{{ pack_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

EXEC ovh.pack_siptrunk.packs.change_contact
@packName='{{ packName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;