1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceGroupAvailableSoftwareSources
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceGroupAvailableSoftwareSources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    Lists available software sources for a specified managed instance group. Filter the list against a variety of criteria including but not limited to the software source name. The results list only software sources that have not already been added to the group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroupAvailableSoftwareSources = oci.OsManagementHub.getManagedInstanceGroupAvailableSoftwareSources({
        managedInstanceGroupId: testManagedInstanceGroup.id,
        compartmentId: compartmentId,
        displayNames: managedInstanceGroupAvailableSoftwareSourceDisplayName,
        displayNameContains: managedInstanceGroupAvailableSoftwareSourceDisplayNameContains,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_available_software_sources = oci.OsManagementHub.get_managed_instance_group_available_software_sources(managed_instance_group_id=test_managed_instance_group["id"],
        compartment_id=compartment_id,
        display_names=managed_instance_group_available_software_source_display_name,
        display_name_contains=managed_instance_group_available_software_source_display_name_contains)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsManagementHub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := OsManagementHub.GetManagedInstanceGroupAvailableSoftwareSources(ctx, &osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroup.Id,
    			CompartmentId:          pulumi.StringRef(compartmentId),
    			DisplayNames:           managedInstanceGroupAvailableSoftwareSourceDisplayName,
    			DisplayNameContains:    pulumi.StringRef(managedInstanceGroupAvailableSoftwareSourceDisplayNameContains),
    		}, 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 testManagedInstanceGroupAvailableSoftwareSources = Oci.OsManagementHub.GetManagedInstanceGroupAvailableSoftwareSources.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            CompartmentId = compartmentId,
            DisplayNames = managedInstanceGroupAvailableSoftwareSourceDisplayName,
            DisplayNameContains = managedInstanceGroupAvailableSoftwareSourceDisplayNameContains,
        });
    
    });
    
    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.GetManagedInstanceGroupAvailableSoftwareSourcesArgs;
    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 testManagedInstanceGroupAvailableSoftwareSources = OsManagementHubFunctions.getManagedInstanceGroupAvailableSoftwareSources(GetManagedInstanceGroupAvailableSoftwareSourcesArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .compartmentId(compartmentId)
                .displayNames(managedInstanceGroupAvailableSoftwareSourceDisplayName)
                .displayNameContains(managedInstanceGroupAvailableSoftwareSourceDisplayNameContains)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroupAvailableSoftwareSources:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceGroupAvailableSoftwareSources
          Arguments:
            managedInstanceGroupId: ${testManagedInstanceGroup.id}
            compartmentId: ${compartmentId}
            displayNames: ${managedInstanceGroupAvailableSoftwareSourceDisplayName}
            displayNameContains: ${managedInstanceGroupAvailableSoftwareSourceDisplayNameContains}
    

    Using getManagedInstanceGroupAvailableSoftwareSources

    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 getManagedInstanceGroupAvailableSoftwareSources(args: GetManagedInstanceGroupAvailableSoftwareSourcesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupAvailableSoftwareSourcesResult>
    function getManagedInstanceGroupAvailableSoftwareSourcesOutput(args: GetManagedInstanceGroupAvailableSoftwareSourcesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupAvailableSoftwareSourcesResult>
    def get_managed_instance_group_available_software_sources(compartment_id: Optional[str] = None,
                                                              display_name_contains: Optional[str] = None,
                                                              display_names: Optional[Sequence[str]] = None,
                                                              filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesFilter]] = None,
                                                              managed_instance_group_id: Optional[str] = None,
                                                              opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupAvailableSoftwareSourcesResult
    def get_managed_instance_group_available_software_sources_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                              display_name_contains: Optional[pulumi.Input[str]] = None,
                                                              display_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesFilterArgs]]]] = None,
                                                              managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                                              opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupAvailableSoftwareSourcesResult]
    func GetManagedInstanceGroupAvailableSoftwareSources(ctx *Context, args *GetManagedInstanceGroupAvailableSoftwareSourcesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupAvailableSoftwareSourcesResult, error)
    func GetManagedInstanceGroupAvailableSoftwareSourcesOutput(ctx *Context, args *GetManagedInstanceGroupAvailableSoftwareSourcesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupAvailableSoftwareSourcesResultOutput

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

    public static class GetManagedInstanceGroupAvailableSoftwareSources 
    {
        public static Task<GetManagedInstanceGroupAvailableSoftwareSourcesResult> InvokeAsync(GetManagedInstanceGroupAvailableSoftwareSourcesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupAvailableSoftwareSourcesResult> Invoke(GetManagedInstanceGroupAvailableSoftwareSourcesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupAvailableSoftwareSourcesResult> getManagedInstanceGroupAvailableSoftwareSources(GetManagedInstanceGroupAvailableSoftwareSourcesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroupAvailableSoftwareSources:getManagedInstanceGroupAvailableSoftwareSources
      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.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    DisplayNames List<string>
    A filter to return resources that match the given display names.
    Filters List<GetManagedInstanceGroupAvailableSoftwareSourcesFilter>
    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.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    DisplayNames []string
    A filter to return resources that match the given display names.
    Filters []GetManagedInstanceGroupAvailableSoftwareSourcesFilter
    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.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    displayNames List<String>
    A filter to return resources that match the given display names.
    filters List<GetManagedInstanceGroupAvailableSoftwareSourcesFilter>
    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.
    displayNameContains string
    A filter to return resources that may partially match the given display name.
    displayNames string[]
    A filter to return resources that match the given display names.
    filters GetManagedInstanceGroupAvailableSoftwareSourcesFilter[]
    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.
    display_name_contains str
    A filter to return resources that may partially match the given display name.
    display_names Sequence[str]
    A filter to return resources that match the given display names.
    filters Sequence[osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesFilter]
    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.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    displayNames List<String>
    A filter to return resources that match the given display names.
    filters List<Property Map>

    getManagedInstanceGroupAvailableSoftwareSources Result

    The following output properties are available:

    AvailableSoftwareSourceCollections List<GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection>
    The list of available_software_source_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupId string
    CompartmentId string
    The OCID of the compartment that contains the software source.
    DisplayNameContains string
    DisplayNames List<string>
    User-friendly name for the software source.
    Filters List<GetManagedInstanceGroupAvailableSoftwareSourcesFilter>
    AvailableSoftwareSourceCollections []GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection
    The list of available_software_source_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupId string
    CompartmentId string
    The OCID of the compartment that contains the software source.
    DisplayNameContains string
    DisplayNames []string
    User-friendly name for the software source.
    Filters []GetManagedInstanceGroupAvailableSoftwareSourcesFilter
    availableSoftwareSourceCollections List<GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection>
    The list of available_software_source_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId String
    compartmentId String
    The OCID of the compartment that contains the software source.
    displayNameContains String
    displayNames List<String>
    User-friendly name for the software source.
    filters List<GetManagedInstanceGroupAvailableSoftwareSourcesFilter>
    availableSoftwareSourceCollections GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection[]
    The list of available_software_source_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId string
    compartmentId string
    The OCID of the compartment that contains the software source.
    displayNameContains string
    displayNames string[]
    User-friendly name for the software source.
    filters GetManagedInstanceGroupAvailableSoftwareSourcesFilter[]
    available_software_source_collections Sequence[osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection]
    The list of available_software_source_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_group_id str
    compartment_id str
    The OCID of the compartment that contains the software source.
    display_name_contains str
    display_names Sequence[str]
    User-friendly name for the software source.
    filters Sequence[osmanagementhub.GetManagedInstanceGroupAvailableSoftwareSourcesFilter]
    availableSoftwareSourceCollections List<Property Map>
    The list of available_software_source_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId String
    compartmentId String
    The OCID of the compartment that contains the software source.
    displayNameContains String
    displayNames List<String>
    User-friendly name for the software source.
    filters List<Property Map>

    Supporting Types

    GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollection

    items List<Property Map>
    List of available software sources.

    GetManagedInstanceGroupAvailableSoftwareSourcesAvailableSoftwareSourceCollectionItem

    CompartmentId string
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DisplayName string
    A filter to return resources that match the given display names.
    Id string
    The OCID of the software source.
    CompartmentId string
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    DisplayName string
    A filter to return resources that match the given display names.
    Id string
    The OCID of the software source.
    compartmentId String
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName String
    A filter to return resources that match the given display names.
    id String
    The OCID of the software source.
    compartmentId string
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName string
    A filter to return resources that match the given display names.
    id string
    The OCID of the software source.
    compartment_id str
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    display_name str
    A filter to return resources that match the given display names.
    id str
    The OCID of the software source.
    compartmentId String
    The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
    displayName String
    A filter to return resources that match the given display names.
    id String
    The OCID of the software source.

    GetManagedInstanceGroupAvailableSoftwareSourcesFilter

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

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi