A10 Networks ACOS API Client
Project description
ACOS Client
Table of Contents
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>=2.0.0
Install from source
$ git clone https://github.com/a10networks/acos-client.git
$ cd acos-client
$ git checkout stable/acos_4_1_4
$ 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)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - 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
Issues and Inquiries
For all issues, please send an email to support@a10networks.com
For general inquiries, please send an email to opensource@a10networks.com
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
Release history Release notifications | RSS feed
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-2.2.0.tar.gz
(65.2 kB
view hashes)
Built Distribution
acos_client-2.2.0-py2-none-any.whl
(155.1 kB
view hashes)
Close
Hashes for acos_client-2.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da58b9f8c5025ef2fee984ae631100b47a8fee9355a3f061b15e66c257fed8b2 |
|
MD5 | c5d56b08648dc3e73f2084356a3fe482 |
|
BLAKE2b-256 | b0028ae8707643a37c7b35678ef5618d1274b1c2ebcf7b1f40cceb66f89f4936 |