python-hpOneView
python-hpOneView copied to clipboard
Functions 'get_by_*' in example server_hardware.py do not exist
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
@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.