VPC

The SDK interfaces based on the VPC v1 API are as follows. Invocation example: conn.vpc.create_network().

Interface

Method

API

vpc

vpcs(self, **query)

GET /v1/{project_id}/vpcs

Link

get_vpc(self, vpc)

GET /v1/{project_id}/vpcs/{vpc_id}

Link

create_vpc(self, **attrs)

POST /v1/{project_id}/vpcs

Link

update_vpc(self, vpc, **attrs)

PUT /v1/{project_id}/vpcs/{vpc_id}

Link

delete_vpc(self, vpc, ignore_missing=True)

DELETE /v1/{project_id}/vpcs/{vpc_id}

Link

find_vpc(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/vpcs/{vpc_id}

    Link

  • GET /v1/{project_id}/vpcs

    Link

subnet

subnets(self, **query)

GET /v1/{project_id}/subnets

Link

get_subnet(self, subnet)

GET /v1/{project_id}/subnets/{subnet_id}

Link

create_subnet(self, **attrs)

POST /v1/{project_id}/subnets

Link

update_subnet(self, subnet, vpc_id, **attrs)

PUT /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id}

Link

delete_subnet(self, subnet, vpc_id, ignore_missing=True)

DELETE /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id}

Link

find_subnet(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/subnets/{subnet_id}

    Link

  • GET /v1/{project_id}/subnets

    Link

public_ip

public_ips(self, **query)

GET /v1/{project_id}/publicips

Link

get_public_ip(self, public_ip)

GET /v1/{project_id}/publicips/{publicip_id}

Link

create_public_ip(self, **attrs)

POST /v1/{project_id}/publicips

Link

update_public_ip(self, public_ip, **attrs)

PUT /v1/{project_id}/publicips/{publicip_id}

Link

delete_public_ip(self, public_ip, ignore_missing=True)

DELETE /v1/{project_id}/publicips/{publicip_id}

Link

find_public_ip(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/publicips/{publicip_id}

    Link

  • GET /v1/{project_id}/publicips

    Link

private_ip

private_ips(self, subnet, **query)

GET /v1/{project_id}/subnets/{subnet_id}/privateips

Link

get_private_ip(self, private_ip)

GET /v1/{project_id}/privateips/{privateip_id}

Link

create_private_ip(self, **attrs)

POST /v1/{project_id}/privateips

Link

create_private_ips(self, *private_ips)

POST /v1/{project_id}/privateips

Link

delete_private_ip(self, private_ip, ignore_missing=True)

DELETE /v1/{project_id}/privateips/{privateip_id}

Link

find_private_ip(self, name_or_id, subnet_id, ignore_missing=True)

  • GET /v1/{project_id}/privateips/{privateip_id}

    Link

  • GET /v1/{project_id}/subnets/{subnet_id}/privateips

    Link

port

ports(self, **query)

GET /v1/{project_id}/ports

Link

get_port(self, port)

GET /v1/{project_id}/ports/{port_id}

Link

create_port(self, **attrs)

POST /v1/{project_id}/ports

Link

update_port(self, port, **attrs)

PUT /v1/{project_id}/ports/{port_id}

Link

delete_port(self, port, ignore_missing=True)

DELETE /v1/{project_id}/ports/{port_id}

Link

find_port(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/ports/{port_id}

    Link

  • GET /v1/{project_id}/ports

    Link

bandwidth

bandwidths(self, **query)

GET /v1/{project_id}/bandwidths

Link

get_bandwidth(self, bandwidth)

GET /v1/{project_id}/bandwidths/{bandwidth_id}

Link

update_bandwidth(self, bandwidth, **attrs)

PUT /v1/{project_id}/bandwidths/{bandwidth_id}

Link

find_bandwidth(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/bandwidths/{bandwidth_id

    Link

  • GET /v1/{project_id}/bandwidths

    Link

security_group

security_groups(self, **query)

GET /v1/{project_id}/security-groups

Link

create_security_group(self, **attrs)

POST /v1/{project_id}/security-groups

Link

delete_security_group(self, security_group, ignore_missing=True)

DELETE /v1/{project_id}/security-groups/{security_group_id}

Link

get_security_group(self, security_group)

GET /v1/{project_id}/security-groups/{security_group_id}

Link

find_security_group(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/security-groups/{security_group_id}

    Link

  • GET /v1/{project_id}/security-groups

    Link

security_group_rule

create_security_group_rule(self, **attrs)

POST /v1/{project_id}/security-group-rules

Link

delete_security_group_rule(self, security_group_rule, ignore_missing=True)

DELETE /v1/{project_id}/security-group-rules/{rules_security_groups_id}

Link

get_security_group_rule(self, security_group_rule)

GET /v1/{project_id}/security-group-rules/{rules_security_groups_id}

Link

security_group_rules(self, **query)

GET /v1/{project_id}/security-group-rules

Link

find_security_group_rule(self, name_or_id, ignore_missing=True)

  • GET /v1/{project_id}/security-group-rules/{rules_security_groups_id}

    Link

  • GET /v1/{project_id}/security-group-rules

    Link

quota

quotas(self, **query)

GET /v1/{project_id}/quotas

Link

The SDK interfaces based on the VPC v2.0 API are as follows.

Invocation example: conn.vpc.create_publicip_ext()

Interface

Method

API

sharebandwidth

create_sharebandwidth(self, **data)

POST /v2.0/{project_id}/bandwidths

Link

delete_sharebandwidth(self, bandwidth_id, ignore_missing=True)

DELETE /v2.0/{project_id}/bandwidths/{bandwidth_id}

Link

create_batch_sharebandwidth(self, **data)

POST /v2.0/{project_id}/batch-bandwidths

Link

insert_ip_to_bandwidth(self, bandwidth_id, **data)

POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/insert

Link

remove_ip_from_bandwidth(self, bandwidth_id, **data)

POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/remove

Link

Eip Operations

create_publicip_ext(self, **attrs)

POST /v2.0/{project_id}/publicips

Link

Bandwidth Operations

update_bandwidth_ext(self, bandwidth_id, **attrs)

PUT /v2.0/{project_id}/bandwidths/{bandwidth_id}

Link

The SDK interfaces based on the Neutron v2.0 API are as follows.

Invocation example: conn.network.create_network ()

Interface

Method

API

Floating IP Operations

create_ip(self, **attrs)

POST /v2.0/floatingips

Link

delete_ip(self, floating_ip, ignore_missing=True)

DELETE /v2.0/floatingips/{floatingip_id}

Link

find_available_ip(self)

GET /v2.0/floatingips

Link

find_ip(self, name_or_id, ignore_missing=True)

GET /v2.0/floatingips

Link

get_ip(self, floating_ip)

GET /v2.0/floatingips/{floatingip_id}

Link

ips(self, **query)

GET /v2.0/floatingips

Link

update_ip(self, floating_ip, **attrs)

PUT /v2.0/floatingips/{floatingip_id}

Link

Network Operations

create_network(self, **attrs)

POST /v2.0/networks

Link

delete_network(self, network, ignore_missing=True)

DELETE /v2.0/networks/{network_id}

Link

find_network(self, name_or_id, ignore_missing=True)

GET /v2.0/networks

Link

get_network(self, network)

GET /v2.0/networks/{network_id}

Link

networks(self, **query)

GET /v2.0/networks

Link

update_network(self, network, **attrs)

PUT /v2.0/networks/{network_id}

Link

Port Operations

create_port(self, **attrs)

POST /v2.0/ports

Link

delete_port(self, port, ignore_missing=True)

DELETE /v2.0/ports/{port_id}

Link

find_port(self, name_or_id, ignore_missing=True)

GET /v2.0/ports

Link

get_port(self, port)

GET /v2.0/ports/{port_id}

Link

ports(self, **query)

GET /v2.0/ports

Link

update_port(self, port, **attrs)

PUT /v2.0/ports/{port_id}

Link

Router Operations

create_router(self, **attrs)

POST /v2.0/router

Link

delete_router(self, router, ignore_missing=True)

DELETE /v2.0/routers/{router_id}

Link

find_router(self, name_or_id, ignore_missing=True)

GET /v2.0/routers

Link

get_router(self, router)

GET /v2.0/routers/{router_id}

Link

routers(self, **query)

GET /v2.0/routers

Link

update_router(self, router, **attrs)

PUT /v2.0/routers/{router_id}

Link

add_interface_to_router(self, router, subnet_id=None, port_id=None)

PUT /v2.0/routers/{router_id}/add_router_interface

Link

remove_interface_from_router(self, router, subnet_id=None, port_id=None)

PUT /v2.0/routers/{router_id}/remove_router_interface

Link

Security Group Operations

create_security_group(self, **attrs)

POST /v2.0/security-groups

Link

delete_security_group(self, security_group, ignore_missing=True)

DELETE /v2.0/security-groups/{security_group_id}

Link

find_security_group(self, name_or_id, ignore_missing=True)

GET /v2.0/security-groups

Link

get_security_group(self, security_group)

GET /v2.0/security-groups/{security_group_id}

Link

security_groups(self, **query)

GET /v2.0/security-groups

Link

update_security_group(self, security_group, **attrs)

PUT /v2.0/security-groups/{security_group_id}

Link

security_group_open_port(self, sgid, port, protocol='tcp')

POST /v2.0/security-group-rules

Link

security_group_allow_ping(self, sgid)

POST /v2.0/security-group-rules

Link

create_security_group_rule(self, **attrs)

POST /v2.0/security-group-rules

Link

delete_security_group_rule(self, security_group_rule, ignore_missing=True)

DELETE /v2.0/security-group-rules/{security_group_rule_id}

Link

find_security_group_rule(self, name_or_id, ignore_missing=True)

GET /v2.0/security-group-rules

Link

get_security_group_rule(self, security_group_rule)

GET /v2.0/security-group-rules/{security_group_rule_id}

Link

security_group_rules(self, **query)

GET /v2.0/security-group-rules

Link

Subnet Operations

create_subnet(self, **attrs)

POST /v2.0/subnets

Link

delete_subnet(self, subnet, ignore_missing=True)

DELETE /v2.0/subnets/{subnet_id}

Link

find_subnet(self, name_or_id, ignore_missing=True)

GET /v2.0/subnets

Link

get_subnet(self, subnet)

GET /v2.0/subnets/{subnet_id}

Link

subnets(self, **query)

GET /v2.0/subnets

Link

get_subnet_ports(self, subnet_id)

GET /v2.0/ports

Link

update_subnet(self, subnet, **attrs)

PUT /v2.0/subnets/{subnet_id}

Link