[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Populate Action

Description


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/"

Request

Request

URL

URL


post
https://localhost/suite-api/api/actions/{id}/query
Copy

Path Parameters

Path Parameters

string
id Required

The Id for the action to be populate.


Request Body

Request Body

action-population of type(s) application/json, application/xml Required

The additional information needed to populate the action.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns PopulatedAction of type(s) application/json, application/xml

The populated action information

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"contextResourceId":["string"]}' https://localhost/suite-api/api/actions/{id}/query


[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations
Feedback

Was this page helpful?