ELB
The SDK interfaces based on the ELB v2 Go SDK are as follows. For details about the invoking methods, see the sample codes.
|
Interface |
Method |
API |
|---|---|---|
|
policy |
func List(sc *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/l7policies |
|
func Get(sc *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/l7policies/{policy_id} |
|
|
func Create(sc *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/l7policies |
|
|
func Update(sc *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/l7policies/{policy_id} |
|
|
func Delete(sc *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/l7policies/{policy_id} |
|
|
certificate |
func List(c *gophercloud.ServiceClient) |
GET /v2.0/lbaas/certificates |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/certificates/{certificate_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/certificates |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/certificates/{certificate_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/certificates/{certificate_id} |
|
|
loadbalancer |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/loadbalancers |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/loadbalancers/{loadbalancer_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/loadbalancers |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOpts) |
PUT /v2.0/lbaas/loadbalancers/{loadbalancer_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/loadbalancers/{loadbalancer_id} |
|
|
func GetStatuses(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/loadbalancers/{loadbalancer_id}/statuses |
|
|
listener |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/listeners |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/listeners/{listener_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/listeners |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOpts) |
PUT /v2.0/lbaas/listeners/{listener_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) (r DeleteResult) |
DELETE /v2.0/lbaas/listeners/{listener_id} |
|
|
pool |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/pools |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/pools/{pool_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/pools |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/pools/{pool_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/pools/{pool_id} |
|
|
Member |
func ListMembers(c *gophercloud.ServiceClient, poolID string, opts ListMembersOptsBuilder) |
GET /v2.0/lbaas/pools/{pool_id}/members |
|
func GetMember(c *gophercloud.ServiceClient, poolID string, memberID string) |
GET /v2.0/lbaas/pools/{pool_id}/members/{member_id} |
|
|
func CreateMember(c *gophercloud.ServiceClient, poolID string, opts CreateMemberOpts) |
POST /v2.0/lbaas/pools/{pool_id}/members |
|
|
func UpdateMember(c *gophercloud.ServiceClient, poolID string, memberID string, opts UpdateMemberOptsBuilder) |
PUT /v2.0/lbaas/pools/{pool_id}/members/{member_id} |
|
|
func DeleteMember(c *gophercloud.ServiceClient, poolID string, memberID string) |
DELETE /v2.0/lbaas/pools/{pool_id}/members/{member_id} |
|
|
healthmonitor |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/healthmonitors |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/healthmonitors/{healthmonitor_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/healthmonitors |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/healthmonitors/{healthmonitor_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/healthmonitors/{healthmonitor_id} |
|
|
whitelist |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/whitelists |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/whitelists/{whitelist_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/whitelists |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/whitelists/{whitelist_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/whitelists/{whitelist_id} |
|
|
rule |
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) |
GET /v2.0/lbaas/l7policies/{l7policy_id}/rules |
|
func Get(c *gophercloud.ServiceClient, id string) |
GET /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id} |
|
|
func Create(c *gophercloud.ServiceClient, opts CreateOptsBuilder) |
POST /v2.0/lbaas/l7policies/{l7policy_id}/rules |
|
|
func Update(c *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) |
PUT /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id} |
|
|
func Delete(c *gophercloud.ServiceClient, id string) |
DELETE /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.