Class: IControl::Networking::SelfIPPortLockdown

Inherits:
Base
  • Object
show all
Defined in:
lib/icontrol/networking/self_ip_port_lockdown.rb,
lib/icontrol/networking.rb

Overview

The SelfIPPortLockdown interface enables you to lock down protocols and ports on self IP addresses.

Defined Under Namespace

Classes: AllowMode, AllowModeSequence, ProtocolPort, ProtocolPortSequence, SelfIPAccess, SelfIPAccessSequence

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IControl::Base

Instance Method Details

#add_allow_access_listObject

Adds the list of access methods, with optional protocols/ports, for this self IPs.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



21
22
23
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 21

def add_allow_access_list
  super
end

#add_default_protocol_port_access_list(opts) ⇒ Object

Adds to the default list of protocols/ports on which access is allowed.

Parameters:

  • opts (Hash)

Options Hash (opts):

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



33
34
35
36
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 33

def add_default_protocol_port_access_list(opts)
  opts = check_params(opts,[:defaults])
  super(opts)
end

#allow_access_list(opts) ⇒ SelfIPAccess

Gets the access list for this self IPs.

Parameters:

  • opts (Hash)

Options Hash (opts):

  • :self_ips (String)

    The self IPs .

Returns:

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



57
58
59
60
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 57

def allow_access_list(opts)
  opts = check_params(opts,[:self_ips])
  super(opts)
end

#default_protocol_port_access_listProtocolPort

Gets the default protocol/port access list on which access is allowed.

Returns:

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



69
70
71
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 69

def default_protocol_port_access_list
  super
end

#delete_allow_access_listObject

Deletes protocols and ports from the allow access list for this self IPs.

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



44
45
46
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 44

def delete_allow_access_list
  super
end

#remove_default_protocol_port_access_list(opts) ⇒ Object

Remove protocols and ports from the default list of protocols/ports on which access is allowed.

Parameters:

  • opts (Hash)

Options Hash (opts):

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



90
91
92
93
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 90

def remove_default_protocol_port_access_list(opts)
  opts = check_params(opts,[:defaults])
  super(opts)
end

#versionString

Gets the version information for this interface.

Returns:

  • (String)


77
78
79
# File 'lib/icontrol/networking/self_ip_port_lockdown.rb', line 77

def version
  super
end