novaclient
文件目录结构
1.base.py 用来构建API操作管理和对象的基础应用
2.client.py OpenStack Client interface. Handles the REST calls and responses
3.exceptions.py Exception definitions异常定义,各种异常的错误代码在这里定义
4.extension.py
5.__init__.py
6.service_catalog.py keystone的endpoints表,去的各个服务的url 例如keystone nova swift
7.shell.py Command-line interface to the OpenStack Nova API
8.utils.py
8.v1_1
该文件夹包含文件,novaapi的访问地址都出现这些文件中
1.aggregates.py 总览接口
2.base.py
3.certs.py 认证接口
4.client.py
Top-level object to access the OpenStack Compute API.
Create an instance with your creds::
>>> client = Client(USERNAME, PASSWORD, PROJECT_ID, AUTH_URL)
Then call methods on its managers::
>>> client.servers.list()
...
>>> client.flavors.list()
...
"""
5.cloudpipe.py cloudpipe 接口 A cloudpipe instance is a VPN attached to a proejct's VLAN
6.flavors.py flavor接口 一个flavor是一个可用的服务器硬件配置
7.floating_ip_dns.py
8.floatings_ip_pools.py
9.floating_ips.py
10.host.py host interface (1.1 extension) 主机接口
11.images.py 镜像接口
12.__init__.py
13.keypairs.py Keypair interface (1.1 extension)密钥接口
14.limits.py
15.quotas.py 配额
16.security_group_rules.py Security group rules interface (1.1 extension).
17.security_groups.py Security group interface (1.1 extension).
18.servers.py Server interface
19.shell.py
20.usage.py Usage interface Usage contains infomartion about a tenants physical resource usage
21.virtual_interfaces.py Virtual Interfaces (1.1 extension)
22volume_snapshots.py Volume snapshot interface (1.1 extension)
23.volumes.py Volume interface (1.1 extension) A volume is an extra block level storage to the OpenStack instances
24.volume_types.py Volume Type interface
contrib