2 of 2 people found this helpful
What version of AAPI are you using? (ctm --version)
I am running 9.20.20 and I can supply this ctm run job::hold <Control-M Server>:<OrderId> and it holds the job. For example:
C:\Users\Louis>ctm run job::hold Workstation:003i8
"message": "Workstation:003i8 was successfully held"
Notice that jobs is plural with the get function but singular with the hold function.
Even the documentation of 9.0.18 and 184.108.40.206 says JobId and not runId
You can use a higher version of AAPI against a lower version of Control-M as I'm using 9.20.25 against a 9.0.19 Server.
Sorry, rookie mistake not including versions. We are on AAPI 9.0.20.025 and EM/CTM are 220.127.116.11.
Thanks very much for sharing that with me, I would not have thought to even try just using order ID since it isn't documented (but will remember that in the future). I tested using order ID and it worked as advertised so thanks again for the response Louis Vincent