@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public interface ManagedInstanceAsync extends AutoCloseable
Use the OS Management Hub API to manage and monitor updates and patches for instances in OCI, your private data center, or 3rd-party clouds. For more information, see Overview of OS Management Hub.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
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.
region
- The region of the service.void setRegion(String regionId)
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
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<AttachProfileToManagedInstanceResponse> attachProfileToManagedInstance(AttachProfileToManagedInstanceRequest request, AsyncHandler<AttachProfileToManagedInstanceRequest,AttachProfileToManagedInstanceResponse> handler)
Adds profile to a managed instance. After the profile has been added, the instance can be registered as a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<AttachSoftwareSourcesToManagedInstanceResponse> attachSoftwareSourcesToManagedInstance(AttachSoftwareSourcesToManagedInstanceRequest request, AsyncHandler<AttachSoftwareSourcesToManagedInstanceRequest,AttachSoftwareSourcesToManagedInstanceResponse> handler)
Adds software sources to a managed instance. After the software source has been added, then packages from that software source can be installed on the managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteManagedInstanceResponse> deleteManagedInstance(DeleteManagedInstanceRequest request, AsyncHandler<DeleteManagedInstanceRequest,DeleteManagedInstanceResponse> handler)
Unregisters the specified managed instance from the service. Once unregistered, the service will no longer manage the instance. For Linux instances, yum or DNF repository files will be restored to their state prior to registration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DetachProfileFromManagedInstanceResponse> detachProfileFromManagedInstance(DetachProfileFromManagedInstanceRequest request, AsyncHandler<DetachProfileFromManagedInstanceRequest,DetachProfileFromManagedInstanceResponse> handler)
Detaches profile from a managed instance. After the profile has been removed, the instance cannot be registered as a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DetachSoftwareSourcesFromManagedInstanceResponse> detachSoftwareSourcesFromManagedInstance(DetachSoftwareSourcesFromManagedInstanceRequest request, AsyncHandler<DetachSoftwareSourcesFromManagedInstanceRequest,DetachSoftwareSourcesFromManagedInstanceResponse> handler)
Removes software sources from a managed instance. Packages will no longer be able to be installed from these software sources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DisableModuleStreamOnManagedInstanceResponse> disableModuleStreamOnManagedInstance(DisableModuleStreamOnManagedInstanceRequest request, AsyncHandler<DisableModuleStreamOnManagedInstanceRequest,DisableModuleStreamOnManagedInstanceResponse> handler)
Disables a module stream on a managed instance. After the stream is disabled, it is no longer possible to install the profiles that are contained by the stream. All installed profiles must be removed prior to disabling a module stream.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<EnableModuleStreamOnManagedInstanceResponse> enableModuleStreamOnManagedInstance(EnableModuleStreamOnManagedInstanceRequest request, AsyncHandler<EnableModuleStreamOnManagedInstanceRequest,EnableModuleStreamOnManagedInstanceResponse> handler)
Enables a module stream on a managed instance. After the stream is enabled, it is possible to install the profiles that are contained by the stream. Enabling a stream that is already enabled will succeed. Attempting to enable a different stream for a module that already has a stream enabled results in an error.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetManagedInstanceResponse> getManagedInstance(GetManagedInstanceRequest request, AsyncHandler<GetManagedInstanceRequest,GetManagedInstanceResponse> handler)
Gets information about the specified managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWindowsUpdateResponse> getWindowsUpdate(GetWindowsUpdateRequest request, AsyncHandler<GetWindowsUpdateRequest,GetWindowsUpdateResponse> handler)
Returns a Windows Update object.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<InstallAllWindowsUpdatesOnManagedInstancesInCompartmentResponse> installAllWindowsUpdatesOnManagedInstancesInCompartment(InstallAllWindowsUpdatesOnManagedInstancesInCompartmentRequest request, AsyncHandler<InstallAllWindowsUpdatesOnManagedInstancesInCompartmentRequest,InstallAllWindowsUpdatesOnManagedInstancesInCompartmentResponse> handler)
Installs all of the available Windows updates for managed instances in a compartment. This applies only to standalone Windows instances. This will not update instances that belong to a group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<InstallModuleStreamProfileOnManagedInstanceResponse> installModuleStreamProfileOnManagedInstance(InstallModuleStreamProfileOnManagedInstanceRequest request, AsyncHandler<InstallModuleStreamProfileOnManagedInstanceRequest,InstallModuleStreamProfileOnManagedInstanceResponse> handler)
Installs a profile for an module stream. The stream must be enabled before a profile can be installed. If a module stream defines multiple profiles, each one can be installed independently.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<InstallPackagesOnManagedInstanceResponse> installPackagesOnManagedInstance(InstallPackagesOnManagedInstanceRequest request, AsyncHandler<InstallPackagesOnManagedInstanceRequest,InstallPackagesOnManagedInstanceResponse> handler)
Installs packages on a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<InstallWindowsUpdatesOnManagedInstanceResponse> installWindowsUpdatesOnManagedInstance(InstallWindowsUpdatesOnManagedInstanceRequest request, AsyncHandler<InstallWindowsUpdatesOnManagedInstanceRequest,InstallWindowsUpdatesOnManagedInstanceResponse> handler)
Installs Windows updates on the specified managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceAvailablePackagesResponse> listManagedInstanceAvailablePackages(ListManagedInstanceAvailablePackagesRequest request, AsyncHandler<ListManagedInstanceAvailablePackagesRequest,ListManagedInstanceAvailablePackagesResponse> handler)
Returns a list of packages that are available for installation on a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceAvailableSoftwareSourcesResponse> listManagedInstanceAvailableSoftwareSources(ListManagedInstanceAvailableSoftwareSourcesRequest request, AsyncHandler<ListManagedInstanceAvailableSoftwareSourcesRequest,ListManagedInstanceAvailableSoftwareSourcesResponse> handler)
Returns a list of software sources that can be attached to the specified managed instance. Any software sources already attached to the instance are not included in the list.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceAvailableWindowsUpdatesResponse> listManagedInstanceAvailableWindowsUpdates(ListManagedInstanceAvailableWindowsUpdatesRequest request, AsyncHandler<ListManagedInstanceAvailableWindowsUpdatesRequest,ListManagedInstanceAvailableWindowsUpdatesResponse> handler)
Returns a list of Windows updates that can be installed on the specified managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceErrataResponse> listManagedInstanceErrata(ListManagedInstanceErrataRequest request, AsyncHandler<ListManagedInstanceErrataRequest,ListManagedInstanceErrataResponse> handler)
Returns a list of applicable errata on the managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceInstalledPackagesResponse> listManagedInstanceInstalledPackages(ListManagedInstanceInstalledPackagesRequest request, AsyncHandler<ListManagedInstanceInstalledPackagesRequest,ListManagedInstanceInstalledPackagesResponse> handler)
Lists the packages that are installed on the managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceInstalledWindowsUpdatesResponse> listManagedInstanceInstalledWindowsUpdates(ListManagedInstanceInstalledWindowsUpdatesRequest request, AsyncHandler<ListManagedInstanceInstalledWindowsUpdatesRequest,ListManagedInstanceInstalledWindowsUpdatesResponse> handler)
Returns a list of Windows updates that have been installed on the specified managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceModulesResponse> listManagedInstanceModules(ListManagedInstanceModulesRequest request, AsyncHandler<ListManagedInstanceModulesRequest,ListManagedInstanceModulesResponse> handler)
Retrieves a list of modules, along with streams of the modules, from a managed instance. Filters may be applied to select a subset of modules based on the filter criteria.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstanceUpdatablePackagesResponse> listManagedInstanceUpdatablePackages(ListManagedInstanceUpdatablePackagesRequest request, AsyncHandler<ListManagedInstanceUpdatablePackagesRequest,ListManagedInstanceUpdatablePackagesResponse> handler)
Returns a list of updatable packages for a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListManagedInstancesResponse> listManagedInstances(ListManagedInstancesRequest request, AsyncHandler<ListManagedInstancesRequest,ListManagedInstancesResponse> handler)
Lists managed instances that match the specified compartment or managed instance OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWindowsUpdatesResponse> listWindowsUpdates(ListWindowsUpdatesRequest request, AsyncHandler<ListWindowsUpdatesRequest,ListWindowsUpdatesResponse> handler)
Lists Windows updates that have been reported to the service.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ManageModuleStreamsOnManagedInstanceResponse> manageModuleStreamsOnManagedInstance(ManageModuleStreamsOnManagedInstanceRequest request, AsyncHandler<ManageModuleStreamsOnManagedInstanceRequest,ManageModuleStreamsOnManagedInstanceResponse> handler)
Enables or disables module streams and installs or removes module stream profiles. Once
complete, the state of the modules, streams, and profiles will match the state indicated in
the operation. See manageModuleStreamsOnManagedInstanceDetails
for more information. You
can preform this operation as a dry run. For a dry run, the service evaluates the operation
against the current module, stream, and profile state on the managed instance, but does not
commit the changes. Instead, the service returns work request log or error entries indicating
the impact of the operation.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RefreshSoftwareOnManagedInstanceResponse> refreshSoftwareOnManagedInstance(RefreshSoftwareOnManagedInstanceRequest request, AsyncHandler<RefreshSoftwareOnManagedInstanceRequest,RefreshSoftwareOnManagedInstanceResponse> handler)
Refreshes the package or Windows update information on a managed instance with the latest data from the software source. This does not update packages on the instance. It provides the service with the latest package data.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RemoveModuleStreamProfileFromManagedInstanceResponse> removeModuleStreamProfileFromManagedInstance(RemoveModuleStreamProfileFromManagedInstanceRequest request, AsyncHandler<RemoveModuleStreamProfileFromManagedInstanceRequest,RemoveModuleStreamProfileFromManagedInstanceResponse> handler)
Removes a profile for a module stream that is installed on a managed instance. If a module stream is provided, rather than a fully qualified profile, all profiles that have been installed for the module stream will be removed.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RemovePackagesFromManagedInstanceResponse> removePackagesFromManagedInstance(RemovePackagesFromManagedInstanceRequest request, AsyncHandler<RemovePackagesFromManagedInstanceRequest,RemovePackagesFromManagedInstanceResponse> handler)
Removes an installed package from a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SwitchModuleStreamOnManagedInstanceResponse> switchModuleStreamOnManagedInstance(SwitchModuleStreamOnManagedInstanceRequest request, AsyncHandler<SwitchModuleStreamOnManagedInstanceRequest,SwitchModuleStreamOnManagedInstanceResponse> handler)
Enables a new stream for a module that already has a stream enabled. If any profiles or packages from the original module are installed, switching to a new stream will remove the existing packages and install their counterparts in the new stream.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateAllPackagesOnManagedInstancesInCompartmentResponse> updateAllPackagesOnManagedInstancesInCompartment(UpdateAllPackagesOnManagedInstancesInCompartmentRequest request, AsyncHandler<UpdateAllPackagesOnManagedInstancesInCompartmentRequest,UpdateAllPackagesOnManagedInstancesInCompartmentResponse> handler)
Install all of the available package updates for all of the managed instances in a compartment. This applies only to standalone non-Windows instances. This will not update instances that belong to a group or lifecycle environment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateManagedInstanceResponse> updateManagedInstance(UpdateManagedInstanceRequest request, AsyncHandler<UpdateManagedInstanceRequest,UpdateManagedInstanceResponse> handler)
Updates the specified managed instance information, such as description, ONS topic, and associated management station.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdatePackagesOnManagedInstanceResponse> updatePackagesOnManagedInstance(UpdatePackagesOnManagedInstanceRequest request, AsyncHandler<UpdatePackagesOnManagedInstanceRequest,UpdatePackagesOnManagedInstanceResponse> handler)
Updates a package on a managed instance.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.