Package com.datadog.api.client.v1.api
Class LogsIndexesApi
java.lang.Object
com.datadog.api.client.v1.api.LogsIndexesApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsIndexesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLogsIndex(LogsIndex body) Create an index.Create an index.Creates a new index.Create an index.voiddeleteLogsIndex(String name) Delete an index.deleteLogsIndexAsync(String name) Delete an index.Delete an existing index from your organization.Delete an index.Get the API client.getLogsIndex(String name) Get an index.getLogsIndexAsync(String name) Get an index.Get indexes order.Get indexes order.Get the current order of your log indexes.Get indexes order.Get one log index from your organization.Get an index.Get all indexes.Get all indexes.The Index object describes the configuration of a log index.Get all indexes.voidsetApiClient(ApiClient apiClient) Set the API client.updateLogsIndex(String name, LogsIndexUpdateRequest body) Update an index.updateLogsIndexAsync(String name, LogsIndexUpdateRequest body) Update an index.Update indexes order.Update indexes order.This endpoint updates the index order of your organization.Update indexes order.updateLogsIndexWithHttpInfo(String name, LogsIndexUpdateRequest body) Update an index as identified by its name.Update an index.
-
Constructor Details
-
LogsIndexesApi
public LogsIndexesApi() -
LogsIndexesApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createLogsIndex
Create an index.See
createLogsIndexWithHttpInfo(com.datadog.api.client.v1.model.LogsIndex).- Parameters:
body- Object containing the new index. (required)- Returns:
- LogsIndex
- Throws:
ApiException- if fails to make API call
-
createLogsIndexAsync
Create an index.See
createLogsIndexWithHttpInfoAsync(com.datadog.api.client.v1.model.LogsIndex).- Parameters:
body- Object containing the new index. (required)- Returns:
- CompletableFuture<LogsIndex>
-
createLogsIndexWithHttpInfo
Creates a new index. Returns the Index object passed in the request body when the request is successful.- Parameters:
body- Object containing the new index. (required)- Returns:
- ApiResponse<LogsIndex>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Invalid Parameter Error - 403 Forbidden - 422 Unprocessable Entity - 429 Too many requests -
-
createLogsIndexWithHttpInfoAsync
Create an index.See
createLogsIndexWithHttpInfo(com.datadog.api.client.v1.model.LogsIndex).- Parameters:
body- Object containing the new index. (required)- Returns:
- CompletableFuture<ApiResponse<LogsIndex>>
-
deleteLogsIndex
Delete an index.- Parameters:
name- Name of the log index. (required)- Throws:
ApiException- if fails to make API call
-
deleteLogsIndexAsync
Delete an index.- Parameters:
name- Name of the log index. (required)- Returns:
- CompletableFuture
-
deleteLogsIndexWithHttpInfo
Delete an existing index from your organization. Index deletions are permanent and cannot be reverted. You cannot recreate an index with the same name as deleted ones.- Parameters:
name- Name of the log index. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteLogsIndexWithHttpInfoAsync
Delete an index.- Parameters:
name- Name of the log index. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getLogsIndex
Get an index.- Parameters:
name- Name of the log index. (required)- Returns:
- LogsIndex
- Throws:
ApiException- if fails to make API call
-
getLogsIndexAsync
Get an index.- Parameters:
name- Name of the log index. (required)- Returns:
- CompletableFuture<LogsIndex>
-
getLogsIndexWithHttpInfo
Get one log index from your organization. This endpoint takes no JSON arguments.- Parameters:
name- Name of the log index. (required)- Returns:
- ApiResponse<LogsIndex>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getLogsIndexWithHttpInfoAsync
Get an index.- Parameters:
name- Name of the log index. (required)- Returns:
- CompletableFuture<ApiResponse<LogsIndex>>
-
getLogsIndexOrder
Get indexes order.- Returns:
- LogsIndexesOrder
- Throws:
ApiException- if fails to make API call
-
getLogsIndexOrderAsync
Get indexes order.- Returns:
- CompletableFuture<LogsIndexesOrder>
-
getLogsIndexOrderWithHttpInfo
Get the current order of your log indexes. This endpoint takes no JSON arguments.- Returns:
- ApiResponse<LogsIndexesOrder>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
getLogsIndexOrderWithHttpInfoAsync
Get indexes order.- Returns:
- CompletableFuture<ApiResponse<LogsIndexesOrder>>
-
listLogIndexes
Get all indexes.- Returns:
- LogsIndexListResponse
- Throws:
ApiException- if fails to make API call
-
listLogIndexesAsync
Get all indexes.- Returns:
- CompletableFuture<LogsIndexListResponse>
-
listLogIndexesWithHttpInfo
The Index object describes the configuration of a log index. This endpoint returns an array of theLogIndexobjects of your organization.- Returns:
- ApiResponse<LogsIndexListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listLogIndexesWithHttpInfoAsync
Get all indexes.- Returns:
- CompletableFuture<ApiResponse<LogsIndexListResponse>>
-
updateLogsIndex
Update an index.- Parameters:
name- Name of the log index. (required)body- Object containing the newLogsIndexUpdateRequest. (required)- Returns:
- LogsIndex
- Throws:
ApiException- if fails to make API call
-
updateLogsIndexAsync
Update an index.- Parameters:
name- Name of the log index. (required)body- Object containing the newLogsIndexUpdateRequest. (required)- Returns:
- CompletableFuture<LogsIndex>
-
updateLogsIndexWithHttpInfo
public ApiResponse<LogsIndex> updateLogsIndexWithHttpInfo(String name, LogsIndexUpdateRequest body) throws ApiException Update an index as identified by its name. Returns the Index object passed in the request body when the request is successful.Using the
PUTmethod updates your index's configuration by replacing your current configuration with the new one sent to your Datadog organization.- Parameters:
name- Name of the log index. (required)body- Object containing the newLogsIndexUpdateRequest. (required)- Returns:
- ApiResponse<LogsIndex>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Invalid Parameter Error - 403 Forbidden - 429 Too Many Requests -
-
updateLogsIndexWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsIndex>> updateLogsIndexWithHttpInfoAsync(String name, LogsIndexUpdateRequest body) Update an index.- Parameters:
name- Name of the log index. (required)body- Object containing the newLogsIndexUpdateRequest. (required)- Returns:
- CompletableFuture<ApiResponse<LogsIndex>>
-
updateLogsIndexOrder
Update indexes order.See
updateLogsIndexOrderWithHttpInfo(com.datadog.api.client.v1.model.LogsIndexesOrder).- Parameters:
body- Object containing the new ordered list of index names (required)- Returns:
- LogsIndexesOrder
- Throws:
ApiException- if fails to make API call
-
updateLogsIndexOrderAsync
Update indexes order.See
updateLogsIndexOrderWithHttpInfoAsync(com.datadog.api.client.v1.model.LogsIndexesOrder).- Parameters:
body- Object containing the new ordered list of index names (required)- Returns:
- CompletableFuture<LogsIndexesOrder>
-
updateLogsIndexOrderWithHttpInfo
public ApiResponse<LogsIndexesOrder> updateLogsIndexOrderWithHttpInfo(LogsIndexesOrder body) throws ApiException This endpoint updates the index order of your organization. It returns the index order object passed in the request body when the request is successful.- Parameters:
body- Object containing the new ordered list of index names (required)- Returns:
- ApiResponse<LogsIndexesOrder>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
updateLogsIndexOrderWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsIndexesOrder>> updateLogsIndexOrderWithHttpInfoAsync(LogsIndexesOrder body) Update indexes order.See
updateLogsIndexOrderWithHttpInfo(com.datadog.api.client.v1.model.LogsIndexesOrder).- Parameters:
body- Object containing the new ordered list of index names (required)- Returns:
- CompletableFuture<ApiResponse<LogsIndexesOrder>>
-