Method: OneviewSDK::API200::ServerProfile.get_available_servers
- Defined in:
- lib/oneview-sdk/resource/api200/server_profile.rb
.get_available_servers(client, query = nil) ⇒ Hash
Gets the available servers based on the query parameters
326 327 328 329 330 331 332 333 334 |
# File 'lib/oneview-sdk/resource/api200/server_profile.rb', line 326 def self.get_available_servers(client, query = nil) if query query_uri = build_query(query) # profileUri attribute is not following the standards in OneView query_uri.sub!('serverProfileUri', 'profileUri') end response = client.rest_get("#{BASE_URI}/available-servers#{query_uri}") client.response_handler(response) end |