Skip to content

Authentication error when try to discover a new server. #2

@vzaletny

Description

@vzaletny

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions