public class AppBlbClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
AppBlbClient()
Constructs a new client to invoke service methods on blb.
|
AppBlbClient(BlbClientConfiguration clientConfiguration)
Constructs a new blb client using the client configuration to access network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindEsg(EsgOperateRequest request)
bind the enterpriseSecurityGroups on the specified blb.
|
void |
bindSg(SgOperateRequest request)
bind the securityGroups on the specified blb.
|
BlbInstance |
blbDetail(BlbDetailRequest request)
Return the blb detail with the specified id.
|
AppIgResponse |
createAppIpGroup(AppIgRequest appIgRequest)
Create an appIpGroup with the specified options.
|
AppIgResponse |
createAppIpGroup(String blbId,
String name,
String desc,
List<AppIpGroupMember> memberList)
Create an appIpGroup with the specified options.
|
void |
createAppIpGroupBackendPolicy(AppBackendPolicyRequest appBackendPolicyRequest)
Create an appIpGroupBackendPolicy with the specified options.
|
AppSgResponse |
createAppServerGroup(AppSgRequest appSgRequest)
Create an appServerGroup with the specified options.
|
AppSgResponse |
createAppServerGroup(String blbId,
String name,
String desc,
List<AppBackendServer> backendServerList)
Create an appServerGroup with the specified options.
|
AppSgPortResponse |
createAppServerGroupPort(AppSgPortRequest appSgPortRequest)
Create a appServerGroupPort with the specified options.
|
CreateBlbResponse |
createBlb(CreateBlbRequest createBlbRequest)
Create a blb with the specified options.
|
CreateBlbResponse |
createBlb(String name,
String desc,
String vpcId,
String subnetId,
List<Tag> tags)
Create a blb with the specified options.
|
void |
createBlbRs(AppSgRequest appSgRequest)
Add backend servers to the specified blb appServerGroup.
|
void |
createBlbRs(String blbId,
String sgId,
List<AppBackendServer> backendServerList)
Add backend servers to the specified blb appServerGroup.
|
void |
createIpGroupMember(AppIgRequest appIgRequest)
Add member to the specified blb appIpGroup.
|
void |
createIpGroupMember(String blbId,
String ipGroupId,
List<AppIpGroupMember> memberList)
Add member to the specified blb appIpGroup.
|
void |
createListener(BlbListenerRequest blbListenerRequest)
Create a listener with the specified options.
|
CreateAppPolicyResponse |
createPolicys(AppPolicyRequest appPolicyRequest)
Create a policy with the specified options.
|
CreateAppPolicyResponse |
createPolicys(String blbId,
Integer listenerPort,
String type,
List<AppPolicy> appPolicyVos)
Create a policy with the specified options.
|
void |
deleteAppIpGroup(AppIgRequest appIgRequest)
Delete the special appIpGroup.
|
void |
deleteAppIpGroup(String blbId,
String ipGroupId)
Delete an appIpGroup with the specified options.
|
void |
deleteAppIpGroupBackendPolicy(AppBackendPolicyRequest appBackendPolicyRequest)
Delete the special AppBackendPolicy.
|
void |
deleteAppIpGroupBackendPolicy(String blbId,
String ipGroupId,
List<String> backendPolicyIdList)
Delete an appIpGroupBackendPolicy with the specified options.
|
void |
deleteAppServerGroup(AppSgRequest appSgRequest)
Delete the special appServerGroup.
|
void |
deleteAppServerGroup(String blbId,
String sgId)
Delete a appServerGroup with the specified options.
|
void |
deleteAppServerGroupPort(AppSgPortRequest appSgPortRequest)
Delete the special appServerGroupPort.
|
void |
deleteAppServerGroupPort(String blbId,
String sgId,
List<String> portIdList)
Delete a appServerGroup with the specified options.
|
void |
deleteBlb(DeleteBlbRequest deleteBlbRequest)
Delete the specified blb.
|
void |
deleteBlb(String blbId)
Delete the specified blb.
|
void |
deleteBlbRs(AppRsRequest appRsRequest)
Delete the specified backend server from the specified blb appServerGroup.
|
void |
deleteBlbRs(String blbId,
String sgId,
List<String> backendServerIdList)
Delete the specified backend server from the specified blb appServerGroup.
|
void |
deleteIpGroupMember(AppIpGroupMemberRequest appIpGroupMemberRequest)
Delete the specified member from the specified blb appIpGroup.
|
void |
deleteIpGroupMember(String blbId,
String ipGroupId,
List<String> memberIdList)
Delete the specified member from the specified blb appIpGroup.
|
void |
deleteListener(DeleteListenerRequest deleteListenerRequest)
Delete the specified listener.
|
void |
deleteListener(String blbId,
List<Integer> portList)
Delete the specified listener.
|
void |
deletePolicys(DeleteAppPolicyRequest deleteAppPolicyRequest)
Delete the special policy.
|
void |
deletePolicys(String blbId,
Integer port,
List<String> policyIdList)
Delete a appServerGroup with the specified options.
|
protected void |
fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest
only support HttpMethodName.POST or HttpMethodName.PUT
|
ListListenerResponse<AllListener> |
listAllListener(ListAllListenerRequest request)
Return a list of listener with the specified options of blb.
|
ListListenerResponse<AllListener> |
listAllListener(String blbId)
Return a list of all listener with the specified options.
|
ListAppIgResponse |
listAppIpGroup(ListAppIgRequest listAppIgRequest)
Return a list of appIpGroup of the specified blb
|
ListAppIgResponse |
listAppIpGroup(String blbId,
String name)
Return a list of appIpGroup of the specified blb.
|
ListAppSgResponse |
listAppServerGroup(ListAppSgRequest listAppSgRequest)
Return a list of appServerGroup of the specified blb
|
ListAppSgResponse |
listAppServerGroup(String blbId,
String name)
Return a list of appServerGroup of the specified blb.
|
ListBackendServerStatusResponse |
listBackendServerStatus(ListBackendServerStatusRequest listBackendServerStatusRequest)
Return a list of healthStatus of backend server with the specified blb and listener port.
|
ListBackendServerStatusResponse |
listBackendServerStatus(String blbId,
int listenerPort)
Return a list of healthStatus of backend servers with the specified blb and listener port.
|
ListBlbEsgResponse |
listBlbEsg(ListBlbSgRequest request)
Return a list of esg info of the specified blb
|
ListAppRsResponse |
listBlbRs(ListAppRsRequest listAppRsRequest)
Return a list of backend server of the specified blb appServerGroup
|
ListAppRsResponse |
listBlbRs(String blbId,
String sgId)
Return a list of backend server of the specified blb appServerGroup.
|
ListAppRsMountResponse |
listBlbRsMount(ListAppRsRequest listAppRsRequest)
Return a list of backend server of the specified blb appServerGroup
|
ListAppRsMountResponse |
listBlbRsMount(String blbId,
String sgId)
Return a list of backend server of the specified blb appServerGroup.
|
ListAppRsUnMountResponse |
listBlbRsUnMount(ListAppRsRequest listAppRsRequest)
Return a list of backend server of the specified blb appServerGroup
|
ListAppRsUnMountResponse |
listBlbRsUnMount(String blbId,
String sgId)
Return a list of backend server of the specified blb appServerGroup.
|
ListBlbResponse |
listBlbs(ListBlbRequest listBlbRequest)
Return a list of blbs with the specified options.
|
ListBlbResponse |
listBlbs(String address,
String name,
String blbId,
String bccId)
Return a list of blbs with the specified options.
|
ListBlbSgResponse |
listBlbSg(ListBlbSgRequest request)
Return a list of sg info of the specified blb
|
ListListenerResponse<HttpListener> |
listHttpListener(String blbId)
Return a list of http listener with the specified options.
|
ListListenerResponse<HttpsListener> |
listHttpsListener(String blbId)
Return a list of https listener with the specified options.
|
ListAppIpGroupMemberResponse |
listIpGroupMember(ListAppIpGroupMemberRequest listAppIpGroupMemberRequest)
Return a list of member of the specified blb appIpGroup
|
ListAppIpGroupMemberResponse |
listIpGroupMember(String blbId,
String ipGroupId)
Return a list of member of the specified blb appIpGroup.
|
ListListenerResponse |
listListener(ListListenerRequest listListenerRequest)
Return a list of listener with the specified options.
|
ListAppPolicyResponse |
listPolicys(ListAppPolicyRequest listAppPolicyRequest)
Return a list of policy of the specified blb
|
ListAppPolicyResponse |
listPolicys(String blbId,
Integer port)
Return a list of backend server of the specified blb appServerGroup.
|
ListListenerResponse<SslListener> |
listSslListener(String blbId)
Return a list of ssl listener with the specified options.
|
ListListenerResponse<TcpListener> |
listTcpListener(String blbId)
Return a list of tcp listener with the specified options.
|
ListListenerResponse<UdpListener> |
listUdpListener(String blbId)
Return a list of udp listener with the specified options.
|
void |
modifyAppIpGroupAttributes(AppIgRequest appIgRequest)
Modifying the special attribute to new appIpGroup.
|
void |
modifyAppIpGroupAttributes(String blbId,
String ipGroupId,
String name,
String desc)
Update an appIpGroup with the specified options.
|
void |
modifyAppIpGroupBackendPolicyAttributes(AppBackendPolicyRequest appBackendPolicyRequest)
Modifying the special attribute to new appIpGroupBackendPolicy.
|
void |
modifyAppServerGroupAttributes(AppSgRequest appSgRequest)
Modifying the special attribute to new appServerGroup.
|
void |
modifyAppServerGroupAttributes(String blbId,
String sgId,
String name,
String desc)
Update a appServerGroup with the specified options.
|
void |
modifyAppServerGroupPortAttributes(AppSgPortRequest appSgPortRequest)
Modifying the special attribute to new appServerGroupPort.
|
void |
modifyBlbAttributes(ModifyBlbAttributesRequest modifyBlbAttributesRequest)
Modifying the special attribute to new blb.
|
void |
modifyBlbAttributes(String blbId,
String name,
String desc)
Modifying the special attribute to new blb.
|
void |
modifyBlbRs(AppSgRequest appSgRequest)
Modifying the special backend servers of the specified blb appServerGroup.
|
void |
modifyBlbRs(String blbId,
String sgId,
List<AppBackendServer> backendServerList)
Modifying the special backend servers of the specified blb appServerGroup.
|
void |
modifyIpGroupMember(AppIgRequest appIgRequest)
Modifying the special members of the specified blb appIpGroup.
|
void |
modifyIpGroupMember(String blbId,
String ipGroupId,
List<AppIpGroupMember> memberList)
Modifying the special members of the specified blb appIpGroup.
|
void |
modifyListenerAttributes(BlbListenerRequest modifyListenerAttributesRequest)
Modifying the special attribute to new listener.
|
void |
unBindEsg(EsgOperateRequest request)
unbind the enterpriseSecurityGroups from the specified blb.
|
void |
unBindSg(SgOperateRequest request)
unbind the securityGroups from the specified blb.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic AppBlbClient()
public AppBlbClient(BlbClientConfiguration clientConfiguration)
clientConfiguration - The blb client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
internalRequest - A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.bceRequest - The original request, as created by the user.public CreateBlbResponse createBlb(String name, String desc, String vpcId, String subnetId, List<Tag> tags)
name - The name of blbdesc - The description of blbvpcId - The vpcId of blbpublic CreateBlbResponse createBlb(CreateBlbRequest createBlbRequest)
createBlbRequest - The request containing all options for creating a blb.public ListBlbResponse listBlbs(String address, String name, String blbId, String bccId)
address - The address of the blbname - The name of the blb.blbId - The id of the blb.bccId - The bcc id of the blb.public ListBlbResponse listBlbs(ListBlbRequest listBlbRequest)
listBlbRequest - The request containing all options for listing blbs.public BlbInstance blbDetail(BlbDetailRequest request)
request - The request containing all options for getting blb detail.public void modifyBlbAttributes(String blbId, String name, String desc)
blbId - The id of the blb.name - The name after modifying.desc - The description after modifying.public void modifyBlbAttributes(ModifyBlbAttributesRequest modifyBlbAttributesRequest)
modifyBlbAttributesRequest - The request containing all options for modifying a blb.public void deleteBlb(String blbId)
blbId - The id of the blb to delete.public void deleteBlb(DeleteBlbRequest deleteBlbRequest)
deleteBlbRequest - The request containing all options for deleting blb.public void createListener(BlbListenerRequest blbListenerRequest)
blbListenerRequest - The request containing all options for creating a listener.public ListListenerResponse<TcpListener> listTcpListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<UdpListener> listUdpListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<HttpListener> listHttpListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<HttpsListener> listHttpsListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<SslListener> listSslListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<AllListener> listAllListener(String blbId)
blbId - The blb id of the listener.public ListListenerResponse<AllListener> listAllListener(ListAllListenerRequest request)
request - The request containing all options for listing listeners of blb.public ListListenerResponse listListener(ListListenerRequest listListenerRequest)
listListenerRequest - The request containing all options for listing listeners.public void modifyListenerAttributes(BlbListenerRequest modifyListenerAttributesRequest)
modifyListenerAttributesRequest - The request containing all options for modifying listener.public void deleteListener(String blbId, List<Integer> portList)
blbId - The blb id of the listener to delete.portList - The ports of the listener to delete.public void deleteListener(DeleteListenerRequest deleteListenerRequest)
deleteListenerRequest - The request containing all options for deleting listener.public void createBlbRs(String blbId, String sgId, List<AppBackendServer> backendServerList)
blbId - The id of blb to add backend server.sgId - The id of blb appServerGroup to add backend server.backendServerList - The backend servers to add.public void createBlbRs(AppSgRequest appSgRequest)
appSgRequest - The request containing all backend servers for adding to the specified blb appServerGroup.public void createIpGroupMember(String blbId, String ipGroupId, List<AppIpGroupMember> memberList)
blbId - The id of blb to add ipGroup member.ipGroupId - The id of blb appIpGroup to add member.memberList - The ipGroup members to add.public void createIpGroupMember(AppIgRequest appIgRequest)
appIgRequest - The request containing all members for adding to the specified blb appIpGroup.public ListBackendServerStatusResponse listBackendServerStatus(String blbId, int listenerPort)
blbId - The id of the specified blb.listenerPort - The specified listener port.public ListBackendServerStatusResponse listBackendServerStatus(ListBackendServerStatusRequest listBackendServerStatusRequest)
listBackendServerStatusRequest - The request containing all options for listing backend server healtStatus.public ListAppSgResponse listAppServerGroup(String blbId, String name)
blbId - The id of the blb.name - The name of the appServerGroup.public ListAppSgResponse listAppServerGroup(ListAppSgRequest listAppSgRequest)
listAppSgRequest - The request containing all options for listing appServerGroup.public ListAppIgResponse listAppIpGroup(String blbId, String name)
blbId - The id of the blb.name - The name of the appIpGroup.public ListAppIgResponse listAppIpGroup(ListAppIgRequest listAppIgRequest)
listAppIgRequest - The request containing all options for listing appIpGroup.public ListAppRsMountResponse listBlbRsMount(String blbId, String sgId)
blbId - The id of the blb.sgId - The id of the appServerGroup.public ListAppRsMountResponse listBlbRsMount(ListAppRsRequest listAppRsRequest)
listAppRsRequest - The request containing all options for listing backend server.public ListAppRsUnMountResponse listBlbRsUnMount(String blbId, String sgId)
blbId - The id of the blb.sgId - The id of the appServerGroup.public ListAppRsUnMountResponse listBlbRsUnMount(ListAppRsRequest listAppRsRequest)
listAppRsRequest - The request containing all options for listing backend server.public ListAppRsResponse listBlbRs(String blbId, String sgId)
blbId - The id of the blb.sgId - The id of the appServerGroup.public ListAppRsResponse listBlbRs(ListAppRsRequest listAppRsRequest)
listAppRsRequest - The request containing all options for listing backend server.public ListAppIpGroupMemberResponse listIpGroupMember(String blbId, String ipGroupId)
blbId - The id of the blb.ipGroupId - The id of the appIpGroup.public ListAppIpGroupMemberResponse listIpGroupMember(ListAppIpGroupMemberRequest listAppIpGroupMemberRequest)
listAppIpGroupMemberRequest - The request containing all options for listing member.public void modifyBlbRs(String blbId, String sgId, List<AppBackendServer> backendServerList)
blbId - The id of the specified blb.sgId - The id of blb appServerGroup.backendServerList - The backend servers to modifying.public void modifyBlbRs(AppSgRequest appSgRequest)
appSgRequest - The request containing all options for modifying backend servers.public void modifyIpGroupMember(String blbId, String ipGroupId, List<AppIpGroupMember> memberList)
blbId - The id of the specified blb.ipGroupId - The id of blb appIpGroup.memberList - The ipGroup members to modifying.public void modifyIpGroupMember(AppIgRequest appIgRequest)
appIgRequest - The request containing all options for modifying members.public void deleteBlbRs(String blbId, String sgId, List<String> backendServerIdList)
blbId - The id of the blb.sgId - The id of the appServerGroup.backendServerIdList - The id list of the backend server id to deleting.public void deleteBlbRs(AppRsRequest appRsRequest)
appRsRequest - The request containing all options for deleting backend server from the specified blb appServerGroup.public void deleteIpGroupMember(String blbId, String ipGroupId, List<String> memberIdList)
blbId - The id of the blb.ipGroupId - The id of the appIpGroup.memberIdList - The id list of the member id to deleting.public void deleteIpGroupMember(AppIpGroupMemberRequest appIpGroupMemberRequest)
appIpGroupMemberRequest - The request containing all options for deleting member
from the specified blb appIpGroup.public AppSgResponse createAppServerGroup(String blbId, String name, String desc, List<AppBackendServer> backendServerList)
blbId - The id of blbname - The name of appServerGroupdesc - The description of appServerGroupbackendServerList - The backendServers of appServerGrouppublic AppSgResponse createAppServerGroup(AppSgRequest appSgRequest)
appSgRequest - The request containing all options for creating a appSg.public AppIgResponse createAppIpGroup(AppIgRequest appIgRequest)
appIgRequest - The request containing all options for creating an appIg.public AppIgResponse createAppIpGroup(String blbId, String name, String desc, List<AppIpGroupMember> memberList)
blbId - The id of blbname - The name of appIpGroupdesc - The description of appIpGroupmemberList - The backen of appIpGrouppublic void modifyAppServerGroupAttributes(String blbId, String sgId, String name, String desc)
blbId - The id of blbsgId - The id of appServerGroupname - The name of appServerGroupdesc - The description of appServerGrouppublic void modifyAppServerGroupAttributes(AppSgRequest appSgRequest)
appSgRequest - The request containing all options for modifying appSgRequest.public void modifyAppIpGroupAttributes(String blbId, String ipGroupId, String name, String desc)
blbId - The id of blbipGroupId - The id of appIpGroupname - The name of appIpGroupdesc - The description of appIpGrouppublic void modifyAppIpGroupAttributes(AppIgRequest appIgRequest)
appIgRequest - The request containing all options for modifying appIgRequest.public void deleteAppServerGroup(String blbId, String sgId)
blbId - The id of blbsgId - The id of appServerGrouppublic void deleteAppServerGroup(AppSgRequest appSgRequest)
appSgRequest - The request containing all options for deleting appSgRequest.public void deleteAppIpGroup(String blbId, String ipGroupId)
blbId - The id of blbipGroupId - The id of appIpGrouppublic void deleteAppIpGroup(AppIgRequest appIgRequest)
appIgRequest - The request containing all options for deleting appIpGroup.public void createAppIpGroupBackendPolicy(AppBackendPolicyRequest appBackendPolicyRequest)
appBackendPolicyRequest - The request containing all options for creating an appIpGroupBackendPolicy.public void modifyAppIpGroupBackendPolicyAttributes(AppBackendPolicyRequest appBackendPolicyRequest)
appBackendPolicyRequest - The request containing all options for modifying appIpGroupBackendPolicy.public void deleteAppIpGroupBackendPolicy(String blbId, String ipGroupId, List<String> backendPolicyIdList)
blbId - The id of blbipGroupId - The id of appServerGroupbackendPolicyIdList - The id of appIpGroupBackendPolicy listpublic void deleteAppIpGroupBackendPolicy(AppBackendPolicyRequest appBackendPolicyRequest)
appBackendPolicyRequest - The request containing all options for deleting appBackendPolicy.public AppSgPortResponse createAppServerGroupPort(AppSgPortRequest appSgPortRequest)
appSgPortRequest - The request containing all options for creating a appSgPort.public void modifyAppServerGroupPortAttributes(AppSgPortRequest appSgPortRequest)
appSgPortRequest - The request containing all options for modifying appSgPortRequest.public void deleteAppServerGroupPort(String blbId, String sgId, List<String> portIdList)
blbId - The id of blbsgId - The id of appServerGroupportIdList - The id of appServerGroupPort listpublic void deleteAppServerGroupPort(AppSgPortRequest appSgPortRequest)
appSgPortRequest - The request containing all options for deleting AppSgPortRequest.public CreateAppPolicyResponse createPolicys(String blbId, Integer listenerPort, String type, List<AppPolicy> appPolicyVos)
blbId - The id of blblistenerPort - The listenerPort of policytype - The listenerType of PolicyappPolicyVos - The appPolicyVos of policypublic CreateAppPolicyResponse createPolicys(AppPolicyRequest appPolicyRequest)
appPolicyRequest - The request containing all options for creating a policy.public ListAppPolicyResponse listPolicys(String blbId, Integer port)
blbId - The id of the blb.port - The port of the policy.public ListAppPolicyResponse listPolicys(ListAppPolicyRequest listAppPolicyRequest)
listAppPolicyRequest - The request containing all options for listing policy.public void deletePolicys(String blbId, Integer port, List<String> policyIdList)
blbId - The id of blbport - The port of policypolicyIdList - The id of policy listpublic void deletePolicys(DeleteAppPolicyRequest deleteAppPolicyRequest)
deleteAppPolicyRequest - The request containing all options for deleting policy.public void bindSg(SgOperateRequest request)
request - The request containing all options for binding sg.public void unBindSg(SgOperateRequest request)
request - The request containing all options for unbinding sg.public ListBlbSgResponse listBlbSg(ListBlbSgRequest request)
request - The request containing all options for listing blb's sg.public void bindEsg(EsgOperateRequest request)
request - The request containing all options for binding esg.public void unBindEsg(EsgOperateRequest request)
request - The request containing all options for unbinding esg.public ListBlbEsgResponse listBlbEsg(ListBlbSgRequest request)
request - The request containing all options for listing blb's esg.Copyright © 2024. All rights reserved.