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

ELB

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

基于ELB v2.0 API的SDK接口如下,调用方式举例:conn.network.loadbalancers()

Interface

Method

API

Loadbalancer Operations

loadbalancers(self, **query)

GET /v2.0/lbaas/loadbalancers

链接

get_loadbalancer(self, lb)

GET /v2.0/lbaas/loadbalancers/{loadbalancer_id}

链接

create_loadbalancer(self, **attrs)

POST /v2.0/lbaas/loadbalancers

链接

update_loadbalancer(self, lb, **attrs)

PUT /v2.0/lbaas/loadbalancers/{loadbalancer_id}

链接

delete_loadbalancer(self, lb, ignore_missing=True)

DELETE /v2.0/lbaas/loadbalancers/{loadbalancer_id}

链接

get_loadbalancer_status_stree(self, lb)

GET /v2.0/lbaas/loadbalancers/{loadbalancer_id}/statuses

链接

Listener Operations

listeners(self, **query)

GET /v2.0/lbaas/listeners

链接

get_listener(self, lsn)

GET /v2.0/lbaas/listeners/{listener_id}

链接

create_listener(self, **attrs)

POST /v2.0/lbaas/listeners

链接

update_listener(self, lsn, **attrs)

PUT /v2.0/lbaas/listeners/{listener_id}

链接

delete_listener(self, lsn, ignore_missing=True)

DELETE /v2.0/lbaas/listeners/{listener_id}

链接

Pool Operations

pools(self, **query)

GET /v2.0/lbaas/pools

链接

get_pool(self, pol)

GET /v2.0/lbaas/pools/{pool_id}

链接

create_pool(self, **attrs)

POST /v2.0/lbaas/pools

链接

update_pool(self, pol, **attrs)

PUT /v2.0/lbaas/pools/{pool_id}

链接

delete_pool(self, pol, ignore_missing=True)

DELETE /v2.0/lbaas/pools/{pool_id}

链接

Member Operations

members(self, **query)

GET /v2.0/lbaas/pools/{pool_id}/members

链接

get_member(self, mem, pool = None)

GET /v2.0/lbaas/pools/{pool_id}/members/{member_id}

链接

create_member(self, **attrs)

POST /v2.0/lbaas/pools/{pool_id}/members

链接

update_member(self, mem, **attrs)

PUT /v2.0/lbaas/pools/{pool_id}/members/{member_id}

链接

delete_member(self, mem, pool = None, ignore_missing=True)

DELETE /v2.0/lbaas/pools/{pool_id}/members/{member_id}

链接

Healthmonitor Operations

healthmonitors(self, **query)

GET /v2.0/lbaas/healthmonitors

链接

get_healthmonitor(self, hlth)

GET /v2.0/lbaas/healthmonitors/{healthmonitor_id}

链接

create_healthmonitor(self, **attrs)

POST /v2.0/lbaas/healthmonitors

链接

update_healthmonitor(self, hlth, **attrs)

PUT /v2.0/lbaas/healthmonitors/{healthmonitor_id}

链接

delete_healthmonitor(self, hlth, ignore_missing=True)

DELETE /v2.0/lbaas/healthmonitors/{healthmonitor_id}

链接

Policy Operations

poliycies(self, **query)

GET /v2.0/lbaas/l7policies

链接

get_policy(self, plc)

GET /v2.0/lbaas/l7policies/{l7policy_id}

链接

create_policy(self, **attrs)

POST /v2.0/lbaas/l7policies

链接

update_policy(self, plc, **attrs)

PUT /v2.0/lbaas/l7policies/{l7policy_id}

链接

delete_policy(self, plc, ignore_missing=True)

DELETE /v2.0/lbaas/l7policies/{l7policy_id}

链接

Rule Operations

rules(self, **query)

GET /v2.0/lbaas/l7policies/{l7policy_id}/rules

链接

get_rule(self, rul, policy)

GET /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id}

链接

create_rule(self, **attrs)

POST /v2.0/lbaas/l7policies/{l7policy_id}/rules

链接

update_rule(self, rul, **attrs)

PUT /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id}

链接

delete_rule(self, rul, policy, ignore_missing=True)

DELETE /v2.0/lbaas/l7policies/{l7policy_id}/rules/{l7rule_id}

链接

Whitelist Operations

whitelists(self, **query)

GET /v2.0/lbaas/whitelists

链接

get_whitelist(self, wl)

GET /v2.0/lbaas/whitelists/{whitelist_id}

链接

create_whitelist(self, **attrs)

POST /v2.0/lbaas/whitelists

链接

update_whitelist(self, wl, **attrs)

PUT /v2.0/lbaas/whitelists/{whitelist_id}

链接

delete_whitelist(self, wl, ignore_missing=True)

DELETE /v2.0/lbaas/whitelists/{whitelist_id}

链接

Certificate Operations

certificates(self, **query)

GET /v2.0/lbaas/certificates

链接

get_certificate(self, cf)

GET /v2.0/lbaas/certificates/{certificate_id}

链接

create_certificate(self, **attrs)

POST /v2.0/lbaas/certificates

链接

update_certificate(self, cf, **attrs)

PUT /v2.0/lbaas/certificates/{certificate_id}

链接

delete_certificate(self, cf, ignore_missing=True)

DELETE /v2.0/lbaas/certificates/{certificate_id}

链接

基于ELB v1.0 API的SDK接口如下,调用方法举例:conn.load_balancer.create_load_balancer()

Interface

Method

API

LoadBalancer Operations

create_load_balancer(self, **attrs)

POST /v1.0/{project_id}/elbaas/loadbalancers

链接

get_load_balancer(self, load_balancer)

GET /v1.0/{project_id}/elbaas/loadbalancers/{loadbalancer_id}

链接

load_balancers(self, **query)

GET /v1.0/{project_id}/elbaas/loadbalancers

链接

update_load_balancer(self, load_balancer, **attrs)

PUT /v1.0/{project_id}/elbaas/loadbalancers/{loadbalancer_id}

链接

delete_load_balancer(self, load_balancer, ignore_missing=True)

DELETE /v1.0/{project_id}/elbaas/loadbalancers/{loadbalancer_id}

链接

Listener Operations

create_listener(self, **attrs)

POST /v1.0/{project_id}/elbaas/listeners

链接

get_listener(self, listener)

GET /v1.0/{project_id}/elbaas/listeners/{listener_id}

链接

listeners(self, **query)

GET /v1.0/{project_id}/elbaas/listeners?loadbalancer_id={loadbalancer_id}

链接

update_listener(self, listener, **attrs)

PUT /v1.0/{project_id}/elbaas/listeners/{listener_id}

链接

delete_listener(self, listener, ignore_missing=True)

DELETE /v1.0/{project_id}/elbaas/listeners/{listener_id}

链接

HealthCheck Operations

create_health_check(self, **attrs)

POST /v1.0/{project_id}/elbaas/healthcheck

链接

get_health_check(self, health_check)

GET /v1.0/{project_id}/elbaas/healthcheck/{healthcheck_id}

链接

update_health_check(self, health_check, **attrs)

PUT /v1.0/{project_id}/elbaas/healthcheck/{healthcheck_id}

链接

delete_health_check(self, health_check, ignore_missing=True)

DELETE /v1.0/{project_id}/elbaas/healthcheck/{healthcheck_id}

链接

Member Operations

add_members_to_listener(self, listener, members)

POST /v1.0/{project_id}/elbaas/listeners/{listener_id}/members

链接

remove_members_of_listener(self, listener, members)

POST /v1.0/{project_id}/elbaas/listeners/{listener_id}/members/action

链接

listener_members(self, listener, **query)

GET /v1.0/{project_id}/elbaas/listeners/{listener_id}/members

链接

Certificate Operations

create_certificate(self, **attrs)

POST /v1.0/{project_id}/elbaas/certificate

链接

certificates(self)

GET /v1.0/{project_id}/elbaas/certificate

链接

update_certificate(self, certificate, **attrs)

PUT /v1.0/{project_id}/elbaas/certificate/{certificate_id}

链接

delete_certificate(self, certificate, ignore_missing=True)

DELETE /v1.0/{project_id}/elbaas/certificate/{certificate_id}

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区