Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.OsManagement.getManagedInstances
Explore with Pulumi AI
This data source provides the list of Managed Instances in Oracle Cloud Infrastructure OS Management service.
Returns a list of all Managed Instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstances = oci.OsManagement.getManagedInstances({
    compartmentId: compartmentId,
    displayName: managedInstanceDisplayName,
    osFamily: managedInstanceOsFamily,
});
import pulumi
import pulumi_oci as oci
test_managed_instances = oci.OsManagement.get_managed_instances(compartment_id=compartment_id,
    display_name=managed_instance_display_name,
    os_family=managed_instance_os_family)
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.GetManagedInstances(ctx, &osmanagement.GetManagedInstancesArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(managedInstanceDisplayName),
			OsFamily:      pulumi.StringRef(managedInstanceOsFamily),
		}, 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 testManagedInstances = Oci.OsManagement.GetManagedInstances.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = managedInstanceDisplayName,
        OsFamily = managedInstanceOsFamily,
    });
});
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.GetManagedInstancesArgs;
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 testManagedInstances = OsManagementFunctions.getManagedInstances(GetManagedInstancesArgs.builder()
            .compartmentId(compartmentId)
            .displayName(managedInstanceDisplayName)
            .osFamily(managedInstanceOsFamily)
            .build());
    }
}
variables:
  testManagedInstances:
    fn::invoke:
      function: oci:OsManagement:getManagedInstances
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${managedInstanceDisplayName}
        osFamily: ${managedInstanceOsFamily}
Using getManagedInstances
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 getManagedInstances(args: GetManagedInstancesArgs, opts?: InvokeOptions): Promise<GetManagedInstancesResult>
function getManagedInstancesOutput(args: GetManagedInstancesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstancesResult>def get_managed_instances(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          filters: Optional[Sequence[_osmanagement.GetManagedInstancesFilter]] = None,
                          os_family: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetManagedInstancesResult
def get_managed_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          display_name: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagement.GetManagedInstancesFilterArgs]]]] = None,
                          os_family: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstancesResult]func GetManagedInstances(ctx *Context, args *GetManagedInstancesArgs, opts ...InvokeOption) (*GetManagedInstancesResult, error)
func GetManagedInstancesOutput(ctx *Context, args *GetManagedInstancesOutputArgs, opts ...InvokeOption) GetManagedInstancesResultOutput> Note: This function is named GetManagedInstances in the Go SDK.
public static class GetManagedInstances 
{
    public static Task<GetManagedInstancesResult> InvokeAsync(GetManagedInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstancesResult> Invoke(GetManagedInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstancesResult> getManagedInstances(GetManagedInstancesArgs args, InvokeOptions options)
public static Output<GetManagedInstancesResult> getManagedInstances(GetManagedInstancesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagement/getManagedInstances:getManagedInstances
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- Filters
List<GetManaged Instances Filter> 
- OsFamily string
- The OS family for which to list resources.
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- Filters
[]GetManaged Instances Filter 
- OsFamily string
- The OS family for which to list resources.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- filters
List<GetManaged Instances Filter> 
- osFamily String
- The OS family for which to list resources.
- compartmentId string
- The ID of the compartment in which to list resources.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- filters
GetManaged Instances Filter[] 
- osFamily string
- The OS family for which to list resources.
- compartment_id str
- The ID of the compartment in which to list resources.
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- filters
Sequence[osmanagement.Get Managed Instances Filter] 
- os_family str
- The OS family for which to list resources.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- filters List<Property Map>
- osFamily String
- The OS family for which to list resources.
getManagedInstances Result
The following output properties are available:
- CompartmentId string
- OCID for the Compartment
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstances List<GetManaged Instances Managed Instance> 
- The list of managed_instances.
- DisplayName string
- User friendly name
- Filters
List<GetManaged Instances Filter> 
- OsFamily string
- The Operating System type of the managed instance.
- CompartmentId string
- OCID for the Compartment
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstances []GetManaged Instances Managed Instance 
- The list of managed_instances.
- DisplayName string
- User friendly name
- Filters
[]GetManaged Instances Filter 
- OsFamily string
- The Operating System type of the managed instance.
- compartmentId String
- OCID for the Compartment
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstances List<GetManaged Instances Managed Instance> 
- The list of managed_instances.
- displayName String
- User friendly name
- filters
List<GetManaged Instances Filter> 
- osFamily String
- The Operating System type of the managed instance.
- compartmentId string
- OCID for the Compartment
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstances GetManaged Instances Managed Instance[] 
- The list of managed_instances.
- displayName string
- User friendly name
- filters
GetManaged Instances Filter[] 
- osFamily string
- The Operating System type of the managed instance.
- compartment_id str
- OCID for the Compartment
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instances Sequence[osmanagement.Get Managed Instances Managed Instance] 
- The list of managed_instances.
- display_name str
- User friendly name
- filters
Sequence[osmanagement.Get Managed Instances Filter] 
- os_family str
- The Operating System type of the managed instance.
- compartmentId String
- OCID for the Compartment
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstances List<Property Map>
- The list of managed_instances.
- displayName String
- User friendly name
- filters List<Property Map>
- osFamily String
- The Operating System type of the managed instance.
Supporting Types
GetManagedInstancesFilter   
GetManagedInstancesManagedInstance    
- Autonomouses
List<GetManaged Instances Managed 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 Instances Managed Instance Child Software Source> 
- list of child Software Sources attached to the Managed Instance
- CompartmentId string
- The ID of the compartment in which to list resources.
- Description string
- Information specified by the user about the managed instance
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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 Instances 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 OS family for which to list resources.
- 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 Instances 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 Instances Managed 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 Instances Managed Instance Child Software Source 
- list of child Software Sources attached to the Managed Instance
- CompartmentId string
- The ID of the compartment in which to list resources.
- Description string
- Information specified by the user about the managed instance
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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 Instances 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 OS family for which to list resources.
- 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 Instances 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 Instances Managed 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 Instances Managed Instance Child Software Source> 
- list of child Software Sources attached to the Managed Instance
- compartmentId String
- The ID of the compartment in which to list resources.
- description String
- Information specified by the user about the managed instance
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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 Instances 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 OS family for which to list resources.
- 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 Instances 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 Instances Managed 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 Instances Managed Instance Child Software Source[] 
- list of child Software Sources attached to the Managed Instance
- compartmentId string
- The ID of the compartment in which to list resources.
- description string
- Information specified by the user about the managed instance
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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 Instances 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 OS family for which to list resources.
- 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 Instances 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[osmanagement.Get Managed Instances Managed 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[osmanagement.sources Get Managed Instances Managed Instance Child Software Source] 
- list of child Software Sources attached to the Managed Instance
- compartment_id str
- The ID of the compartment in which to list resources.
- description str
- Information specified by the user about the managed instance
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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[osmanagement.groups Get Managed Instances 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 OS family for which to list resources.
- 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[osmanagement.sources Get Managed Instances 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
- The ID of the compartment in which to list resources.
- description String
- Information specified by the user about the managed instance
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- 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 OS family for which to list resources.
- 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
GetManagedInstancesManagedInstanceAutonomouse     
- 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
GetManagedInstancesManagedInstanceChildSoftwareSource       
GetManagedInstancesManagedInstanceManagedInstanceGroup       
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- Id string
- software source identifier
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- Id string
- software source identifier
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- id String
- software source identifier
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- id string
- software source identifier
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- id str
- software source identifier
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- id String
- software source identifier
GetManagedInstancesManagedInstanceParentSoftwareSource       
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.