I'm trying to get a workflow to run using PHP/CURL and all I get in response is a blank browser screen and no workflow execution in orchestrator.
The workflow ID here is a standard out of the box workflow under vcenter/Batch/Fill batch configuration elements. I chose this one because I just wanted a test case that required no parameters and then move onto something more complicated.
Can someone point out what I am doing incorrectly? Also, if I could ask - would someone be able to provide the change I would make to include 1 or 2 parameters?
Any help is appreciated.
Thank you,
Gillon
<?php $url = 'https://1.2.3.4:8281/vco/api/Workflows/36808080808080808080808080808080A1808080012233687034703cc9494706e/executions'; $curlOptions = array(CURLOPT_URL => $url, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_SSLVERSION => 3, CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_USERPWD => "username:password", CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => true, CURLOPT_HTTPHEADER => array('Contecnt-Type: application/xml') ); curl_setopt_array($curl, $curlOptions + $this->curlOptDefaults); $content = curl_exec($curl); if(curl_errno($curl) != 0) { echo "Error CURL : " . curl_error($curl); die(''); } $tabWorkFlows = json_decode($content, true); ?>