<?
$ch = curl_init();
$data = array("domainType" => "vx",
"domainName" => "mydomain",
"userName" => "myusername",
"password" => "mypassword");
curl_setopt($ch, CURLOPT_URL, "
masterservername" );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt($ch, CURLOPT_POSTFIELDS, $data );
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: Application/Vnd.Netbackup+json;version=1.0'));
$result = curl_exec ($ch);