module OneviewSDK::API300::Synergy::SASLogicalJBODHelper
Contains helper methods to include operation with SAS Logical JBOD
Constants
- ATTACHMENT_URI
- LOGICAL_JBOD_URI
Public Instance Methods
Retrieves a SAS Logical JBOD by name @param [OneviewSDK::Client] client The client object for the OneView appliance @param [String] name SAS Logical JBOD name @return [Hash] Hash with the SAS Logical JBOD if found or nil
# File lib/oneview-sdk/resource/api300/synergy/server_profile.rb, line 33 def get_sas_logical_jbod(client, name) results = get_sas_logical_jbods(client) results.find { |item| item['name'] == name } end
Retrieves a SAS Logical JBOD Attachment by name @param [OneviewSDK::Client] client The client object for the OneView appliance @param [String] name SAS Logical JBOD Attachment name @return [Hash] Hash with the SAS Logical JBOD Attachment if found or nil
# File lib/oneview-sdk/resource/api300/synergy/server_profile.rb, line 59 def get_sas_logical_jbod_attachment(client, name) results = get_sas_logical_jbod_attachments(client) results.find { |attachment| attachment['name'] == name } end
Retrieves all SAS Logical JBOD Attachments @param [OneviewSDK::Client] client The client object for the OneView appliance @return [Array] Array of SAS Logical JBOD Attachment
# File lib/oneview-sdk/resource/api300/synergy/server_profile.rb, line 51 def get_sas_logical_jbod_attachments(client) OneviewSDK::Resource.find_with_pagination(client, ATTACHMENT_URI) end
Retrieves drives by SAS Logical JBOD name @param [OneviewSDK::Client] client The client object for the OneView appliance @param [String] name SAS Logical JBOD name @return [Array] Array of drives allocated for SAS logical JBOD
# File lib/oneview-sdk/resource/api300/synergy/server_profile.rb, line 42 def get_sas_logical_jbod_drives(client, name) item = get_sas_logical_jbod(client, name) response = client.rest_get(item['uri'] + '/drives') client.response_handler(response) end
Retrieves all SAS Logical JBOD @param [OneviewSDK::Client] client The client object for the OneView appliance @return [Array] Array of SAS Logical JBOD
# File lib/oneview-sdk/resource/api300/synergy/server_profile.rb, line 25 def get_sas_logical_jbods(client) OneviewSDK::Resource.find_with_pagination(client, LOGICAL_JBOD_URI) end