All URIs are relative to https://api.openshift.com
Method | HTTP request | Description |
---|---|---|
getErrorById | GET /api/kafkas_mgmt/v1/errors/{id} | |
getErrors | GET /api/kafkas_mgmt/v1/errors |
Error getErrorById(id)
Returns the error by Id
// Import classes:
import com.openshift.cloud.api.kas.invoker.ApiClient;
import com.openshift.cloud.api.kas.invoker.ApiException;
import com.openshift.cloud.api.kas.invoker.Configuration;
import com.openshift.cloud.api.kas.invoker.models.*;
import com.openshift.cloud.api.kas.ErrorsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.openshift.com");
ErrorsApi apiInstance = new ErrorsApi(defaultClient);
String id = "id_example"; // String | The ID of record
try {
Error result = apiInstance.getErrorById(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ErrorsApi#getErrorById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of record |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Get error by Id | - |
ErrorList getErrors()
Returns the list of possible API errors
// Import classes:
import com.openshift.cloud.api.kas.invoker.ApiClient;
import com.openshift.cloud.api.kas.invoker.ApiException;
import com.openshift.cloud.api.kas.invoker.Configuration;
import com.openshift.cloud.api.kas.invoker.models.*;
import com.openshift.cloud.api.kas.ErrorsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.openshift.com");
ErrorsApi apiInstance = new ErrorsApi(defaultClient);
try {
ErrorList result = apiInstance.getErrors();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ErrorsApi#getErrors");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of possible errors | - |