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} |
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/bandwidths |
|
|
Update(client *gophercloud.ServiceClient, bandwidthId string, opts UpdateOptsBuilder) |
PUT /v1/{project_id}/bandwidths/{bandwidth_id} |
|
|
Ports |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/ports |
|
Delete(client *gophercloud.ServiceClient, portId string) |
DELETE /v1/{project_id}/ports/{port_id} |
|
|
Get(client *gophercloud.ServiceClient, portId string) |
GET /v1/{project_id}/ports/{port_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/ports |
|
|
Update(client *gophercloud.ServiceClient, portId string, opts UpdateOptsBuilder) |
PUT /v1/{project_id}/ports/{port_id} |
|
|
PrivateIps |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/privateips |
|
Delete(client *gophercloud.ServiceClient, privateipId string) |
DELETE /v1/{project_id}/privateips/{privateip_id} |
|
|
Get(client *gophercloud.ServiceClient, privateipId string) |
GET /v1/{project_id}/privateips/{privateip_id} |
|
|
List(client *gophercloud.ServiceClient, subnetId string, opts ListOptsBuilder) |
GET /v1/{project_id}/subnets/{subnet_id}/privateips |
|
|
PublicIps |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/publicips |
|
Delete(client *gophercloud.ServiceClient, publicipId string) |
DELETE /v1/{project_id}/publicips/{publicip_id} |
|
|
Get(client *gophercloud.ServiceClient, publicipId string) |
GET /v1/{project_id}/publicips/{publicip_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/publicips |
|
|
Update(client *gophercloud.ServiceClient, publicipId string, opts UpdateOptsBuilder) |
PUT /v1/{project_id}/publicips/{publicip_id} |
|
|
Quotas |
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/quotas |
|
SecurityGroupRules |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/security-group-rules |
|
Delete(client *gophercloud.ServiceClient, securityGroupsRulesId string) |
DELETE /v1/security-group-rules/{security-groups-rules-id} |
|
|
Get(client *gophercloud.ServiceClient, securityGroupsRulesId string) |
GET /v1/security-group-rules/{security-groups-rules-id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/security-group-rules |
|
|
SecurityGroups |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/security-groups |
|
Delete(client *gophercloud.ServiceClient, securityGroupId string) |
DELETE /v1/{project_id}/security-groups/{security_group_id} |
|
|
Get(client *gophercloud.ServiceClient, securityGroupId string) |
GET /v1/{project_id}/security-groups/{security_group_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/security-groups |
|
|
Subnets |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/subnets |
|
Delete(client *gophercloud.ServiceClient, vpcId string, subnetId string) |
DELETE /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id} |
|
|
Get(client *gophercloud.ServiceClient, subnetId string) |
GET /v1/{project_id}/subnets/{subnet_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/subnets |
|
|
Update(client *gophercloud.ServiceClient, vpcId string, subnetId string, opts UpdateOptsBuilder) |
PUT /v1/{project_id}/vpcs/{vpc_id}/subnets/{subnet_id} |
|
|
Vpcs |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v1/{project_id}/vpcs |
|
Delete(client *gophercloud.ServiceClient, vpcId string) |
DELETE /v1/{project_id}/vpcs/{vpc_id} |
|
|
Get(client *gophercloud.ServiceClient, vpcId string) |
GET /v1/{project_id}/vpcs/{vpc_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v1/{project_id}/vpcs |
|
|
Update(client *gophercloud.ServiceClient, vpcId string, opts UpdateOptsBuilder) |
PUT /v1/{project_id}/vpcs/{vpc_id} |
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 |
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/networks |
|
|
Get(client *gophercloud.ServiceClient, networkId string) |
GET /v2.0/networks/{network_id} |
|
|
Update(client *gophercloud.ServiceClient, networkId string, opts UpdateOptsBuilder) |
PUT /v2.0/networks/{network_id) |
|
|
Delete(client *gophercloud.ServiceClient, networkId string) |
DELETE /v2.0/networks/{network_id} |
|
|
Subnets |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/subnets |
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/subnets |
|
|
Get(client *gophercloud.ServiceClient, subnetId string) |
GET /v2.0/subnets/{subnet_id} |
|
|
Update(client *gophercloud.ServiceClient, subnetId string, opts UpdateOptsBuilder) |
PUT /v2.0/subnets/{subnet_id} |
|
|
Delete(client *gophercloud.ServiceClient, subnetId string) |
DELETE /v2.0/subnets/{subnet_id} |
|
|
Ports |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/ports |
|
List(client *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/ports |
|
|
Get(client *gophercloud.ServiceClient, portId string) |
GET /v2.0/ports/{port_id} |
|
|
Update(client *gophercloud.ServiceClient, portId string, opts UpdateOptsBuilder) |
PUT /v2.0/ports/{port_id} |
|
|
Delete(client *gophercloud.ServiceClient, portId string) |
DELETE /v2.0/ports/{port_id} |
|
|
SecurityGroup |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/security-groups |
|
Update(client *gophercloud.ServiceClient, securityGroupId string, opts UpdateOptsBuilder) |
PUT /v2.0/security-groups/{security_group_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOpts) |
GET /v2.0/security-groups |
|
|
Get(client *gophercloud.ServiceClient, securityGroupId string) |
GET /v2.0/security-groups/{security_group_id} |
|
|
SecurityGroupRules |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/security-group-rules |
|
Delete(client *gophercloud.ServiceClient, securityGroupsRulesId string) |
DELETE /v2.0/security-group-rules/{security-groups-rules-id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOpts) |
GET /v2.0/security-group-rules |
|
|
Get(client *gophercloud.ServiceClient, securityGroupsRulesId string) |
GET /v2.0/security-group-rules/{security-groups-rules-id} |
|
|
Routers |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/routers |
|
Delete(client *gophercloud.ServiceClient, routerId string) |
DELETE /v2.0/routers/{router_id} |
|
|
Update(client *gophercloud.ServiceClient, routerId string, opts UpdateOptsBuilder) |
PUT /v2.0/routers/{router_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOpts) |
GET /v2.0/routers |
|
|
Get(client *gophercloud.ServiceClient, routerId string) |
GET /v2.0/routers/{router_id} |
|
|
AddInterface(client *gophercloud.ServiceClient, routerId string, opts AddInterfaceOptsBuilder) |
PUT /v2.0/routers/{router_id}/add_router_interface |
|
|
RemoveInterface(client *gophercloud.ServiceClient, routerId string, opts RemoveInterfaceOptsBuilder) |
PUT /v2.0/routers/{router_id}/remove_router_interface |
|
|
FloatingIps |
Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/floatingips |
|
Delete(client *gophercloud.ServiceClient, floatingipId string) |
DELETE /v2.0/floatingips/{floatingip_id} |
|
|
Update(client *gophercloud.ServiceClient, floatingipId string, opts UpdateOptsBuilder) |
PUT /v2.0/floatingips/{floatingip_id} |
|
|
List(client *gophercloud.ServiceClient, opts ListOpts) |
GET /v2.0/floatingips |
|
|
Get(client *gophercloud.ServiceClient, floatingipId string) |
GET /v2.0/floatingips/{floatingip_id} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.