Skip to main content

dedicated_horizon_customer_users

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

Overview​

Namededicated_horizon_customer_users
TypeResource
Idovh.horizon_view.dedicated_horizon_customer_users

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerCustomer id
emailstringEmail of your HaaS User
usernamestringCustomer username of your HaaS User

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, usernameGet this object properties
listselectservice_namex_pagination_modeAccount to access to your pool
createinsertservice_name, usernameCreate a new customer user
deletedeleteservice_name, usernameDelete this Customer User
change_passwordexecserviceName, usernameChange Horizon View Customer user password

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)
usernamestringCustomer username of your HaaS User
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
id,
email,
username
FROM ovh.horizon_view.dedicated_horizon_customer_users
WHERE service_name = '{{ service_name }}' -- required
AND username = '{{ username }}' -- required
;

INSERT examples​

Create a new customer user

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

DELETE examples​

Delete this Customer User

DELETE FROM ovh.horizon_view.dedicated_horizon_customer_users
WHERE service_name = '{{ service_name }}' --required
AND username = '{{ username }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change Horizon View Customer user password

EXEC ovh.horizon_view.dedicated_horizon_customer_users.change_password
@serviceName='{{ serviceName }}' --required,
@username='{{ username }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;