Skip to content

Instantly share code, notes, and snippets.

@chelnak
Created May 4, 2017 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelnak/6d99d1a37dd44262925cae9152a77e85 to your computer and use it in GitHub Desktop.
Save chelnak/6d99d1a37dd44262925cae9152a77e85 to your computer and use it in GitHub Desktop.
o11n-gateway-service API execute action example
$Body = @"
{
"entries": [
{
"key": "name",
"value": {
"type": "string",
"value": "craig"
}
}
]
}
"@
$TenantId = "Tenant01"
$CategoryName = "test"
$ActionName = "testAction"
$URI = "/o11n-gateway-service/api/tenants/$($TenantId)/actions/$($CategoryName)/$($ActionName)/execute"
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