Class VulnerabilityScanningAsyncClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseAsyncClient
-
- com.oracle.bmc.vulnerabilityscanning.VulnerabilityScanningAsyncClient
-
- All Implemented Interfaces:
VulnerabilityScanningAsync
,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20210215") public class VulnerabilityScanningAsyncClient extends BaseAsyncClient implements VulnerabilityScanningAsync
Async client implementation for VulnerabilityScanning service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response to the call is anInputStream
, like getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, because the stream will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine whether or not the request was completed via Future.isDone/isCancelled.
Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VulnerabilityScanningAsyncClient.Builder
Builder class for this client.
-
Field Summary
Fields Modifier and Type Field Description String
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.Optional<String>
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.static Service
SERVICE
Service instance for VulnerabilityScanning.
-
Constructor Summary
Constructors Constructor Description VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.vulnerabilityscanning.VulnerabilityScanningAsync
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
-
VulnerabilityScanningAsyncClient
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeVulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
-ClientBuilderBase.signingStrategyRequestSignerFactories
-
-
Method Detail
-
builder
public static VulnerabilityScanningAsyncClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:VulnerabilityScanningAsync
Sets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpoint
after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.- Specified by:
setRegion
in interfaceVulnerabilityScanningAsync
- Parameters:
region
- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:VulnerabilityScanningAsync
Sets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion
.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)
and then callsetEndpoint
.- Specified by:
setRegion
in interfaceVulnerabilityScanningAsync
- Parameters:
regionId
- The public region ID.
-
changeContainerScanRecipeCompartment
public Future<ChangeContainerScanRecipeCompartmentResponse> changeContainerScanRecipeCompartment(ChangeContainerScanRecipeCompartmentRequest request, AsyncHandler<ChangeContainerScanRecipeCompartmentRequest,ChangeContainerScanRecipeCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a ContainerScanRecipe into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeContainerScanRecipeCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeContainerScanResultCompartment
public Future<ChangeContainerScanResultCompartmentResponse> changeContainerScanResultCompartment(ChangeContainerScanResultCompartmentRequest request, AsyncHandler<ChangeContainerScanResultCompartmentRequest,ChangeContainerScanResultCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a ContainerScanResult into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeContainerScanResultCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeContainerScanTargetCompartment
public Future<ChangeContainerScanTargetCompartmentResponse> changeContainerScanTargetCompartment(ChangeContainerScanTargetCompartmentRequest request, AsyncHandler<ChangeContainerScanTargetCompartmentRequest,ChangeContainerScanTargetCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a ContainerScanTarget into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeContainerScanTargetCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostAgentScanResultCompartment
public Future<ChangeHostAgentScanResultCompartmentResponse> changeHostAgentScanResultCompartment(ChangeHostAgentScanResultCompartmentRequest request, AsyncHandler<ChangeHostAgentScanResultCompartmentRequest,ChangeHostAgentScanResultCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostAgentScanResult into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostAgentScanResultCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostCisBenchmarkScanResultCompartment
public Future<ChangeHostCisBenchmarkScanResultCompartmentResponse> changeHostCisBenchmarkScanResultCompartment(ChangeHostCisBenchmarkScanResultCompartmentRequest request, AsyncHandler<ChangeHostCisBenchmarkScanResultCompartmentRequest,ChangeHostCisBenchmarkScanResultCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostCisBenchmarkScanResult into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostCisBenchmarkScanResultCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostEndpointProtectionScanResultCompartment
public Future<ChangeHostEndpointProtectionScanResultCompartmentResponse> changeHostEndpointProtectionScanResultCompartment(ChangeHostEndpointProtectionScanResultCompartmentRequest request, AsyncHandler<ChangeHostEndpointProtectionScanResultCompartmentRequest,ChangeHostEndpointProtectionScanResultCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostEndpointProtectionScanResult into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostEndpointProtectionScanResultCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostPortScanResultCompartment
public Future<ChangeHostPortScanResultCompartmentResponse> changeHostPortScanResultCompartment(ChangeHostPortScanResultCompartmentRequest request, AsyncHandler<ChangeHostPortScanResultCompartmentRequest,ChangeHostPortScanResultCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostPortScanResult into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostPortScanResultCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostScanRecipeCompartment
public Future<ChangeHostScanRecipeCompartmentResponse> changeHostScanRecipeCompartment(ChangeHostScanRecipeCompartmentRequest request, AsyncHandler<ChangeHostScanRecipeCompartmentRequest,ChangeHostScanRecipeCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostScanRecipe into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostScanRecipeCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeHostScanTargetCompartment
public Future<ChangeHostScanTargetCompartmentResponse> changeHostScanTargetCompartment(ChangeHostScanTargetCompartmentRequest request, AsyncHandler<ChangeHostScanTargetCompartmentRequest,ChangeHostScanTargetCompartmentResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Moves a HostScanTarget into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeHostScanTargetCompartment
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createContainerScanRecipe
public Future<CreateContainerScanRecipeResponse> createContainerScanRecipe(CreateContainerScanRecipeRequest request, AsyncHandler<CreateContainerScanRecipeRequest,CreateContainerScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Creates a new ContainerScanRecipe.A recipe determines the types of security issues that you want scanned.
- Specified by:
createContainerScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createContainerScanTarget
public Future<CreateContainerScanTargetResponse> createContainerScanTarget(CreateContainerScanTargetRequest request, AsyncHandler<CreateContainerScanTargetRequest,CreateContainerScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Creates a new ContainerScanTarget.A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
- Specified by:
createContainerScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createHostScanRecipe
public Future<CreateHostScanRecipeResponse> createHostScanRecipe(CreateHostScanRecipeRequest request, AsyncHandler<CreateHostScanRecipeRequest,CreateHostScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Creates a new HostScanRecipe.A recipe determines the types of security issues that you want scanned, and how often to scan.
- Specified by:
createHostScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createHostScanTarget
public Future<CreateHostScanTargetResponse> createHostScanTarget(CreateHostScanTargetRequest request, AsyncHandler<CreateHostScanTargetRequest,CreateHostScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Creates a new HostScanTarget.A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
- Specified by:
createHostScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteContainerScanRecipe
public Future<DeleteContainerScanRecipeResponse> deleteContainerScanRecipe(DeleteContainerScanRecipeRequest request, AsyncHandler<DeleteContainerScanRecipeRequest,DeleteContainerScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the ContainerScanRecipe identified by the recipe ID.- Specified by:
deleteContainerScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteContainerScanResult
public Future<DeleteContainerScanResultResponse> deleteContainerScanResult(DeleteContainerScanResultRequest request, AsyncHandler<DeleteContainerScanResultRequest,DeleteContainerScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the ContainerScanResult identified by the container scan ID.- Specified by:
deleteContainerScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteContainerScanTarget
public Future<DeleteContainerScanTargetResponse> deleteContainerScanTarget(DeleteContainerScanTargetRequest request, AsyncHandler<DeleteContainerScanTargetRequest,DeleteContainerScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the ContainerScanTarget identified by the target ID.- Specified by:
deleteContainerScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostAgentScanResult
public Future<DeleteHostAgentScanResultResponse> deleteHostAgentScanResult(DeleteHostAgentScanResultRequest request, AsyncHandler<DeleteHostAgentScanResultRequest,DeleteHostAgentScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostAgentScanResult identified by the host agent scan ID.- Specified by:
deleteHostAgentScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostCisBenchmarkScanResult
public Future<DeleteHostCisBenchmarkScanResultResponse> deleteHostCisBenchmarkScanResult(DeleteHostCisBenchmarkScanResultRequest request, AsyncHandler<DeleteHostCisBenchmarkScanResultRequest,DeleteHostCisBenchmarkScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostCisBenchmarkScanResult identified by the benchmark scan result ID.- Specified by:
deleteHostCisBenchmarkScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostEndpointProtectionScanResult
public Future<DeleteHostEndpointProtectionScanResultResponse> deleteHostEndpointProtectionScanResult(DeleteHostEndpointProtectionScanResultRequest request, AsyncHandler<DeleteHostEndpointProtectionScanResultRequest,DeleteHostEndpointProtectionScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostEndpointProtectionScanResult identified by the id- Specified by:
deleteHostEndpointProtectionScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostPortScanResult
public Future<DeleteHostPortScanResultResponse> deleteHostPortScanResult(DeleteHostPortScanResultRequest request, AsyncHandler<DeleteHostPortScanResultRequest,DeleteHostPortScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostPortScanResult identified by the host port scan ID.- Specified by:
deleteHostPortScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostScanRecipe
public Future<DeleteHostScanRecipeResponse> deleteHostScanRecipe(DeleteHostScanRecipeRequest request, AsyncHandler<DeleteHostScanRecipeRequest,DeleteHostScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostScanRecipe identified by the recipe ID.- Specified by:
deleteHostScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteHostScanTarget
public Future<DeleteHostScanTargetResponse> deleteHostScanTarget(DeleteHostScanTargetRequest request, AsyncHandler<DeleteHostScanTargetRequest,DeleteHostScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Deletes the HostScanTarget identified by the target ID.- Specified by:
deleteHostScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
exportHostAgentScanResultCsv
public Future<ExportHostAgentScanResultCsvResponse> exportHostAgentScanResultCsv(ExportHostAgentScanResultCsvRequest request, AsyncHandler<ExportHostAgentScanResultCsvRequest,ExportHostAgentScanResultCsvResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Exports a list of HostAgentScanResultSummary objects within a compartment and during a specified time range in CSV format.You can filter the results by problem severity.
- Specified by:
exportHostAgentScanResultCsv
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
exportHostVulnerabilityCsv
public Future<ExportHostVulnerabilityCsvResponse> exportHostVulnerabilityCsv(ExportHostVulnerabilityCsvRequest request, AsyncHandler<ExportHostVulnerabilityCsvRequest,ExportHostVulnerabilityCsvResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Exports a list of HostVulnerabilitySummary objects in a compartment in CSV format.- Specified by:
exportHostVulnerabilityCsv
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getContainerScanRecipe
public Future<GetContainerScanRecipeResponse> getContainerScanRecipe(GetContainerScanRecipeRequest request, AsyncHandler<GetContainerScanRecipeRequest,GetContainerScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a ContainerScanRecipe identified by the recipe ID.A recipe determines the types of security issues that you want scanned.
- Specified by:
getContainerScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getContainerScanResult
public Future<GetContainerScanResultResponse> getContainerScanResult(GetContainerScanResultRequest request, AsyncHandler<GetContainerScanResultRequest,GetContainerScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a ContainerScanResult identified by the container scan ID.The result includes a list of problems found in a specific image in a Docker repository.
- Specified by:
getContainerScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getContainerScanTarget
public Future<GetContainerScanTargetResponse> getContainerScanTarget(GetContainerScanTargetRequest request, AsyncHandler<GetContainerScanTargetRequest,GetContainerScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Gets a ContainerScanTarget identified by the target ID.A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
- Specified by:
getContainerScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostAgentScanResult
public Future<GetHostAgentScanResultResponse> getHostAgentScanResult(GetHostAgentScanResultRequest request, AsyncHandler<GetHostAgentScanResultRequest,GetHostAgentScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostAgentScanResult identified by the host agent scan ID.The result includes a list of CVEs detected in a specific compute instance.
- Specified by:
getHostAgentScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostCisBenchmarkScanResult
public Future<GetHostCisBenchmarkScanResultResponse> getHostCisBenchmarkScanResult(GetHostCisBenchmarkScanResultRequest request, AsyncHandler<GetHostCisBenchmarkScanResultRequest,GetHostCisBenchmarkScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostCisBenchmarkScanResult identified by the benchmark scan result ID.A CIS (Center for Internet Security) benchmark scan result includes a list of benchmarks that were tested on a specific compute instance, and whether each test passed or failed.
- Specified by:
getHostCisBenchmarkScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostEndpointProtectionScanResult
public Future<GetHostEndpointProtectionScanResultResponse> getHostEndpointProtectionScanResult(GetHostEndpointProtectionScanResultRequest request, AsyncHandler<GetHostEndpointProtectionScanResultRequest,GetHostEndpointProtectionScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Returns HostEndpointProtectionScanResults for the given host endpoint protection scan result ID.- Specified by:
getHostEndpointProtectionScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostPortScanResult
public Future<GetHostPortScanResultResponse> getHostPortScanResult(GetHostPortScanResultRequest request, AsyncHandler<GetHostPortScanResultRequest,GetHostPortScanResultResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostPortScanResult identified by the host port scan ID.The result includes a list of open ports that were detected in a specific compute instance.
- Specified by:
getHostPortScanResult
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostScanRecipe
public Future<GetHostScanRecipeResponse> getHostScanRecipe(GetHostScanRecipeRequest request, AsyncHandler<GetHostScanRecipeRequest,GetHostScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostScanRecipe identified by the recipe ID.A recipe determines the types of security issues that you want scanned, and how often to scan.
- Specified by:
getHostScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostScanTarget
public Future<GetHostScanTargetResponse> getHostScanTarget(GetHostScanTargetRequest request, AsyncHandler<GetHostScanTargetRequest,GetHostScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostScanTarget identified by the target ID.A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
- Specified by:
getHostScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getHostVulnerability
public Future<GetHostVulnerabilityResponse> getHostVulnerability(GetHostVulnerabilityRequest request, AsyncHandler<GetHostVulnerabilityRequest,GetHostVulnerabilityResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a HostVulnerability identified by the host vulnerability ID.A host vulnerability describes a security issue that was detected in scans of one or more compute instances. Common Vulnerabilities and Exposures (CVE) numbers identify security vulnerabilities for operating systems and other software, including Critical Patch Updates and Security Alert advisories.
- Specified by:
getHostVulnerability
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getVulnerability
public Future<GetVulnerabilityResponse> getVulnerability(GetVulnerabilityRequest request, AsyncHandler<GetVulnerabilityRequest,GetVulnerabilityResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a Vulnerability identified by the vulnerability ID.A vulnerability describes a security issue that was detected in scans of one or more compute instances, container scan repositories. Common Vulnerabilities and Exposures (CVE) numbers identify security vulnerabilities for operating systems and other software, including Critical Patch Updates and Security Alert advisories.
- Specified by:
getVulnerability
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWorkRequest
public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Gets the status of the work request with the given ID.- Specified by:
getWorkRequest
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listContainerScanRecipes
public Future<ListContainerScanRecipesResponse> listContainerScanRecipes(ListContainerScanRecipesRequest request, AsyncHandler<ListContainerScanRecipesRequest,ListContainerScanRecipesResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of ContainerScanRecipeSummary objects in a compartment.A recipe determines the types of security issues that you want scanned.
- Specified by:
listContainerScanRecipes
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listContainerScanResults
public Future<ListContainerScanResultsResponse> listContainerScanResults(ListContainerScanResultsRequest request, AsyncHandler<ListContainerScanResultsRequest,ListContainerScanResultsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of ContainerScanResultSummary objects in a compartment.You can filter and sort the results by problem severity and time. A container scan result includes a list of problems detected in a specific image in a Docker repository.
- Specified by:
listContainerScanResults
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listContainerScanTargets
public Future<ListContainerScanTargetsResponse> listContainerScanTargets(ListContainerScanTargetsRequest request, AsyncHandler<ListContainerScanTargetsRequest,ListContainerScanTargetsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of ContainerScanTargetSummary objects in a compartment.A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
- Specified by:
listContainerScanTargets
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostAgentScanResults
public Future<ListHostAgentScanResultsResponse> listHostAgentScanResults(ListHostAgentScanResultsRequest request, AsyncHandler<ListHostAgentScanResultsRequest,ListHostAgentScanResultsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostAgentScanResultSummary objects in a compartment.You can filter and sort the results by problem severity and time. An agent scan result includes a list of CVEs detected in a specific compute instance.
- Specified by:
listHostAgentScanResults
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostCisBenchmarkScanResults
public Future<ListHostCisBenchmarkScanResultsResponse> listHostCisBenchmarkScanResults(ListHostCisBenchmarkScanResultsRequest request, AsyncHandler<ListHostCisBenchmarkScanResultsRequest,ListHostCisBenchmarkScanResultsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostCisBenchmarkScanResultSummary objects in a compartment.You can filter and sort the results by problem severity and time. A CIS (Center for Internet Security) benchmark scan result includes the number of failed benchmark tests on a specific compute instance.
- Specified by:
listHostCisBenchmarkScanResults
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostEndpointProtectionScanResults
public Future<ListHostEndpointProtectionScanResultsResponse> listHostEndpointProtectionScanResults(ListHostEndpointProtectionScanResultsRequest request, AsyncHandler<ListHostEndpointProtectionScanResultsRequest,ListHostEndpointProtectionScanResultsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Returns a collection of HostEndpointProtectionScanResultSummary objects- Specified by:
listHostEndpointProtectionScanResults
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostPortScanResults
public Future<ListHostPortScanResultsResponse> listHostPortScanResults(ListHostPortScanResultsRequest request, AsyncHandler<ListHostPortScanResultsRequest,ListHostPortScanResultsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostPortScanResultSummary objects in a compartment.You can filter and sort the results by problem severity and time. A port scan result includes a list of open ports that were detected in a specific compute instance.
- Specified by:
listHostPortScanResults
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostScanRecipes
public Future<ListHostScanRecipesResponse> listHostScanRecipes(ListHostScanRecipesRequest request, AsyncHandler<ListHostScanRecipesRequest,ListHostScanRecipesResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostScanRecipeSummary objects in a compartment.A recipe determines the types of security issues that you want scanned, and how often to scan.
- Specified by:
listHostScanRecipes
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostScanTargetErrors
public Future<ListHostScanTargetErrorsResponse> listHostScanTargetErrors(ListHostScanTargetErrorsRequest request, AsyncHandler<ListHostScanTargetErrorsRequest,ListHostScanTargetErrorsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves list of errors during scanning on instances associated with HostScanTarget identified by the target ID.A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
- Specified by:
listHostScanTargetErrors
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostScanTargets
public Future<ListHostScanTargetsResponse> listHostScanTargets(ListHostScanTargetsRequest request, AsyncHandler<ListHostScanTargetsRequest,ListHostScanTargetsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostScanTargetSummary objects in a compartment.A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
- Specified by:
listHostScanTargets
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostVulnerabilities
public Future<ListHostVulnerabilitiesResponse> listHostVulnerabilities(ListHostVulnerabilitiesRequest request, AsyncHandler<ListHostVulnerabilitiesRequest,ListHostVulnerabilitiesResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostVulnerabilitySummary objects in a compartment.You can filter and sort the vulnerabilities by problem severity and time. A host vulnerability describes a security issue that was detected in scans of one or more compute instances.
- Specified by:
listHostVulnerabilities
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listHostVulnerabilityImpactedHosts
public Future<ListHostVulnerabilityImpactedHostsResponse> listHostVulnerabilityImpactedHosts(ListHostVulnerabilityImpactedHostsRequest request, AsyncHandler<ListHostVulnerabilityImpactedHostsRequest,ListHostVulnerabilityImpactedHostsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of HostVulnerabilityImpactedHostSummary objects for a specific host vulnerability ID.An impacted host summary identifies a compute instance on which the specified vulnerability was detected.
- Specified by:
listHostVulnerabilityImpactedHosts
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listVulnerabilities
public Future<ListVulnerabilitiesResponse> listVulnerabilities(ListVulnerabilitiesRequest request, AsyncHandler<ListVulnerabilitiesRequest,ListVulnerabilitiesResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of VulnerabilitySummary objects in a compartment.You can filter and sort the vulnerabilities by problem severity and time and type. A vulnerability describes a security issue that was detected in scans of one or more compute instances, container images.
- Specified by:
listVulnerabilities
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listVulnerabilityImpactedContainers
public Future<ListVulnerabilityImpactedContainersResponse> listVulnerabilityImpactedContainers(ListVulnerabilityImpactedContainersRequest request, AsyncHandler<ListVulnerabilityImpactedContainersRequest,ListVulnerabilityImpactedContainersResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of VulnerabilityImpactedContainerSummary objects for a specific vulnerability ID.An impacted container image summary identifies container images on which the specified vulnerability was detected.
- Specified by:
listVulnerabilityImpactedContainers
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listVulnerabilityImpactedHosts
public Future<ListVulnerabilityImpactedHostsResponse> listVulnerabilityImpactedHosts(ListVulnerabilityImpactedHostsRequest request, AsyncHandler<ListVulnerabilityImpactedHostsRequest,ListVulnerabilityImpactedHostsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Retrieves a list of VulnerabilityImpactedHostSummary objects for a specific host vulnerability ID.An impacted host summary identifies a compute instance on which the specified vulnerability was detected.
- Specified by:
listVulnerabilityImpactedHosts
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestErrors
public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Return a (paginated) list of errors for a given work request.- Specified by:
listWorkRequestErrors
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestLogs
public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Return a (paginated) list of logs for a given work request.- Specified by:
listWorkRequestLogs
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequests
public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Lists the work requests in a compartment.- Specified by:
listWorkRequests
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateContainerScanRecipe
public Future<UpdateContainerScanRecipeResponse> updateContainerScanRecipe(UpdateContainerScanRecipeRequest request, AsyncHandler<UpdateContainerScanRecipeRequest,UpdateContainerScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Updates the ContainerScanRecipe identified by the recipe ID.A recipe determines the types of security issues that you want scanned.
- Specified by:
updateContainerScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateContainerScanTarget
public Future<UpdateContainerScanTargetResponse> updateContainerScanTarget(UpdateContainerScanTargetRequest request, AsyncHandler<UpdateContainerScanTargetRequest,UpdateContainerScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Updates the ContainerScanTarget identified by the target ID.A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.
- Specified by:
updateContainerScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateHostScanRecipe
public Future<UpdateHostScanRecipeResponse> updateHostScanRecipe(UpdateHostScanRecipeRequest request, AsyncHandler<UpdateHostScanRecipeRequest,UpdateHostScanRecipeResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Updates the HostScanRecipe identified by the recipe ID.A recipe determines the types of security issues that you want scanned, and how often to scan.
- Specified by:
updateHostScanRecipe
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateHostScanTarget
public Future<UpdateHostScanTargetResponse> updateHostScanTarget(UpdateHostScanTargetRequest request, AsyncHandler<UpdateHostScanTargetRequest,UpdateHostScanTargetResponse> handler)
Description copied from interface:VulnerabilityScanningAsync
Updates the HostScanTarget identified by the target ID.A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
- Specified by:
updateHostScanTarget
in interfaceVulnerabilityScanningAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint
- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient
.This will call
ClientConfigurator
s again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
getMinimumClientCommonLibraryVersionFromClient
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
-
clientCall
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
-
-