Use the getAgentById API to retrieve a Backup Agent based on the entered GUID.
 
########====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====########
$AGENTID = "407299a0-ef82-44a1-b496-047deb9c7ccf";
#Retrieve a Backup Agent based on the entered GUID.
try{
        $client = new soapclient("https://$HOST:$PORT/Agent?wsdl",
                array('login'=>"$USER",
                'password'=>"$PASS",
                'trace'=>1
                )
        );
        $response = $client->getAgentById(array('id'=>"$AGENTID")) ;
        var_dump($response);
}
catch (SoapFault $exception)
{
        echo $exception;
}
 
 
        
        
            Labels:
        
        
            
                None
            
            
                            
                    
        
        
    