Skip to main content

packs

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

Overview​

Namepacks
TypeResource
Idovh.pack_xdsl.packs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
pack_namestringName of the xdsl pack (wire: packName)
capabilitiesobjectCapabilities of the pack
descriptionstringCustomer pack description
iamobjectIAM resource metadata
offer_descriptionstringName of the offer (wire: offerDescription)
offer_priceobjectPrice of the offer (wire: offerPrice)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpack_nameGet an xDSL pack. Returns the pack name, its offer description and price, the customer description and the pack capabilities.
listselectiam_tags, x_pagination_modeList xDSL packs. Returns the names of the xDSL packs of the account. Each name is the packName used by the other pack calls.
updateupdatepack_nameUpdate an xDSL pack. Changes the settings that can be modified: the customer description of the pack.
address_move_move_offerexecpackName, acceptContracts, eligibilityReference, keepCurrentNumber, modem, offerName, otp, productCodeMove an xDSL pack to another address. Starts the move to the new address with the chosen offer, modem, installation details and services to keep or delete. Returns an asynchronous task.
address_move_offersexecpackName, eligibilityReferenceSearch the address move offers of an xDSL pack. Returns, as an asynchronous task, the offers available at the new address for the given eligibility reference.
address_move_services_to_delete_unpack_termsexecpackName, eligibilityReference, offerNameList the services to delete to move an xDSL pack. Returns, by service type, the number of services to delete and their unpack terms for the offer at the new address.
cancel_resiliationexecpackNameCancel the resiliation of an xDSL pack. Cancels the ongoing resiliation of the pack. Check first that it can be canceled with canCancelResiliation.
change_contactexecpackNameChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service.
migration_migrateexecpackName, acceptContracts, modem, offerNameMigrate an xDSL pack to another offer. Starts the migration to the selected offer with its options, modem, installation details and services to keep or delete. Returns the task that performs it.
migration_offersexecpackNameSearch the migration offers of an xDSL pack. Returns, as an asynchronous task, the offers the pack can migrate to and, for fiber, the buildings to choose from.
migration_services_to_delete_unpack_termsexecpackName, offerNameList the services to delete to migrate an xDSL pack. Returns, by service type, the number of services to delete and their unpack terms for the target offer.
promotion_code_generateexecpackNameGenerate a promotion code for an xDSL pack. Creates a new promotion code for the pack. Returns the task that performs it.
resiliateexecpackName, resiliationSurveyResiliate an xDSL pack. Requests the resiliation of the pack at the given date with a resiliation survey, keeping the listed services. Returns the resiliation follow-up.
voip_line_options_custom_shipping_addressexecpackName, address, cityName, firstName, lastName, zipCodeCreate a shipping address for a VoIP line order. Adds an address from a name, street address, zip code and city, and returns its shipping ID.

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 an xDSL pack. Returns the pack name, its offer description and price, the customer description and the pack capabilities.

SELECT
pack_name,
capabilities,
description,
iam,
offer_description,
offer_price
FROM ovh.pack_xdsl.packs
WHERE pack_name = '{{ pack_name }}' -- required
;

UPDATE examples​

Update an xDSL pack. Changes the settings that can be modified: the customer description of the pack.

UPDATE ovh.pack_xdsl.packs
SET
description = '{{ description }}'
WHERE
pack_name = '{{ pack_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Move an xDSL pack to another address. Starts the move to the new address with the chosen offer, modem, installation details and services to keep or delete. Returns an asynchronous task.

EXEC ovh.pack_xdsl.packs.address_move_move_offer
@packName='{{ packName }}' --required
@@json=
'{
"acceptContracts": {{ acceptContracts }},
"building": "{{ building }}",
"buildingReference": "{{ buildingReference }}",
"contactPhone": "{{ contactPhone }}",
"door": "{{ door }}",
"eligibilityReference": "{{ eligibilityReference }}",
"engageMonths": {{ engageMonths }},
"floor": "{{ floor }}",
"installationType": "{{ installationType }}",
"keepCurrentNumber": {{ keepCurrentNumber }},
"meeting": "{{ meeting }}",
"modem": "{{ modem }}",
"mondialRelayId": {{ mondialRelayId }},
"moveOutDate": "{{ moveOutDate }}",
"nicShipping": "{{ nicShipping }}",
"offerName": "{{ offerName }}",
"ontShippingContact": "{{ ontShippingContact }}",
"options": "{{ options }}",
"otp": {{ otp }},
"otpReference": "{{ otpReference }}",
"productCode": "{{ productCode }}",
"residence": "{{ residence }}",
"stair": "{{ stair }}",
"subServicesToDelete": "{{ subServicesToDelete }}",
"subServicesToKeep": "{{ subServicesToKeep }}"
}'
;