Module gslb :: Class GslbServiceIP
[hide private]
[frames] | no frames]

Class GslbServiceIP

source code

   object --+    
            |    
base.AxObject --+
                |
               GslbServiceIP


Implementation of the aXAPI gslb.service_ip.* method to 
manage the GSLB service IP configuration as getAll/create/delete/update 

Usage:
    # GSLB Service IP with parameters:
    # name                    (required) name of service IP
    # ip_address              (required) ip address of service IP
    # external_ip_address     external IP address of service IP
    # health_monitor          health monitor of service IP
    # status                  status of service IP
    # port_list               tag of port list
    #     port_num            port number of port
    #     protocol            protocol of port
    #     health_monitor      health monitor of port
    #     status              status of port    
            
    # Example: 
    # create a GSLB service IP configuration as:  
    !
    gslb service-ip service6 1.6.61.41
      external-ip 123.123.123.15
      health-check ping
      port 8888 tcp
      port 8787 tcp
        health-check ping
      port 8789 tcp
        health-check ping
    !
    #  
    svc_ip = GslbServiceIP(name="service6", ip_address="1.6.61.41")
    svc_ip.external_ip_address = "123.123.123.15"
    svc_ip.health_monitor = "ping"
    svc_ip.port_list = [{"port_num": 8888, "protocol": AxAPI.PROTO_TCP, "health_monitor": "ping", "status": AxAPI.STATUS_ENABLED}, {"port_num": 8789, "protocol": AxAPI.PROTO_TCP, "health_monitor": "ping", "status": AxAPI.STATUS_ENABLED}]
    svc_ip.create()

Instance Methods [hide private]
 
create(self)
method: gslb.service_ip.create Create the GSLB service IP.
source code
 
delete(self)
method: gslb.service_ip.delete Delete the GSLB service IP.
source code
 
update(self)
method: gslb.service_ip.update Update the GSLB service IP.
source code

Inherited from base.AxObject: __getattr__, __getitem__, __init__, __repr__, __setattr__, __setitem__, __str__, dump, get, getInfo, getObjectDict, getRequestPostDataJson, getRequestPostDataXml

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
getAll()
method : gslb.service_ip.getAll Returns a list of GSLB service_ip in GslbServiceIP instance.
source code
 
searchByName(name)
method: gslb.service_ip.search Search the GSLB service-ip by given name.
source code
Class Variables [hide private]
  __display__ = ['name']
  __obj_name__ = 'service_ip'
  __xml_convrt__ = {'port_list': 'port', 'service_ip_list': 'ser...

Inherited from base.AxObject: __obj_readonly__

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

__xml_convrt__

Value:
{'port_list': 'port', 'service_ip_list': 'service_ip'}