Created
February 24, 2016 15:30
-
-
Save chelnak/200b73bf5795d1191b16 to your computer and use it in GitHub Desktop.
Example of interacting with the control center action "Cancel all tokens of a workflow" in vRO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| Cancel all tokens of a workflow or a list of specific workflow tokens | |
| Example body | |
| { | |
| "tokenIds" : [], | |
| "workflowId" : "f75459b7-128d-4ff0-ad99-b9d454307eeb" | |
| } | |
| #> | |
| $WorkflowId = "f75459b7-128d-4ff0-ad99-b9d454307eeb" | |
| $Uri = "https://[yourvroserver]:8283/vco-controlcenter/api/server/cancel-workflows" | |
| $Body = @" | |
| { | |
| "workflowId" : "$($WorkflowId)" | |
| } | |
| "@ | |
| Invoke-RestMethod -Method POST -Uri $URI -Headers @{"Content-Type" = "application/json";} -Body $Body -Credential (Get-Credential $null) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment