All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addTcpLb | POST /tcp-lb | add tcp-lb |
describeTcpLb | GET /tcp-lb/{tl}/detail | get detailed info of one tcp-lb |
getTcpLb | GET /tcp-lb/{tl} | get tcp-lb |
listTcpLb | GET /tcp-lb | retrieve tcp-lb list |
removeTcpLb | DELETE /tcp-lb/{tl} | remove tcp-lb |
updateTcpLb | PUT /tcp-lb/{tl} | update tcp-lb |
addTcpLb(body)
add tcp-lb
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
TcpLbCreate body = new TcpLbCreate(); // TcpLbCreate |
try {
apiInstance.addTcpLb(body);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#addTcpLb");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TcpLbCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
TcpLbDetail describeTcpLb(tl)
get detailed info of one tcp-lb
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
String tl = "tl_example"; // String | name of the tcp-lb
try {
TcpLbDetail result = apiInstance.describeTcpLb(tl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#describeTcpLb");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tl | String | name of the tcp-lb |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
TcpLb getTcpLb(tl)
get tcp-lb
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
String tl = "tl_example"; // String | name of the tcp-lb
try {
TcpLb result = apiInstance.getTcpLb(tl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#getTcpLb");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tl | String | name of the tcp-lb |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<TcpLb> listTcpLb()
retrieve tcp-lb list
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
try {
List<TcpLb> result = apiInstance.listTcpLb();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#listTcpLb");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeTcpLb(tl)
remove tcp-lb
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
String tl = "tl_example"; // String | name of the tcp-lb
try {
apiInstance.removeTcpLb(tl);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#removeTcpLb");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tl | String | name of the tcp-lb |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateTcpLb(tl, body)
update tcp-lb
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.TcpLbApi;
TcpLbApi apiInstance = new TcpLbApi();
String tl = "tl_example"; // String | name of the tcp-lb
TcpLbUpdate body = new TcpLbUpdate(); // TcpLbUpdate |
try {
apiInstance.updateTcpLb(tl, body);
} catch (ApiException e) {
System.err.println("Exception when calling TcpLbApi#updateTcpLb");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tl | String | name of the tcp-lb | |
body | TcpLbUpdate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json