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

- (Object) add_allow_access_list

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

- (Object) add_default_protocol_port_access_list(opts)

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

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)
  check_params(opts,[:defaults])
  super
end

- (SelfIPAccess) allow_access_list(opts)

Gets the access list for this self IPs.

Options Hash (opts):

  • :self_ips (String)

    The 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.



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

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

- (ProtocolPort) default_protocol_port_access_list

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

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

- (Object) delete_allow_access_list

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

- (Object) remove_default_protocol_port_access_list(opts)

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

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)
  check_params(opts,[:defaults])
  super
end

- (String) version

Gets the version information for this interface.



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

def version
  super
end