Method: OneviewSDK::LogicalInterconnect#create
- Defined in:
- lib/oneview-sdk/resource/logical_interconnect.rb
#create(bay_number, enclosure) ⇒ Object
Creates an Interconnect in the desired bay in a specified enclosure WARN: It does not create the LOGICAL INTERCONNECT itself. It will fail if no interconnect is already present on the specified position
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/oneview-sdk/resource/logical_interconnect.rb', line 23 def create(bay_number, enclosure) enclosure.ensure_uri entry = { 'locationEntries' => [ { 'value' => bay_number, 'type' => 'Bay' }, { 'value' => enclosure['uri'], 'type' => 'Enclosure' } ] } response = @client.rest_post(self.class::LOCATION_URI, { 'body' => entry }, @api_version) @client.response_handler(response) end |