@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsArchivesApi extends Object
| Constructor and Description |
|---|
LogsArchivesApi() |
LogsArchivesApi(ApiClient apiClient) |
public LogsArchivesApi()
public LogsArchivesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic void addReadRoleToArchive(String archiveId, RelationshipToRole body) throws ApiException
archiveId - The ID of the archive. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> addReadRoleToArchiveAsync(String archiveId, RelationshipToRole body)
archiveId - The ID of the archive. (required)body - (required)public ApiResponse<Void> addReadRoleToArchiveWithHttpInfo(String archiveId, RelationshipToRole body) throws ApiException
archiveId - The ID of the archive. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> addReadRoleToArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body)
archiveId - The ID of the archive. (required)body - (required)public LogsArchive createLogsArchive(LogsArchiveCreateRequest body) throws ApiException
See createLogsArchiveWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).
body - The definition of the new archive. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsArchive> createLogsArchiveAsync(LogsArchiveCreateRequest body)
See createLogsArchiveWithHttpInfoAsync(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).
body - The definition of the new archive. (required)public ApiResponse<LogsArchive> createLogsArchiveWithHttpInfo(LogsArchiveCreateRequest body) throws ApiException
body - The definition of the new archive. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchive>> createLogsArchiveWithHttpInfoAsync(LogsArchiveCreateRequest body)
See createLogsArchiveWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).
body - The definition of the new archive. (required)public void deleteLogsArchive(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteLogsArchiveAsync(String archiveId)
archiveId - The ID of the archive. (required)public ApiResponse<Void> deleteLogsArchiveWithHttpInfo(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteLogsArchiveWithHttpInfoAsync(String archiveId)
archiveId - The ID of the archive. (required)public LogsArchive getLogsArchive(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsArchive> getLogsArchiveAsync(String archiveId)
archiveId - The ID of the archive. (required)public ApiResponse<LogsArchive> getLogsArchiveWithHttpInfo(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchive>> getLogsArchiveWithHttpInfoAsync(String archiveId)
archiveId - The ID of the archive. (required)public LogsArchiveOrder getLogsArchiveOrder() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<LogsArchiveOrder> getLogsArchiveOrderAsync()
public ApiResponse<LogsArchiveOrder> getLogsArchiveOrderWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchiveOrder>> getLogsArchiveOrderWithHttpInfoAsync()
public RolesResponse listArchiveReadRoles(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API callpublic CompletableFuture<RolesResponse> listArchiveReadRolesAsync(String archiveId)
See listArchiveReadRolesWithHttpInfoAsync(java.lang.String).
archiveId - The ID of the archive. (required)public ApiResponse<RolesResponse> listArchiveReadRolesWithHttpInfo(String archiveId) throws ApiException
archiveId - The ID of the archive. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RolesResponse>> listArchiveReadRolesWithHttpInfoAsync(String archiveId)
archiveId - The ID of the archive. (required)public LogsArchives listLogsArchives() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<LogsArchives> listLogsArchivesAsync()
public ApiResponse<LogsArchives> listLogsArchivesWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchives>> listLogsArchivesWithHttpInfoAsync()
public void removeRoleFromArchive(String archiveId, RelationshipToRole body) throws ApiException
archiveId - The ID of the archive. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> removeRoleFromArchiveAsync(String archiveId, RelationshipToRole body)
archiveId - The ID of the archive. (required)body - (required)public ApiResponse<Void> removeRoleFromArchiveWithHttpInfo(String archiveId, RelationshipToRole body) throws ApiException
archiveId - The ID of the archive. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> removeRoleFromArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body)
archiveId - The ID of the archive. (required)body - (required)public LogsArchive updateLogsArchive(String archiveId, LogsArchiveCreateRequest body) throws ApiException
archiveId - The ID of the archive. (required)body - New definition of the archive. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsArchive> updateLogsArchiveAsync(String archiveId, LogsArchiveCreateRequest body)
archiveId - The ID of the archive. (required)body - New definition of the archive. (required)public ApiResponse<LogsArchive> updateLogsArchiveWithHttpInfo(String archiveId, LogsArchiveCreateRequest body) throws ApiException
Note: Using this method updates your archive configuration by replacing your current configuration with the new one sent to your Datadog organization.
archiveId - The ID of the archive. (required)body - New definition of the archive. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchive>> updateLogsArchiveWithHttpInfoAsync(String archiveId, LogsArchiveCreateRequest body)
archiveId - The ID of the archive. (required)body - New definition of the archive. (required)public LogsArchiveOrder updateLogsArchiveOrder(LogsArchiveOrder body) throws ApiException
See updateLogsArchiveOrderWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveOrder).
body - An object containing the new ordered list of archive IDs. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsArchiveOrder> updateLogsArchiveOrderAsync(LogsArchiveOrder body)
See updateLogsArchiveOrderWithHttpInfoAsync(com.datadog.api.client.v2.model.LogsArchiveOrder).
body - An object containing the new ordered list of archive IDs. (required)public ApiResponse<LogsArchiveOrder> updateLogsArchiveOrderWithHttpInfo(LogsArchiveOrder body) throws ApiException
Note: Using the PUT method updates your archive's order by
replacing the current order with the new one.
body - An object containing the new ordered list of archive IDs. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 422 | Unprocessable Entity | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsArchiveOrder>> updateLogsArchiveOrderWithHttpInfoAsync(LogsArchiveOrder body)
See updateLogsArchiveOrderWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveOrder).
body - An object containing the new ordered list of archive IDs. (required)Copyright © 2024. All rights reserved.