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

oci.OsManagementHub.getManagedInstanceGroupModules

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 Group Modules in Oracle Cloud Infrastructure Os Management Hub service.

    Retrieve a list of module streams, along with a summary of their status, from a managed instance group. Filters may be applied to select a subset of module streams based on the filter criteria.

    The ‘moduleName’ attribute filters against the name of a module. It accepts strings of the format “”. If this attribute is defined, only streams that belong to the specified module are included in the result set. If it is not defined, the request is not subject to this filter.

    The “status” attribute filters against the state of a module stream. Valid values are “ENABLED”, “DISABLED”, and “ACTIVE”. If the attribute is set to “ENABLED”, only module streams that are enabled are included in the result set. If the attribute is set to “DISABLED”, only module streams that are not enabled are included in the result set. If the attribute is set to “ACTIVE”, only module streams that are active are included in the result set. If the attribute is not defined, the request is not subject to this filter.

    When sorting by the display name, the result set is sorted first by the module name and then by the stream name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroupModules = oci.OsManagementHub.getManagedInstanceGroupModules({
        managedInstanceGroupId: testManagedInstanceGroup.id,
        compartmentId: compartmentId,
        name: managedInstanceGroupModuleName,
        nameContains: managedInstanceGroupModuleNameContains,
        streamName: testStream.name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_modules = oci.OsManagementHub.get_managed_instance_group_modules(managed_instance_group_id=test_managed_instance_group["id"],
        compartment_id=compartment_id,
        name=managed_instance_group_module_name,
        name_contains=managed_instance_group_module_name_contains,
        stream_name=test_stream["name"])
    
    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.GetManagedInstanceGroupModules(ctx, &osmanagementhub.GetManagedInstanceGroupModulesArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroup.Id,
    			CompartmentId:          pulumi.StringRef(compartmentId),
    			Name:                   pulumi.StringRef(managedInstanceGroupModuleName),
    			NameContains:           pulumi.StringRef(managedInstanceGroupModuleNameContains),
    			StreamName:             pulumi.StringRef(testStream.Name),
    		}, 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 testManagedInstanceGroupModules = Oci.OsManagementHub.GetManagedInstanceGroupModules.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            CompartmentId = compartmentId,
            Name = managedInstanceGroupModuleName,
            NameContains = managedInstanceGroupModuleNameContains,
            StreamName = testStream.Name,
        });
    
    });
    
    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.GetManagedInstanceGroupModulesArgs;
    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 testManagedInstanceGroupModules = OsManagementHubFunctions.getManagedInstanceGroupModules(GetManagedInstanceGroupModulesArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .compartmentId(compartmentId)
                .name(managedInstanceGroupModuleName)
                .nameContains(managedInstanceGroupModuleNameContains)
                .streamName(testStream.name())
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroupModules:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceGroupModules
          Arguments:
            managedInstanceGroupId: ${testManagedInstanceGroup.id}
            compartmentId: ${compartmentId}
            name: ${managedInstanceGroupModuleName}
            nameContains: ${managedInstanceGroupModuleNameContains}
            streamName: ${testStream.name}
    

    Using getManagedInstanceGroupModules

    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 getManagedInstanceGroupModules(args: GetManagedInstanceGroupModulesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupModulesResult>
    function getManagedInstanceGroupModulesOutput(args: GetManagedInstanceGroupModulesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupModulesResult>
    def get_managed_instance_group_modules(compartment_id: Optional[str] = None,
                                           filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceGroupModulesFilter]] = None,
                                           managed_instance_group_id: Optional[str] = None,
                                           name: Optional[str] = None,
                                           name_contains: Optional[str] = None,
                                           stream_name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupModulesResult
    def get_managed_instance_group_modules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceGroupModulesFilterArgs]]]] = None,
                                           managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           name_contains: Optional[pulumi.Input[str]] = None,
                                           stream_name: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupModulesResult]
    func GetManagedInstanceGroupModules(ctx *Context, args *GetManagedInstanceGroupModulesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupModulesResult, error)
    func GetManagedInstanceGroupModulesOutput(ctx *Context, args *GetManagedInstanceGroupModulesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupModulesResultOutput

    > Note: This function is named GetManagedInstanceGroupModules in the Go SDK.

    public static class GetManagedInstanceGroupModules 
    {
        public static Task<GetManagedInstanceGroupModulesResult> InvokeAsync(GetManagedInstanceGroupModulesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupModulesResult> Invoke(GetManagedInstanceGroupModulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupModulesResult> getManagedInstanceGroupModules(GetManagedInstanceGroupModulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroupModules:getManagedInstanceGroupModules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    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<GetManagedInstanceGroupModulesFilter>
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    ManagedInstanceGroupId string
    The OCID of the managed instance group.
    CompartmentId string
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    Filters []GetManagedInstanceGroupModulesFilter
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    StreamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    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<GetManagedInstanceGroupModulesFilter>
    name String
    The resource name.
    nameContains String
    A filter to return resources that may partially match the name given.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.
    managedInstanceGroupId string
    The OCID of the managed instance group.
    compartmentId string
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    filters GetManagedInstanceGroupModulesFilter[]
    name string
    The resource name.
    nameContains string
    A filter to return resources that may partially match the name given.
    streamName string
    The name of the module stream. This parameter is required if a profile name is specified.
    managed_instance_group_id str
    The OCID of the managed instance group.
    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.GetManagedInstanceGroupModulesFilter]
    name str
    The resource name.
    name_contains str
    A filter to return resources that may partially match the name given.
    stream_name str
    The name of the module stream. This parameter is required if a profile name is specified.
    managedInstanceGroupId String
    The OCID of the managed instance group.
    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.
    streamName String
    The name of the module stream. This parameter is required if a profile name is specified.

    getManagedInstanceGroupModules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupId string
    ManagedInstanceGroupModuleCollections List<GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollection>
    The list of managed_instance_group_module_collection.
    CompartmentId string
    Filters List<GetManagedInstanceGroupModulesFilter>
    Name string
    The name of the module.
    NameContains string
    StreamName string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupId string
    ManagedInstanceGroupModuleCollections []GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollection
    The list of managed_instance_group_module_collection.
    CompartmentId string
    Filters []GetManagedInstanceGroupModulesFilter
    Name string
    The name of the module.
    NameContains string
    StreamName string
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId String
    managedInstanceGroupModuleCollections List<GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollection>
    The list of managed_instance_group_module_collection.
    compartmentId String
    filters List<GetManagedInstanceGroupModulesFilter>
    name String
    The name of the module.
    nameContains String
    streamName String
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId string
    managedInstanceGroupModuleCollections GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollection[]
    The list of managed_instance_group_module_collection.
    compartmentId string
    filters GetManagedInstanceGroupModulesFilter[]
    name string
    The name of the module.
    nameContains string
    streamName string
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId String
    managedInstanceGroupModuleCollections List<Property Map>
    The list of managed_instance_group_module_collection.
    compartmentId String
    filters List<Property Map>
    name String
    The name of the module.
    nameContains String
    streamName String

    Supporting Types

    GetManagedInstanceGroupModulesFilter

    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

    GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollection

    items List<Property Map>
    List of module streams.

    GetManagedInstanceGroupModulesManagedInstanceGroupModuleCollectionItem

    EnabledStream string
    The name of the module stream that is enabled for the group.
    InstalledProfiles List<string>
    The list of installed profiles under the currently enabled module stream.
    Name string
    The resource name.
    SoftwareSourceId string
    The OCID of the software source that provides this module stream.
    EnabledStream string
    The name of the module stream that is enabled for the group.
    InstalledProfiles []string
    The list of installed profiles under the currently enabled module stream.
    Name string
    The resource name.
    SoftwareSourceId string
    The OCID of the software source that provides this module stream.
    enabledStream String
    The name of the module stream that is enabled for the group.
    installedProfiles List<String>
    The list of installed profiles under the currently enabled module stream.
    name String
    The resource name.
    softwareSourceId String
    The OCID of the software source that provides this module stream.
    enabledStream string
    The name of the module stream that is enabled for the group.
    installedProfiles string[]
    The list of installed profiles under the currently enabled module stream.
    name string
    The resource name.
    softwareSourceId string
    The OCID of the software source that provides this module stream.
    enabled_stream str
    The name of the module stream that is enabled for the group.
    installed_profiles Sequence[str]
    The list of installed profiles under the currently enabled module stream.
    name str
    The resource name.
    software_source_id str
    The OCID of the software source that provides this module stream.
    enabledStream String
    The name of the module stream that is enabled for the group.
    installedProfiles List<String>
    The list of installed profiles under the currently enabled module stream.
    name String
    The resource name.
    softwareSourceId String
    The OCID of the software source that provides this module stream.

    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