Skip to content

Instantly share code, notes, and snippets.

@chelnak
Created May 4, 2017 10:29
Show Gist options
  • Save chelnak/dd60d927343065fbd2dc46040d53bd65 to your computer and use it in GitHub Desktop.
Save chelnak/dd60d927343065fbd2dc46040d53bd65 to your computer and use it in GitHub Desktop.
o11n-gateway-service API execute workflow example
$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