Package com.datadog.api.client.v2.api
Class StorageManagementApi
java.lang.Object
com.datadog.api.client.v2.api.StorageManagementApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class StorageManagementApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a Storage Management configuration.Delete a Storage Management configuration.Delete a Storage Management configuration by its unique identifier.Delete a Storage Management configuration.Get the API client.voidsetApiClient(ApiClient apiClient) Set the API client.Enable Storage Management for a bucket.Enable Storage Management for a bucket.Enable Storage Management for an S3 bucket, GCS bucket, or Azure container by registering the destination that holds its inventory reports.Enable Storage Management for a bucket.
-
Constructor Details
-
StorageManagementApi
public StorageManagementApi() -
StorageManagementApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
deleteSyncConfig
Delete a Storage Management configuration.- Parameters:
id- Unique identifier of the Storage Management configuration. (required)- Throws:
ApiException- if fails to make API call
-
deleteSyncConfigAsync
Delete a Storage Management configuration.- Parameters:
id- Unique identifier of the Storage Management configuration. (required)- Returns:
- CompletableFuture
-
deleteSyncConfigWithHttpInfo
Delete a Storage Management configuration by its unique identifier. Deleting a configuration stops inventory file synchronization for the associated cloud account.- Parameters:
id- Unique identifier of the Storage Management configuration. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteSyncConfigWithHttpInfoAsync
Delete a Storage Management configuration.- Parameters:
id- Unique identifier of the Storage Management configuration. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
upsertSyncConfig
public CloudInventorySyncConfigResponse upsertSyncConfig(UpsertCloudInventorySyncConfigRequest body) throws ApiException Enable Storage Management for a bucket.See
upsertSyncConfigWithHttpInfo(com.datadog.api.client.v2.model.UpsertCloudInventorySyncConfigRequest).- Parameters:
body- (required)- Returns:
- CloudInventorySyncConfigResponse
- Throws:
ApiException- if fails to make API call
-
upsertSyncConfigAsync
public CompletableFuture<CloudInventorySyncConfigResponse> upsertSyncConfigAsync(UpsertCloudInventorySyncConfigRequest body) Enable Storage Management for a bucket.- Parameters:
body- (required)- Returns:
- CompletableFuture<CloudInventorySyncConfigResponse>
-
upsertSyncConfigWithHttpInfo
public ApiResponse<CloudInventorySyncConfigResponse> upsertSyncConfigWithHttpInfo(UpsertCloudInventorySyncConfigRequest body) throws ApiException Enable Storage Management for an S3 bucket, GCS bucket, or Azure container by registering the destination that holds its inventory reports. Setdata.idto the cloud provider (aws,gcp, orazure) and provide the matching settings under data.attributes. Calling this endpoint with the same provider replaces the existing configuration.- Parameters:
body- (required)- Returns:
- ApiResponse<CloudInventorySyncConfigResponse>
- 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 -
-
upsertSyncConfigWithHttpInfoAsync
public CompletableFuture<ApiResponse<CloudInventorySyncConfigResponse>> upsertSyncConfigWithHttpInfoAsync(UpsertCloudInventorySyncConfigRequest body) Enable Storage Management for a bucket.See
upsertSyncConfigWithHttpInfo(com.datadog.api.client.v2.model.UpsertCloudInventorySyncConfigRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CloudInventorySyncConfigResponse>>
-