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

ELB

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

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

Interface

Method

API

LbRuleV2Service

NeutronRules list(String l7policyId)

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

链接

NeutronRule get(String l7policyId, String ruleId)

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

链接

NeutronRule create(NeutronRule ruleModel, String l7policyId)

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

链接

NeutronRule update(NeutronRuleUpdate updateModel, String l7policyId, String ruleId)

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

链接

ActionResponse delete(String l7policyId, String ruleId)

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

链接

LbWhitelistV2Service

NeutronWhitelists list()

GET /v2.0/lbaas/whitelists

链接

NeutronWhitelist get(String whitelistId)

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

链接

NeutronWhitelist create(NeutronWhitelist model)

POST /v2.0/lbaas/whitelists

链接

NeutronWhitelist update(NeutronWhitelist model,String whitelistId)

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

链接

ActionResponse delete(String whitelistId)

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

链接

LbCertificateV2Service

NeutronCertificates list()

GET /v2.0/lbaas/certificates

链接

NeutronCertificate get(String id)

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

链接

NeutronCertificate create(NeutronCertificate model)

POST /v2.0/lbaas/certificates

链接

NeutronCertificate update(NeutronCertificateUpdate model, String id)

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

链接

ActionResponse delete(String id)

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

链接

LbPolicyV2Service

NeutronL7Policies list()

GET /v2.0/lbaas/l7policies

链接

NeutronL7Policy get(String policyId)

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

链接

NeutronL7Policy create(NeutronL7Policy model)

POST /v2.0/lbaas/l7policies

链接

NeutronL7Policy update(NeutronL7PolicyUpdate l7PolicyUpdate, String l7policyId)

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

链接

ActionResponse delete(String l7policyId)

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

链接

LoadBalancerV2Service

List<? extends LoadBalancerV2> list()

GET /v2.0/lbaas/loadbalancers

链接

LoadBalancerV2 get(String loadbalancerId)

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

链接

LoadBalancerV2 create(LoadBalancerV2 loadbalancer)

POST /v2.0/lbaas/loadbalancers

链接

LoadBalancerV2 update(String loadbalancerId, LoadBalancerV2Update loadbalancer)

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

链接

ActionResponse delete(String loadbalancerId)

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

链接

LoadBalancerV2StatusTree statusTree(String loadbalancerId)

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

链接

ListenerV2Service

List<? extends ListenerV2> list()

GET /v2.0/lbaas/listeners

链接

ListenerV2 get(String listenerId)

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

链接

ListenerV2 create(ListenerV2 listener)

POST /v2.0/lbaas/listeners

链接

ListenerV2 update(String listenerId, ListenerV2Update listener)

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

链接

ActionResponse delete(String listenerId)

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

链接

LbPoolV2Service

List<? extends LbPoolV2> list()

GET /v2.0/lbaas/pools

链接

LbPoolV2 get(String lbPoolId)

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

链接

LbPoolV2 create(LbPoolV2 lbPool)

POST /v2.0/lbaas/pools

链接

LbPoolV2 update(String lbPoolId, LbPoolV2Update lbPool)

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

链接

ActionResponse delete(String lbPoolId)

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

链接

HealthMonitorV2Service

List<? extends HealthMonitorV2> list()

GET /v2.0/lbaas/healthmonitors

链接

HealthMonitorV2 get(String healthMonitorId)

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

链接

HealthMonitorV2 create(HealthMonitorV2 healthMonitor)

POST /v2.0/lbaas/healthmonitors

链接

HealthMonitorV2 update(String healthMonitorId, HealthMonitorV2Update healthMonitor)

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

链接

ActionResponse delete(String healthMonitorId)

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

链接

LbPoolV2Service

List<? extends MemberV2> listMembers(String lbPoolId)

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

链接

MemberV2 getMember(String lbPoolId, String memberId)

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

链接

MemberV2 createMember(String lbPoolId, MemberV2 member)

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

链接

MemberV2 updateMember(String lbPoolId, String memberId, MemberV2Update member)

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

链接

ActionResponse deleteMember(String lbPoolId, String memberId)

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

链接

基于ELB v1.0 API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

ELBLoadBalancerService

ELBJob create(LoadBalancerCreate loadBalancer)

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

链接

LoadBalancer get(String loadBalancerId)

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

链接

List<? extends LoadBalancer> list()

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

链接

ELBJob update(String loadBalancerId, LoadBalancerUpdate loadBalancer)

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

链接

ELBJob delete(String loadBalancerId)

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

链接

ELBListenerService

ListenerCreate create(ListenerCreate listener)

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

链接

Listener get(String listenerId)

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

链接

Listener[] list()

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

链接

Listener update(String listenerId, ListenerUpdate listener)

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

链接

ActionResponse delete(String listenerId)

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

链接

ELBHealthCheckService

HealthCheck create(HealthCheckCreate healthCheck)

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

链接

HealthCheck get(String healthCheckId)

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

链接

HealthCheck update(String healthCheckId, HealthCheckUpdate healthCheck)

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

链接

ActionResponse delete(String healthCheckId)

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

链接

ELBServerService

ELBJob create(String listenerId, List<ServerCreate> servers)

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

链接

ELBJob delete(String listenerId, ServerDelete serverDelete)

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

链接

Server[] list(String listenerId)

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

链接

ELBCertificateService

Certificate create(Certificate cert)

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

链接

Certificates list()

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

链接

Certificate update(String certificateId, CertificateUpdate cert)

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

链接

ActionResponse delete(String certificateId)

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

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区