All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addSocks5Server | POST /socks5-server | add socks5-server |
describeSocks5Server | GET /socks5-server/{socks5}/detail | get detailed info of one socks5-server |
getSocks5Server | GET /socks5-server/{socks5} | get socks5-server |
listSocks5Server | GET /socks5-server | retrieve socks5-server list |
removeSocks5Server | DELETE /socks5-server/{socks5} | remove socks5-server |
updateSocks5Server | PUT /socks5-server/{socks5} | update socks5-server |
addSocks5Server(body)
add socks5-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
Socks5ServerCreate body = new Socks5ServerCreate(); // Socks5ServerCreate |
try {
apiInstance.addSocks5Server(body);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#addSocks5Server");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Socks5ServerCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Socks5ServerDetail describeSocks5Server(socks5)
get detailed info of one socks5-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
String socks5 = "socks5_example"; // String | name of the socks5-server
try {
Socks5ServerDetail result = apiInstance.describeSocks5Server(socks5);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#describeSocks5Server");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
socks5 | String | name of the socks5-server |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Socks5Server getSocks5Server(socks5)
get socks5-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
String socks5 = "socks5_example"; // String | name of the socks5-server
try {
Socks5Server result = apiInstance.getSocks5Server(socks5);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#getSocks5Server");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
socks5 | String | name of the socks5-server |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<Socks5Server> listSocks5Server()
retrieve socks5-server list
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
try {
List<Socks5Server> result = apiInstance.listSocks5Server();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#listSocks5Server");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeSocks5Server(socks5)
remove socks5-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
String socks5 = "socks5_example"; // String | name of the socks5-server
try {
apiInstance.removeSocks5Server(socks5);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#removeSocks5Server");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
socks5 | String | name of the socks5-server |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateSocks5Server(socks5, body)
update socks5-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.Socks5ServerApi;
Socks5ServerApi apiInstance = new Socks5ServerApi();
String socks5 = "socks5_example"; // String | name of the socks5-server
Socks5ServerUpdate body = new Socks5ServerUpdate(); // Socks5ServerUpdate |
try {
apiInstance.updateSocks5Server(socks5, body);
} catch (ApiException e) {
System.err.println("Exception when calling Socks5ServerApi#updateSocks5Server");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
socks5 | String | name of the socks5-server | |
body | Socks5ServerUpdate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json