@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 an InputStream
, 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
Modifier and Type | Class and Description |
---|---|
static class |
VulnerabilityScanningAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and 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 and Description |
---|
VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for VulnerabilityScanning.
public final String clientCommonLibraryVersion
@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public VulnerabilityScanningAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.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)
@Deprecated public VulnerabilityScanningAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see VulnerabilityScanningAsyncClient.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
public static VulnerabilityScanningAsyncClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
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.
setRegion
in interface VulnerabilityScanningAsync
region
- The region of the service.public void setRegion(String regionId)
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 call setEndpoint
.
setRegion
in interface VulnerabilityScanningAsync
regionId
- The public region ID.public Future<ChangeContainerScanRecipeCompartmentResponse> changeContainerScanRecipeCompartment(ChangeContainerScanRecipeCompartmentRequest request, AsyncHandler<ChangeContainerScanRecipeCompartmentRequest,ChangeContainerScanRecipeCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a ContainerScanRecipe into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeContainerScanRecipeCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeContainerScanResultCompartmentResponse> changeContainerScanResultCompartment(ChangeContainerScanResultCompartmentRequest request, AsyncHandler<ChangeContainerScanResultCompartmentRequest,ChangeContainerScanResultCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a ContainerScanResult into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeContainerScanResultCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeContainerScanTargetCompartmentResponse> changeContainerScanTargetCompartment(ChangeContainerScanTargetCompartmentRequest request, AsyncHandler<ChangeContainerScanTargetCompartmentRequest,ChangeContainerScanTargetCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a ContainerScanTarget into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeContainerScanTargetCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostAgentScanResultCompartmentResponse> changeHostAgentScanResultCompartment(ChangeHostAgentScanResultCompartmentRequest request, AsyncHandler<ChangeHostAgentScanResultCompartmentRequest,ChangeHostAgentScanResultCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostAgentScanResult into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostAgentScanResultCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostCisBenchmarkScanResultCompartmentResponse> changeHostCisBenchmarkScanResultCompartment(ChangeHostCisBenchmarkScanResultCompartmentRequest request, AsyncHandler<ChangeHostCisBenchmarkScanResultCompartmentRequest,ChangeHostCisBenchmarkScanResultCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostCisBenchmarkScanResult into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostCisBenchmarkScanResultCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostEndpointProtectionScanResultCompartmentResponse> changeHostEndpointProtectionScanResultCompartment(ChangeHostEndpointProtectionScanResultCompartmentRequest request, AsyncHandler<ChangeHostEndpointProtectionScanResultCompartmentRequest,ChangeHostEndpointProtectionScanResultCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostEndpointProtectionScanResult into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostEndpointProtectionScanResultCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostPortScanResultCompartmentResponse> changeHostPortScanResultCompartment(ChangeHostPortScanResultCompartmentRequest request, AsyncHandler<ChangeHostPortScanResultCompartmentRequest,ChangeHostPortScanResultCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostPortScanResult into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostPortScanResultCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostScanRecipeCompartmentResponse> changeHostScanRecipeCompartment(ChangeHostScanRecipeCompartmentRequest request, AsyncHandler<ChangeHostScanRecipeCompartmentRequest,ChangeHostScanRecipeCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostScanRecipe into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostScanRecipeCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeHostScanTargetCompartmentResponse> changeHostScanTargetCompartment(ChangeHostScanTargetCompartmentRequest request, AsyncHandler<ChangeHostScanTargetCompartmentRequest,ChangeHostScanTargetCompartmentResponse> handler)
VulnerabilityScanningAsync
Moves a HostScanTarget into a different compartment. When provided, If-Match is checked against ETag values of the resource.
changeHostScanTargetCompartment
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateContainerScanRecipeResponse> createContainerScanRecipe(CreateContainerScanRecipeRequest request, AsyncHandler<CreateContainerScanRecipeRequest,CreateContainerScanRecipeResponse> handler)
VulnerabilityScanningAsync
Creates a new ContainerScanRecipe. A recipe determines the types of security issues that you want scanned.
createContainerScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateContainerScanTargetResponse> createContainerScanTarget(CreateContainerScanTargetRequest request, AsyncHandler<CreateContainerScanTargetRequest,CreateContainerScanTargetResponse> handler)
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.
createContainerScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateHostScanRecipeResponse> createHostScanRecipe(CreateHostScanRecipeRequest request, AsyncHandler<CreateHostScanRecipeRequest,CreateHostScanRecipeResponse> handler)
VulnerabilityScanningAsync
Creates a new HostScanRecipe. A recipe determines the types of security issues that you want scanned, and how often to scan.
createHostScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateHostScanTargetResponse> createHostScanTarget(CreateHostScanTargetRequest request, AsyncHandler<CreateHostScanTargetRequest,CreateHostScanTargetResponse> handler)
VulnerabilityScanningAsync
Creates a new HostScanTarget. A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.
createHostScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteContainerScanRecipeResponse> deleteContainerScanRecipe(DeleteContainerScanRecipeRequest request, AsyncHandler<DeleteContainerScanRecipeRequest,DeleteContainerScanRecipeResponse> handler)
VulnerabilityScanningAsync
Deletes the ContainerScanRecipe identified by the recipe ID.
deleteContainerScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteContainerScanResultResponse> deleteContainerScanResult(DeleteContainerScanResultRequest request, AsyncHandler<DeleteContainerScanResultRequest,DeleteContainerScanResultResponse> handler)
VulnerabilityScanningAsync
Deletes the ContainerScanResult identified by the container scan ID.
deleteContainerScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteContainerScanTargetResponse> deleteContainerScanTarget(DeleteContainerScanTargetRequest request, AsyncHandler<DeleteContainerScanTargetRequest,DeleteContainerScanTargetResponse> handler)
VulnerabilityScanningAsync
Deletes the ContainerScanTarget identified by the target ID.
deleteContainerScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostAgentScanResultResponse> deleteHostAgentScanResult(DeleteHostAgentScanResultRequest request, AsyncHandler<DeleteHostAgentScanResultRequest,DeleteHostAgentScanResultResponse> handler)
VulnerabilityScanningAsync
Deletes the HostAgentScanResult identified by the host agent scan ID.
deleteHostAgentScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostCisBenchmarkScanResultResponse> deleteHostCisBenchmarkScanResult(DeleteHostCisBenchmarkScanResultRequest request, AsyncHandler<DeleteHostCisBenchmarkScanResultRequest,DeleteHostCisBenchmarkScanResultResponse> handler)
VulnerabilityScanningAsync
Deletes the HostCisBenchmarkScanResult identified by the benchmark scan result ID.
deleteHostCisBenchmarkScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostEndpointProtectionScanResultResponse> deleteHostEndpointProtectionScanResult(DeleteHostEndpointProtectionScanResultRequest request, AsyncHandler<DeleteHostEndpointProtectionScanResultRequest,DeleteHostEndpointProtectionScanResultResponse> handler)
VulnerabilityScanningAsync
Deletes the HostEndpointProtectionScanResult identified by the id
deleteHostEndpointProtectionScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostPortScanResultResponse> deleteHostPortScanResult(DeleteHostPortScanResultRequest request, AsyncHandler<DeleteHostPortScanResultRequest,DeleteHostPortScanResultResponse> handler)
VulnerabilityScanningAsync
Deletes the HostPortScanResult identified by the host port scan ID.
deleteHostPortScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostScanRecipeResponse> deleteHostScanRecipe(DeleteHostScanRecipeRequest request, AsyncHandler<DeleteHostScanRecipeRequest,DeleteHostScanRecipeResponse> handler)
VulnerabilityScanningAsync
Deletes the HostScanRecipe identified by the recipe ID.
deleteHostScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteHostScanTargetResponse> deleteHostScanTarget(DeleteHostScanTargetRequest request, AsyncHandler<DeleteHostScanTargetRequest,DeleteHostScanTargetResponse> handler)
VulnerabilityScanningAsync
Deletes the HostScanTarget identified by the target ID.
deleteHostScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ExportHostAgentScanResultCsvResponse> exportHostAgentScanResultCsv(ExportHostAgentScanResultCsvRequest request, AsyncHandler<ExportHostAgentScanResultCsvRequest,ExportHostAgentScanResultCsvResponse> handler)
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.
exportHostAgentScanResultCsv
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ExportHostVulnerabilityCsvResponse> exportHostVulnerabilityCsv(ExportHostVulnerabilityCsvRequest request, AsyncHandler<ExportHostVulnerabilityCsvRequest,ExportHostVulnerabilityCsvResponse> handler)
VulnerabilityScanningAsync
Exports a list of HostVulnerabilitySummary objects in a compartment in CSV format.
exportHostVulnerabilityCsv
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetContainerScanRecipeResponse> getContainerScanRecipe(GetContainerScanRecipeRequest request, AsyncHandler<GetContainerScanRecipeRequest,GetContainerScanRecipeResponse> handler)
VulnerabilityScanningAsync
Retrieves a ContainerScanRecipe identified by the recipe ID. A recipe determines the types of security issues that you want scanned.
getContainerScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetContainerScanResultResponse> getContainerScanResult(GetContainerScanResultRequest request, AsyncHandler<GetContainerScanResultRequest,GetContainerScanResultResponse> handler)
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.
getContainerScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetContainerScanTargetResponse> getContainerScanTarget(GetContainerScanTargetRequest request, AsyncHandler<GetContainerScanTargetRequest,GetContainerScanTargetResponse> handler)
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.
getContainerScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostAgentScanResultResponse> getHostAgentScanResult(GetHostAgentScanResultRequest request, AsyncHandler<GetHostAgentScanResultRequest,GetHostAgentScanResultResponse> handler)
VulnerabilityScanningAsync
Retrieves a HostAgentScanResult identified by the host agent scan ID. The result includes a list of CVEs detected in a specific compute instance.
getHostAgentScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostCisBenchmarkScanResultResponse> getHostCisBenchmarkScanResult(GetHostCisBenchmarkScanResultRequest request, AsyncHandler<GetHostCisBenchmarkScanResultRequest,GetHostCisBenchmarkScanResultResponse> handler)
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.
getHostCisBenchmarkScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostEndpointProtectionScanResultResponse> getHostEndpointProtectionScanResult(GetHostEndpointProtectionScanResultRequest request, AsyncHandler<GetHostEndpointProtectionScanResultRequest,GetHostEndpointProtectionScanResultResponse> handler)
VulnerabilityScanningAsync
Returns HostEndpointProtectionScanResults for the given host endpoint protection scan result ID.
getHostEndpointProtectionScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostPortScanResultResponse> getHostPortScanResult(GetHostPortScanResultRequest request, AsyncHandler<GetHostPortScanResultRequest,GetHostPortScanResultResponse> handler)
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.
getHostPortScanResult
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostScanRecipeResponse> getHostScanRecipe(GetHostScanRecipeRequest request, AsyncHandler<GetHostScanRecipeRequest,GetHostScanRecipeResponse> handler)
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.
getHostScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostScanTargetResponse> getHostScanTarget(GetHostScanTargetRequest request, AsyncHandler<GetHostScanTargetRequest,GetHostScanTargetResponse> handler)
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.
getHostScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetHostVulnerabilityResponse> getHostVulnerability(GetHostVulnerabilityRequest request, AsyncHandler<GetHostVulnerabilityRequest,GetHostVulnerabilityResponse> handler)
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.
getHostVulnerability
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetVulnerabilityResponse> getVulnerability(GetVulnerabilityRequest request, AsyncHandler<GetVulnerabilityRequest,GetVulnerabilityResponse> handler)
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.
getVulnerability
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
VulnerabilityScanningAsync
Gets the status of the work request with the given ID.
getWorkRequest
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListContainerScanRecipesResponse> listContainerScanRecipes(ListContainerScanRecipesRequest request, AsyncHandler<ListContainerScanRecipesRequest,ListContainerScanRecipesResponse> handler)
VulnerabilityScanningAsync
Retrieves a list of ContainerScanRecipeSummary objects in a compartment. A recipe determines the types of security issues that you want scanned.
listContainerScanRecipes
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListContainerScanResultsResponse> listContainerScanResults(ListContainerScanResultsRequest request, AsyncHandler<ListContainerScanResultsRequest,ListContainerScanResultsResponse> handler)
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.
listContainerScanResults
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListContainerScanTargetsResponse> listContainerScanTargets(ListContainerScanTargetsRequest request, AsyncHandler<ListContainerScanTargetsRequest,ListContainerScanTargetsResponse> handler)
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.
listContainerScanTargets
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostAgentScanResultsResponse> listHostAgentScanResults(ListHostAgentScanResultsRequest request, AsyncHandler<ListHostAgentScanResultsRequest,ListHostAgentScanResultsResponse> handler)
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.
listHostAgentScanResults
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostCisBenchmarkScanResultsResponse> listHostCisBenchmarkScanResults(ListHostCisBenchmarkScanResultsRequest request, AsyncHandler<ListHostCisBenchmarkScanResultsRequest,ListHostCisBenchmarkScanResultsResponse> handler)
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.
listHostCisBenchmarkScanResults
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostEndpointProtectionScanResultsResponse> listHostEndpointProtectionScanResults(ListHostEndpointProtectionScanResultsRequest request, AsyncHandler<ListHostEndpointProtectionScanResultsRequest,ListHostEndpointProtectionScanResultsResponse> handler)
VulnerabilityScanningAsync
Returns a collection of HostEndpointProtectionScanResultSummary objects
listHostEndpointProtectionScanResults
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostPortScanResultsResponse> listHostPortScanResults(ListHostPortScanResultsRequest request, AsyncHandler<ListHostPortScanResultsRequest,ListHostPortScanResultsResponse> handler)
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.
listHostPortScanResults
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostScanRecipesResponse> listHostScanRecipes(ListHostScanRecipesRequest request, AsyncHandler<ListHostScanRecipesRequest,ListHostScanRecipesResponse> handler)
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.
listHostScanRecipes
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostScanTargetErrorsResponse> listHostScanTargetErrors(ListHostScanTargetErrorsRequest request, AsyncHandler<ListHostScanTargetErrorsRequest,ListHostScanTargetErrorsResponse> handler)
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.
listHostScanTargetErrors
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostScanTargetsResponse> listHostScanTargets(ListHostScanTargetsRequest request, AsyncHandler<ListHostScanTargetsRequest,ListHostScanTargetsResponse> handler)
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.
listHostScanTargets
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostVulnerabilitiesResponse> listHostVulnerabilities(ListHostVulnerabilitiesRequest request, AsyncHandler<ListHostVulnerabilitiesRequest,ListHostVulnerabilitiesResponse> handler)
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.
listHostVulnerabilities
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListHostVulnerabilityImpactedHostsResponse> listHostVulnerabilityImpactedHosts(ListHostVulnerabilityImpactedHostsRequest request, AsyncHandler<ListHostVulnerabilityImpactedHostsRequest,ListHostVulnerabilityImpactedHostsResponse> handler)
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.
listHostVulnerabilityImpactedHosts
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListVulnerabilitiesResponse> listVulnerabilities(ListVulnerabilitiesRequest request, AsyncHandler<ListVulnerabilitiesRequest,ListVulnerabilitiesResponse> handler)
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.
listVulnerabilities
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListVulnerabilityImpactedContainersResponse> listVulnerabilityImpactedContainers(ListVulnerabilityImpactedContainersRequest request, AsyncHandler<ListVulnerabilityImpactedContainersRequest,ListVulnerabilityImpactedContainersResponse> handler)
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.
listVulnerabilityImpactedContainers
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListVulnerabilityImpactedHostsResponse> listVulnerabilityImpactedHosts(ListVulnerabilityImpactedHostsRequest request, AsyncHandler<ListVulnerabilityImpactedHostsRequest,ListVulnerabilityImpactedHostsResponse> handler)
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.
listVulnerabilityImpactedHosts
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
VulnerabilityScanningAsync
Return a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
VulnerabilityScanningAsync
Return a (paginated) list of logs for a given work request.
listWorkRequestLogs
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
VulnerabilityScanningAsync
Lists the work requests in a compartment.
listWorkRequests
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateContainerScanRecipeResponse> updateContainerScanRecipe(UpdateContainerScanRecipeRequest request, AsyncHandler<UpdateContainerScanRecipeRequest,UpdateContainerScanRecipeResponse> handler)
VulnerabilityScanningAsync
Updates the ContainerScanRecipe identified by the recipe ID. A recipe determines the types of security issues that you want scanned.
updateContainerScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateContainerScanTargetResponse> updateContainerScanTarget(UpdateContainerScanTargetRequest request, AsyncHandler<UpdateContainerScanTargetRequest,UpdateContainerScanTargetResponse> handler)
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.
updateContainerScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateHostScanRecipeResponse> updateHostScanRecipe(UpdateHostScanRecipeRequest request, AsyncHandler<UpdateHostScanRecipeRequest,UpdateHostScanRecipeResponse> handler)
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.
updateHostScanRecipe
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateHostScanTargetResponse> updateHostScanTarget(UpdateHostScanTargetRequest request, AsyncHandler<UpdateHostScanTargetRequest,UpdateHostScanTargetResponse> handler)
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.
updateHostScanTarget
in interface VulnerabilityScanningAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
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)
Copyright © 2016–2024. All rights reserved.