lib/openstack/compute/server.rb
# Returns all details about the interface on this server.
#
#   >> server.interface_details
#   => array
Returns all details about the interface on this server.
Returns all details about the interface on this server .
def interface_details(id)
      response = @compute.connection.csreq("GET",@svrmgmthost,"#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface/#{id}",@svrmgmtport,@svrmgmtscheme,{'content-type' => 'application/json'})
      OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
      JSON::parse(response.body)["interfaceAttachment"]
    end
def interface_details ( id ) response = @compute . connection . csreq ( "GET" , @svrmgmthost , "#{@svrmgmtpath}/servers/#{URI.encode(self.id.to_s)}/os-interface/#{id}" , @svrmgmtport , @svrmgmtscheme , { 'content-type' => 'application/json' } ) OpenStack :: Exception . raise_exception ( response ) unless response . code . match ( / ^20.$ / ) JSON :: parse ( response . body ) [ "interfaceAttachment" ] end
Returns all details about the interface on this server.
Returns all details about the interface on this server .
id