All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
runSQL | POST /sql/{namespace} | |
taskIdGet | GET /task/{id} | |
taskIdResultGet | GET /task/{id}/result | |
tasksGet | GET /tasks |
List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding)
Run a sql query
// Import classes:
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.auth.*;
import io.tiledb.cloud.rest_api.models.*;
import io.tiledb.cloud.rest_api.api.TasksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("/v1");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
TasksApi apiInstance = new TasksApi(defaultClient);
String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username)
SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted
String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use
try {
List<Map<String, Object>> result = apiInstance.runSQL(namespace, sql, acceptEncoding);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TasksApi#runSQL");
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 |
---|---|---|---|
namespace | String | namespace to run task under is in (an organization name or user's username) | |
sql | SQLParameters | sql being submitted | |
acceptEncoding | String | Encoding to use | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | JSON results in array of objects form, if the query returns results | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request |
204 | SQL executed successfully | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request |
502 | Bad Gateway | - |
0 | error response | - |
ArrayTask taskIdGet(id)
Fetch an array task
// Import classes:
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.auth.*;
import io.tiledb.cloud.rest_api.models.*;
import io.tiledb.cloud.rest_api.api.TasksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("/v1");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
TasksApi apiInstance = new TasksApi(defaultClient);
String id = "id_example"; // String | task ID to fetch
try {
ArrayTask result = apiInstance.taskIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TasksApi#taskIdGet");
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 | task ID to fetch |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Array task | - |
502 | Bad Gateway | - |
0 | error response | - |
String taskIdResultGet(id, acceptEncoding)
Retrieve results of an array task
// Import classes:
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.auth.*;
import io.tiledb.cloud.rest_api.models.*;
import io.tiledb.cloud.rest_api.api.TasksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("/v1");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
TasksApi apiInstance = new TasksApi(defaultClient);
String id = "id_example"; // String | task ID to retrieve stored results
String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use
try {
String result = apiInstance.taskIdResultGet(id, acceptEncoding);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TasksApi#taskIdResultGet");
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 | task ID to retrieve stored results | |
acceptEncoding | String | Encoding to use | [optional] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | output and format of originating request | * Content-Type - format results are delivered in |
202 | task is still executing | - |
404 | results were not saved, or results have expored | - |
502 | Bad Gateway | - |
0 | error response | - |
ArrayTaskData tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby)
Fetch a list of all array tasks a user has access to
// Import classes:
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.auth.*;
import io.tiledb.cloud.rest_api.models.*;
import io.tiledb.cloud.rest_api.api.TasksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("/v1");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
TasksApi apiInstance = new TasksApi(defaultClient);
String namespace = "namespace_example"; // String | namespace to filter
String createdBy = "createdBy_example"; // String | username to filter
String array = "array_example"; // String | name/uri of array that is url-encoded to filter
Integer start = 56; // Integer | start time for tasks to filter by
Integer end = 56; // Integer | end time for tasks to filter by
Integer page = 56; // Integer | pagination offset
Integer perPage = 56; // Integer | pagination limit
String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\"
List<String> excludeType = Arrays.asList(); // List<String> | task_type to exclude matching array in results, more than one can be included
List<String> fileType = Arrays.asList(); // List<String> | match file_type of task array, more than one can be included
List<String> excludeFileType = Arrays.asList(); // List<String> | exclude file_type of task arrays, more than one can be included
String status = "status_example"; // String | Filter to only return these statuses
String search = "search_example"; // String | search string that will look at name, namespace or description fields
String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name
try {
ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TasksApi#tasksGet");
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 |
---|---|---|---|
namespace | String | namespace to filter | [optional] |
createdBy | String | username to filter | [optional] |
array | String | name/uri of array that is url-encoded to filter | [optional] |
start | Integer | start time for tasks to filter by | [optional] |
end | Integer | end time for tasks to filter by | [optional] |
page | Integer | pagination offset | [optional] |
perPage | Integer | pagination limit | [optional] |
type | String | task type, "QUERY", "SQL", "UDF", "GENERIC_UDF" | [optional] |
excludeType | List<String> | task_type to exclude matching array in results, more than one can be included | [optional] |
fileType | List<String> | match file_type of task array, more than one can be included | [optional] |
excludeFileType | List<String> | exclude file_type of task arrays, more than one can be included | [optional] |
status | String | Filter to only return these statuses | [optional] |
search | String | search string that will look at name, namespace or description fields | [optional] |
orderby | String | sort by which field valid values include start_time, name | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Array of all tasks user has access too | - |
502 | Bad Gateway | - |
0 | error response | - |