chelnak
5/4/2017 - 10:29 AM

o11n-gateway-service API execute workflow example

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