Skip to end of metadata
Go to start of metadata

Use the activateProduct API to activate Server Backup.

#include('../common/parseargs.php'); #include('../common/basicargcheck.php'); #include('../common/getObject.php'); #$USAGE=" --licenseKey= --serverDescription= --manualActivation"; ########====CDP Server Configuration Start====######## #set CDP server host name $HOST="10.230.131.25"; #set CDP server to access API $PORT="9443"; #set CDP user $USER="admin"; #set CDP user password $PASS="admin"; ########====CDP Server Configuration End====######## #arguments /*$LICENSEKEY=$args_array['licenseKey']; $SERVERDESCRIPTION=$args_array['serverDescription']; $MANUALACTIVATION=$args_array['manualActivation'];*/ $LICENSEKEY="e401e42d-2545-4491-8815-c4c1686dd06a"; $SERVERDESCRIPTION="squeezeDebian"; $MANUALACTIVATION=FALSE; $ServerLicenseInformation->licenseKey = $LICENSEKEY; $ServerLicenseInformation->serverDescription = $SERVERDESCRIPTION; #Activate Server Backup. try{ $client = new soapclient("https://$HOST:$PORT/Configuration?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $response=$client->activateProduct(array('serverLicenseInformation'=>$ServerLicenseInformation, 'manualActivation'=>$MANUALACTIVATION)) ; var_dump($response); echo "Successfully executed activateProduct\n"; exit(0); } catch (SoapFault $exception) { echo $exception; exit(1); }

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.