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

oci.OsManagementHub.getManagedInstanceGroupAvailablePackages

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

    Lists available packages on the specified managed instances group. Filter the list against a variety of criteria including but not limited to the package name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceGroupAvailablePackages = oci.OsManagementHub.getManagedInstanceGroupAvailablePackages({
        managedInstanceGroupId: testManagedInstanceGroup.id,
        compartmentId: compartmentId,
        displayNames: managedInstanceGroupAvailablePackageDisplayName,
        displayNameContains: managedInstanceGroupAvailablePackageDisplayNameContains,
        isLatest: managedInstanceGroupAvailablePackageIsLatest,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_available_packages = oci.OsManagementHub.get_managed_instance_group_available_packages(managed_instance_group_id=test_managed_instance_group["id"],
        compartment_id=compartment_id,
        display_names=managed_instance_group_available_package_display_name,
        display_name_contains=managed_instance_group_available_package_display_name_contains,
        is_latest=managed_instance_group_available_package_is_latest)
    
    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.GetManagedInstanceGroupAvailablePackages(ctx, &osmanagementhub.GetManagedInstanceGroupAvailablePackagesArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroup.Id,
    			CompartmentId:          pulumi.StringRef(compartmentId),
    			DisplayNames:           managedInstanceGroupAvailablePackageDisplayName,
    			DisplayNameContains:    pulumi.StringRef(managedInstanceGroupAvailablePackageDisplayNameContains),
    			IsLatest:               pulumi.BoolRef(managedInstanceGroupAvailablePackageIsLatest),
    		}, 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 testManagedInstanceGroupAvailablePackages = Oci.OsManagementHub.GetManagedInstanceGroupAvailablePackages.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            CompartmentId = compartmentId,
            DisplayNames = managedInstanceGroupAvailablePackageDisplayName,
            DisplayNameContains = managedInstanceGroupAvailablePackageDisplayNameContains,
            IsLatest = managedInstanceGroupAvailablePackageIsLatest,
        });
    
    });
    
    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.GetManagedInstanceGroupAvailablePackagesArgs;
    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 testManagedInstanceGroupAvailablePackages = OsManagementHubFunctions.getManagedInstanceGroupAvailablePackages(GetManagedInstanceGroupAvailablePackagesArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .compartmentId(compartmentId)
                .displayNames(managedInstanceGroupAvailablePackageDisplayName)
                .displayNameContains(managedInstanceGroupAvailablePackageDisplayNameContains)
                .isLatest(managedInstanceGroupAvailablePackageIsLatest)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroupAvailablePackages:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceGroupAvailablePackages
          Arguments:
            managedInstanceGroupId: ${testManagedInstanceGroup.id}
            compartmentId: ${compartmentId}
            displayNames: ${managedInstanceGroupAvailablePackageDisplayName}
            displayNameContains: ${managedInstanceGroupAvailablePackageDisplayNameContains}
            isLatest: ${managedInstanceGroupAvailablePackageIsLatest}
    

    Using getManagedInstanceGroupAvailablePackages

    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 getManagedInstanceGroupAvailablePackages(args: GetManagedInstanceGroupAvailablePackagesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupAvailablePackagesResult>
    function getManagedInstanceGroupAvailablePackagesOutput(args: GetManagedInstanceGroupAvailablePackagesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupAvailablePackagesResult>
    def get_managed_instance_group_available_packages(compartment_id: Optional[str] = None,
                                                      display_name_contains: Optional[str] = None,
                                                      display_names: Optional[Sequence[str]] = None,
                                                      filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceGroupAvailablePackagesFilter]] = None,
                                                      is_latest: Optional[bool] = None,
                                                      managed_instance_group_id: Optional[str] = None,
                                                      opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupAvailablePackagesResult
    def get_managed_instance_group_available_packages_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.GetManagedInstanceGroupAvailablePackagesFilterArgs]]]] = None,
                                                      is_latest: Optional[pulumi.Input[bool]] = None,
                                                      managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupAvailablePackagesResult]
    func GetManagedInstanceGroupAvailablePackages(ctx *Context, args *GetManagedInstanceGroupAvailablePackagesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupAvailablePackagesResult, error)
    func GetManagedInstanceGroupAvailablePackagesOutput(ctx *Context, args *GetManagedInstanceGroupAvailablePackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupAvailablePackagesResultOutput

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

    public static class GetManagedInstanceGroupAvailablePackages 
    {
        public static Task<GetManagedInstanceGroupAvailablePackagesResult> InvokeAsync(GetManagedInstanceGroupAvailablePackagesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupAvailablePackagesResult> Invoke(GetManagedInstanceGroupAvailablePackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupAvailablePackagesResult> getManagedInstanceGroupAvailablePackages(GetManagedInstanceGroupAvailablePackagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroupAvailablePackages:getManagedInstanceGroupAvailablePackages
      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<GetManagedInstanceGroupAvailablePackagesFilter>
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    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 []GetManagedInstanceGroupAvailablePackagesFilter
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    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<GetManagedInstanceGroupAvailablePackagesFilter>
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    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 GetManagedInstanceGroupAvailablePackagesFilter[]
    isLatest boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    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.GetManagedInstanceGroupAvailablePackagesFilter]
    is_latest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    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>
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.

    getManagedInstanceGroupAvailablePackages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupAvailablePackageCollections List<GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection>
    The list of managed_instance_group_available_package_collection.
    ManagedInstanceGroupId string
    CompartmentId string
    DisplayNameContains string
    DisplayNames List<string>
    Software source name.
    Filters List<GetManagedInstanceGroupAvailablePackagesFilter>
    IsLatest bool
    Indicates whether this is the latest package version.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceGroupAvailablePackageCollections []GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection
    The list of managed_instance_group_available_package_collection.
    ManagedInstanceGroupId string
    CompartmentId string
    DisplayNameContains string
    DisplayNames []string
    Software source name.
    Filters []GetManagedInstanceGroupAvailablePackagesFilter
    IsLatest bool
    Indicates whether this is the latest package version.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailablePackageCollections List<GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection>
    The list of managed_instance_group_available_package_collection.
    managedInstanceGroupId String
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<GetManagedInstanceGroupAvailablePackagesFilter>
    isLatest Boolean
    Indicates whether this is the latest package version.
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailablePackageCollections GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection[]
    The list of managed_instance_group_available_package_collection.
    managedInstanceGroupId string
    compartmentId string
    displayNameContains string
    displayNames string[]
    Software source name.
    filters GetManagedInstanceGroupAvailablePackagesFilter[]
    isLatest boolean
    Indicates whether this is the latest package version.
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_group_available_package_collections Sequence[osmanagementhub.GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection]
    The list of managed_instance_group_available_package_collection.
    managed_instance_group_id str
    compartment_id str
    display_name_contains str
    display_names Sequence[str]
    Software source name.
    filters Sequence[osmanagementhub.GetManagedInstanceGroupAvailablePackagesFilter]
    is_latest bool
    Indicates whether this is the latest package version.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupAvailablePackageCollections List<Property Map>
    The list of managed_instance_group_available_package_collection.
    managedInstanceGroupId String
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<Property Map>
    isLatest Boolean
    Indicates whether this is the latest package version.

    Supporting Types

    GetManagedInstanceGroupAvailablePackagesFilter

    Name string
    Unique identifier for the package. Note that this is not an OCID.
    Values List<string>
    Regex bool
    Name string
    Unique identifier for the package. Note that this is not an OCID.
    Values []string
    Regex bool
    name String
    Unique identifier for the package. Note that this is not an OCID.
    values List<String>
    regex Boolean
    name string
    Unique identifier for the package. Note that this is not an OCID.
    values string[]
    regex boolean
    name str
    Unique identifier for the package. Note that this is not an OCID.
    values Sequence[str]
    regex bool
    name String
    Unique identifier for the package. Note that this is not an OCID.
    values List<String>
    regex Boolean

    GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollection

    items List<Property Map>
    List of available packages.

    GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItem

    Architecture string
    The architecture for which this package was built.
    DisplayName string
    A filter to return resources that match the given display names.
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    Name string
    Unique identifier for the package. Note that this is not an OCID.
    SoftwareSources List<GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    Type string
    Type of the package.
    Version string
    Version of the available package.
    Architecture string
    The architecture for which this package was built.
    DisplayName string
    A filter to return resources that match the given display names.
    IsLatest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    Name string
    Unique identifier for the package. Note that this is not an OCID.
    SoftwareSources []GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource
    List of software sources that provide the software package.
    Type string
    Type of the package.
    Version string
    Version of the available package.
    architecture String
    The architecture for which this package was built.
    displayName String
    A filter to return resources that match the given display names.
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    name String
    Unique identifier for the package. Note that this is not an OCID.
    softwareSources List<GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    type String
    Type of the package.
    version String
    Version of the available package.
    architecture string
    The architecture for which this package was built.
    displayName string
    A filter to return resources that match the given display names.
    isLatest boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    name string
    Unique identifier for the package. Note that this is not an OCID.
    softwareSources GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource[]
    List of software sources that provide the software package.
    type string
    Type of the package.
    version string
    Version of the available package.
    architecture str
    The architecture for which this package was built.
    display_name str
    A filter to return resources that match the given display names.
    is_latest bool
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    name str
    Unique identifier for the package. Note that this is not an OCID.
    software_sources Sequence[osmanagementhub.GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource]
    List of software sources that provide the software package.
    type str
    Type of the package.
    version str
    Version of the available package.
    architecture String
    The architecture for which this package was built.
    displayName String
    A filter to return resources that match the given display names.
    isLatest Boolean
    Indicates whether to list only the latest versions of packages, module streams, and stream profiles.
    name String
    Unique identifier for the package. Note that this is not an OCID.
    softwareSources List<Property Map>
    List of software sources that provide the software package.
    type String
    Type of the package.
    version String
    Version of the available package.

    GetManagedInstanceGroupAvailablePackagesManagedInstanceGroupAvailablePackageCollectionItemSoftwareSource

    Description string
    Software source description.
    DisplayName string
    A filter to return resources that match the given display names.
    Id string
    The OCID of the software source.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    Description string
    Software source description.
    DisplayName string
    A filter to return resources that match the given display names.
    Id string
    The OCID of the software source.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    description String
    Software source description.
    displayName String
    A filter to return resources that match the given display names.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.
    description string
    Software source description.
    displayName string
    A filter to return resources that match the given display names.
    id string
    The OCID of the software source.
    isMandatoryForAutonomousLinux boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType string
    Type of the software source.
    description str
    Software source description.
    display_name str
    A filter to return resources that match the given display names.
    id str
    The OCID of the software source.
    is_mandatory_for_autonomous_linux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    software_source_type str
    Type of the software source.
    description String
    Software source description.
    displayName String
    A filter to return resources that match the given display names.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.

    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