Reply to Message

View discussion in a popup

Replying to:
demhyt
Contributor
Contributor

You can use php to work with orchestrator, below this example

//parameters.inc

<?php

        $vco_server = "vco.lab.local";

        $vco_user = "administrator";

        $vco_pass = "administrator";

?>

//test.php

<?php

        include ("parameters.inc");

        $vco = new SoapClient('https://' . $vco_server . ':8281/vmware-vmo-webcontrol/webservice?WSDL');

        $param = array(username=>$vco_user,password=>$vco_pass);

        $result = $vco->getAllWorkflows($param);

        foreach ($result as $item)

        {

                foreach ($item as $work)

                {

                        echo $work->name;

                        echo "<br>";

                        echo "ID=";

                        echo $work->id;

                        echo "<br>";

                        echo "$work->description";

                        echo "<br>";

                        echo "<br>";

                }

        }

?>

Create two separate file test.php and parameters.inc, parameters,inc is your server ip / FQDN with username and password.....you can refer to orchestrator web services guide the web services reference API...

Reply
0 Kudos