class Rbeapi::Api::Aaa

The Aaa class manages Authorization, Authentication and Accounting (AAA) on an EOS node.

Public Instance Methods

get() click to toggle source

get returns a hash of all Aaa resources.

@example

{
  <groups>: {
    <name>: {
      type: <string>,
      servers: <array>
    },
    <name>: {
      type: <string>,
      servers: <array>
    }
  }
}

@return [Hash<Symbol, Object>] Returns the Aaa resources as a

Hash. If no Aaa resources are found, an empty hash is returned.
# File lib/rbeapi/api/aaa.rb, line 63
def get
  response = {}
  response[:groups] = groups.getall
  response
end
groups() click to toggle source

Returns an object node for working with AaaGroups class.

# File lib/rbeapi/api/aaa.rb, line 71
def groups
  return @groups if @groups
  @groups = AaaGroups.new node
  @groups
end