Skip to main content

customer_networks

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

Overview​

Namecustomer_networks
TypeResource
Idovh.horizon_view.customer_networks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of your network
customer_network_idintegerCustomer Network id (wire: customerNetworkId)
networkstringCustomer network

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcustomer_network_id, service_nameGet this object properties
listselectservice_namex_pagination_modeYou can reach from the Desktops your private network
createinsertservice_name, name, networkAdd a new network
deletedeletecustomer_network_id, service_nameDelete this Customer Network

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"}})
customer_network_idintegerCustomer Network id (wire: customerNetworkId)
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
name,
customer_network_id,
network
FROM ovh.horizon_view.customer_networks
WHERE customer_network_id = '{{ customer_network_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Add a new network

INSERT INTO ovh.horizon_view.customer_networks (
name,
network,
service_name
)
SELECT
'{{ name }}' /* required */,
'{{ network }}' /* required */,
'{{ service_name }}'
RETURNING
name,
task_id,
description,
last_modification_date,
progress,
state
;

DELETE examples​

Delete this Customer Network

DELETE FROM ovh.horizon_view.customer_networks
WHERE customer_network_id = '{{ customer_network_id }}' --required
AND service_name = '{{ service_name }}' --required
;