Class CsmOwnershipApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getOwnershipEvidence.static classManage optional parameters to getOwnershipInference.static classManage optional parameters to listOwnershipHistoryByOwnerType.static classManage optional parameters to listOwnershipHistory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOwnershipFeedback(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on an ownership inference.createOwnershipFeedbackAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on an ownership inference.createOwnershipFeedbackWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on the current ownership inference for a resource and owner type.createOwnershipFeedbackWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on an ownership inference.Get the API client.getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType) Get the evidence for an ownership inference.getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence for an ownership inference.getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType) Get the evidence for an ownership inference.getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence for an ownership inference.getOwnershipEvidenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence versions backing the current ownership inference for a resource and owner type.getOwnershipEvidenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence for an ownership inference.getOwnershipInference(String resourceId, OwnershipOwnerType ownerType) Get an ownership inference by owner type.getOwnershipInference(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get an ownership inference by owner type.getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType) Get an ownership inference by owner type.getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get an ownership inference by owner type.getOwnershipInferenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get the current ownership inference for a resource for a specific owner type.getOwnershipInferenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get an ownership inference by owner type.Get ownership settings for the org.Get ownership settings for the org.Get ownership settings for the org.Get ownership settings for the org.Count untagged findings by ownership confidence.Count untagged findings by ownership confidence.Count findings with no team tag, grouped by ownership confidence level.Count untagged findings by ownership confidence.listOwnershipHistory(String resourceId) List ownership inference history for a resource.listOwnershipHistory(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List ownership inference history for a resource.listOwnershipHistoryAsync(String resourceId) List ownership inference history for a resource.listOwnershipHistoryAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List ownership inference history for a resource.listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType) List ownership history by owner type.listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List ownership history by owner type.listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType) List ownership history by owner type.listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List ownership history by owner type.listOwnershipHistoryByOwnerTypeWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List inference history entries for a resource filtered by owner type, ordered from most recent to oldest.listOwnershipHistoryByOwnerTypeWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List ownership history by owner type.listOwnershipHistoryWithHttpInfo(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List inference history entries for a resource across all owner types, ordered from most recent to oldest.listOwnershipHistoryWithHttpInfoAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List ownership inference history for a resource.listOwnershipInferences(String resourceId) List ownership inferences for a resource.listOwnershipInferencesAsync(String resourceId) List ownership inferences for a resource.listOwnershipInferencesWithHttpInfo(String resourceId) Get all current ownership inferences for a resource, one per owner type (user,team,service,unknown).listOwnershipInferencesWithHttpInfoAsync(String resourceId) List ownership inferences for a resource.Update ownership settings for the org.Update ownership settings for the org.Update ownership settings for the org.Update ownership settings for the org.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
CsmOwnershipApi
public CsmOwnershipApi() -
CsmOwnershipApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createOwnershipFeedback
public OwnershipFeedbackResponse createOwnershipFeedback(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) throws ApiException Submit feedback on an ownership inference.- Parameters:
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)- Returns:
- OwnershipFeedbackResponse
- Throws:
ApiException- if fails to make API call
-
createOwnershipFeedbackAsync
public CompletableFuture<OwnershipFeedbackResponse> createOwnershipFeedbackAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on an ownership inference.- Parameters:
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)- Returns:
- CompletableFuture<OwnershipFeedbackResponse>
-
createOwnershipFeedbackWithHttpInfo
public ApiResponse<OwnershipFeedbackResponse> createOwnershipFeedbackWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) throws ApiException Submit feedback on the current ownership inference for a resource and owner type. Valid actions areconfirm,reject,correct, andpersist.The request must include the current inference
checksumininference_checksum. If the checksum does not match the current inference state, the endpoint returns409 Conflict.When
actioniscorrect,corrected_owner_handleandcorrected_owner_typeare required.- Parameters:
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)- Returns:
- ApiResponse<OwnershipFeedbackResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 401 Unauthorized - 404 Not Found - 409 Conflict - 429 Too many requests -
-
createOwnershipFeedbackWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipFeedbackResponse>> createOwnershipFeedbackWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, OwnershipFeedbackRequest body) Submit feedback on an ownership inference.- Parameters:
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)- Returns:
- CompletableFuture<ApiResponse<OwnershipFeedbackResponse>>
-
getOwnershipEvidence
public OwnershipEvidenceResponse getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType) throws ApiException Get the evidence for an ownership inference.- Parameters:
resourceId- The identifier of the resource to retrieve evidence for. (required)ownerType- The owner type of the inference to retrieve evidence for. (required)- Returns:
- OwnershipEvidenceResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipEvidenceAsync
public CompletableFuture<OwnershipEvidenceResponse> getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType) Get the evidence for an ownership inference.- Parameters:
resourceId- The identifier of the resource to retrieve evidence for. (required)ownerType- The owner type of the inference to retrieve evidence for. (required)- Returns:
- CompletableFuture<OwnershipEvidenceResponse>
-
getOwnershipEvidence
public OwnershipEvidenceResponse getOwnershipEvidence(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) throws ApiException Get the evidence for an ownership inference.- 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.- Returns:
- OwnershipEvidenceResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipEvidenceAsync
public CompletableFuture<OwnershipEvidenceResponse> getOwnershipEvidenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence for an ownership inference.- 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.- Returns:
- CompletableFuture<OwnershipEvidenceResponse>
-
getOwnershipEvidenceWithHttpInfo
public ApiResponse<OwnershipEvidenceResponse> getOwnershipEvidenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) throws ApiException Get the evidence versions backing the current ownership inference for a resource and owner type.This endpoint supports weak ETag caching. Pass the previously returned
ETagvalue in theIf-None-Matchrequest header to receive a304 Not Modifiedresponse when the evidence has not changed.- 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.- Returns:
- ApiResponse<OwnershipEvidenceResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests -
-
getOwnershipEvidenceWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipEvidenceResponse>> getOwnershipEvidenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipEvidenceOptionalParameters parameters) Get the evidence for an ownership inference.- 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.- Returns:
- CompletableFuture<ApiResponse<OwnershipEvidenceResponse>>
-
getOwnershipInference
public OwnershipInferenceResponse getOwnershipInference(String resourceId, OwnershipOwnerType ownerType) throws ApiException Get an ownership inference by owner type.- Parameters:
resourceId- The identifier of the resource to retrieve the ownership inference for. (required)ownerType- The owner type of the inference to retrieve. (required)- Returns:
- OwnershipInferenceResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipInferenceAsync
public CompletableFuture<OwnershipInferenceResponse> getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType) Get an ownership inference by owner type.- Parameters:
resourceId- The identifier of the resource to retrieve the ownership inference for. (required)ownerType- The owner type of the inference to retrieve. (required)- Returns:
- CompletableFuture<OwnershipInferenceResponse>
-
getOwnershipInference
public OwnershipInferenceResponse getOwnershipInference(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) throws ApiException Get an ownership inference by owner type.- 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.- Returns:
- OwnershipInferenceResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipInferenceAsync
public CompletableFuture<OwnershipInferenceResponse> getOwnershipInferenceAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get an ownership inference by owner type.- 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.- Returns:
- CompletableFuture<OwnershipInferenceResponse>
-
getOwnershipInferenceWithHttpInfo
public ApiResponse<OwnershipInferenceResponse> getOwnershipInferenceWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) throws ApiException Get the current ownership inference for a resource for a specific owner type.This endpoint supports ETag-based caching. Pass the previously returned
ETagvalue in theIf-None-Matchrequest header to receive a304 Not Modifiedresponse when the inference has not changed.- 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.- Returns:
- ApiResponse<OwnershipInferenceResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests -
-
getOwnershipInferenceWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipInferenceResponse>> getOwnershipInferenceWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.GetOwnershipInferenceOptionalParameters parameters) Get an ownership inference by owner type.- 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.- Returns:
- CompletableFuture<ApiResponse<OwnershipInferenceResponse>>
-
getOwnershipSettings
Get ownership settings for the org.- Returns:
- OwnershipSettingsResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipSettingsAsync
Get ownership settings for the org.- Returns:
- CompletableFuture<OwnershipSettingsResponse>
-
getOwnershipSettingsWithHttpInfo
public ApiResponse<OwnershipSettingsResponse> getOwnershipSettingsWithHttpInfo() throws ApiExceptionGet ownership settings for the org. When settings are unset, the API returns the default opt-out configuration withauto_tagset totrueandconfidence_levelset tohigh.- Returns:
- ApiResponse<OwnershipSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 401 Unauthorized - 429 Too many requests -
-
getOwnershipSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipSettingsResponse>> getOwnershipSettingsWithHttpInfoAsync()Get ownership settings for the org.- Returns:
- CompletableFuture<ApiResponse<OwnershipSettingsResponse>>
-
getOwnershipUntaggedFindings
Count untagged findings by ownership confidence.- Returns:
- OwnershipUntaggedFindingsResponse
- Throws:
ApiException- if fails to make API call
-
getOwnershipUntaggedFindingsAsync
Count untagged findings by ownership confidence.- Returns:
- CompletableFuture<OwnershipUntaggedFindingsResponse>
-
getOwnershipUntaggedFindingsWithHttpInfo
public ApiResponse<OwnershipUntaggedFindingsResponse> getOwnershipUntaggedFindingsWithHttpInfo() throws ApiExceptionCount findings with no team tag, grouped by ownership confidence level.- Returns:
- ApiResponse<OwnershipUntaggedFindingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 401 Unauthorized - 429 Too many requests -
-
getOwnershipUntaggedFindingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipUntaggedFindingsResponse>> getOwnershipUntaggedFindingsWithHttpInfoAsync()Count untagged findings by ownership confidence.- Returns:
- CompletableFuture<ApiResponse<OwnershipUntaggedFindingsResponse>>
-
listOwnershipHistory
List ownership inference history for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)- Returns:
- OwnershipHistoryResponse
- Throws:
ApiException- if fails to make API call
-
listOwnershipHistoryAsync
List ownership inference history for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)- Returns:
- CompletableFuture<OwnershipHistoryResponse>
-
listOwnershipHistory
public OwnershipHistoryResponse listOwnershipHistory(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) throws ApiException List ownership inference history for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)parameters- Optional parameters for the request.- Returns:
- OwnershipHistoryResponse
- Throws:
ApiException- if fails to make API call
-
listOwnershipHistoryAsync
public CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List ownership inference history for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<OwnershipHistoryResponse>
-
listOwnershipHistoryWithHttpInfo
public ApiResponse<OwnershipHistoryResponse> listOwnershipHistoryWithHttpInfo(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) throws ApiException List inference history entries for a resource across all owner types, ordered from most recent to oldest. Uses cursor-based pagination.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<OwnershipHistoryResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 429 Too many requests -
-
listOwnershipHistoryWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipHistoryResponse>> listOwnershipHistoryWithHttpInfoAsync(String resourceId, CsmOwnershipApi.ListOwnershipHistoryOptionalParameters parameters) List ownership inference history for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<OwnershipHistoryResponse>>
-
listOwnershipHistoryByOwnerType
public OwnershipHistoryResponse listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType) throws ApiException List ownership history by owner type.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)ownerType- The owner type to filter history by. (required)- Returns:
- OwnershipHistoryResponse
- Throws:
ApiException- if fails to make API call
-
listOwnershipHistoryByOwnerTypeAsync
public CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType) List ownership history by owner type.- Parameters:
resourceId- The identifier of the resource to retrieve inference history for. (required)ownerType- The owner type to filter history by. (required)- Returns:
- CompletableFuture<OwnershipHistoryResponse>
-
listOwnershipHistoryByOwnerType
public OwnershipHistoryResponse listOwnershipHistoryByOwnerType(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) throws ApiException List ownership history by owner type.- 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.- Returns:
- OwnershipHistoryResponse
- Throws:
ApiException- if fails to make API call
-
listOwnershipHistoryByOwnerTypeAsync
public CompletableFuture<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List ownership history by owner type.- 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.- Returns:
- CompletableFuture<OwnershipHistoryResponse>
-
listOwnershipHistoryByOwnerTypeWithHttpInfo
public ApiResponse<OwnershipHistoryResponse> listOwnershipHistoryByOwnerTypeWithHttpInfo(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) throws ApiException List inference history entries for a resource filtered by owner type, ordered from most recent to oldest. Uses cursor-based pagination.- 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.- Returns:
- ApiResponse<OwnershipHistoryResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 429 Too many requests -
-
listOwnershipHistoryByOwnerTypeWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipHistoryResponse>> listOwnershipHistoryByOwnerTypeWithHttpInfoAsync(String resourceId, OwnershipOwnerType ownerType, CsmOwnershipApi.ListOwnershipHistoryByOwnerTypeOptionalParameters parameters) List ownership history by owner type.- 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.- Returns:
- CompletableFuture<ApiResponse<OwnershipHistoryResponse>>
-
listOwnershipInferences
public OwnershipInferenceListResponse listOwnershipInferences(String resourceId) throws ApiException List ownership inferences for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve ownership inferences for. (required)- Returns:
- OwnershipInferenceListResponse
- Throws:
ApiException- if fails to make API call
-
listOwnershipInferencesAsync
public CompletableFuture<OwnershipInferenceListResponse> listOwnershipInferencesAsync(String resourceId) List ownership inferences for a resource.See
listOwnershipInferencesWithHttpInfoAsync(java.lang.String).- Parameters:
resourceId- The identifier of the resource to retrieve ownership inferences for. (required)- Returns:
- CompletableFuture<OwnershipInferenceListResponse>
-
listOwnershipInferencesWithHttpInfo
public ApiResponse<OwnershipInferenceListResponse> listOwnershipInferencesWithHttpInfo(String resourceId) throws ApiException Get all current ownership inferences for a resource, one per owner type (user,team,service,unknown).- Parameters:
resourceId- The identifier of the resource to retrieve ownership inferences for. (required)- Returns:
- ApiResponse<OwnershipInferenceListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests -
-
listOwnershipInferencesWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipInferenceListResponse>> listOwnershipInferencesWithHttpInfoAsync(String resourceId) List ownership inferences for a resource.- Parameters:
resourceId- The identifier of the resource to retrieve ownership inferences for. (required)- Returns:
- CompletableFuture<ApiResponse<OwnershipInferenceListResponse>>
-
postOwnershipSettings
public OwnershipSettingsResponse postOwnershipSettings(OwnershipSettingsRequest body) throws ApiException Update ownership settings for the org.See
postOwnershipSettingsWithHttpInfo(com.datadog.api.client.v2.model.OwnershipSettingsRequest).- Parameters:
body- (required)- Returns:
- OwnershipSettingsResponse
- Throws:
ApiException- if fails to make API call
-
postOwnershipSettingsAsync
public CompletableFuture<OwnershipSettingsResponse> postOwnershipSettingsAsync(OwnershipSettingsRequest body) Update ownership settings for the org.See
postOwnershipSettingsWithHttpInfoAsync(com.datadog.api.client.v2.model.OwnershipSettingsRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<OwnershipSettingsResponse>
-
postOwnershipSettingsWithHttpInfo
public ApiResponse<OwnershipSettingsResponse> postOwnershipSettingsWithHttpInfo(OwnershipSettingsRequest body) throws ApiException Update ownership settings for the org.- Parameters:
body- (required)- Returns:
- ApiResponse<OwnershipSettingsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 429 Too many requests -
-
postOwnershipSettingsWithHttpInfoAsync
public CompletableFuture<ApiResponse<OwnershipSettingsResponse>> postOwnershipSettingsWithHttpInfoAsync(OwnershipSettingsRequest body) Update ownership settings for the org.See
postOwnershipSettingsWithHttpInfo(com.datadog.api.client.v2.model.OwnershipSettingsRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<OwnershipSettingsResponse>>
-