文档首页 > > 开发指南> API & SDK 对应关系> Go> ELB

ELB

分享
更新时间: 2019/11/15 GMT+08:00

基于ELB v2 Go SDK的SDK接口如下,调用方式请参考示例代码。

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}

链接

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区