Class LogsArchivesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReadRoleToArchive(String archiveId, RelationshipToRole body) Grant role to an archive.addReadRoleToArchiveAsync(String archiveId, RelationshipToRole body) Grant role to an archive.addReadRoleToArchiveWithHttpInfo(String archiveId, RelationshipToRole body) Adds a read role to an archive.addReadRoleToArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body) Grant role to an archive.Create an archive.Create an archive.Create an archive in your organization.Create an archive.voiddeleteLogsArchive(String archiveId) Delete an archive.deleteLogsArchiveAsync(String archiveId) Delete an archive.deleteLogsArchiveWithHttpInfo(String archiveId) Delete a given archive from your organization.deleteLogsArchiveWithHttpInfoAsync(String archiveId) Delete an archive.Get the API client.getLogsArchive(String archiveId) Get an archive.getLogsArchiveAsync(String archiveId) Get an archive.Get archive order.Get archive order.Get the current order of your archives.Get archive order.getLogsArchiveWithHttpInfo(String archiveId) Get a specific archive from your organization.getLogsArchiveWithHttpInfoAsync(String archiveId) Get an archive.listArchiveReadRoles(String archiveId) List read roles for an archive.listArchiveReadRolesAsync(String archiveId) List read roles for an archive.listArchiveReadRolesWithHttpInfo(String archiveId) Returns all read roles a given archive is restricted to.listArchiveReadRolesWithHttpInfoAsync(String archiveId) List read roles for an archive.Get all archives.Get all archives.Get the list of configured logs archives with their definitions.Get all archives.voidremoveRoleFromArchive(String archiveId, RelationshipToRole body) Revoke role from an archive.removeRoleFromArchiveAsync(String archiveId, RelationshipToRole body) Revoke role from an archive.removeRoleFromArchiveWithHttpInfo(String archiveId, RelationshipToRole body) Removes a role from an archive.removeRoleFromArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body) Revoke role from an archive.voidsetApiClient(ApiClient apiClient) Set the API client.updateLogsArchive(String archiveId, LogsArchiveCreateRequest body) Update an archive.updateLogsArchiveAsync(String archiveId, LogsArchiveCreateRequest body) Update an archive.Update archive order.Update archive order.Update the order of your archives.Update archive order.updateLogsArchiveWithHttpInfo(String archiveId, LogsArchiveCreateRequest body) Update a given archive configuration.updateLogsArchiveWithHttpInfoAsync(String archiveId, LogsArchiveCreateRequest body) Update an archive.
-
Constructor Details
-
LogsArchivesApi
public LogsArchivesApi() -
LogsArchivesApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
addReadRoleToArchive
Grant role to an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Throws:
ApiException- if fails to make API call
-
addReadRoleToArchiveAsync
Grant role to an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- CompletableFuture
-
addReadRoleToArchiveWithHttpInfo
public ApiResponse<Void> addReadRoleToArchiveWithHttpInfo(String archiveId, RelationshipToRole body) throws ApiException Adds a read role to an archive. (Roles API)- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Forbidden - 404 Not found - 429 Too many requests -
-
addReadRoleToArchiveWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> addReadRoleToArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body) Grant role to an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createLogsArchive
Create an archive.See
createLogsArchiveWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).- Parameters:
body- The definition of the new archive. (required)- Returns:
- LogsArchive
- Throws:
ApiException- if fails to make API call
-
createLogsArchiveAsync
Create an archive.See
createLogsArchiveWithHttpInfoAsync(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).- Parameters:
body- The definition of the new archive. (required)- Returns:
- CompletableFuture<LogsArchive>
-
createLogsArchiveWithHttpInfo
public ApiResponse<LogsArchive> createLogsArchiveWithHttpInfo(LogsArchiveCreateRequest body) throws ApiException Create an archive in your organization.- Parameters:
body- The definition of the new archive. (required)- Returns:
- ApiResponse<LogsArchive>
- 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 -
-
createLogsArchiveWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsArchive>> createLogsArchiveWithHttpInfoAsync(LogsArchiveCreateRequest body) Create an archive.See
createLogsArchiveWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveCreateRequest).- Parameters:
body- The definition of the new archive. (required)- Returns:
- CompletableFuture<ApiResponse<LogsArchive>>
-
deleteLogsArchive
Delete an archive.- Parameters:
archiveId- The ID of the archive. (required)- Throws:
ApiException- if fails to make API call
-
deleteLogsArchiveAsync
Delete an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture
-
deleteLogsArchiveWithHttpInfo
Delete a given archive from your organization.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Forbidden - 404 Not found - 429 Too many requests -
-
deleteLogsArchiveWithHttpInfoAsync
Delete an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getLogsArchive
Get an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- LogsArchive
- Throws:
ApiException- if fails to make API call
-
getLogsArchiveAsync
Get an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture<LogsArchive>
-
getLogsArchiveWithHttpInfo
Get a specific archive from your organization.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- ApiResponse<LogsArchive>
- 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 - 404 Not found - 429 Too many requests -
-
getLogsArchiveWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsArchive>> getLogsArchiveWithHttpInfoAsync(String archiveId) Get an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture<ApiResponse<LogsArchive>>
-
getLogsArchiveOrder
Get archive order.- Returns:
- LogsArchiveOrder
- Throws:
ApiException- if fails to make API call
-
getLogsArchiveOrderAsync
Get archive order.- Returns:
- CompletableFuture<LogsArchiveOrder>
-
getLogsArchiveOrderWithHttpInfo
Get the current order of your archives. This endpoint takes no JSON arguments.- Returns:
- ApiResponse<LogsArchiveOrder>
- 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 -
-
getLogsArchiveOrderWithHttpInfoAsync
Get archive order.- Returns:
- CompletableFuture<ApiResponse<LogsArchiveOrder>>
-
listArchiveReadRoles
List read roles for an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- RolesResponse
- Throws:
ApiException- if fails to make API call
-
listArchiveReadRolesAsync
List read roles for an archive.See
listArchiveReadRolesWithHttpInfoAsync(java.lang.String).- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture<RolesResponse>
-
listArchiveReadRolesWithHttpInfo
public ApiResponse<RolesResponse> listArchiveReadRolesWithHttpInfo(String archiveId) throws ApiException Returns all read roles a given archive is restricted to.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- ApiResponse<RolesResponse>
- 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 - 404 Not found - 429 Too many requests -
-
listArchiveReadRolesWithHttpInfoAsync
public CompletableFuture<ApiResponse<RolesResponse>> listArchiveReadRolesWithHttpInfoAsync(String archiveId) List read roles for an archive.- Parameters:
archiveId- The ID of the archive. (required)- Returns:
- CompletableFuture<ApiResponse<RolesResponse>>
-
listLogsArchives
Get all archives.- Returns:
- LogsArchives
- Throws:
ApiException- if fails to make API call
-
listLogsArchivesAsync
Get all archives.- Returns:
- CompletableFuture<LogsArchives>
-
listLogsArchivesWithHttpInfo
Get the list of configured logs archives with their definitions.- Returns:
- ApiResponse<LogsArchives>
- 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 -
-
listLogsArchivesWithHttpInfoAsync
Get all archives.- Returns:
- CompletableFuture<ApiResponse<LogsArchives>>
-
removeRoleFromArchive
Revoke role from an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Throws:
ApiException- if fails to make API call
-
removeRoleFromArchiveAsync
public CompletableFuture<Void> removeRoleFromArchiveAsync(String archiveId, RelationshipToRole body) Revoke role from an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- CompletableFuture
-
removeRoleFromArchiveWithHttpInfo
public ApiResponse<Void> removeRoleFromArchiveWithHttpInfo(String archiveId, RelationshipToRole body) throws ApiException Removes a role from an archive. (Roles API)- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 400 Bad Request - 403 Forbidden - 404 Not found - 429 Too many requests -
-
removeRoleFromArchiveWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> removeRoleFromArchiveWithHttpInfoAsync(String archiveId, RelationshipToRole body) Revoke role from an archive.- Parameters:
archiveId- The ID of the archive. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateLogsArchive
public LogsArchive updateLogsArchive(String archiveId, LogsArchiveCreateRequest body) throws ApiException Update an archive.- Parameters:
archiveId- The ID of the archive. (required)body- New definition of the archive. (required)- Returns:
- LogsArchive
- Throws:
ApiException- if fails to make API call
-
updateLogsArchiveAsync
public CompletableFuture<LogsArchive> updateLogsArchiveAsync(String archiveId, LogsArchiveCreateRequest body) Update an archive.- Parameters:
archiveId- The ID of the archive. (required)body- New definition of the archive. (required)- Returns:
- CompletableFuture<LogsArchive>
-
updateLogsArchiveWithHttpInfo
public ApiResponse<LogsArchive> updateLogsArchiveWithHttpInfo(String archiveId, LogsArchiveCreateRequest body) throws ApiException Update a given archive configuration.Note: Using this method updates your archive configuration by replacing your current configuration with the new one sent to your Datadog organization.
- Parameters:
archiveId- The ID of the archive. (required)body- New definition of the archive. (required)- Returns:
- ApiResponse<LogsArchive>
- 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 - 404 Not found - 429 Too many requests -
-
updateLogsArchiveWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsArchive>> updateLogsArchiveWithHttpInfoAsync(String archiveId, LogsArchiveCreateRequest body) Update an archive.- Parameters:
archiveId- The ID of the archive. (required)body- New definition of the archive. (required)- Returns:
- CompletableFuture<ApiResponse<LogsArchive>>
-
updateLogsArchiveOrder
Update archive order.See
updateLogsArchiveOrderWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveOrder).- Parameters:
body- An object containing the new ordered list of archive IDs. (required)- Returns:
- LogsArchiveOrder
- Throws:
ApiException- if fails to make API call
-
updateLogsArchiveOrderAsync
Update archive order.See
updateLogsArchiveOrderWithHttpInfoAsync(com.datadog.api.client.v2.model.LogsArchiveOrder).- Parameters:
body- An object containing the new ordered list of archive IDs. (required)- Returns:
- CompletableFuture<LogsArchiveOrder>
-
updateLogsArchiveOrderWithHttpInfo
public ApiResponse<LogsArchiveOrder> updateLogsArchiveOrderWithHttpInfo(LogsArchiveOrder body) throws ApiException Update the order of your archives. Since logs are processed sequentially, reordering an archive may change the structure and content of the data processed by other archives.Note: Using the
PUTmethod updates your archive's order by replacing the current order with the new one.- Parameters:
body- An object containing the new ordered list of archive IDs. (required)- Returns:
- ApiResponse<LogsArchiveOrder>
- 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 - 422 Unprocessable Entity - 429 Too many requests -
-
updateLogsArchiveOrderWithHttpInfoAsync
public CompletableFuture<ApiResponse<LogsArchiveOrder>> updateLogsArchiveOrderWithHttpInfoAsync(LogsArchiveOrder body) Update archive order.See
updateLogsArchiveOrderWithHttpInfo(com.datadog.api.client.v2.model.LogsArchiveOrder).- Parameters:
body- An object containing the new ordered list of archive IDs. (required)- Returns:
- CompletableFuture<ApiResponse<LogsArchiveOrder>>
-