Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagement.getManagedInstance
Explore with Pulumi AI
This data source provides details about a specific Managed Instance resource in Oracle Cloud Infrastructure OS Management service.
Returns a specific Managed Instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstance = oci.OsManagement.getManagedInstance({
    managedInstanceId: testManagedInstanceOciOsmanagementManagedInstance.id,
});
import pulumi
import pulumi_oci as oci
test_managed_instance = oci.OsManagement.get_managed_instance(managed_instance_id=test_managed_instance_oci_osmanagement_managed_instance["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagement.GetManagedInstance(ctx, &osmanagement.GetManagedInstanceArgs{
			ManagedInstanceId: testManagedInstanceOciOsmanagementManagedInstance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testManagedInstance = Oci.OsManagement.GetManagedInstance.Invoke(new()
    {
        ManagedInstanceId = testManagedInstanceOciOsmanagementManagedInstance.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagement.OsManagementFunctions;
import com.pulumi.oci.OsManagement.inputs.GetManagedInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testManagedInstance = OsManagementFunctions.getManagedInstance(GetManagedInstanceArgs.builder()
            .managedInstanceId(testManagedInstanceOciOsmanagementManagedInstance.id())
            .build());
    }
}
variables:
  testManagedInstance:
    fn::invoke:
      function: oci:OsManagement:getManagedInstance
      arguments:
        managedInstanceId: ${testManagedInstanceOciOsmanagementManagedInstance.id}
Using getManagedInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagedInstance(args: GetManagedInstanceArgs, opts?: InvokeOptions): Promise<GetManagedInstanceResult>
function getManagedInstanceOutput(args: GetManagedInstanceOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceResult>def get_managed_instance(managed_instance_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetManagedInstanceResult
def get_managed_instance_output(managed_instance_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceResult]func LookupManagedInstance(ctx *Context, args *LookupManagedInstanceArgs, opts ...InvokeOption) (*LookupManagedInstanceResult, error)
func LookupManagedInstanceOutput(ctx *Context, args *LookupManagedInstanceOutputArgs, opts ...InvokeOption) LookupManagedInstanceResultOutput> Note: This function is named LookupManagedInstance in the Go SDK.
public static class GetManagedInstance 
{
    public static Task<GetManagedInstanceResult> InvokeAsync(GetManagedInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceResult> Invoke(GetManagedInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstanceResult> getManagedInstance(GetManagedInstanceArgs args, InvokeOptions options)
public static Output<GetManagedInstanceResult> getManagedInstance(GetManagedInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getManagedInstance:getManagedInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- OCID for the managed instance
- ManagedInstance stringId 
- OCID for the managed instance
- managedInstance StringId 
- OCID for the managed instance
- managedInstance stringId 
- OCID for the managed instance
- managed_instance_ strid 
- OCID for the managed instance
- managedInstance StringId 
- OCID for the managed instance
getManagedInstance Result
The following output properties are available:
- Autonomouses
List<GetManaged Instance Autonomouse> 
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- BugUpdates intAvailable 
- Number of bug fix type updates available to be installed
- ChildSoftware List<GetSources Managed Instance Child Software Source> 
- list of child Software Sources attached to the Managed Instance
- CompartmentId string
- OCID for the Compartment
- Description string
- Information specified by the user about the managed instance
- DisplayName string
- User friendly name
- EnhancementUpdates intAvailable 
- Number of enhancement type updates available to be installed
- Id string
- software source identifier
- bool
- True if user allow data collection for this instance
- IsReboot boolRequired 
- Indicates whether a reboot is required to complete installation of updates.
- KspliceEffective stringKernel Version 
- The ksplice effective kernel version
- LastBoot string
- Time at which the instance last booted
- LastCheckin string
- Time at which the instance last checked in
- ManagedInstance List<GetGroups Managed Instance Managed Instance Group> 
- The ids of the managed instance groups of which this instance is a member.
- ManagedInstance stringId 
- NotificationTopic stringId 
- OCID of the ONS topic used to send notification to users
- OsFamily string
- The Operating System type of the managed instance.
- OsKernel stringVersion 
- Operating System Kernel Version
- OsName string
- Operating System Name
- OsVersion string
- Operating System Version
- OtherUpdates intAvailable 
- Number of non-classified updates available to be installed
- ParentSoftware List<GetSources Managed Instance Parent Software Source> 
- the parent (base) Software Source attached to the Managed Instance
- ScheduledJob intCount 
- Number of scheduled jobs associated with this instance
- SecurityUpdates intAvailable 
- Number of security type updates available to be installed
- Status string
- status of the managed instance.
- UpdatesAvailable int
- Number of updates available to be installed
- WorkRequest intCount 
- Number of work requests associated with this instance
- Autonomouses
[]GetManaged Instance Autonomouse 
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- BugUpdates intAvailable 
- Number of bug fix type updates available to be installed
- ChildSoftware []GetSources Managed Instance Child Software Source 
- list of child Software Sources attached to the Managed Instance
- CompartmentId string
- OCID for the Compartment
- Description string
- Information specified by the user about the managed instance
- DisplayName string
- User friendly name
- EnhancementUpdates intAvailable 
- Number of enhancement type updates available to be installed
- Id string
- software source identifier
- bool
- True if user allow data collection for this instance
- IsReboot boolRequired 
- Indicates whether a reboot is required to complete installation of updates.
- KspliceEffective stringKernel Version 
- The ksplice effective kernel version
- LastBoot string
- Time at which the instance last booted
- LastCheckin string
- Time at which the instance last checked in
- ManagedInstance []GetGroups Managed Instance Managed Instance Group 
- The ids of the managed instance groups of which this instance is a member.
- ManagedInstance stringId 
- NotificationTopic stringId 
- OCID of the ONS topic used to send notification to users
- OsFamily string
- The Operating System type of the managed instance.
- OsKernel stringVersion 
- Operating System Kernel Version
- OsName string
- Operating System Name
- OsVersion string
- Operating System Version
- OtherUpdates intAvailable 
- Number of non-classified updates available to be installed
- ParentSoftware []GetSources Managed Instance Parent Software Source 
- the parent (base) Software Source attached to the Managed Instance
- ScheduledJob intCount 
- Number of scheduled jobs associated with this instance
- SecurityUpdates intAvailable 
- Number of security type updates available to be installed
- Status string
- status of the managed instance.
- UpdatesAvailable int
- Number of updates available to be installed
- WorkRequest intCount 
- Number of work requests associated with this instance
- autonomouses
List<GetManaged Instance Autonomouse> 
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bugUpdates IntegerAvailable 
- Number of bug fix type updates available to be installed
- childSoftware List<GetSources Managed Instance Child Software Source> 
- list of child Software Sources attached to the Managed Instance
- compartmentId String
- OCID for the Compartment
- description String
- Information specified by the user about the managed instance
- displayName String
- User friendly name
- enhancementUpdates IntegerAvailable 
- Number of enhancement type updates available to be installed
- id String
- software source identifier
- Boolean
- True if user allow data collection for this instance
- isReboot BooleanRequired 
- Indicates whether a reboot is required to complete installation of updates.
- kspliceEffective StringKernel Version 
- The ksplice effective kernel version
- lastBoot String
- Time at which the instance last booted
- lastCheckin String
- Time at which the instance last checked in
- managedInstance List<GetGroups Managed Instance Managed Instance Group> 
- The ids of the managed instance groups of which this instance is a member.
- managedInstance StringId 
- notificationTopic StringId 
- OCID of the ONS topic used to send notification to users
- osFamily String
- The Operating System type of the managed instance.
- osKernel StringVersion 
- Operating System Kernel Version
- osName String
- Operating System Name
- osVersion String
- Operating System Version
- otherUpdates IntegerAvailable 
- Number of non-classified updates available to be installed
- parentSoftware List<GetSources Managed Instance Parent Software Source> 
- the parent (base) Software Source attached to the Managed Instance
- scheduledJob IntegerCount 
- Number of scheduled jobs associated with this instance
- securityUpdates IntegerAvailable 
- Number of security type updates available to be installed
- status String
- status of the managed instance.
- updatesAvailable Integer
- Number of updates available to be installed
- workRequest IntegerCount 
- Number of work requests associated with this instance
- autonomouses
GetManaged Instance Autonomouse[] 
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bugUpdates numberAvailable 
- Number of bug fix type updates available to be installed
- childSoftware GetSources Managed Instance Child Software Source[] 
- list of child Software Sources attached to the Managed Instance
- compartmentId string
- OCID for the Compartment
- description string
- Information specified by the user about the managed instance
- displayName string
- User friendly name
- enhancementUpdates numberAvailable 
- Number of enhancement type updates available to be installed
- id string
- software source identifier
- boolean
- True if user allow data collection for this instance
- isReboot booleanRequired 
- Indicates whether a reboot is required to complete installation of updates.
- kspliceEffective stringKernel Version 
- The ksplice effective kernel version
- lastBoot string
- Time at which the instance last booted
- lastCheckin string
- Time at which the instance last checked in
- managedInstance GetGroups Managed Instance Managed Instance Group[] 
- The ids of the managed instance groups of which this instance is a member.
- managedInstance stringId 
- notificationTopic stringId 
- OCID of the ONS topic used to send notification to users
- osFamily string
- The Operating System type of the managed instance.
- osKernel stringVersion 
- Operating System Kernel Version
- osName string
- Operating System Name
- osVersion string
- Operating System Version
- otherUpdates numberAvailable 
- Number of non-classified updates available to be installed
- parentSoftware GetSources Managed Instance Parent Software Source[] 
- the parent (base) Software Source attached to the Managed Instance
- scheduledJob numberCount 
- Number of scheduled jobs associated with this instance
- securityUpdates numberAvailable 
- Number of security type updates available to be installed
- status string
- status of the managed instance.
- updatesAvailable number
- Number of updates available to be installed
- workRequest numberCount 
- Number of work requests associated with this instance
- autonomouses
Sequence[GetManaged Instance Autonomouse] 
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bug_updates_ intavailable 
- Number of bug fix type updates available to be installed
- child_software_ Sequence[Getsources Managed Instance Child Software Source] 
- list of child Software Sources attached to the Managed Instance
- compartment_id str
- OCID for the Compartment
- description str
- Information specified by the user about the managed instance
- display_name str
- User friendly name
- enhancement_updates_ intavailable 
- Number of enhancement type updates available to be installed
- id str
- software source identifier
- bool
- True if user allow data collection for this instance
- is_reboot_ boolrequired 
- Indicates whether a reboot is required to complete installation of updates.
- ksplice_effective_ strkernel_ version 
- The ksplice effective kernel version
- last_boot str
- Time at which the instance last booted
- last_checkin str
- Time at which the instance last checked in
- managed_instance_ Sequence[Getgroups Managed Instance Managed Instance Group] 
- The ids of the managed instance groups of which this instance is a member.
- managed_instance_ strid 
- notification_topic_ strid 
- OCID of the ONS topic used to send notification to users
- os_family str
- The Operating System type of the managed instance.
- os_kernel_ strversion 
- Operating System Kernel Version
- os_name str
- Operating System Name
- os_version str
- Operating System Version
- other_updates_ intavailable 
- Number of non-classified updates available to be installed
- parent_software_ Sequence[Getsources Managed Instance Parent Software Source] 
- the parent (base) Software Source attached to the Managed Instance
- scheduled_job_ intcount 
- Number of scheduled jobs associated with this instance
- security_updates_ intavailable 
- Number of security type updates available to be installed
- status str
- status of the managed instance.
- updates_available int
- Number of updates available to be installed
- work_request_ intcount 
- Number of work requests associated with this instance
- autonomouses List<Property Map>
- if present, indicates the Managed Instance is an autonomous instance. Holds all the Autonomous specific information
- bugUpdates NumberAvailable 
- Number of bug fix type updates available to be installed
- childSoftware List<Property Map>Sources 
- list of child Software Sources attached to the Managed Instance
- compartmentId String
- OCID for the Compartment
- description String
- Information specified by the user about the managed instance
- displayName String
- User friendly name
- enhancementUpdates NumberAvailable 
- Number of enhancement type updates available to be installed
- id String
- software source identifier
- Boolean
- True if user allow data collection for this instance
- isReboot BooleanRequired 
- Indicates whether a reboot is required to complete installation of updates.
- kspliceEffective StringKernel Version 
- The ksplice effective kernel version
- lastBoot String
- Time at which the instance last booted
- lastCheckin String
- Time at which the instance last checked in
- managedInstance List<Property Map>Groups 
- The ids of the managed instance groups of which this instance is a member.
- managedInstance StringId 
- notificationTopic StringId 
- OCID of the ONS topic used to send notification to users
- osFamily String
- The Operating System type of the managed instance.
- osKernel StringVersion 
- Operating System Kernel Version
- osName String
- Operating System Name
- osVersion String
- Operating System Version
- otherUpdates NumberAvailable 
- Number of non-classified updates available to be installed
- parentSoftware List<Property Map>Sources 
- the parent (base) Software Source attached to the Managed Instance
- scheduledJob NumberCount 
- Number of scheduled jobs associated with this instance
- securityUpdates NumberAvailable 
- Number of security type updates available to be installed
- status String
- status of the managed instance.
- updatesAvailable Number
- Number of updates available to be installed
- workRequest NumberCount 
- Number of work requests associated with this instance
Supporting Types
GetManagedInstanceAutonomouse   
- IsAuto boolUpdate Enabled 
- True if daily updates are enabled
- IsAuto boolUpdate Enabled 
- True if daily updates are enabled
- isAuto BooleanUpdate Enabled 
- True if daily updates are enabled
- isAuto booleanUpdate Enabled 
- True if daily updates are enabled
- is_auto_ boolupdate_ enabled 
- True if daily updates are enabled
- isAuto BooleanUpdate Enabled 
- True if daily updates are enabled
GetManagedInstanceChildSoftwareSource     
GetManagedInstanceManagedInstanceGroup     
- DisplayName string
- User friendly name
- Id string
- software source identifier
- DisplayName string
- User friendly name
- Id string
- software source identifier
- displayName String
- User friendly name
- id String
- software source identifier
- displayName string
- User friendly name
- id string
- software source identifier
- display_name str
- User friendly name
- id str
- software source identifier
- displayName String
- User friendly name
- id String
- software source identifier
GetManagedInstanceParentSoftwareSource     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.