Skip to main content

A10 Networks ACOS API Client

Project description

ACOS Client

Supported Versions

ACOS Version AXAPI Version ACOS Client Version
2.7.1† 2 >=0.1.0,<0.3.0
2.7.2 2 >=0.1.0,<0.3.0
4.0.0 3 >=1.4.6,<1.5.0
4.1.1 3 >=1.5.0,<2.0.0
4.1.4 3 >=2.0.0

†Works only when not using partitioning

ACOS versions greater than 4.1.4 are not supported a this time

Installation

Install using pip

$ pip install acos-client>=1.5.0,<2.0.0

Install from source

$ git clone https://github.com/a10networks/acos-client.git
$ cd acos-client
$ git checkout stable/acos_4_1_1
$ pip install -e .

Usage

c = acos_client.Client('somehost.example.com', acos_client.AXAPI_30,
                       'admin', 'password')

Example setting up an SLB:

import acos_client as acos

c = acos.Client('1.2.3.4', acos.AXAPI_30, 'admin', 'password')
c.slb.server.create('s1', '1.1.1.1')
c.slb.server.create('s2', '1.1.1.2')
c.slb.service_group.create('pool1',
                           c.slb.service_group.TCP,
                           c.slb.service_group.ROUND_ROBIN)
c.slb.virtual_server.create('vip1', '1.1.1.3')
c.slb.hm.create('hm1', c.slb.hm.HTTP, 5, 5, 5, 'GET', '/', '200', 80)
c.slb.service_group.update('pool1', health_monitor='hm1')
c.slb.service_group.member.create('pool1', 's1', 80)
c.slb.service_group.member.create('pool1', 's2', 80)

Issue Reporting

Please direct all questions and concerns to support@a10networks.com

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Testing

This project uses tox for testing. To run the test suite simply:

$ sudo pip install tox  # use pip2 if using Arch Linux
$ cd /path/to/acos_client
$ tox

Helpful links

Improved speed

pypy: http://pypy.org/index.html

Old python versions

Deadsnakes github: https://github.com/deadsnakes
Deadsnakes ppa: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acos-client-1.5.1.tar.gz (64.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acos_client-1.5.1-py2-none-any.whl (153.9 kB view details)

Uploaded Python 2

File details

Details for the file acos-client-1.5.1.tar.gz.

File metadata

  • Download URL: acos-client-1.5.1.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for acos-client-1.5.1.tar.gz
Algorithm Hash digest
SHA256 dce1fd0b4af4e19f75f79c1b212abd3eb6b973483d64f568c201daf5637d52e1
MD5 ef1eb83b2f56f97ce9b213da20052c74
BLAKE2b-256 50c873c2169997c1ebe256f5e6b01677fe79fcdf2e72fac2241f11e842ad3e1b

See more details on using hashes here.

File details

Details for the file acos_client-1.5.1-py2-none-any.whl.

File metadata

  • Download URL: acos_client-1.5.1-py2-none-any.whl
  • Upload date:
  • Size: 153.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for acos_client-1.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2d652aed5b09f396bf15ce9e7cc8a5d47ee5c7df051ccce17db9c88c2488de62
MD5 dddb8e461858ddab89c1555903ad1fce
BLAKE2b-256 6aea6b984325e29acec642aa6df36e6aa47ade1f314b33c5a58da69eae3aa11f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page