Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Functions 'get_by_*' in example server_hardware.py do not exist #443

Open
DungKHoang opened this issue Jul 12, 2019 · 1 comment
Open

Functions 'get_by_*' in example server_hardware.py do not exist #443

DungKHoang opened this issue Jul 12, 2019 · 1 comment

Comments

@DungKHoang
Copy link

Scenario/Intent

Use example server_hardware.py. Function

  • get_by_uri
    -get_by_name

Environment Details

  • **OneView SDK Version:**4.80
  • OneView Appliance Version: [Version of the OneView appliance you're interacting with]
  • OneView Client API Version: 800

Actual Result

Line 57 in example:
server = server_hardwares.get_by_name(server_name)
Line 79 in example:
server_byId = server_hardwares.get_by_uri(server.data['uri'])

do not work

@sijeesh
Copy link
Collaborator

sijeesh commented Jul 23, 2019

@DungKHoang , get_by_name and get_by_uri methods are implemented in SDK version 5.0.0-beta its not available with SDK version 4.8, I think you got confused with the SDK versions.

Use get_by method with filed and value parameters, If you want the same functionality in SDK version 4.8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants