1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceModules
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceModules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_osmanagementhub.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[_osmanagementhub.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceModules:getManagedInstanceModules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceId string
    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<GetManagedInstanceModulesFilter>
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    ManagedInstanceId string
    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 []GetManagedInstanceModulesFilter
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    managedInstanceId String
    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<GetManagedInstanceModulesFilter>
    name String
    The resource name.
    nameContains String
    A filter to return resources that may partially match the name given.
    managedInstanceId string
    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 GetManagedInstanceModulesFilter[]
    name string
    The resource name.
    nameContains string
    A filter to return resources that may partially match the name given.
    managed_instance_id str
    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[osmanagementhub.GetManagedInstanceModulesFilter]
    name str
    The resource name.
    name_contains str
    A filter to return resources that may partially match the name given.
    managedInstanceId String
    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.
    ManagedInstanceId string
    ManagedInstanceModuleCollections List<GetManagedInstanceModulesManagedInstanceModuleCollection>
    The list of managed_instance_module_collection.
    CompartmentId string
    Filters List<GetManagedInstanceModulesFilter>
    Name string
    The module name.
    NameContains string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    ManagedInstanceModuleCollections []GetManagedInstanceModulesManagedInstanceModuleCollection
    The list of managed_instance_module_collection.
    CompartmentId string
    Filters []GetManagedInstanceModulesFilter
    Name string
    The module name.
    NameContains string
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    managedInstanceModuleCollections List<GetManagedInstanceModulesManagedInstanceModuleCollection>
    The list of managed_instance_module_collection.
    compartmentId String
    filters List<GetManagedInstanceModulesFilter>
    name String
    The module name.
    nameContains String
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceId string
    managedInstanceModuleCollections GetManagedInstanceModulesManagedInstanceModuleCollection[]
    The list of managed_instance_module_collection.
    compartmentId string
    filters GetManagedInstanceModulesFilter[]
    name string
    The module name.
    nameContains string
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    managedInstanceModuleCollections List<Property Map>
    The list of managed_instance_module_collection.
    compartmentId String
    filters List<Property Map>
    name String
    The module name.
    nameContains String

    Supporting Types

    GetManagedInstanceModulesFilter

    Name string
    The resource name.
    Values List<string>
    Regex bool
    Name string
    The resource name.
    Values []string
    Regex bool
    name String
    The resource name.
    values List<String>
    regex Boolean
    name string
    The resource name.
    values string[]
    regex boolean
    name str
    The resource name.
    values Sequence[str]
    regex bool
    name String
    The resource name.
    values List<String>
    regex Boolean

    GetManagedInstanceModulesManagedInstanceModuleCollection

    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.
    SoftwareSourceId string
    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.
    SoftwareSourceId string
    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.
    softwareSourceId String
    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.
    softwareSourceId string
    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_id str
    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.
    softwareSourceId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi