bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
103 stars 41 forks source link

cancelRunningJobs vs cancelRunningObject, trying to cancel single protection job #170

Closed dragongeek closed 4 months ago

dragongeek commented 4 months ago

I'm trying to cancel a single running protection job, but can't tell from the parameters list if or how this is possible using your python scripts. I don't understand the reference to "an object" in cancelRunningObject, and don't see a protection job name or ID in cancelRunningJobs. Apologies if I'm missing this. A couple of examples might help if the functionality is there and I'm just not understanding.

bseltz-cohesity commented 4 months ago
./cancelRunningJobs.py -v mycluster -u myuser -j 'my job name'
dragongeek commented 4 months ago

Super-de-duper. Thanks Brian. That works.