Class StaticAnalysisApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listAiCustomRuleRevisions.static classManage optional parameters to listAiCustomRulesets.static classManage optional parameters to listCustomRuleRevisions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAiCustomRule(String rulesetName, AiCustomRuleRequest body) Create an AI custom rule.createAiCustomRuleAsync(String rulesetName, AiCustomRuleRequest body) Create an AI custom rule.voidcreateAiCustomRuleRevision(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create an AI custom rule revision.createAiCustomRuleRevisionAsync(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create an AI custom rule revision.createAiCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create a new revision for an AI custom rule.createAiCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create an AI custom rule revision.Create an AI custom ruleset.Create an AI custom ruleset.Create a new AI custom ruleset for the authenticated organization.Create an AI custom ruleset.createAiCustomRuleWithHttpInfo(String rulesetName, AiCustomRuleRequest body) Create a new AI custom rule within a ruleset.createAiCustomRuleWithHttpInfoAsync(String rulesetName, AiCustomRuleRequest body) Create an AI custom rule.voidCreate an AI memory violation result.Create an AI memory violation result.Add a new AI memory violation result for the authenticated organization.Create an AI memory violation result.createCustomRule(String rulesetName, CustomRuleRequest body) Create Custom Rule.createCustomRuleAsync(String rulesetName, CustomRuleRequest body) Create Custom Rule.voidcreateCustomRuleRevision(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create Custom Rule Revision.createCustomRuleRevisionAsync(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create Custom Rule Revision.createCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create a new revision for a custom rulecreateCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create Custom Rule Revision.Create Custom Ruleset.Create Custom Ruleset.Create a new custom ruleset for the authenticated organization.Create Custom Ruleset.createCustomRuleWithHttpInfo(String rulesetName, CustomRuleRequest body) Create a new custom rule within a rulesetcreateCustomRuleWithHttpInfoAsync(String rulesetName, CustomRuleRequest body) Create Custom Rule.POST request to resolve vulnerable symbols.POST request to resolve vulnerable symbols.POST request to resolve vulnerable symbols.voidcreateSCAResult(ScaRequest body) Post dependencies for analysis.Post dependencies for analysis.Post dependencies for analysis.createSCAScan(McpScanRequest body) Submit libraries for vulnerability scanning.Submit libraries for vulnerability scanning.Submit libraries for vulnerability scanning.voiddeleteAiCustomRule(String rulesetName, String ruleName) Delete an AI custom rule.deleteAiCustomRuleAsync(String rulesetName, String ruleName) Delete an AI custom rule.voiddeleteAiCustomRuleset(String rulesetName) Delete an AI custom ruleset.deleteAiCustomRulesetAsync(String rulesetName) Delete an AI custom ruleset.deleteAiCustomRulesetWithHttpInfo(String rulesetName) Delete an AI custom ruleset by name.deleteAiCustomRulesetWithHttpInfoAsync(String rulesetName) Delete an AI custom ruleset.deleteAiCustomRuleWithHttpInfo(String rulesetName, String ruleName) Delete an AI custom rule by name within a ruleset.deleteAiCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Delete an AI custom rule.voidDelete an AI memory violation result.Delete an AI memory violation result.Delete an AI memory violation result by its numeric identifier.Delete an AI memory violation result.voiddeleteCustomRule(String rulesetName, String ruleName) Delete Custom Rule.deleteCustomRuleAsync(String rulesetName, String ruleName) Delete Custom Rule.voiddeleteCustomRuleset(String rulesetName) Delete Custom Ruleset.deleteCustomRulesetAsync(String rulesetName) Delete Custom Ruleset.deleteCustomRulesetWithHttpInfo(String rulesetName) Delete a custom rulesetdeleteCustomRulesetWithHttpInfoAsync(String rulesetName) Delete Custom Ruleset.deleteCustomRuleWithHttpInfo(String rulesetName, String ruleName) Delete a custom ruledeleteCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Delete Custom Rule.getAiCustomRule(String rulesetName, String ruleName) Get an AI custom rule.getAiCustomRuleAsync(String rulesetName, String ruleName) Get an AI custom rule.getAiCustomRuleRevision(String rulesetName, String ruleName, String id) Get an AI custom rule revision.getAiCustomRuleRevisionAsync(String rulesetName, String ruleName, String id) Get an AI custom rule revision.getAiCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, String id) Get a specific revision of an AI custom rule.getAiCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, String id) Get an AI custom rule revision.getAiCustomRuleset(String rulesetName) Get an AI custom ruleset.getAiCustomRulesetAsync(String rulesetName) Get an AI custom ruleset.getAiCustomRulesetWithHttpInfo(String rulesetName) Get an AI custom ruleset by name.getAiCustomRulesetWithHttpInfoAsync(String rulesetName) Get an AI custom ruleset.getAiCustomRuleWithHttpInfo(String rulesetName, String ruleName) Get an AI custom rule by name within a ruleset.getAiCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Get an AI custom rule.Get the API client.getCustomRule(String rulesetName, String ruleName) Show Custom Rule.getCustomRuleAsync(String rulesetName, String ruleName) Show Custom Rule.getCustomRuleRevision(String rulesetName, String ruleName, String id) Show Custom Rule Revision.getCustomRuleRevisionAsync(String rulesetName, String ruleName, String id) Show Custom Rule Revision.getCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, String id) Get a specific revision of a custom rulegetCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, String id) Show Custom Rule Revision.getCustomRuleset(String rulesetName) Show Custom Ruleset.getCustomRulesetAsync(String rulesetName) Show Custom Ruleset.getCustomRulesetWithHttpInfo(String rulesetName) Get a custom ruleset by namegetCustomRulesetWithHttpInfoAsync(String rulesetName) Show Custom Ruleset.getCustomRuleWithHttpInfo(String rulesetName, String ruleName) Get a custom rule by namegetCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Show Custom Rule.getSCAScan(String jobId) Retrieve a dependency scan result.getSCAScanAsync(String jobId) Retrieve a dependency scan result.getSCAScanWithHttpInfo(String jobId) Retrieve a dependency scan result.listAiCustomRuleRevisions(String rulesetName, String ruleName) List AI custom rule revisions.listAiCustomRuleRevisions(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.listAiCustomRuleRevisionsAsync(String rulesetName, String ruleName) List AI custom rule revisions.listAiCustomRuleRevisionsAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.listAiCustomRuleRevisionsWithHttpInfo(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) Get all revisions for an AI custom rule.listAiCustomRuleRevisionsWithHttpInfoAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.listAiCustomRuleRevisionsWithPagination(String rulesetName, String ruleName) List AI custom rule revisions.listAiCustomRuleRevisionsWithPagination(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.List AI custom rulesets.List AI custom rulesets.List AI custom rulesets.List AI custom rulesets.listAiCustomRulesetsWithHttpInfo(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) Get all AI custom rulesets for the authenticated organization.listAiCustomRulesetsWithHttpInfoAsync(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) List AI custom rulesets.List AI memory violation results.List AI memory violation results.Get all AI memory violation results for the authenticated organization.List AI memory violation results.List AI prompts.List AI prompts.Get all AI prompts, including default prompts and custom AI rule prompts for the authenticated organization.List AI prompts.listCustomRuleRevisions(String rulesetName, String ruleName) List Custom Rule Revisions.listCustomRuleRevisions(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.listCustomRuleRevisionsAsync(String rulesetName, String ruleName) List Custom Rule Revisions.listCustomRuleRevisionsAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.listCustomRuleRevisionsWithHttpInfo(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) Get all revisions for a custom rulelistCustomRuleRevisionsWithHttpInfoAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.listCustomRuleRevisionsWithPagination(String rulesetName, String ruleName) List Custom Rule Revisions.listCustomRuleRevisionsWithPagination(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.List Custom Rulesets.List Custom Rulesets.Get all custom rulesets for the authenticated organization.List Custom Rulesets.Get the list of SPDX licenses.Get the list of SPDX licenses.Get the list of SPDX licenses.voidrevertCustomRuleRevision(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert Custom Rule Revision.revertCustomRuleRevisionAsync(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert Custom Rule Revision.revertCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert a custom rule to a previous revisionrevertCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert Custom Rule Revision.voidsetApiClient(ApiClient apiClient) Set the API client.voidupdateAiCustomRuleset(String rulesetName, AiCustomRulesetUpdateRequest body) Update an AI custom ruleset.updateAiCustomRulesetAsync(String rulesetName, AiCustomRulesetUpdateRequest body) Update an AI custom ruleset.updateAiCustomRulesetWithHttpInfo(String rulesetName, AiCustomRulesetUpdateRequest body) Update the description of an existing AI custom ruleset.updateAiCustomRulesetWithHttpInfoAsync(String rulesetName, AiCustomRulesetUpdateRequest body) Update an AI custom ruleset.updateCustomRuleset(String rulesetName, CustomRulesetRequest body) Update Custom Ruleset.updateCustomRulesetAsync(String rulesetName, CustomRulesetRequest body) Update Custom Ruleset.updateCustomRulesetWithHttpInfo(String rulesetName, CustomRulesetRequest body) Update an existing custom rulesetupdateCustomRulesetWithHttpInfoAsync(String rulesetName, CustomRulesetRequest body) Update Custom Ruleset.
-
Constructor Details
-
StaticAnalysisApi
public StaticAnalysisApi() -
StaticAnalysisApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createAiCustomRule
public AiCustomRuleResponse createAiCustomRule(String rulesetName, AiCustomRuleRequest body) throws ApiException Create an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- AiCustomRuleResponse
- Throws:
ApiException- if fails to make API call
-
createAiCustomRuleAsync
public CompletableFuture<AiCustomRuleResponse> createAiCustomRuleAsync(String rulesetName, AiCustomRuleRequest body) Create an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- CompletableFuture<AiCustomRuleResponse>
-
createAiCustomRuleWithHttpInfo
public ApiResponse<AiCustomRuleResponse> createAiCustomRuleWithHttpInfo(String rulesetName, AiCustomRuleRequest body) throws ApiException Create a new AI custom rule within a ruleset.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- ApiResponse<AiCustomRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad Request - 401 Unauthorized - 409 Conflict - rule already exists - 412 Precondition Failed - validation error or ruleset not found - 429 Too many requests - 500 Internal Server Error -
-
createAiCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRuleResponse>> createAiCustomRuleWithHttpInfoAsync(String rulesetName, AiCustomRuleRequest body) Create an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<AiCustomRuleResponse>>
-
createAiCustomRuleRevision
public void createAiCustomRuleRevision(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) throws ApiException Create an AI custom rule revision.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)body- (required)- Throws:
ApiException- if fails to make API call
-
createAiCustomRuleRevisionAsync
public CompletableFuture<Void> createAiCustomRuleRevisionAsync(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create an AI custom rule revision.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)body- (required)- Returns:
- CompletableFuture
-
createAiCustomRuleRevisionWithHttpInfo
public ApiResponse<Void> createAiCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) throws ApiException Create a new revision for an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad Request - 401 Unauthorized - 404 Rule not found - 429 Too many requests - 500 Internal Server Error -
-
createAiCustomRuleRevisionWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> createAiCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, AiCustomRuleRevisionRequest body) Create an AI custom rule revision.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createAiCustomRuleset
public AiCustomRulesetResponse createAiCustomRuleset(AiCustomRulesetRequest body) throws ApiException Create an AI custom ruleset.See
createAiCustomRulesetWithHttpInfo(com.datadog.api.client.v2.model.AiCustomRulesetRequest).- Parameters:
body- (required)- Returns:
- AiCustomRulesetResponse
- Throws:
ApiException- if fails to make API call
-
createAiCustomRulesetAsync
public CompletableFuture<AiCustomRulesetResponse> createAiCustomRulesetAsync(AiCustomRulesetRequest body) Create an AI custom ruleset.See
createAiCustomRulesetWithHttpInfoAsync(com.datadog.api.client.v2.model.AiCustomRulesetRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<AiCustomRulesetResponse>
-
createAiCustomRulesetWithHttpInfo
public ApiResponse<AiCustomRulesetResponse> createAiCustomRulesetWithHttpInfo(AiCustomRulesetRequest body) throws ApiException Create a new AI custom ruleset for the authenticated organization.- Parameters:
body- (required)- Returns:
- ApiResponse<AiCustomRulesetResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad Request - 401 Unauthorized - 409 Conflict - ruleset already exists - 412 Precondition Failed - validation error - 429 Too many requests - 500 Internal Server Error -
-
createAiCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRulesetResponse>> createAiCustomRulesetWithHttpInfoAsync(AiCustomRulesetRequest body) Create an AI custom ruleset.See
createAiCustomRulesetWithHttpInfo(com.datadog.api.client.v2.model.AiCustomRulesetRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<AiCustomRulesetResponse>>
-
createAiMemoryViolationResult
Create an AI memory violation result.- Parameters:
body- (required)- Throws:
ApiException- if fails to make API call
-
createAiMemoryViolationResultAsync
public CompletableFuture<Void> createAiMemoryViolationResultAsync(AiMemoryViolationResultRequest body) Create an AI memory violation result.- Parameters:
body- (required)- Returns:
- CompletableFuture
-
createAiMemoryViolationResultWithHttpInfo
public ApiResponse<Void> createAiMemoryViolationResultWithHttpInfo(AiMemoryViolationResultRequest body) throws ApiException Add a new AI memory violation result for the authenticated organization.- Parameters:
body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests - 500 Internal Server Error -
-
createAiMemoryViolationResultWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> createAiMemoryViolationResultWithHttpInfoAsync(AiMemoryViolationResultRequest body) Create an AI memory violation result.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createCustomRule
public CustomRuleResponse createCustomRule(String rulesetName, CustomRuleRequest body) throws ApiException Create Custom Rule.See
createCustomRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CustomRuleRequest).- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CustomRuleResponse
- Throws:
ApiException- if fails to make API call
-
createCustomRuleAsync
public CompletableFuture<CustomRuleResponse> createCustomRuleAsync(String rulesetName, CustomRuleRequest body) Create Custom Rule.- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CompletableFuture<CustomRuleResponse>
-
createCustomRuleWithHttpInfo
public ApiResponse<CustomRuleResponse> createCustomRuleWithHttpInfo(String rulesetName, CustomRuleRequest body) throws ApiException Create a new custom rule within a ruleset- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- ApiResponse<CustomRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad request - 401 Unauthorized - custom rules not enabled - 409 Conflict - rule already exists - 412 Precondition failed - validation error or ruleset not found - 429 Too many requests -
-
createCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRuleResponse>> createCustomRuleWithHttpInfoAsync(String rulesetName, CustomRuleRequest body) Create Custom Rule.See
createCustomRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.CustomRuleRequest).- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<CustomRuleResponse>>
-
createCustomRuleRevision
public void createCustomRuleRevision(String rulesetName, String ruleName, CustomRuleRevisionRequest body) throws ApiException Create Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Throws:
ApiException- if fails to make API call
-
createCustomRuleRevisionAsync
public CompletableFuture<Void> createCustomRuleRevisionAsync(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- CompletableFuture
-
createCustomRuleRevisionWithHttpInfo
public ApiResponse<Void> createCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, CustomRuleRevisionRequest body) throws ApiException Create a new revision for a custom rule- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully created - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Rule not found - 429 Too many requests -
-
createCustomRuleRevisionWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> createCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, CustomRuleRevisionRequest body) Create Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createCustomRuleset
Create Custom Ruleset.See
createCustomRulesetWithHttpInfo(com.datadog.api.client.v2.model.CustomRulesetRequest).- Parameters:
body- (required)- Returns:
- CustomRulesetResponse
- Throws:
ApiException- if fails to make API call
-
createCustomRulesetAsync
Create Custom Ruleset.See
createCustomRulesetWithHttpInfoAsync(com.datadog.api.client.v2.model.CustomRulesetRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<CustomRulesetResponse>
-
createCustomRulesetWithHttpInfo
public ApiResponse<CustomRulesetResponse> createCustomRulesetWithHttpInfo(CustomRulesetRequest body) throws ApiException Create a new custom ruleset for the authenticated organization.- Parameters:
body- (required)- Returns:
- ApiResponse<CustomRulesetResponse>
- 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 - 409 Conflict - 412 Precondition Failed - 429 Too many requests -
-
createCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRulesetResponse>> createCustomRulesetWithHttpInfoAsync(CustomRulesetRequest body) Create Custom Ruleset.See
createCustomRulesetWithHttpInfo(com.datadog.api.client.v2.model.CustomRulesetRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CustomRulesetResponse>>
-
createSCAResolveVulnerableSymbols
public ResolveVulnerableSymbolsResponse createSCAResolveVulnerableSymbols(ResolveVulnerableSymbolsRequest body) throws ApiException POST request to resolve vulnerable symbols.- Parameters:
body- (required)- Returns:
- ResolveVulnerableSymbolsResponse
- Throws:
ApiException- if fails to make API call
-
createSCAResolveVulnerableSymbolsAsync
public CompletableFuture<ResolveVulnerableSymbolsResponse> createSCAResolveVulnerableSymbolsAsync(ResolveVulnerableSymbolsRequest body) POST request to resolve vulnerable symbols.- Parameters:
body- (required)- Returns:
- CompletableFuture<ResolveVulnerableSymbolsResponse>
-
createSCAResolveVulnerableSymbolsWithHttpInfo
public ApiResponse<ResolveVulnerableSymbolsResponse> createSCAResolveVulnerableSymbolsWithHttpInfo(ResolveVulnerableSymbolsRequest body) throws ApiException - Parameters:
body- (required)- Returns:
- ApiResponse<ResolveVulnerableSymbolsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
createSCAResolveVulnerableSymbolsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ResolveVulnerableSymbolsResponse>> createSCAResolveVulnerableSymbolsWithHttpInfoAsync(ResolveVulnerableSymbolsRequest body) POST request to resolve vulnerable symbols.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ResolveVulnerableSymbolsResponse>>
-
createSCAResult
Post dependencies for analysis.See
createSCAResultWithHttpInfo(com.datadog.api.client.v2.model.ScaRequest).- Parameters:
body- (required)- Throws:
ApiException- if fails to make API call
-
createSCAResultAsync
Post dependencies for analysis.See
createSCAResultWithHttpInfoAsync(com.datadog.api.client.v2.model.ScaRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture
-
createSCAResultWithHttpInfo
- Parameters:
body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
createSCAResultWithHttpInfoAsync
Post dependencies for analysis.See
createSCAResultWithHttpInfo(com.datadog.api.client.v2.model.ScaRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createSCAScan
Submit libraries for vulnerability scanning.See
createSCAScanWithHttpInfo(com.datadog.api.client.v2.model.McpScanRequest).- Parameters:
body- (required)- Returns:
- McpScanRequestResponse
- Throws:
ApiException- if fails to make API call
-
createSCAScanAsync
Submit libraries for vulnerability scanning.See
createSCAScanWithHttpInfoAsync(com.datadog.api.client.v2.model.McpScanRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<McpScanRequestResponse>
-
createSCAScanWithHttpInfo
public ApiResponse<McpScanRequestResponse> createSCAScanWithHttpInfo(McpScanRequest body) throws ApiException - Parameters:
body- (required)- Returns:
- ApiResponse<McpScanRequestResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 429 Too many requests -
-
createSCAScanWithHttpInfoAsync
public CompletableFuture<ApiResponse<McpScanRequestResponse>> createSCAScanWithHttpInfoAsync(McpScanRequest body) Submit libraries for vulnerability scanning.See
createSCAScanWithHttpInfo(com.datadog.api.client.v2.model.McpScanRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<McpScanRequestResponse>>
-
deleteAiCustomRule
Delete an AI custom rule.See
deleteAiCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Throws:
ApiException- if fails to make API call
-
deleteAiCustomRuleAsync
Delete an AI custom rule.See
deleteAiCustomRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- CompletableFuture
-
deleteAiCustomRuleWithHttpInfo
public ApiResponse<Void> deleteAiCustomRuleWithHttpInfo(String rulesetName, String ruleName) throws ApiException Delete an AI custom rule by name within a ruleset.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully deleted - 400 Bad Request - 401 Unauthorized - 404 Rule not found - 429 Too many requests - 500 Internal Server Error -
-
deleteAiCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteAiCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Delete an AI custom rule.See
deleteAiCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteAiCustomRuleset
Delete an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)- Throws:
ApiException- if fails to make API call
-
deleteAiCustomRulesetAsync
Delete an AI custom ruleset.See
deleteAiCustomRulesetWithHttpInfoAsync(java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- CompletableFuture
-
deleteAiCustomRulesetWithHttpInfo
Delete an AI custom ruleset by name.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully deleted - 400 Bad Request - 401 Unauthorized - 404 Ruleset not found - 429 Too many requests - 500 Internal Server Error -
-
deleteAiCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteAiCustomRulesetWithHttpInfoAsync(String rulesetName) Delete an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteAiMemoryViolationResult
Delete an AI memory violation result.See
deleteAiMemoryViolationResultWithHttpInfo(java.lang.String).- Parameters:
id- The numeric identifier of the memory violation result. (required)- Throws:
ApiException- if fails to make API call
-
deleteAiMemoryViolationResultAsync
Delete an AI memory violation result.See
deleteAiMemoryViolationResultWithHttpInfoAsync(java.lang.String).- Parameters:
id- The numeric identifier of the memory violation result. (required)- Returns:
- CompletableFuture
-
deleteAiMemoryViolationResultWithHttpInfo
Delete an AI memory violation result by its numeric identifier.- Parameters:
id- The numeric identifier of the memory violation result. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully deleted - 400 Bad Request - 401 Unauthorized - 404 Memory violation result not found - 429 Too many requests - 500 Internal Server Error -
-
deleteAiMemoryViolationResultWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteAiMemoryViolationResultWithHttpInfoAsync(String id) Delete an AI memory violation result.See
deleteAiMemoryViolationResultWithHttpInfo(java.lang.String).- Parameters:
id- The numeric identifier of the memory violation result. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteCustomRule
Delete Custom Rule.See
deleteCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Throws:
ApiException- if fails to make API call
-
deleteCustomRuleAsync
Delete Custom Rule.See
deleteCustomRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CompletableFuture
-
deleteCustomRuleWithHttpInfo
public ApiResponse<Void> deleteCustomRuleWithHttpInfo(String rulesetName, String ruleName) throws ApiException Delete a custom rule- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully deleted - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Rule not found - 429 Too many requests -
-
deleteCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Delete Custom Rule.See
deleteCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteCustomRuleset
Delete Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Throws:
ApiException- if fails to make API call
-
deleteCustomRulesetAsync
Delete Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Returns:
- CompletableFuture
-
deleteCustomRulesetWithHttpInfo
Delete a custom ruleset- Parameters:
rulesetName- The ruleset name (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully deleted - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Ruleset not found - 429 Too many requests -
-
deleteCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteCustomRulesetWithHttpInfoAsync(String rulesetName) Delete Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getAiCustomRule
public AiCustomRuleResponse getAiCustomRule(String rulesetName, String ruleName) throws ApiException Get an AI custom rule.See
getAiCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- AiCustomRuleResponse
- Throws:
ApiException- if fails to make API call
-
getAiCustomRuleAsync
public CompletableFuture<AiCustomRuleResponse> getAiCustomRuleAsync(String rulesetName, String ruleName) Get an AI custom rule.See
getAiCustomRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- CompletableFuture<AiCustomRuleResponse>
-
getAiCustomRuleWithHttpInfo
public ApiResponse<AiCustomRuleResponse> getAiCustomRuleWithHttpInfo(String rulesetName, String ruleName) throws ApiException Get an AI custom rule by name within a ruleset.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- ApiResponse<AiCustomRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Rule not found - 429 Too many requests - 500 Internal Server Error -
-
getAiCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRuleResponse>> getAiCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Get an AI custom rule.See
getAiCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- CompletableFuture<ApiResponse<AiCustomRuleResponse>>
-
getAiCustomRuleRevision
public AiCustomRuleRevisionResponse getAiCustomRuleRevision(String rulesetName, String ruleName, String id) throws ApiException Get an AI custom rule revision.See
getAiCustomRuleRevisionWithHttpInfo(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)id- The revision identifier. (required)- Returns:
- AiCustomRuleRevisionResponse
- Throws:
ApiException- if fails to make API call
-
getAiCustomRuleRevisionAsync
public CompletableFuture<AiCustomRuleRevisionResponse> getAiCustomRuleRevisionAsync(String rulesetName, String ruleName, String id) Get an AI custom rule revision.See
getAiCustomRuleRevisionWithHttpInfoAsync(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)id- The revision identifier. (required)- Returns:
- CompletableFuture<AiCustomRuleRevisionResponse>
-
getAiCustomRuleRevisionWithHttpInfo
public ApiResponse<AiCustomRuleRevisionResponse> getAiCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, String id) throws ApiException Get a specific revision of an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)id- The revision identifier. (required)- Returns:
- ApiResponse<AiCustomRuleRevisionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Revision not found - 429 Too many requests - 500 Internal Server Error -
-
getAiCustomRuleRevisionWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRuleRevisionResponse>> getAiCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, String id) Get an AI custom rule revision.See
getAiCustomRuleRevisionWithHttpInfo(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)id- The revision identifier. (required)- Returns:
- CompletableFuture<ApiResponse<AiCustomRuleRevisionResponse>>
-
getAiCustomRuleset
Get an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- AiCustomRulesetResponse
- Throws:
ApiException- if fails to make API call
-
getAiCustomRulesetAsync
Get an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- CompletableFuture<AiCustomRulesetResponse>
-
getAiCustomRulesetWithHttpInfo
public ApiResponse<AiCustomRulesetResponse> getAiCustomRulesetWithHttpInfo(String rulesetName) throws ApiException Get an AI custom ruleset by name.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- ApiResponse<AiCustomRulesetResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Ruleset not found - 429 Too many requests - 500 Internal Server Error -
-
getAiCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRulesetResponse>> getAiCustomRulesetWithHttpInfoAsync(String rulesetName) Get an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)- Returns:
- CompletableFuture<ApiResponse<AiCustomRulesetResponse>>
-
getCustomRule
Show Custom Rule.See
getCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CustomRuleResponse
- Throws:
ApiException- if fails to make API call
-
getCustomRuleAsync
public CompletableFuture<CustomRuleResponse> getCustomRuleAsync(String rulesetName, String ruleName) Show Custom Rule.See
getCustomRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CompletableFuture<CustomRuleResponse>
-
getCustomRuleWithHttpInfo
public ApiResponse<CustomRuleResponse> getCustomRuleWithHttpInfo(String rulesetName, String ruleName) throws ApiException Get a custom rule by name- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- ApiResponse<CustomRuleResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Rule not found - 429 Too many requests -
-
getCustomRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRuleResponse>> getCustomRuleWithHttpInfoAsync(String rulesetName, String ruleName) Show Custom Rule.See
getCustomRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CompletableFuture<ApiResponse<CustomRuleResponse>>
-
getCustomRuleRevision
public CustomRuleRevisionResponse getCustomRuleRevision(String rulesetName, String ruleName, String id) throws ApiException Show Custom Rule Revision.See
getCustomRuleRevisionWithHttpInfo(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)id- The revision ID (required)- Returns:
- CustomRuleRevisionResponse
- Throws:
ApiException- if fails to make API call
-
getCustomRuleRevisionAsync
public CompletableFuture<CustomRuleRevisionResponse> getCustomRuleRevisionAsync(String rulesetName, String ruleName, String id) Show Custom Rule Revision.See
getCustomRuleRevisionWithHttpInfoAsync(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)id- The revision ID (required)- Returns:
- CompletableFuture<CustomRuleRevisionResponse>
-
getCustomRuleRevisionWithHttpInfo
public ApiResponse<CustomRuleRevisionResponse> getCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, String id) throws ApiException Get a specific revision of a custom rule- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)id- The revision ID (required)- Returns:
- ApiResponse<CustomRuleRevisionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Revision not found - 429 Too many requests -
-
getCustomRuleRevisionWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRuleRevisionResponse>> getCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, String id) Show Custom Rule Revision.See
getCustomRuleRevisionWithHttpInfo(java.lang.String, java.lang.String, java.lang.String).- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)id- The revision ID (required)- Returns:
- CompletableFuture<ApiResponse<CustomRuleRevisionResponse>>
-
getCustomRuleset
Show Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Returns:
- CustomRulesetResponse
- Throws:
ApiException- if fails to make API call
-
getCustomRulesetAsync
Show Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Returns:
- CompletableFuture<CustomRulesetResponse>
-
getCustomRulesetWithHttpInfo
public ApiResponse<CustomRulesetResponse> getCustomRulesetWithHttpInfo(String rulesetName) throws ApiException Get a custom ruleset by name- Parameters:
rulesetName- The ruleset name (required)- Returns:
- ApiResponse<CustomRulesetResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Ruleset not found - 429 Too many requests -
-
getCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRulesetResponse>> getCustomRulesetWithHttpInfoAsync(String rulesetName) Show Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)- Returns:
- CompletableFuture<ApiResponse<CustomRulesetResponse>>
-
getSCAScan
Retrieve a dependency scan result.- Parameters:
jobId- The job identifier returned when the scan was submitted. (required)- Returns:
- ScanResultResponse
- Throws:
ApiException- if fails to make API call
-
getSCAScanAsync
Retrieve a dependency scan result.- Parameters:
jobId- The job identifier returned when the scan was submitted. (required)- Returns:
- CompletableFuture<ScanResultResponse>
-
getSCAScanWithHttpInfo
- Parameters:
jobId- The job identifier returned when the scan was submitted. (required)- Returns:
- ApiResponse<ScanResultResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 404 Not Found - 429 Too many requests -
-
getSCAScanWithHttpInfoAsync
Retrieve a dependency scan result.- Parameters:
jobId- The job identifier returned when the scan was submitted. (required)- Returns:
- CompletableFuture<ApiResponse<ScanResultResponse>>
-
listAiCustomRuleRevisions
public AiCustomRuleRevisionsResponse listAiCustomRuleRevisions(String rulesetName, String ruleName) throws ApiException List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- AiCustomRuleRevisionsResponse
- Throws:
ApiException- if fails to make API call
-
listAiCustomRuleRevisionsAsync
public CompletableFuture<AiCustomRuleRevisionsResponse> listAiCustomRuleRevisionsAsync(String rulesetName, String ruleName) List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- CompletableFuture<AiCustomRuleRevisionsResponse>
-
listAiCustomRuleRevisions
public AiCustomRuleRevisionsResponse listAiCustomRuleRevisions(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) throws ApiException List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)parameters- Optional parameters for the request.- Returns:
- AiCustomRuleRevisionsResponse
- Throws:
ApiException- if fails to make API call
-
listAiCustomRuleRevisionsAsync
public CompletableFuture<AiCustomRuleRevisionsResponse> listAiCustomRuleRevisionsAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<AiCustomRuleRevisionsResponse>
-
listAiCustomRuleRevisionsWithPagination
public PaginationIterable<AiCustomRuleRevisionResponseData> listAiCustomRuleRevisionsWithPagination(String rulesetName, String ruleName) List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- PaginationIterable<AiCustomRuleRevisionResponseData>
-
listAiCustomRuleRevisionsWithPagination
public PaginationIterable<AiCustomRuleRevisionResponseData> listAiCustomRuleRevisionsWithPagination(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)- Returns:
- AiCustomRuleRevisionsResponse
-
listAiCustomRuleRevisionsWithHttpInfo
public ApiResponse<AiCustomRuleRevisionsResponse> listAiCustomRuleRevisionsWithHttpInfo(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) throws ApiException Get all revisions for an AI custom rule.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<AiCustomRuleRevisionsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Rule not found - 429 Too many requests - 500 Internal Server Error -
-
listAiCustomRuleRevisionsWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRuleRevisionsResponse>> listAiCustomRuleRevisionsWithHttpInfoAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListAiCustomRuleRevisionsOptionalParameters parameters) List AI custom rule revisions.- Parameters:
rulesetName- The ruleset name. (required)ruleName- The rule name. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<AiCustomRuleRevisionsResponse>>
-
listAiCustomRulesets
List AI custom rulesets.- Returns:
- AiCustomRulesetsResponse
- Throws:
ApiException- if fails to make API call
-
listAiCustomRulesetsAsync
List AI custom rulesets.- Returns:
- CompletableFuture<AiCustomRulesetsResponse>
-
listAiCustomRulesets
public AiCustomRulesetsResponse listAiCustomRulesets(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) throws ApiException List AI custom rulesets.- Parameters:
parameters- Optional parameters for the request.- Returns:
- AiCustomRulesetsResponse
- Throws:
ApiException- if fails to make API call
-
listAiCustomRulesetsAsync
public CompletableFuture<AiCustomRulesetsResponse> listAiCustomRulesetsAsync(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) List AI custom rulesets.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<AiCustomRulesetsResponse>
-
listAiCustomRulesetsWithHttpInfo
public ApiResponse<AiCustomRulesetsResponse> listAiCustomRulesetsWithHttpInfo(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) throws ApiException Get all AI custom rulesets for the authenticated organization.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<AiCustomRulesetsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 401 Unauthorized - 429 Too many requests - 500 Internal Server Error -
-
listAiCustomRulesetsWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiCustomRulesetsResponse>> listAiCustomRulesetsWithHttpInfoAsync(StaticAnalysisApi.ListAiCustomRulesetsOptionalParameters parameters) List AI custom rulesets.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<AiCustomRulesetsResponse>>
-
listAiMemoryViolationResults
List AI memory violation results.- Returns:
- AiMemoryViolationResultsResponse
- Throws:
ApiException- if fails to make API call
-
listAiMemoryViolationResultsAsync
List AI memory violation results.- Returns:
- CompletableFuture<AiMemoryViolationResultsResponse>
-
listAiMemoryViolationResultsWithHttpInfo
public ApiResponse<AiMemoryViolationResultsResponse> listAiMemoryViolationResultsWithHttpInfo() throws ApiExceptionGet all AI memory violation results for the authenticated organization.- Returns:
- ApiResponse<AiMemoryViolationResultsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests - 500 Internal Server Error -
-
listAiMemoryViolationResultsWithHttpInfoAsync
public CompletableFuture<ApiResponse<AiMemoryViolationResultsResponse>> listAiMemoryViolationResultsWithHttpInfoAsync()List AI memory violation results.- Returns:
- CompletableFuture<ApiResponse<AiMemoryViolationResultsResponse>>
-
listAiPrompts
List AI prompts.- Returns:
- AiPromptsResponse
- Throws:
ApiException- if fails to make API call
-
listAiPromptsAsync
List AI prompts.- Returns:
- CompletableFuture<AiPromptsResponse>
-
listAiPromptsWithHttpInfo
Get all AI prompts, including default prompts and custom AI rule prompts for the authenticated organization.- Returns:
- ApiResponse<AiPromptsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad Request - 401 Unauthorized - 404 Not Found - 429 Too many requests - 500 Internal Server Error -
-
listAiPromptsWithHttpInfoAsync
List AI prompts.- Returns:
- CompletableFuture<ApiResponse<AiPromptsResponse>>
-
listCustomRuleRevisions
public CustomRuleRevisionsResponse listCustomRuleRevisions(String rulesetName, String ruleName) throws ApiException List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CustomRuleRevisionsResponse
- Throws:
ApiException- if fails to make API call
-
listCustomRuleRevisionsAsync
public CompletableFuture<CustomRuleRevisionsResponse> listCustomRuleRevisionsAsync(String rulesetName, String ruleName) List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CompletableFuture<CustomRuleRevisionsResponse>
-
listCustomRuleRevisions
public CustomRuleRevisionsResponse listCustomRuleRevisions(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) throws ApiException List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)parameters- Optional parameters for the request.- Returns:
- CustomRuleRevisionsResponse
- Throws:
ApiException- if fails to make API call
-
listCustomRuleRevisionsAsync
public CompletableFuture<CustomRuleRevisionsResponse> listCustomRuleRevisionsAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<CustomRuleRevisionsResponse>
-
listCustomRuleRevisionsWithPagination
public PaginationIterable<CustomRuleRevision> listCustomRuleRevisionsWithPagination(String rulesetName, String ruleName) List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- PaginationIterable<CustomRuleRevision>
-
listCustomRuleRevisionsWithPagination
public PaginationIterable<CustomRuleRevision> listCustomRuleRevisionsWithPagination(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)- Returns:
- CustomRuleRevisionsResponse
-
listCustomRuleRevisionsWithHttpInfo
public ApiResponse<CustomRuleRevisionsResponse> listCustomRuleRevisionsWithHttpInfo(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) throws ApiException Get all revisions for a custom rule- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<CustomRuleRevisionsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successful response - 400 Bad request - 401 Unauthorized - custom rules not enabled - 404 Rule not found - 429 Too many requests -
-
listCustomRuleRevisionsWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRuleRevisionsResponse>> listCustomRuleRevisionsWithHttpInfoAsync(String rulesetName, String ruleName, StaticAnalysisApi.ListCustomRuleRevisionsOptionalParameters parameters) List Custom Rule Revisions.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<CustomRuleRevisionsResponse>>
-
listCustomRulesets
List Custom Rulesets.- Returns:
- CustomRulesetListResponse
- Throws:
ApiException- if fails to make API call
-
listCustomRulesetsAsync
List Custom Rulesets.- Returns:
- CompletableFuture<CustomRulesetListResponse>
-
listCustomRulesetsWithHttpInfo
Get all custom rulesets for the authenticated organization.- Returns:
- ApiResponse<CustomRulesetListResponse>
- 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 -
-
listCustomRulesetsWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRulesetListResponse>> listCustomRulesetsWithHttpInfoAsync()List Custom Rulesets.- Returns:
- CompletableFuture<ApiResponse<CustomRulesetListResponse>>
-
listSCALicenses
Get the list of SPDX licenses.- Returns:
- LicensesListResponse
- Throws:
ApiException- if fails to make API call
-
listSCALicensesAsync
Get the list of SPDX licenses.- Returns:
- CompletableFuture<LicensesListResponse>
-
listSCALicensesWithHttpInfo
- Returns:
- ApiResponse<LicensesListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
listSCALicensesWithHttpInfoAsync
Get the list of SPDX licenses.- Returns:
- CompletableFuture<ApiResponse<LicensesListResponse>>
-
revertCustomRuleRevision
public void revertCustomRuleRevision(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) throws ApiException Revert Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Throws:
ApiException- if fails to make API call
-
revertCustomRuleRevisionAsync
public CompletableFuture<Void> revertCustomRuleRevisionAsync(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- CompletableFuture
-
revertCustomRuleRevisionWithHttpInfo
public ApiResponse<Void> revertCustomRuleRevisionWithHttpInfo(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) throws ApiException Revert a custom rule to a previous revision- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully reverted - 400 Bad request - 401 Unauthorized - custom rules not enabled - 429 Too many requests -
-
revertCustomRuleRevisionWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> revertCustomRuleRevisionWithHttpInfoAsync(String rulesetName, String ruleName, RevertCustomRuleRevisionRequest body) Revert Custom Rule Revision.- Parameters:
rulesetName- The ruleset name (required)ruleName- The rule name (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateAiCustomRuleset
public void updateAiCustomRuleset(String rulesetName, AiCustomRulesetUpdateRequest body) throws ApiException Update an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Throws:
ApiException- if fails to make API call
-
updateAiCustomRulesetAsync
public CompletableFuture<Void> updateAiCustomRulesetAsync(String rulesetName, AiCustomRulesetUpdateRequest body) Update an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- CompletableFuture
-
updateAiCustomRulesetWithHttpInfo
public ApiResponse<Void> updateAiCustomRulesetWithHttpInfo(String rulesetName, AiCustomRulesetUpdateRequest body) throws ApiException Update the description of an existing AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully updated - 400 Bad Request - 401 Unauthorized - 412 Precondition Failed - validation error or ruleset not found - 429 Too many requests - 500 Internal Server Error -
-
updateAiCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> updateAiCustomRulesetWithHttpInfoAsync(String rulesetName, AiCustomRulesetUpdateRequest body) Update an AI custom ruleset.- Parameters:
rulesetName- The ruleset name. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateCustomRuleset
public CustomRulesetResponse updateCustomRuleset(String rulesetName, CustomRulesetRequest body) throws ApiException Update Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CustomRulesetResponse
- Throws:
ApiException- if fails to make API call
-
updateCustomRulesetAsync
public CompletableFuture<CustomRulesetResponse> updateCustomRulesetAsync(String rulesetName, CustomRulesetRequest body) Update Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CompletableFuture<CustomRulesetResponse>
-
updateCustomRulesetWithHttpInfo
public ApiResponse<CustomRulesetResponse> updateCustomRulesetWithHttpInfo(String rulesetName, CustomRulesetRequest body) throws ApiException Update an existing custom ruleset- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- ApiResponse<CustomRulesetResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 Successfully updated - 400 Bad request - 401 Unauthorized - custom rules not enabled - 412 Precondition failed - validation error or ruleset not found - 429 Too many requests -
-
updateCustomRulesetWithHttpInfoAsync
public CompletableFuture<ApiResponse<CustomRulesetResponse>> updateCustomRulesetWithHttpInfoAsync(String rulesetName, CustomRulesetRequest body) Update Custom Ruleset.- Parameters:
rulesetName- The ruleset name (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<CustomRulesetResponse>>
-