How to run a job with a REST API Call

edited September 12, 2017 in Documentum

I am trying to run the dm_LDAPSyncronization job with a REST URL Link.

<link rel="http://identifiers.emc.com/linkrel/dql" hreftemplate="https://serverhost.com/dctm-rest/repositories/REPO1{?dql,page,items-per-page}"/>

in the DQL Editor I can run  EXECUTE do_method WITH METHOD='dm_LDAPSynchronization'


I would like to be able to run this from POSTMAN, or through the HTTPS REST link above.

https://serverhost.com/dctm-rest/repositories/REPO1?dql=EXECUTE%20do_method%20WITH%20method_name='dm_LDAPSynchronization',%20-queueperson,%20-full_sync%20true,%20-ldap_user_cache_size%2030000,%20-ldap_group_cache_size%2010000,%20-pagesize%201000,%20-window_interval%2014400

REMOVED BRACKETS

https://serverhost.com/dctm-rest/repositories/REPO1?dql=EXECUTE%20do_method%20WITH%20method_name='dm_LDAPSynchronization'

REMOVED ARGUMENTS





Tagged:

Best Answer

  • edited September 12, 2017 Accepted Answer

    Alvaro is right. RESTful job service is under evaluation and we will bring more administrative APIs into REST future releases. Please also raise any new feature requirement to Documentum product management team so that we can coordinate the priority.

Answers

  • edited September 11, 2017

    There is no OOTB way to do this, as query execution is limited to search queries only. You can customize the query functionality or you can extend the rest services by creating a new one to run methods.

  • edited September 12, 2017 Accepted Answer

    Alvaro is right. RESTful job service is under evaluation and we will bring more administrative APIs into REST future releases. Please also raise any new feature requirement to Documentum product management team so that we can coordinate the priority.

Sign In or Register to comment.