Created
May 4, 2017 10:29
-
-
Save chelnak/dd60d927343065fbd2dc46040d53bd65 to your computer and use it in GitHub Desktop.
o11n-gateway-service API execute workflow example
This file contains 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
$Body = @" | |
{ | |
"requestHeader": null, | |
"requestData": { | |
"entries": [ | |
{ | |
"key": "host", | |
"value": { | |
"type": "string", | |
"value": "b89d15b9-b954-4046-9d76-778edd791b99" | |
} | |
} | |
] | |
}, | |
"correlation": null, | |
"requestedBy": "cgumbley@vsphere.local", | |
"description": null, | |
"callbackServiceId": null | |
} | |
"@ | |
$TenantId = "Tenant01" | |
$WorkflowId = "9ef7fdb1-2385-4fe5-adc7-5527ca124da7" | |
$URI = "/o11n-gateway-service/api/tenants/$($TenantId)/workflows/$($WorkflowId)" | |
Invoke-vRARestMethod -Method POST -URI $URI -Body $Body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment