GetEngineInstanceListResponse getEngineInstanceList(xCorrelationId, engineInstanceIDs, engineIDs, hostIDs, workRequestIDs, status, drain, launchStartTime, launchEndTime, modifiedBefore, modifiedAfter, createdBefore, createdAfter, offset, limit, direction, orderBy)
Get engines instances with filtering.
Example
// Import classes:
import com.veritone.aiware.ApiClient;
import com.veritone.aiware.ApiException;
import com.veritone.aiware.Configuration;
import com.veritone.aiware.auth.*;
import com.veritone.aiware.models.*;
import com.veritone.aiware.edge.EngineApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.aiware.com/edge/v1");
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
EngineApi apiInstance = new EngineApi(defaultClient);
String xCorrelationId = "xCorrelationId_example"; // String | Correlation Id that can be passed, traced in the server and will be returned in the response if present in the request
String engineInstanceIDs = "engineInstanceIDs_example"; // String | Field to provide the input to get engine instances by ID list. Separated by commas
String engineIDs = "engineIDs_example"; // String | Field to provide the input to get engines by Engine ID list. Separated by commas
UUID hostIDs = new UUID(); // UUID | Filtering engine instances by host IDs. Separated by commas
UUID workRequestIDs = new UUID(); // UUID | Filters engine instances by workrequest IDs. Separated by commas
EngineStatusEnum status = new EngineStatusEnum(); // EngineStatusEnum | Field to match the current status
Boolean drain = true; // Boolean | Filter by drain
Long launchStartTime = 56L; // Long | The unix timestamp, describing a lower limit for the time an engine instance was launched.
Long launchEndTime = 56L; // Long | The unix timestamp, describing an upper limit for the time an engine instance was launched.
Long modifiedBefore = 56L; // Long | Filter by items modified before expressed as timestamp
Long modifiedAfter = 56L; // Long | Filter by items modified after expressed as timestamp
Long createdBefore = 56L; // Long | Filter items where created date is before this date
Long createdAfter = 56L; // Long | Filter items where created date is after this date
Long offset = 56L; // Long | the number of data to skip before getting the result set
Long limit = 10lL; // Long | the number of items to return.
String direction = "\"DESC\""; // String | the sort order. ASC or DESC.
String orderBy = "orderBy_example"; // String | It should be in [engineID, hostID, status, createdTime, modifiedTime, lastUpdateTime, launchTime]
try {
GetEngineInstanceListResponse result = apiInstance.getEngineInstanceList(xCorrelationId, engineInstanceIDs, engineIDs, hostIDs, workRequestIDs, status, drain, launchStartTime, launchEndTime, modifiedBefore, modifiedAfter, createdBefore, createdAfter, offset, limit, direction, orderBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EngineApi#getEngineInstanceList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|
| xCorrelationId | String | Correlation Id that can be passed, traced in the server and will be returned in the response if present in the request | [optional] |
| engineInstanceIDs | String | Field to provide the input to get engine instances by ID list. Separated by commas | [optional] |
| engineIDs | String | Field to provide the input to get engines by Engine ID list. Separated by commas | [optional] |
| hostIDs | UUID | Filtering engine instances by host IDs. Separated by commas | [optional] |
| workRequestIDs | UUID | Filters engine instances by workrequest IDs. Separated by commas | [optional] |
| status | EngineStatusEnum | Field to match the current status | [optional] [enum: active, terminated] |
| drain | Boolean | Filter by drain | [optional] |
| launchStartTime | Long | The unix timestamp, describing a lower limit for the time an engine instance was launched. | [optional] |
| launchEndTime | Long | The unix timestamp, describing an upper limit for the time an engine instance was launched. | [optional] |
| modifiedBefore | Long | Filter by items modified before expressed as timestamp | [optional] |
| modifiedAfter | Long | Filter by items modified after expressed as timestamp | [optional] |
| createdBefore | Long | Filter items where created date is before this date | [optional] |
| createdAfter | Long | Filter items where created date is after this date | [optional] |
| offset | Long | the number of data to skip before getting the result set | [optional] |
| limit | Long | the number of items to return. | [optional] [default to 10l] |
| direction | String | the sort order. ASC or DESC. | [optional] [default to "DESC"] |
| orderBy | String | It should be in [engineID, hostID, status, createdTime, modifiedTime, lastUpdateTime, launchTime] | [optional] |
Return type
GetEngineInstanceListResponse
Authorization
api_key
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|
| 200 | Successful operation | * X-Aiware-Version - * X-Correlation-Id - |
| 400 | Invalid argument. Please see the error response for more information. | * X-Aiware-Version - * X-Correlation-Id - |
| 401 | Not authorized | * X-Aiware-Version - * X-Correlation-Id - |
| 403 | Forbidden | * X-Aiware-Version - * X-Correlation-Id - |
| 404 | Not Found | * X-Aiware-Version - * X-Correlation-Id - |
| 405 | The request is not allowed. | * X-Aiware-Version - * X-Correlation-Id - |
| 429 | Too Many Requests | * Retry-After - * X-Aiware-Version - * X-Correlation-Id - |
| 501 | Not Implemented | * X-Aiware-Version - * X-Correlation-Id - |
| 503 | System Unavailable | * Retry-After - * X-Aiware-Version - * X-Correlation-Id - |