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

Class GslbSnmpTemplate

source code

   object --+    
            |    
base.AxObject --+
                |
               GslbSnmpTemplate


Implementation of the aXAPI gslb.snmp_template.* method to 
manage the GSLB DNS proxy configuration as getAll/create/delete/update 

Usage:
    # DNS proxy with parameters:
    # name                  (required) SNMP template name
    # user_name             SNMP template user name
    # community             community
    # host                  host name or host IP
    # port                  SNMP port
    # version               SNMP version
    # oid                   SNMP OID
    # interface             interface
    # security_level        secure level
    # security_engine_id    security engine ID
    # auth_key              authentication key
    # auth_protocol         authentication protocol
    # private_key           private key
    # private_protocol      private protocol
    # context_engine_id     context engine ID
    # context_name          context name
    # interval              interval  
              
    # Example: 
    # create a GSLB SNMP template configuration as:  
    !
    gslb template snmp template2
       version v2c
       username user1
       community public
    !
    #  
    snmp_temp = GslbSnmpTemplate(name="template2")
    snmp_temp.user_name ="user1"
    snmp_temp.community ="public"
    snmp_temp.port = 161
    snmp_temp.version = 2
    snmp_temp.interval = 3
    snmp_temp.create()

Instance Methods [hide private]
 
create(self)
method: gslb.snmp_template.create Create the GSLB SNMP template.
source code
 
delete(self)
method: gslb.snmp_template.delete Delete the GSLB SNMP template.
source code
 
update(self)
method: gslb.snmp_template.update Update the GSLB SNMP template.
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.snmp_template.getAll Returns a list of GSLB service_ip in GslbSnmpTemplate instance.
source code
 
searchByName(name)
method: gslb.snmp_template.search Search the GSLB snmp template by given name.
source code
Class Variables [hide private]
  __display__ = ['name']
  __obj_name__ = 'snmp_template'
  __xml_convrt__ = {'snmp_template_list': 'snmp_template'}

Inherited from base.AxObject: __obj_readonly__

Properties [hide private]

Inherited from object: __class__