Skip to end of metadata
Go to start of metadata

Use the getStoredDevicesForDiskSafe API to retrieve a list of devices stored on a Disk Safe.

########====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 $DISKSAFEID="0de3fcbc-cff1-4d03-a1bb-c0094cfaed3f"; Class DiskSafe{ public $id; public $diskSafeAttributeMap; } $diskSafe = new DiskSafe(); $diskSafe->id = $DISKSAFEID; $diskSafe->diskSafeAttributeMap =array(); #Retrieve a list of devices stored on a disk safe. try{ $client = new soapclient("https://$HOST:$PORT/DiskSafe?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $response = $client->getStoredDevicesForDiskSafe(array('diskSafe'=>$diskSafe)) ; var_dump($response); echo "Successfully executed getStoredDevicesForDiskSafe\n"; } catch (SoapFault $exception) { echo $exception; }

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