Module method_call
[hide private]
[frames] | no frames]

Module method_call

source code

method_call module.

This module is used to perform the calls to the AX RESTful interface.

Author: Richard Zhang, A10 Networks (c) e-mail: rzhang@a10networks.com Date : 03/04/2012

Classes [hide private]
  AxApiContext
  _XmlList
  _XmlDict
Example usage:
Functions [hide private]
 
call_api(axobjectinstance, **args)
Performs the GET/POST calls to the aXAPI REST interface.
source code
 
_set_session_id(session_id, device_ip) source code
 
_get_request_url() source code
 
_send_request(url, data) source code
Variables [hide private]
  REST_URL = '/services/rest/V2/'
  AXAPI_DEVICE = '192.168.210.239'
  AXAPI_SESSION_ID = ''
  AXAPI_LOGIN = 0
  __package__ = None
hash(x)
Function Details [hide private]

call_api(axobjectinstance, **args)

source code 

Performs the GET/POST calls to the aXAPI REST interface.

Arguments :
    method : The name of aXAPI call.
    format : (optional) Specify the aXAPI format, json/url.  The default is "url".
    post_data : (optional) The POST data for the REST create/update/delete transactions.
    args : the arguments to pass to the method.