VPC

The SDK interfaces based on the VPC v1 API are as follows. For details about the invoking methods, see the sample codes.

Interface

Method

API

Bandwidths

Get(client *gophercloud.ServiceClient, bandwidthId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/bandwidths

Link

Update(client *gophercloud.ServiceClient, bandwidthId string, opts UpdateOptsBuilder)

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

Link

Ports

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/ports

Link

Delete(client *gophercloud.ServiceClient, portId string)

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

Link

Get(client *gophercloud.ServiceClient, portId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/ports

Link

Update(client *gophercloud.ServiceClient, portId string, opts UpdateOptsBuilder)

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

Link

PrivateIps

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/privateips

Link

Delete(client *gophercloud.ServiceClient, privateipId string)

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

Link

Get(client *gophercloud.ServiceClient, privateipId string)

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

Link

List(client *gophercloud.ServiceClient, subnetId string, opts ListOptsBuilder)

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

Link

PublicIps

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/publicips

Link

Delete(client *gophercloud.ServiceClient, publicipId string)

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

Link

Get(client *gophercloud.ServiceClient, publicipId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/publicips

Link

Update(client *gophercloud.ServiceClient, publicipId string, opts UpdateOptsBuilder)

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

Link

Quotas

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/quotas

Link

SecurityGroupRules

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/security-group-rules

Link

Delete(client *gophercloud.ServiceClient, securityGroupsRulesId string)

DELETE /v1/security-group-rules/{security-groups-rules-id}

Link

Get(client *gophercloud.ServiceClient, securityGroupsRulesId string)

GET /v1/security-group-rules/{security-groups-rules-id}

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/security-group-rules

Link

SecurityGroups

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/security-groups

Link

Delete(client *gophercloud.ServiceClient, securityGroupId string)

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

Link

Get(client *gophercloud.ServiceClient, securityGroupId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/security-groups

Link

Subnets

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/subnets

Link

Delete(client *gophercloud.ServiceClient, vpcId string, subnetId string)

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

Link

Get(client *gophercloud.ServiceClient, subnetId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/subnets

Link

Update(client *gophercloud.ServiceClient, vpcId string, subnetId string, opts UpdateOptsBuilder)

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

Link

Vpcs

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v1/{project_id}/vpcs

Link

Delete(client *gophercloud.ServiceClient, vpcId string)

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

Link

Get(client *gophercloud.ServiceClient, vpcId string)

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

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v1/{project_id}/vpcs

Link

Update(client *gophercloud.ServiceClient, vpcId string, opts UpdateOptsBuilder)

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

Link

The SDK interfaces based on the Neutron v2.0 API are as follows. For details about the invoking methods, see the sample codes.

Interface

Method

API

Networks

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/networks

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/networks

Link

Get(client *gophercloud.ServiceClient, networkId string)

GET /v2.0/networks/{network_id}

Link

Update(client *gophercloud.ServiceClient, networkId string, opts UpdateOptsBuilder)

PUT /v2.0/networks/{network_id)

Link

Delete(client *gophercloud.ServiceClient, networkId string)

DELETE /v2.0/networks/{network_id}

Link

Subnets

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/subnets

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/subnets

Link

Get(client *gophercloud.ServiceClient, subnetId string)

GET /v2.0/subnets/{subnet_id}

Link

Update(client *gophercloud.ServiceClient, subnetId string, opts UpdateOptsBuilder)

PUT /v2.0/subnets/{subnet_id}

Link

Delete(client *gophercloud.ServiceClient, subnetId string)

DELETE /v2.0/subnets/{subnet_id}

Link

Ports

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/ports

Link

List(client *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/ports

Link

Get(client *gophercloud.ServiceClient, portId string)

GET /v2.0/ports/{port_id}

Link

Update(client *gophercloud.ServiceClient, portId string, opts UpdateOptsBuilder)

PUT /v2.0/ports/{port_id}

Link

Delete(client *gophercloud.ServiceClient, portId string)

DELETE /v2.0/ports/{port_id}

Link

SecurityGroup

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/security-groups

Link

Update(client *gophercloud.ServiceClient, securityGroupId string, opts UpdateOptsBuilder)

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

Link

List(client *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/security-groups

Link

Get(client *gophercloud.ServiceClient, securityGroupId string)

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

Link

SecurityGroupRules

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/security-group-rules

Link

Delete(client *gophercloud.ServiceClient, securityGroupsRulesId string)

DELETE /v2.0/security-group-rules/{security-groups-rules-id}

Link

List(client *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/security-group-rules

Link

Get(client *gophercloud.ServiceClient, securityGroupsRulesId string)

GET /v2.0/security-group-rules/{security-groups-rules-id}

Link

Routers

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/routers

Link

Delete(client *gophercloud.ServiceClient, routerId string)

DELETE /v2.0/routers/{router_id}

Link

Update(client *gophercloud.ServiceClient, routerId string, opts UpdateOptsBuilder)

PUT /v2.0/routers/{router_id}

Link

List(client *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/routers

Link

Get(client *gophercloud.ServiceClient, routerId string)

GET /v2.0/routers/{router_id}

Link

AddInterface(client *gophercloud.ServiceClient, routerId string, opts AddInterfaceOptsBuilder)

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

Link

RemoveInterface(client *gophercloud.ServiceClient, routerId string, opts RemoveInterfaceOptsBuilder)

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

Link

FloatingIps

Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/floatingips

Link

Delete(client *gophercloud.ServiceClient, floatingipId string)

DELETE /v2.0/floatingips/{floatingip_id}

Link

Update(client *gophercloud.ServiceClient, floatingipId string, opts UpdateOptsBuilder)

PUT /v2.0/floatingips/{floatingip_id}

Link

List(client *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/floatingips

Link

Get(client *gophercloud.ServiceClient, floatingipId string)

GET /v2.0/floatingips/{floatingip_id}

Link