class OneviewSDK::API200::ManagedSAN

Managed SAN resource implementation

Constants

BASE_URI

Public Instance Methods

create(*) click to toggle source

Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 22
def create(*)
  unavailable_method
end
delete(*) click to toggle source

Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 28
def delete(*)
  unavailable_method
end
get_endpoints() click to toggle source

Retrieves a list of endpoints @return [Array] List of endpoints

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 40
def get_endpoints
  response = @client.rest_get(@data['uri'] + '/endpoints')
  @client.response_handler(response)['members']
end
get_zoning_report() click to toggle source

Creates unexpected zoning report for a SAN

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 77
def get_zoning_report
  response = @client.rest_post(@data['uri'] + '/issues', 'body' => {})
  @client.response_handler(response)
end
set_public_attributes(attributes) click to toggle source

Set public attributes @param [Hash] attributes Public attributes @option attributes [String] :name @option attributes [String] :value @option attributes [String] :valueType @option attributes [String] :valueFormat

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 58
def set_public_attributes(attributes)
  response = @client.rest_put(@data['uri'], 'body' => { publicAttributes: attributes })
  @client.response_handler(response)
end
set_refresh_state(state) click to toggle source

Set refresh state for managed SAN @param [String] state Desired refresh state

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 47
def set_refresh_state(state)
  response = @client.rest_put(@data['uri'], 'body' => { refreshState: state })
  @client.response_handler(response)
end
set_san_policy(policy) click to toggle source

Set public attributes @param [Hash] policy SAN policy @option attributes [String] :zoningPolicy @option attributes [String] :zoneNameFormat @option attributes [String] :enableAliasing @option attributes [String] :initiatorNameFormat @option attributes [String] :targetNameFormat @option attributes [String] :targetGroupNameFormat

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 71
def set_san_policy(policy)
  response = @client.rest_put(@data['uri'], 'body' => { sanPolicy: policy })
  @client.response_handler(response)
end
update(*) click to toggle source

Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available

# File lib/oneview-sdk/resource/api200/managed_san.rb, line 34
def update(*)
  unavailable_method
end