operation can be used with the name of the desired
workflow in the param0 field. Cisco UCS Director
comes by default with a large number of predefined
workflows. One of them is the “VMware OVF
Deployment,” which, as the name implies, can deploy
new VMware virtual machines based on OVF images.
The curl command in Example 9-14 contains the API
call to retrieve all the inputs for this workflow.
Example 9-14 curl Command to Retrieve Workflow
Inputs in Cisco UCS Director
Click here to view code image
curl -k -L -X GET \
-g 'http://10.10.10.66/app/api/rest?
formatType=json&opName=userAPIGetWorkflowInput
s&opData=
{param0:%22VMware%20OVF%20Deployment%22}' \
-H 'X-Cloupia-Request-Key:
8187C34017C3479089C66678F32775FE'
Notice that the name of the workflow is passed in the API
call in the param0 parameter and also that VMware
OVF Deployment is encoded, using single quotation
marks and spaces between the words. Example 9-15
shows a snippet of the response.
The response contains similar fields to the response in
Example 9-14. opName is confirmed as
userAPIGetWorkflowInputs, the back-end service
that responded to the request is once again InfraMgr,
serviceError is null (indicating that there were no
errors in processing the request), and serviceResult
contains a list called details, which includes all the
inputs and their properties for the VMware OVF
Deployment workflow.
Example 9-15 curl Command Response Containing
Workflow Inputs in Cisco UCS Director
Click here to view code image