@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CsmOwnershipApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters
Manage optional parameters to getOwnershipEvidence.
|
static class |
CsmOwnershipApi.GetOwnershipInferenceOptionalParameters
Manage optional parameters to getOwnershipInference.
|
static class |
CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters
Manage optional parameters to listOwnershipHistoryByOwnerType.
|
static class |
CsmOwnershipApi.ListOwnershipHistoryOptionalParameters
Manage optional parameters to listOwnershipHistory.
|
| Constructor and Description |
|---|
CsmOwnershipApi() |
CsmOwnershipApi(ApiClient apiClient) |
public CsmOwnershipApi()
public CsmOwnershipApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic OwnershipFeedbackResponse createOwnershipFeedback(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) throws ApiException
resourceId - The identifier of the resource that the feedback applies to. (required)ownerType - The type of owner that the feedback applies to. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipFeedbackResponse> createOwnershipFeedbackAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body)
resourceId - The identifier of the resource that the feedback applies to. (required)ownerType - The type of owner that the feedback applies to. (required)body - (required)public ApiResponse<OwnershipFeedbackResponse> createOwnershipFeedbackWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) throws ApiException
confirm, reject, correct, and persist.
The request must include the current inference checksum in
inference_checksum. If the checksum does not match the current inference state, the
endpoint returns 409 Conflict.
When action is correct, corrected_owner_handle and
corrected_owner_type are required.
resourceId - The identifier of the resource that the feedback applies to. (required)ownerType - The type of owner that the feedback applies to. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipFeedbackResponse>> createOwnershipFeedbackWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body)
resourceId - The identifier of the resource that the feedback applies to. (required)ownerType - The type of owner that the feedback applies to. (required)body - (required)public OwnershipEvidenceResponse getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType) throws ApiException
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipEvidenceResponse> getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType)
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)public OwnershipEvidenceResponse getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OwnershipEvidenceResponse> getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)parameters - Optional parameters for the request.public ApiResponse<OwnershipEvidenceResponse> getOwnershipEvidenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) throws ApiException
This endpoint supports weak ETag caching. Pass the previously returned ETag
value in the If-None-Match request header to receive a 304 Not Modified
response when the evidence has not changed.
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipEvidenceResponse>> getOwnershipEvidenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve evidence for. (required)ownerType - The owner type of the inference to retrieve evidence for. (required)parameters - Optional parameters for the request.public OwnershipInferenceResponse getOwnershipInference(String resourceId, OwnershipOwnerType ownerType) throws ApiException
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipInferenceResponse> getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType)
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)public OwnershipInferenceResponse getOwnershipInference(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OwnershipInferenceResponse> getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)parameters - Optional parameters for the request.public ApiResponse<OwnershipInferenceResponse> getOwnershipInferenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) throws ApiException
This endpoint supports ETag-based caching. Pass the previously returned ETag
value in the If-None-Match request header to receive a 304 Not Modified
response when the inference has not changed.
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipInferenceResponse>> getOwnershipInferenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve the ownership inference for.
(required)ownerType - The owner type of the inference to retrieve. (required)parameters - Optional parameters for the request.public OwnershipHistoryResponse listOwnershipHistory(String resourceId) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryAsync(String resourceId)
resourceId - The identifier of the resource to retrieve inference history for. (required)public OwnershipHistoryResponse listOwnershipHistory(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve inference history for. (required)parameters - Optional parameters for the request.public ApiResponse<OwnershipHistoryResponse> listOwnershipHistoryWithHttpInfo(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipHistoryResponse>> listOwnershipHistoryWithHttpInfoAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve inference history for. (required)parameters - Optional parameters for the request.public OwnershipHistoryResponse listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType)
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)public OwnershipHistoryResponse listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)parameters - Optional parameters for the request.public ApiResponse<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) throws ApiException
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipHistoryResponse>> listOwnershipHistoryByOwnerTypeWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters)
resourceId - The identifier of the resource to retrieve inference history for. (required)ownerType - The owner type to filter history by. (required)parameters - Optional parameters for the request.public OwnershipInferenceListResponse listOwnershipInferences(String resourceId) throws ApiException
resourceId - The identifier of the resource to retrieve ownership inferences for.
(required)ApiException - if fails to make API callpublic CompletableFuture<OwnershipInferenceListResponse> listOwnershipInferencesAsync(String resourceId)
See listOwnershipInferencesWithHttpInfoAsync(java.lang.String).
resourceId - The identifier of the resource to retrieve ownership inferences for.
(required)public ApiResponse<OwnershipInferenceListResponse> listOwnershipInferencesWithHttpInfo(String resourceId) throws ApiException
user,
team, service, unknown).resourceId - The identifier of the resource to retrieve ownership inferences for.
(required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<OwnershipInferenceListResponse>> listOwnershipInferencesWithHttpInfoAsync(String resourceId)
resourceId - The identifier of the resource to retrieve ownership inferences for.
(required)Copyright © 2026. All rights reserved.