All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addDnsServer | POST /dns-server | add dns-server |
describeDnsServer | GET /dns-server/{dns}/detail | get detailed info of one dns-server |
getDnsServer | GET /dns-server/{dns} | get dns-server |
listDnsServer | GET /dns-server | retrieve dns-server list |
removeDnsServer | DELETE /dns-server/{dns} | remove dns-server |
updateDnsServer | PUT /dns-server/{dns} | update dns-server |
addDnsServer(body)
add dns-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
DnsServerCreate body = new DnsServerCreate(); // DnsServerCreate |
try {
apiInstance.addDnsServer(body);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#addDnsServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | DnsServerCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
DnsServerDetail describeDnsServer(dns)
get detailed info of one dns-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
String dns = "dns_example"; // String | name of the dns-server
try {
DnsServerDetail result = apiInstance.describeDnsServer(dns);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#describeDnsServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dns | String | name of the dns-server |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
DnsServer getDnsServer(dns)
get dns-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
String dns = "dns_example"; // String | name of the dns-server
try {
DnsServer result = apiInstance.getDnsServer(dns);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#getDnsServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dns | String | name of the dns-server |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<DnsServer> listDnsServer()
retrieve dns-server list
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
try {
List<DnsServer> result = apiInstance.listDnsServer();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#listDnsServer");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeDnsServer(dns)
remove dns-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
String dns = "dns_example"; // String | name of the dns-server
try {
apiInstance.removeDnsServer(dns);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#removeDnsServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dns | String | name of the dns-server |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateDnsServer(dns, body)
update dns-server
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.DnsServerApi;
DnsServerApi apiInstance = new DnsServerApi();
String dns = "dns_example"; // String | name of the dns-server
DnsServerUpdate body = new DnsServerUpdate(); // DnsServerUpdate |
try {
apiInstance.updateDnsServer(dns, body);
} catch (ApiException e) {
System.err.println("Exception when calling DnsServerApi#updateDnsServer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dns | String | name of the dns-server | |
body | DnsServerUpdate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json