Skip to main content

access_points

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

Overview​

Nameaccess_points
TypeResource
Idovh.horizon_view.access_points

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
access_point_idintegerPool id (wire: accessPointId)
port_group_idstringPort group id (wire: portGroupId)
dhcp_netmaskstring (ipv4)DHCP netmask in this port group (example: 192.0.2.0) (wire: dhcpNetmask)
dhcp_networkstring (ipv4)DHCP network in this port group (example: 192.0.2.0) (wire: dhcpNetwork)
external_urlstringExternal url of your access point (wire: externalUrl)
interco_next_hopstring (ipv4)Next hop IP to reach virtual desktops network for public Access Point (example: 192.0.2.0) (wire: intercoNextHop)
interco_private_next_hopstring (ipv4)Next hop IP to reach virtual desktops network for private Access Point (example: 192.0.2.0) (wire: intercoPrivateNextHop)
statestringNetwork state (available, creating, delivered, disabled, error, reserved)
two_fabooleanTwo factor authentication (wire: twoFA)
typestringPool type (hybridPool, privatePool, publicPool)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccess_point_id, service_nameGet this object properties
listselectservice_namex_pagination_modePool associated with this Datacenter
createinsertservice_name, pool_typeAdd new access point to create a new network
deletedeleteaccess_point_id, service_nameDelete this access point
change_session_timeoutexecaccessPointId, serviceName, expirationManage your session Timeout on Unified Access Gateway
disable_two_faexecaccessPointId, serviceNameDisable two factor authentication on your pool
disable_windows_username_optionexecaccessPointId, serviceNameDisable windows Username option on Unified Access Gateway
enable_two_faexecaccessPointId, serviceName, radiusIp, secretEnable two factor authentication on your pool
enable_windows_username_optionexecaccessPointId, serviceNameEnable windows Username option on Unified Access Gateway

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
accessPointIdintegerPool id
access_point_idintegerPool id (wire: accessPointId)
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"}})
serviceNamestringDomain of the service
service_namestringDomain of the service (wire: serviceName)
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
access_point_id,
port_group_id,
dhcp_netmask,
dhcp_network,
external_url,
interco_next_hop,
interco_private_next_hop,
state,
two_fa,
type
FROM ovh.horizon_view.access_points
WHERE access_point_id = '{{ access_point_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Add new access point to create a new network

INSERT INTO ovh.horizon_view.access_points (
pool_type,
private_block,
private_vlan,
vrouter_pool_public_ip,
service_name
)
SELECT
'{{ pool_type }}' /* required */,
'{{ private_block }}',
{{ private_vlan }},
'{{ vrouter_pool_public_ip }}',
'{{ service_name }}'
RETURNING
name,
task_id,
description,
last_modification_date,
progress,
state
;

DELETE examples​

Delete this access point

DELETE FROM ovh.horizon_view.access_points
WHERE access_point_id = '{{ access_point_id }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Manage your session Timeout on Unified Access Gateway

EXEC ovh.horizon_view.access_points.change_session_timeout
@accessPointId='{{ accessPointId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"expiration": {{ expiration }},
"onSingleAP": "{{ onSingleAP }}"
}'
;