Skip to main content

domain_trusts

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

Overview​

Namedomain_trusts
TypeResource
Idovh.horizon_view.domain_trusts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
domain_trust_idintegerDomain trust id (wire: domainTrustId)
active_directory_ipstring (ipv4)IP of your Active Directory (example: 192.0.2.0) (wire: activeDirectoryIP)
dns_1string (ipv4)IP of your first DNS (example: 192.0.2.0) (wire: dns1)
dns_2string (ipv4)IP of your second DNS (example: 192.0.2.0) (wire: dns2)
domainstringName of your private domain

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain_trust_id, service_nameGet this object properties
listselectservice_namex_pagination_modeList all Active Directories linked to your CDI Active Directory
createinsertservice_name, active_directory_ip, domainLink your Active Directory to your CDI Active Directory
add_child_domainexecdomainTrustId, serviceName, activeDirectoryIP, domain, passphrase, serviceAccountPasswordAdd a child domain for this domain.
add_domain_controllerexecdomainTrustId, serviceName, domain, domainControllerIpAdd a Domain Controller for this domain.
add_domain_user_on_composerexecdomainTrustId, serviceName, domain, password, usernameAdd a domain user to add your desktop in your Active Directory
create_trustexecdomainTrustId, serviceName, passphrase, serviceAccountPasswordChange Horizon View 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"}})
domainTrustIdintegerDomain trust id
domain_trust_idintegerDomain trust id (wire: domainTrustId)
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
domain_trust_id,
active_directory_ip,
dns_1,
dns_2,
domain
FROM ovh.horizon_view.domain_trusts
WHERE domain_trust_id = '{{ domain_trust_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Link your Active Directory to your CDI Active Directory

INSERT INTO ovh.horizon_view.domain_trusts (
active_directory_ip,
dns_1,
dns_2,
domain,
service_name
)
SELECT
'{{ active_directory_ip }}' /* required */,
'{{ dns_1 }}',
'{{ dns_2 }}',
'{{ domain }}' /* required */,
'{{ service_name }}'
RETURNING
name,
task_id,
description,
last_modification_date,
progress,
state
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Add a child domain for this domain.

EXEC ovh.horizon_view.domain_trusts.add_child_domain
@domainTrustId='{{ domainTrustId }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"activeDirectoryIP": "{{ activeDirectoryIP }}",
"domain": "{{ domain }}",
"passphrase": "{{ passphrase }}",
"serviceAccountPassword": "{{ serviceAccountPassword }}"
}'
;