Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagedInstanceModules
Explore with Pulumi AI
This data source provides the list of Managed Instance Modules in Oracle Cloud Infrastructure Os Management Hub service.
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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceModules = oci.OsManagementHub.getManagedInstanceModules({
    managedInstanceId: testManagedInstance.id,
    compartmentId: compartmentId,
    name: managedInstanceModuleName,
    nameContains: managedInstanceModuleNameContains,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_modules = oci.OsManagementHub.get_managed_instance_modules(managed_instance_id=test_managed_instance["id"],
    compartment_id=compartment_id,
    name=managed_instance_module_name,
    name_contains=managed_instance_module_name_contains)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetManagedInstanceModules(ctx, &osmanagementhub.GetManagedInstanceModulesArgs{
			ManagedInstanceId: testManagedInstance.Id,
			CompartmentId:     pulumi.StringRef(compartmentId),
			Name:              pulumi.StringRef(managedInstanceModuleName),
			NameContains:      pulumi.StringRef(managedInstanceModuleNameContains),
		}, 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 testManagedInstanceModules = Oci.OsManagementHub.GetManagedInstanceModules.Invoke(new()
    {
        ManagedInstanceId = testManagedInstance.Id,
        CompartmentId = compartmentId,
        Name = managedInstanceModuleName,
        NameContains = managedInstanceModuleNameContains,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetManagedInstanceModulesArgs;
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 testManagedInstanceModules = OsManagementHubFunctions.getManagedInstanceModules(GetManagedInstanceModulesArgs.builder()
            .managedInstanceId(testManagedInstance.id())
            .compartmentId(compartmentId)
            .name(managedInstanceModuleName)
            .nameContains(managedInstanceModuleNameContains)
            .build());
    }
}
variables:
  testManagedInstanceModules:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceModules
      arguments:
        managedInstanceId: ${testManagedInstance.id}
        compartmentId: ${compartmentId}
        name: ${managedInstanceModuleName}
        nameContains: ${managedInstanceModuleNameContains}
Using getManagedInstanceModules
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 getManagedInstanceModules(args: GetManagedInstanceModulesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceModulesResult>
function getManagedInstanceModulesOutput(args: GetManagedInstanceModulesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceModulesResult>def get_managed_instance_modules(compartment_id: Optional[str] = None,
                                 filters: Optional[Sequence[GetManagedInstanceModulesFilter]] = None,
                                 managed_instance_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 name_contains: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetManagedInstanceModulesResult
def get_managed_instance_modules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetManagedInstanceModulesFilterArgs]]]] = None,
                                 managed_instance_id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 name_contains: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceModulesResult]func GetManagedInstanceModules(ctx *Context, args *GetManagedInstanceModulesArgs, opts ...InvokeOption) (*GetManagedInstanceModulesResult, error)
func GetManagedInstanceModulesOutput(ctx *Context, args *GetManagedInstanceModulesOutputArgs, opts ...InvokeOption) GetManagedInstanceModulesResultOutput> Note: This function is named GetManagedInstanceModules in the Go SDK.
public static class GetManagedInstanceModules 
{
    public static Task<GetManagedInstanceModulesResult> InvokeAsync(GetManagedInstanceModulesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceModulesResult> Invoke(GetManagedInstanceModulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstanceModulesResult> getManagedInstanceModules(GetManagedInstanceModulesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceModulesResult> getManagedInstanceModules(GetManagedInstanceModulesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceModules:getManagedInstanceModules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- The OCID of the managed instance.
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
List<GetManaged Instance Modules Filter> 
- Name string
- The resource name.
- NameContains string
- A filter to return resources that may partially match the name given.
- ManagedInstance stringId 
- The OCID of the managed instance.
- CompartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
[]GetManaged Instance Modules Filter 
- Name string
- The resource name.
- NameContains string
- A filter to return resources that may partially match the name given.
- managedInstance StringId 
- The OCID of the managed instance.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
List<GetManaged Instance Modules Filter> 
- name String
- The resource name.
- nameContains String
- A filter to return resources that may partially match the name given.
- managedInstance stringId 
- The OCID of the managed instance.
- compartmentId string
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
GetManaged Instance Modules Filter[] 
- name string
- The resource name.
- nameContains string
- A filter to return resources that may partially match the name given.
- managed_instance_ strid 
- The OCID of the managed instance.
- compartment_id str
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
Sequence[GetManaged Instance Modules Filter] 
- name str
- The resource name.
- name_contains str
- A filter to return resources that may partially match the name given.
- managedInstance StringId 
- The OCID of the managed instance.
- compartmentId String
- The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters List<Property Map>
- name String
- The resource name.
- nameContains String
- A filter to return resources that may partially match the name given.
getManagedInstanceModules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ManagedInstance List<GetModule Collections Managed Instance Modules Managed Instance Module Collection> 
- The list of managed_instance_module_collection.
- CompartmentId string
- Filters
List<GetManaged Instance Modules Filter> 
- Name string
- The module name.
- NameContains string
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ManagedInstance []GetModule Collections Managed Instance Modules Managed Instance Module Collection 
- The list of managed_instance_module_collection.
- CompartmentId string
- Filters
[]GetManaged Instance Modules Filter 
- Name string
- The module name.
- NameContains string
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- managedInstance List<GetModule Collections Managed Instance Modules Managed Instance Module Collection> 
- The list of managed_instance_module_collection.
- compartmentId String
- filters
List<GetManaged Instance Modules Filter> 
- name String
- The module name.
- nameContains String
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance stringId 
- managedInstance GetModule Collections Managed Instance Modules Managed Instance Module Collection[] 
- The list of managed_instance_module_collection.
- compartmentId string
- filters
GetManaged Instance Modules Filter[] 
- name string
- The module name.
- nameContains string
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ strid 
- managed_instance_ Sequence[Getmodule_ collections Managed Instance Modules Managed Instance Module Collection] 
- The list of managed_instance_module_collection.
- compartment_id str
- filters
Sequence[GetManaged Instance Modules Filter] 
- name str
- The module name.
- name_contains str
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- managedInstance List<Property Map>Module Collections 
- The list of managed_instance_module_collection.
- compartmentId String
- filters List<Property Map>
- name String
- The module name.
- nameContains String
Supporting Types
GetManagedInstanceModulesFilter    
GetManagedInstanceModulesManagedInstanceModuleCollection       
- Items
List<GetManaged Instance Modules Managed Instance Module Collection Item> 
- List of module streams.
- Items
[]GetManaged Instance Modules Managed Instance Module Collection Item 
- List of module streams.
- items
List<GetManaged Instance Modules Managed Instance Module Collection Item> 
- List of module streams.
- items
GetManaged Instance Modules Managed Instance Module Collection Item[] 
- List of module streams.
- items
Sequence[GetManaged Instance Modules Managed Instance Module Collection Item] 
- List of module streams.
- items List<Property Map>
- List of module streams.
GetManagedInstanceModulesManagedInstanceModuleCollectionItem        
- ActiveStreams List<string>
- List of streams that are active in the module.
- DisabledStreams List<string>
- List of streams that are disabled in the module.
- EnabledStream string
- The stream that is enabled in the module.
- InstalledProfiles List<string>
- List of installed profiles in the enabled stream of the module.
- Name string
- The resource name.
- SoftwareSource stringId 
- The OCID of the software source that provides this module and the associated streams.
- ActiveStreams []string
- List of streams that are active in the module.
- DisabledStreams []string
- List of streams that are disabled in the module.
- EnabledStream string
- The stream that is enabled in the module.
- InstalledProfiles []string
- List of installed profiles in the enabled stream of the module.
- Name string
- The resource name.
- SoftwareSource stringId 
- The OCID of the software source that provides this module and the associated streams.
- activeStreams List<String>
- List of streams that are active in the module.
- disabledStreams List<String>
- List of streams that are disabled in the module.
- enabledStream String
- The stream that is enabled in the module.
- installedProfiles List<String>
- List of installed profiles in the enabled stream of the module.
- name String
- The resource name.
- softwareSource StringId 
- The OCID of the software source that provides this module and the associated streams.
- activeStreams string[]
- List of streams that are active in the module.
- disabledStreams string[]
- List of streams that are disabled in the module.
- enabledStream string
- The stream that is enabled in the module.
- installedProfiles string[]
- List of installed profiles in the enabled stream of the module.
- name string
- The resource name.
- softwareSource stringId 
- The OCID of the software source that provides this module and the associated streams.
- active_streams Sequence[str]
- List of streams that are active in the module.
- disabled_streams Sequence[str]
- List of streams that are disabled in the module.
- enabled_stream str
- The stream that is enabled in the module.
- installed_profiles Sequence[str]
- List of installed profiles in the enabled stream of the module.
- name str
- The resource name.
- software_source_ strid 
- The OCID of the software source that provides this module and the associated streams.
- activeStreams List<String>
- List of streams that are active in the module.
- disabledStreams List<String>
- List of streams that are disabled in the module.
- enabledStream String
- The stream that is enabled in the module.
- installedProfiles List<String>
- List of installed profiles in the enabled stream of the module.
- name String
- The resource name.
- softwareSource StringId 
- The OCID of the software source that provides this module and the associated streams.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.