Method: OneviewSDK::API200::ServerProfile.get_available_targets

Defined in:
lib/oneview-sdk/resource/api200/server_profile.rb

.get_available_targets(client, query = nil) ⇒ Object

Get the available targets based on the query parameters

Parameters:

  • client (OneviewSDK::Client)

    The client object for the OneView appliance

  • query (Hash<String,Object>) (defaults to: nil)

    Query parameters

Options Hash (query):

  • 'enclosure_group' (OneviewSDK::EnclosureGroup)

    Enclosure Group associated with the resource

  • 'server_profile' (OneviewSDK::ServerProfile)

    The server profile associated with the resource

  • 'server_hardware_type' (OneviewSDK::ServerHardwareType)

    The server hardware type associated with the resource



377
378
379
380
381
# File 'lib/oneview-sdk/resource/api200/server_profile.rb', line 377

def self.get_available_targets(client, query = nil)
  query_uri = build_query(query) if query
  response = client.rest_get("#{BASE_URI}/available-targets#{query_uri}")
  client.response_handler(response)
end