EngineInstanceRegistrationInfo registerEngineInstanceNoAuth(engineInstanceInfo, xCorrelationId)
Register a new engine instance without authorization.
Example
// Import classes:
import com.veritone.aiware.ApiClient;
import com.veritone.aiware.ApiException;
import com.veritone.aiware.Configuration;
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");
EngineApi apiInstance = new EngineApi(defaultClient);
EngineInstanceInfo engineInstanceInfo = new EngineInstanceInfo(); // EngineInstanceInfo | Engine Instance Info
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
try {
EngineInstanceRegistrationInfo result = apiInstance.registerEngineInstanceNoAuth(engineInstanceInfo, xCorrelationId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EngineApi#registerEngineInstanceNoAuth");
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 |
|---|
| engineInstanceInfo | EngineInstanceInfo | Engine Instance Info | |
| 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] |
Return type
EngineInstanceRegistrationInfo
Authorization
No authorization required
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|
| 200 | Successful registration of Engine Instance | * 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 - |