Skip to end of metadata
Go to start of metadata

Use the getFileRestoreStatistics API to retrieve the current statistics for your file restore tasks.

########====CDP Server Configuration Start====######## #set CDP server host name $HOST="127.0.0.1"; #set CDP server to access API $PORT="9443"; #set CDP user $USER="admin"; #set CDP user password $PASS="admin"; ########====CDP Server Configuration End====######## ########====Set File Restore Task ID Start====######## $TASK_ID = "579b7dc7-6fc2-4e7c-b3da-ddfa81c0a5f7"; ########====Set File Restore Task ID End====######## #Retrieve file restore task statistics try{ $taskServiceClient = new soapclient("https://$HOST:$PORT/TaskHistory?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1, 'cache_wsdl' => WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS) ); $response = $taskServiceClient->getFileRestoreStatistics(array('taskExecutionContextID'=>$TASK_ID)); var_dump($response); echo "Successfully executed getFileRestoreStatistics\n"; exit(0); } catch (SoapFault $exception) { echo "Failed to execute getFileRestoreStatistics\n"; echo $exception; exit(1); }

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