• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Go
  6. VPC

VPC

Interface

Method

API

Networks

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/networks

List(c *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/networks

Get(c *gophercloud.ServiceClient, id string)

GET /v2.0/networks/{network_id}

Update(c *gophercloud.ServiceClient, networkID string, opts UpdateOptsBuilder)

PUT /v2.0/networks/{network_id)

Delete(c *gophercloud.ServiceClient, networkID string)

DELETE /v2.0/networks/{network_id}

Subnets

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/subnets

List(c *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/subnets

Get(c *gophercloud.ServiceClient, id string)

GET /v2.0/subnets/{subnet_id}

Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder)

PUT /v2.0/subnets/{subnet_id}

Delete(c *gophercloud.ServiceClient, id string)

DELETE /v2.0/subnets/{subnet_id}

Ports

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/ports

List(c *gophercloud.ServiceClient, opts ListOptsBuilder)

GET /v2.0/ports

Get(c *gophercloud.ServiceClient, id string)

GET /v2.0/ports/{port_id}

Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder)

PUT /v2.0/ports/{port_id}

Delete(c *gophercloud.ServiceClient, id string)

DELETE /v2.0/ports/{port_id}

SecurityGroup

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/security-groups

Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder)

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

List(c *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/security-groups

Get(c *gophercloud.ServiceClient, id string)

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

SecurityGroupRules

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/security-group-rules

Delete(c *gophercloud.ServiceClient, id string)

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

List(c *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/security-group-rules

Get(c *gophercloud.ServiceClient, id string)

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

Routers

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/routers

Delete(c *gophercloud.ServiceClient, id string)

DELETE /v2.0/routers/{router_id}

Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder)

PUT /v2.0/routers/{router_id}

List(c *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/routers

Get(c *gophercloud.ServiceClient, id string)

GET /v2.0/routers/{router_id}

AddInterface(c *gophercloud.ServiceClient, id string, opts AddInterfaceOptsBuilder)

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

RemoveInterface(c *gophercloud.ServiceClient, id string, opts RemoveInterfaceOptsBuilder)

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

Floatingips

Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder)

POST /v2.0/floatingips

Delete(c *gophercloud.ServiceClient, id string)

DELETE /v2.0/floatingips/{floatingip_id}

Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder)

PUT /v2.0/floatingips/{floatingip_id}

List(c *gophercloud.ServiceClient, opts ListOpts)

GET /v2.0/floatingips

Get(c *gophercloud.ServiceClient, id string)

GET /v2.0/floatingips/{floatingip_id}