All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addCertKey | POST /cert-key | add cert-key |
describeCertKey | GET /cert-key/{ck}/detail | get detailed info of one cert-key |
getCertKey | GET /cert-key/{ck} | get cert-key |
listCertKey | GET /cert-key | retrieve cert-key list |
removeCertKey | DELETE /cert-key/{ck} | remove cert-key |
addCertKey(body)
add cert-key
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.CertKeyApi;
CertKeyApi apiInstance = new CertKeyApi();
CertKeyCreate body = new CertKeyCreate(); // CertKeyCreate |
try {
apiInstance.addCertKey(body);
} catch (ApiException e) {
System.err.println("Exception when calling CertKeyApi#addCertKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | CertKeyCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
CertKeyDetail describeCertKey(ck)
get detailed info of one cert-key
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.CertKeyApi;
CertKeyApi apiInstance = new CertKeyApi();
String ck = "ck_example"; // String | name of the cert-key
try {
CertKeyDetail result = apiInstance.describeCertKey(ck);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertKeyApi#describeCertKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
ck | String | name of the cert-key |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
CertKey getCertKey(ck)
get cert-key
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.CertKeyApi;
CertKeyApi apiInstance = new CertKeyApi();
String ck = "ck_example"; // String | name of the cert-key
try {
CertKey result = apiInstance.getCertKey(ck);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertKeyApi#getCertKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
ck | String | name of the cert-key |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<CertKey> listCertKey()
retrieve cert-key list
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.CertKeyApi;
CertKeyApi apiInstance = new CertKeyApi();
try {
List<CertKey> result = apiInstance.listCertKey();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertKeyApi#listCertKey");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeCertKey(ck)
remove cert-key
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.CertKeyApi;
CertKeyApi apiInstance = new CertKeyApi();
String ck = "ck_example"; // String | name of the cert-key
try {
apiInstance.removeCertKey(ck);
} catch (ApiException e) {
System.err.println("Exception when calling CertKeyApi#removeCertKey");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
ck | String | name of the cert-key |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined