Skip to main content

horizon_views

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

Overview​

Namehorizon_views
TypeResource
Idovh.horizon_view.horizon_views

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the datacenter
customer_interco_vlan_idintegerCustomer interco vlan allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack. (wire: customerIntercoVlanId)
datacenter_idintegerDatacenter ids (wire: datacenterId)
service_namestringDomain of your Horizon (wire: serviceName)
active_directory_ipstring (ipv4)IP of the VDI Active Directory (example: 192.0.2.0) (wire: activeDirectoryIP)
admin_domainstringDomain of the admin infrastructure (wire: adminDomain)
admin_network_next_hopstringNext hop to contact the private admin network (wire: adminNetworkNextHop)
admin_private_networkstring (ip-block)Private network of the admin infrastructure (example: 192.0.2.0/24) (wire: adminPrivateNetwork)
customer_interco_ipstring (ipv4)Customer interco IP allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack. (example: 192.0.2.0) (wire: customerIntercoIP)
customer_interco_maskstring (ipv4)Customer interco netmask allows you to communicate between your private infrastructure and your CDI infrastructure throw the vrack. (example: 192.0.2.0) (wire: customerIntercoMask)
iamobjectIAM resource metadata

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet this object properties
listselectiam_tags, x_pagination_modeHorizon View as a Service
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

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"}})
serviceNamestringDomain of the service
service_namestringDomain of the service (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​

Get this object properties

SELECT
name,
customer_interco_vlan_id,
datacenter_id,
service_name,
active_directory_ip,
admin_domain,
admin_network_next_hop,
admin_private_network,
customer_interco_ip,
customer_interco_mask,
iam
FROM ovh.horizon_view.horizon_views
WHERE service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Confirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.

EXEC ovh.horizon_view.horizon_views.confirm_termination
@serviceName='{{ serviceName }}' --required
@@json=
'{
"commentary": "{{ commentary }}",
"futureUse": "{{ futureUse }}",
"reason": "{{ reason }}",
"token": "{{ token }}"
}'
;