Skip to main content

syncs

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

Overview​

Namesyncs
TypeResource
Idovh.ms_services.syncs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_pending_idintegerTask pending id (wire: taskPendingId)
statestringExchange service state (creating, deleting, inMaintenance, ok, reopening, suspended, suspending)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the synchronization service (Deprecated, will be removed)
deletedeleteservice_nameDelete sync service (Deprecated, will be removed)
change_passwordexecserviceName, passwordChange account password (Deprecated, will be removed)

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"}})
serviceNamestringThe internal name of your Active Directory organization
service_namestringThe internal name of your Active Directory organization (wire: serviceName)

SELECT examples​

Get the synchronization service (Deprecated, will be removed)

SELECT
task_pending_id,
state
FROM ovh.ms_services.syncs
WHERE service_name = '{{ service_name }}' -- required
;

DELETE examples​

Delete sync service (Deprecated, will be removed)

DELETE FROM ovh.ms_services.syncs
WHERE service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change account password (Deprecated, will be removed)

EXEC ovh.ms_services.syncs.change_password
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;