• CLI

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

VPC

Interface

Method

API

NetFloatingIPService

NetFloatingIP associateToPort(String id, String portId)

PUT /v2.0/floatingips/{floatingip-id}

NetFloatingIP create(NetFloatingIP floatingIp)

POST /v2.0/floatingips

ActionResponse delete(String id)

DELETE /v2.0/floatingips/{floatingip-id}

NetFloatingIP disassociateFromPort(String id)

PUT /v2.0/floatingips/{floatingip-id}

NetFloatingIP get(String id)

GET /v2.0/floatingips/{floatingip-id}

List<? extends NetFloatingIP> list()

GET /v2.0/floatingips

List<? extends NetFloatingIP> list(Map<String,String> filteringParams)

GET /v2.0/floatingips

NetworkService

Network create(Network network)

post /v2.0/networks

ActionResponse delete(String networkId)

DELETE /v2.0/networks/{network_id}

Network get(String networkId)

GET /v2.0/networks/{network_id}

List<? extends Network> list()

GET /v2.0/networks

Network update(String networkId, NetworkUpdate network)

PUT /v2.0/networks/{network_id}

PortService

Port create(Port port)

POST /v2.0/ports

ActionResponse delete(String portId)

DELETE /v2.0/ports/{port_id}

Port get(String portId)

GET /v2.0/ports/{port_id}

List<? extends Port> list()

GET /v2.0/ports

List<? extends Port> list(PortListOptions options)

GET /v2.0/ports?network_id={network_id}

Port update(Port port)

PUT /v2.0/ports/{port_id}

RouterService

RouterInterface attachInterface(String routerId, AttachInterfaceType type, String portOrSubnetId)

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

Router create(Router router)

POST /v2.0/routers

Router create(String name, boolean adminStateUp)

POST /v2.0/routers

ActionResponse delete(String routerId)

DELETE /v2.0/routers/{router_id}

RouterInterface detachInterface(String routerId, String subnetId, String portId)

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

Router get(String routerId)

GET /v2.0/routers/{router_id}

List<? extends Router>list()

GET /v2.0/routers

Router toggleAdminStateUp(String routerId, boolean adminStateUp)

PUT /v2.0/routers/{router_id}

Router update(Router router)

PUT /v2.0/routers/{router_id}

SecurityGroupRuleService

SecurityGroupRule create(SecurityGroupRule rule)

POST /v2.0/security-group-rules

void delete(String id)

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

SecurityGroupRule get(String id)

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

List<? extends SecurityGroupRule> list()

GET /v2.0/security-group-rules

SecurityGroupService

SecurityGroup create(SecurityGroup securityGroup)

POST /v2.0/security-groups

ActionResponse delete(String id)

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

SecurityGroup get(String id)

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

List<? extends SecurityGroup>list()

GET /v2.0/security-groups

SubnetService

Subnet create(Subnet subnet)

POST /v2.0/subnets

ActionResponse delete(String subnetId)

DELETE /v2.0/subnets/{subnet_id}

Subnet get(String subnetId)

GET /v2.0/subnets/{subnet_id}

List<? extends Subnet>list()

GET /v2.0/subnets

Subnet update(String subnetId, Subnet subnet)

PUT /v2.0/subnets/{subnet_id}

Subnet update(Subnet subnet)

PUT /v2.0/subnets/{subnet_id}

Interface

Method

API

PublicIpService

osclient.vpcV2().publicips().apply(virtualPublicips)

POST /v2.0/{tenant_id}/publicips

BandWidthService

osclient.vpcV2().bandwidths().update(bandwidth, " bandwidthId")

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