Skip to end of metadata
Go to start of metadata

Use the attachExistingDiskSafe API to attach an existing Disk Safe to Server Backup.

########====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 $PATH="/root/GeVol1/bcf0a572-e92c-43b1-8fcf-be2b4a1f395b"; $DESCRIPTION="DSattach"; $AGENTID="d6b1ec38-37b3-4648-bead-c5d54da56c27"; $VOLUMEID="8ece05a6-02bc-4d8a-ab7c-dd7c8b8d9b6c"; Class DiskSafe{ public $path; public $description; public $agentID; public $volumeID; public $diskSafeAttributeMap; } $diskSafe = new DiskSafe(); $diskSafe->path = $PATH; $diskSafe->description = $DESCRIPTION; $diskSafe->agentID = $AGENTID; if (strlen($VOLUMEID) > 1) { $diskSafe->volumeID = $VOLUMEID; } $diskSafe->diskSafeAttributeMap =array(); #Attach an existing disk safe to Server Backup. try{ $client = new soapclient("https://$HOST:$PORT/DiskSafe?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $response = $client->attachDisksafe(array('diskSafe'=>$diskSafe)) ; var_dump($response); echo "Successfully executed attachExistingDiskSafe\n"; } catch (SoapFault $exception) { echo $exception; }

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