Skip to main content

accesses

Creates, updates, deletes, gets or lists an accesses resource.

Overview​

Nameaccesses
TypeResource
Idovh.xdsl.accesses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
access_namestring (wire: accessName)
pack_namestringPack name, if access is in a pack (wire: packName)
access_typestringPossible copper or fiber technologies (adsl, ftte, ftth, ftto, sdsl, vdsl) (wire: accessType)
addressobjectAll components of an address
capabilitiesobjectDescribe the capabilities of the Access
descriptionstring
iamobjectIAM resource metadata
ipv_6_enabledboolean (wire: ipv6Enabled)
lns_rate_limitintegerRate limit on the LNS in kbps - Only available if canApplyLnsRateLimit capability is set to true - Must be a multiple of 64 - Min value 64 / Max value 100032 (wire: lnsRateLimit)
mail_sendingstringStatus of mail sending on the Access (blockedForSpam, disabled, enabled) (wire: mailSending)
modem_profilestringGet modem profile connection linked to the access (A, B, C, D) (wire: modemProfile)
monitoringbooleanWhether or not this access is monitored
mttrstringGet the Mean Time To Repair (MTTR) of the access (10ho, 20m_10ho, 20m_4ho, 4hno, 4ho, 5m_10ho, 5m_4ho, dplus1, none)
nrastring
pairs_numberinteger (wire: pairsNumber)
providerstringThe provider (axione, bouygues, ft, ftBySfr, kosc, koscDeg, ovh, sfr)
provider_infrastringThe provider of the infrastructure, if applicable (wire: providerInfra)
rolestringAvailable access roles (backup, main)
statusstringStatus of the access (active, cancelled, close, deleting, doing, migration, slamming, terminated, upgradeOffer)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the access type, address, status, provider, NRA, pack name, IPv6 and mail sending status, monitoring, LNS rate limit, mean time to repair and capabilities.
listselectiam_tags, x_pagination_modeReturns the names of the xDSL accesses of the account. Each name is the serviceName used by the other xDSL calls.
updateupdateservice_nameChanges the settings that can be modified: the customer description, the monitoring and the LNS rate limit.
address_move_extra_ip_range_moveexecserviceNameStarts the move of the extra IP range of the access to its new access after an address move. Returns the task that performs the change.
apply_template_to_modemexecserviceName, templateNameApplies a modem template to the modem of the access, except the parameters the template ignores. Returns the task that performs the change.
cancel_resiliationexecserviceNameCancels the ongoing resiliation of the access. Check first that it can be canceled with canCancelResiliation.
change_contactexecserviceNameStarts a procedure to change the admin, tech or billing contact of the access. Returns the IDs of the contact change tasks.
ipv6execserviceName, enabledTurns IPv6 on or off for the access. Returns the task that performs the change.
log_urlexecserviceName, kindGenerates a temporary URL to read the logs of one kind. The URL expires.
mail_sendingexecserviceName, statusAllows or blocks outgoing email (SMTP) from the access. Returns the task that performs the change.
order_meetingexecserviceName, endDate, startDate, uiCodeBooks one of the time slots returned by searchOrderMeetings for the access and relaunches its order.
request_ppp_login_mailexecserviceNameRenews the PPP password of the access and sends the PPP login information to the email address of the admin contact.
request_total_deconsolidationexecserviceNameSwitches the access to total deconsolidation, porting its line number with its RIO code unless noPortability is set. Returns the task that performs the change.
resiliateexecserviceName, resiliationSurveyRequests the resiliation of the access at the given date with a resiliation survey. Returns the resiliation status, effective date and whether the modem must be returned.
search_order_meetingsexecserviceNameReturns, as an asynchronous task, the available time slots for the line creation meeting of the access order.
send_order_to_providerexecserviceNameSends to the provider an order in waitingCustomer status. Only applies to orders whose modem was sent before anything was forwarded to the provider.
update_invalid_or_missing_rioexecserviceName, relaunchWithoutPortabilitySets the RIO code of an order in error because of a missing or invalid RIO, or relaunches the order without number portability.

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)
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​

Returns the access type, address, status, provider, NRA, pack name, IPv6 and mail sending status, monitoring, LNS rate limit, mean time to repair and capabilities.

SELECT
access_name,
pack_name,
access_type,
address,
capabilities,
description,
iam,
ipv_6_enabled,
lns_rate_limit,
mail_sending,
modem_profile,
monitoring,
mttr,
nra,
pairs_number,
provider,
provider_infra,
role,
status
FROM ovh.xdsl.accesses
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Changes the settings that can be modified: the customer description, the monitoring and the LNS rate limit.

UPDATE ovh.xdsl.accesses
SET
description = '{{ description }}',
lns_rate_limit = {{ lns_rate_limit }},
monitoring = {{ monitoring }}
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts the move of the extra IP range of the access to its new access after an address move. Returns the task that performs the change.

EXEC ovh.xdsl.accesses.address_move_extra_ip_range_move
@serviceName='{{ serviceName }}' --required
;