# 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)
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | acos-client-1.0.4.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 173 浏览量
2022-01-08
20:28:27
上传
评论
收藏 18KB GZ 举报
温馨提示
共48个文件
py:38个
txt:4个
pkg-info:2个
资源来自pypi官网。 资源全名:acos-client-1.0.4.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
acos-client-1.0.4.tar.gz (48个子文件)
acos-client-1.0.4
setup.cfg 59B
README.md 1KB
acos_client.egg-info
dependency_links.txt 1B
PKG-INFO 3KB
SOURCES.txt 1KB
top_level.txt 18B
requires.txt 16B
tests
unit
test_virtual_server.py 2KB
test_member.py 2KB
test_server.py 2KB
test_hm.py 2KB
v21_mocks.py 18KB
test_service_group.py 2KB
test_cookie.py 2KB
test_hash.py 939B
test_session.py 2KB
__init__.py 0B
test_sip.py 2KB
test_system.py 1KB
test_partition.py 2KB
test_virtual_port.py 2KB
__init__.py 0B
t.py 14KB
acos_client
errors.py 4KB
hash.py 885B
axapi_http.py 6KB
v21
base.py 1007B
session.py 2KB
system.py 966B
partition.py 2KB
__init__.py 0B
slb
virtual_port.py 2KB
server.py 1KB
__init__.py 1KB
template
persistence.py 2KB
__init__.py 970B
hm.py 2KB
virtual_server.py 2KB
service_group.py 2KB
member.py 2KB
action.py 816B
__init__.py 802B
version.py 641B
client.py 1KB
LICENSE 10KB
PKG-INFO 3KB
MANIFEST.in 34B
setup.py 1KB
共 48 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功