Populate Action Using POST
Performing a POST /api/actions/{id}/query
would yield a response object that includes the resources that the action would apply to with the populated values of each action context field for the resource. The response contains information about the parameters to the action's method. It also includes a sample input that would be used for running the action with POST /api/actions/{id}
if you chose to run it on all applicable resources and not change the default input values.
The json result inside actionExecution can be used directly as input perform the action. In the xml result, the xml element ops:action-execution will need namespace binding added to it in order to use it in the request. xmlns:ops="http://webservice.vmware.com/vRealizeOpsMgr/1.0/"
The Id for the action to be populate.
The additional information needed to populate the action.
Show optional properties
{
"contextResourceId": [
{}
]
}
{
"contextResourceId": [
"string"
]
}
The UUID list of the resources that the population will be run against
The populated action information
{
"action-execution": {
"contextId": "string",
"contextResourceId": [
"string"
],
"parameterGroups": [
{
"parameterValue": [
{
"name": "string",
"value": "string"
}
],
"resourceId": "string"
}
]
},
"actionContext": {
"fields": [
{
"component": "string",
"displayOrder": 0,
"expressionResults": [
"string"
],
"hidden": false,
"id": "string",
"input": false,
"name": "string",
"parameterKey": "string"
}
],
"id": "string"
},
"id": "string",
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"methodParameters": [
{
"dataType": "string",
"id": "string",
"isList": false,
"isRequired": false
}
],
"resourceId": [
"string"
]
}
Contains describe instance data about performing an action.
Represents an executable step within an action. It defines which method the step calls and what fields related to this step.
The key of the populated action
The parameters for the method that was populated
The resource ids that apply to the populated action