When I try to discover a new server and call client.servers.discover('newovmhost') function, oracle vm manager API returns authentication error. There is some info on Web Services API Developer's Guide about server discovery. We should pass OVS-Agent password to connect a new server.
...
uri_params={'serverName':'1.example.com', 'takeOwnershipIfUnowned':'True'}
data='p4ssword'
r=s.post(baseUri+'/Server/discover', data, params=uri_params)
https://docs.oracle.com/cd/E50245_01/E50253/html/vmprg-rest-example-server-discover-python.html
Can somebody help me, how modify code to fix the issue?