A10 Networks ACOS API Client
Project description
# ACOS Client
## Installation
### Install using pip
```
$ pip install acos-client
```
### Install from source
```
$ git clone https://github.com/a10networks/acos-client.git
$ cd acos-client
$ python setup.py install
```
## Usage
```python
c = acos_client.Client('somehost.example.com', acos_client.AXAPI_21,
'admin', '123')
```
#### Example setting up an SLB:
```python
import acos_client as acos
c = acos.Client('1.2.3.4', acos.AXAPI_21, 'admin', '123')
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.virtual_service.HTTP,
'80', 'pool1')
c.slb.hm.create(c.slb.hm.HTTP, "hm1", 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
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
## Supported Versions
* axapi 2.1, ACOS 2.7.2+ (2.7.1 works if you avoid partitions)
## Installation
### Install using pip
```
$ pip install acos-client
```
### Install from source
```
$ git clone https://github.com/a10networks/acos-client.git
$ cd acos-client
$ python setup.py install
```
## Usage
```python
c = acos_client.Client('somehost.example.com', acos_client.AXAPI_21,
'admin', '123')
```
#### Example setting up an SLB:
```python
import acos_client as acos
c = acos.Client('1.2.3.4', acos.AXAPI_21, 'admin', '123')
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.virtual_service.HTTP,
'80', 'pool1')
c.slb.hm.create(c.slb.hm.HTTP, "hm1", 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
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
## Supported Versions
* axapi 2.1, ACOS 2.7.2+ (2.7.1 works if you avoid partitions)
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-0.6.7.tar.gz
(18.3 kB
view details)
File details
Details for the file acos-client-0.6.7.tar.gz.
File metadata
- Download URL: acos-client-0.6.7.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2cb776e6c13707ae3ff71d3cd9ea826889a64b18b11f0c9ed7a9d6fe46aa21
|
|
| MD5 |
f45d9992cfc035a148ece65654b0e4ed
|
|
| BLAKE2b-256 |
be9a3011adb9981e21ffc26e6c51a19cc3be53ed56e463db438ae483148ced21
|