1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceGroupAvailableModules
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceGroupAvailableModules

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

    This data source provides the list of Managed Instance Group Available Modules in Oracle Cloud Infrastructure Os Management Hub service.

    List modules that are available for installation on the specified managed instance group. Filter the list against a variety of criteria including but not limited to module name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroupAvailableModules = oci.OsManagementHub.getManagedInstanceGroupAvailableModules({
        managedInstanceGroupId: testManagedInstanceGroup.id,
        compartmentId: compartmentId,
        name: managedInstanceGroupAvailableModuleName,
        nameContains: managedInstanceGroupAvailableModuleNameContains,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_available_modules = oci.OsManagementHub.get_managed_instance_group_available_modules(managed_instance_group_id=test_managed_instance_group["id"],
        compartment_id=compartment_id,
        name=managed_instance_group_available_module_name,
        name_contains=managed_instance_group_available_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.GetManagedInstanceGroupAvailableModules(ctx, &osmanagementhub.GetManagedInstanceGroupAvailableModulesArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroup.Id,
    			CompartmentId:          pulumi.StringRef(compartmentId),
    			Name:                   pulumi.StringRef(managedInstanceGroupAvailableModuleName),
    			NameContains:           pulumi.StringRef(managedInstanceGroupAvailableModuleNameContains),
    		}, 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 testManagedInstanceGroupAvailableModules = Oci.OsManagementHub.GetManagedInstanceGroupAvailableModules.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            CompartmentId = compartmentId,
            Name = managedInstanceGroupAvailableModuleName,
            NameContains = managedInstanceGroupAvailableModuleNameContains,
        });
    
    });
    
    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.GetManagedInstanceGroupAvailableModulesArgs;
    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 testManagedInstanceGroupAvailableModules = OsManagementHubFunctions.getManagedInstanceGroupAvailableModules(GetManagedInstanceGroupAvailableModulesArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .compartmentId(compartmentId)
                .name(managedInstanceGroupAvailableModuleName)
                .nameContains(managedInstanceGroupAvailableModuleNameContains)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroupAvailableModules:
        fn::invoke:
          function: oci:OsManagementHub:getManagedInstanceGroupAvailableModules
          arguments:
            managedInstanceGroupId: ${testManagedInstanceGroup.id}
            compartmentId: ${compartmentId}
            name: ${managedInstanceGroupAvailableModuleName}
            nameContains: ${managedInstanceGroupAvailableModuleNameContains}
    

    Using getManagedInstanceGroupAvailableModules

    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 getManagedInstanceGroupAvailableModules(args: GetManagedInstanceGroupAvailableModulesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupAvailableModulesResult>
    function getManagedInstanceGroupAvailableModulesOutput(args: GetManagedInstanceGroupAvailableModulesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupAvailableModulesResult>
    def get_managed_instance_group_available_modules(compartment_id: Optional[str] = None,
                                                     filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceGroupAvailableModulesFilter]] = None,
                                                     managed_instance_group_id: Optional[str] = None,
                                                     name: Optional[str] = None,
                                                     name_contains: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupAvailableModulesResult
    def get_managed_instance_group_available_modules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceGroupAvailableModulesFilterArgs]]]] = None,
                                                     managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                                     name: Optional[pulumi.Input[str]] = None,
                                                     name_contains: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupAvailableModulesResult]
    func GetManagedInstanceGroupAvailableModules(ctx *Context, args *GetManagedInstanceGroupAvailableModulesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupAvailableModulesResult, error)
    func GetManagedInstanceGroupAvailableModulesOutput(ctx *Context, args *GetManagedInstanceGroupAvailableModulesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupAvailableModulesResultOutput

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

    public static class GetManagedInstanceGroupAvailableModules 
    {
        public static Task<GetManagedInstanceGroupAvailableModulesResult> InvokeAsync(GetManagedInstanceGroupAvailableModulesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupAvailableModulesResult> Invoke(GetManagedInstanceGroupAvailableModulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupAvailableModulesResult> getManagedInstanceGroupAvailableModules(GetManagedInstanceGroupAvailableModulesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroupAvailableModules:getManagedInstanceGroupAvailableModules
      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<GetManagedInstanceGroupAvailableModulesFilter>
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    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 []GetManagedInstanceGroupAvailableModulesFilter
    Name string
    The resource name.
    NameContains string
    A filter to return resources that may partially match the name given.
    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<GetManagedInstanceGroupAvailableModulesFilter>
    name String
    The resource name.
    nameContains String
    A filter to return resources that may partially match the name given.
    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 GetManagedInstanceGroupAvailableModulesFilter[]
    name string
    The resource name.
    nameContains string
    A filter to return resources that may partially match the name given.
    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.GetManagedInstanceGroupAvailableModulesFilter]
    name str
    The resource name.
    name_contains str
    A filter to return resources that may partially match the name given.
    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.

    getManagedInstanceGroupAvailableModules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupAvailableModuleCollections List<GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection>
    The list of managed_instance_group_available_module_collection.
    ManagedInstanceGroupId string
    CompartmentId string
    Filters List<GetManagedInstanceGroupAvailableModulesFilter>
    Name string
    The name of the module that is available to the managed instance group.
    NameContains string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupAvailableModuleCollections []GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection
    The list of managed_instance_group_available_module_collection.
    ManagedInstanceGroupId string
    CompartmentId string
    Filters []GetManagedInstanceGroupAvailableModulesFilter
    Name string
    The name of the module that is available to the managed instance group.
    NameContains string
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailableModuleCollections List<GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection>
    The list of managed_instance_group_available_module_collection.
    managedInstanceGroupId String
    compartmentId String
    filters List<GetManagedInstanceGroupAvailableModulesFilter>
    name String
    The name of the module that is available to the managed instance group.
    nameContains String
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailableModuleCollections GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection[]
    The list of managed_instance_group_available_module_collection.
    managedInstanceGroupId string
    compartmentId string
    filters GetManagedInstanceGroupAvailableModulesFilter[]
    name string
    The name of the module that is available to the managed instance group.
    nameContains string
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_group_available_module_collections Sequence[osmanagementhub.GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection]
    The list of managed_instance_group_available_module_collection.
    managed_instance_group_id str
    compartment_id str
    filters Sequence[osmanagementhub.GetManagedInstanceGroupAvailableModulesFilter]
    name str
    The name of the module that is available to the managed instance group.
    name_contains str
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailableModuleCollections List<Property Map>
    The list of managed_instance_group_available_module_collection.
    managedInstanceGroupId String
    compartmentId String
    filters List<Property Map>
    name String
    The name of the module that is available to the managed instance group.
    nameContains String

    Supporting Types

    GetManagedInstanceGroupAvailableModulesFilter

    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

    GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollection

    items List<Property Map>
    List of available modules.

    GetManagedInstanceGroupAvailableModulesManagedInstanceGroupAvailableModuleCollectionItem

    Name string
    The resource name.
    SoftwareSourceId string
    The OCID of the software source that provides the module.
    Name string
    The resource name.
    SoftwareSourceId string
    The OCID of the software source that provides the module.
    name String
    The resource name.
    softwareSourceId String
    The OCID of the software source that provides the module.
    name string
    The resource name.
    softwareSourceId string
    The OCID of the software source that provides the module.
    name str
    The resource name.
    software_source_id str
    The OCID of the software source that provides the module.
    name String
    The resource name.
    softwareSourceId String
    The OCID of the software source that provides the module.

    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.19.0 published on Thursday, Dec 12, 2024 by Pulumi