Class: IControl::LocalLB::SNATPool

Inherits:
Base
  • Object
show all
Defined in:
lib/icontrol/local_lb/snat_pool.rb,
lib/icontrol/local_lb.rb

Overview

The SNATPool interface enables you to work with the definitions contained in a local load balancer's SNAT pool, which is a set of translation addresses. Either a virtual server, an iRule or a top-level SNAT object can reference a SNAT pool.

Defined Under Namespace

Classes: SNATPoolStatisticEntry, SNATPoolStatisticEntrySequence, SNATPoolStatistics

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_member(opts)

Adds members to this SNAT pools.

Options Hash (opts):

  • :members (String[])

    The members to add to the specified SNAT pools.

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.



20
21
22
23
# File 'lib/icontrol/local_lb/snat_pool.rb', line 20

def add_member(opts)
  check_params(opts,[:members])
  super
end

- (SNATPoolStatistics) all_statistics

Gets the statistics for all SNAT pools.

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.



65
66
67
# File 'lib/icontrol/local_lb/snat_pool.rb', line 65

def all_statistics
  super
end

- (Object) create(opts)

Creates this SNAT pools.

Options Hash (opts):

  • :translation_addresses (String[])

    The translation addresses associated with the SNAT pools. If the referenced SNAT translation addresses do not exist, they are created automatically using the global SNAT defaults.

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/local_lb/snat_pool.rb', line 33

def create(opts)
  check_params(opts,[:translation_addresses])
  super
end

- (Object) delete_all_snat_pools

Deletes all SNAT pools.

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/local_lb/snat_pool.rb', line 44

def delete_all_snat_pools
  super
end

- (Object) delete_snat_pool

Deletes a specified list of SNAT pools.

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.



54
55
56
# File 'lib/icontrol/local_lb/snat_pool.rb', line 54

def delete_snat_pool
  super
end

- (String) list

Gets a list of all SNAT pools.

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.



76
77
78
# File 'lib/icontrol/local_lb/snat_pool.rb', line 76

def list
  super
end

- (String[]) member

Gets the list of members belonging to this SNAT pools.

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.



87
88
89
# File 'lib/icontrol/local_lb/snat_pool.rb', line 87

def member
  super
end

- (Object) remove_all_members

Removes all members from this SNAT pools.

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.



116
117
118
# File 'lib/icontrol/local_lb/snat_pool.rb', line 116

def remove_all_members
  super
end

- (Object) remove_member(opts)

Removes members from this SNAT pools.

Options Hash (opts):

  • :members (String[])

    The members to remove from the specified SNAT pools.

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.



128
129
130
131
# File 'lib/icontrol/local_lb/snat_pool.rb', line 128

def remove_member(opts)
  check_params(opts,[:members])
  super
end

- (Object) reset_statistics

Resets the statistics for a list of SNAT pools.

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.



139
140
141
# File 'lib/icontrol/local_lb/snat_pool.rb', line 139

def reset_statistics
  super
end

- (SNATPoolStatistics) statistics

Gets the statistics for a list of SNAT pools.

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.



98
99
100
# File 'lib/icontrol/local_lb/snat_pool.rb', line 98

def statistics
  super
end

- (String) version

Get the version information for this interface.



106
107
108
# File 'lib/icontrol/local_lb/snat_pool.rb', line 106

def version
  super
end