Skip to end of metadata
Go to start of metadata

Use the getVolumeById API to retrieve a volume based on the entered ID.

########====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====######## $VOLUMEID="2a6f6bc0-0625-4128-a121-147af155cd98"; #Retrieve a volume based on the entered ID. try{ $client = new soapclient("https://$HOST:$PORT/Volume?wsdl", array('login'=>"$USER", 'password'=>"$PASS", 'trace'=>1 ) ); $response = $client->getVolumeById(array('id'=>"$VOLUMEID")) ; var_dump($response); } catch (SoapFault $exception) { echo $exception; }

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