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

oci.OsManagementHub.getManagedInstanceGroupInstalledPackages

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

    Lists installed 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 testManagedInstanceGroupInstalledPackages = oci.OsManagementHub.getManagedInstanceGroupInstalledPackages({
        managedInstanceGroupId: testManagedInstanceGroup.id,
        compartmentId: compartmentId,
        displayNames: managedInstanceGroupInstalledPackageDisplayName,
        displayNameContains: managedInstanceGroupInstalledPackageDisplayNameContains,
        timeInstallDateEnd: managedInstanceGroupInstalledPackageTimeInstallDateEnd,
        timeInstallDateStart: managedInstanceGroupInstalledPackageTimeInstallDateStart,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_group_installed_packages = oci.OsManagementHub.get_managed_instance_group_installed_packages(managed_instance_group_id=test_managed_instance_group["id"],
        compartment_id=compartment_id,
        display_names=managed_instance_group_installed_package_display_name,
        display_name_contains=managed_instance_group_installed_package_display_name_contains,
        time_install_date_end=managed_instance_group_installed_package_time_install_date_end,
        time_install_date_start=managed_instance_group_installed_package_time_install_date_start)
    
    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.GetManagedInstanceGroupInstalledPackages(ctx, &osmanagementhub.GetManagedInstanceGroupInstalledPackagesArgs{
    			ManagedInstanceGroupId: testManagedInstanceGroup.Id,
    			CompartmentId:          pulumi.StringRef(compartmentId),
    			DisplayNames:           managedInstanceGroupInstalledPackageDisplayName,
    			DisplayNameContains:    pulumi.StringRef(managedInstanceGroupInstalledPackageDisplayNameContains),
    			TimeInstallDateEnd:     pulumi.StringRef(managedInstanceGroupInstalledPackageTimeInstallDateEnd),
    			TimeInstallDateStart:   pulumi.StringRef(managedInstanceGroupInstalledPackageTimeInstallDateStart),
    		}, 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 testManagedInstanceGroupInstalledPackages = Oci.OsManagementHub.GetManagedInstanceGroupInstalledPackages.Invoke(new()
        {
            ManagedInstanceGroupId = testManagedInstanceGroup.Id,
            CompartmentId = compartmentId,
            DisplayNames = managedInstanceGroupInstalledPackageDisplayName,
            DisplayNameContains = managedInstanceGroupInstalledPackageDisplayNameContains,
            TimeInstallDateEnd = managedInstanceGroupInstalledPackageTimeInstallDateEnd,
            TimeInstallDateStart = managedInstanceGroupInstalledPackageTimeInstallDateStart,
        });
    
    });
    
    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.GetManagedInstanceGroupInstalledPackagesArgs;
    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 testManagedInstanceGroupInstalledPackages = OsManagementHubFunctions.getManagedInstanceGroupInstalledPackages(GetManagedInstanceGroupInstalledPackagesArgs.builder()
                .managedInstanceGroupId(testManagedInstanceGroup.id())
                .compartmentId(compartmentId)
                .displayNames(managedInstanceGroupInstalledPackageDisplayName)
                .displayNameContains(managedInstanceGroupInstalledPackageDisplayNameContains)
                .timeInstallDateEnd(managedInstanceGroupInstalledPackageTimeInstallDateEnd)
                .timeInstallDateStart(managedInstanceGroupInstalledPackageTimeInstallDateStart)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceGroupInstalledPackages:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceGroupInstalledPackages
          Arguments:
            managedInstanceGroupId: ${testManagedInstanceGroup.id}
            compartmentId: ${compartmentId}
            displayNames: ${managedInstanceGroupInstalledPackageDisplayName}
            displayNameContains: ${managedInstanceGroupInstalledPackageDisplayNameContains}
            timeInstallDateEnd: ${managedInstanceGroupInstalledPackageTimeInstallDateEnd}
            timeInstallDateStart: ${managedInstanceGroupInstalledPackageTimeInstallDateStart}
    

    Using getManagedInstanceGroupInstalledPackages

    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 getManagedInstanceGroupInstalledPackages(args: GetManagedInstanceGroupInstalledPackagesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceGroupInstalledPackagesResult>
    function getManagedInstanceGroupInstalledPackagesOutput(args: GetManagedInstanceGroupInstalledPackagesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceGroupInstalledPackagesResult>
    def get_managed_instance_group_installed_packages(compartment_id: Optional[str] = None,
                                                      display_name_contains: Optional[str] = None,
                                                      display_names: Optional[Sequence[str]] = None,
                                                      filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceGroupInstalledPackagesFilter]] = None,
                                                      managed_instance_group_id: Optional[str] = None,
                                                      time_install_date_end: Optional[str] = None,
                                                      time_install_date_start: Optional[str] = None,
                                                      opts: Optional[InvokeOptions] = None) -> GetManagedInstanceGroupInstalledPackagesResult
    def get_managed_instance_group_installed_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.GetManagedInstanceGroupInstalledPackagesFilterArgs]]]] = None,
                                                      managed_instance_group_id: Optional[pulumi.Input[str]] = None,
                                                      time_install_date_end: Optional[pulumi.Input[str]] = None,
                                                      time_install_date_start: Optional[pulumi.Input[str]] = None,
                                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceGroupInstalledPackagesResult]
    func GetManagedInstanceGroupInstalledPackages(ctx *Context, args *GetManagedInstanceGroupInstalledPackagesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupInstalledPackagesResult, error)
    func GetManagedInstanceGroupInstalledPackagesOutput(ctx *Context, args *GetManagedInstanceGroupInstalledPackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupInstalledPackagesResultOutput

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

    public static class GetManagedInstanceGroupInstalledPackages 
    {
        public static Task<GetManagedInstanceGroupInstalledPackagesResult> InvokeAsync(GetManagedInstanceGroupInstalledPackagesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceGroupInstalledPackagesResult> Invoke(GetManagedInstanceGroupInstalledPackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceGroupInstalledPackagesResult> getManagedInstanceGroupInstalledPackages(GetManagedInstanceGroupInstalledPackagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceGroupInstalledPackages:getManagedInstanceGroupInstalledPackages
      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<GetManagedInstanceGroupInstalledPackagesFilter>
    TimeInstallDateEnd string
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    TimeInstallDateStart string
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    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 []GetManagedInstanceGroupInstalledPackagesFilter
    TimeInstallDateEnd string
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    TimeInstallDateStart string
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    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<GetManagedInstanceGroupInstalledPackagesFilter>
    timeInstallDateEnd String
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    timeInstallDateStart String
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    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 GetManagedInstanceGroupInstalledPackagesFilter[]
    timeInstallDateEnd string
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    timeInstallDateStart string
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    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.GetManagedInstanceGroupInstalledPackagesFilter]
    time_install_date_end str
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    time_install_date_start str
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
    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>
    timeInstallDateEnd String
    A filter to return only packages that were installed on or before the date provided, in ISO 8601 format. Example: 2017-07-14T02:40:00.000Z
    timeInstallDateStart String
    The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z

    getManagedInstanceGroupInstalledPackages Result

    The following output properties are available:

    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceGroupId String
    managedInstanceGroupInstalledPackageCollections List<Property Map>
    The list of managed_instance_group_installed_package_collection.
    compartmentId String
    displayNameContains String
    displayNames List<String>
    filters List<Property Map>
    timeInstallDateEnd String
    timeInstallDateStart String

    Supporting Types

    GetManagedInstanceGroupInstalledPackagesFilter

    Name string
    The name of the package that is installed on the managed instance group.
    Values List<string>
    Regex bool
    Name string
    The name of the package that is installed on the managed instance group.
    Values []string
    Regex bool
    name String
    The name of the package that is installed on the managed instance group.
    values List<String>
    regex Boolean
    name string
    The name of the package that is installed on the managed instance group.
    values string[]
    regex boolean
    name str
    The name of the package that is installed on the managed instance group.
    values Sequence[str]
    regex bool
    name String
    The name of the package that is installed on the managed instance group.
    values List<String>
    regex Boolean

    GetManagedInstanceGroupInstalledPackagesManagedInstanceGroupInstalledPackageCollection

    items List<Property Map>
    List of installed packages.

    GetManagedInstanceGroupInstalledPackagesManagedInstanceGroupInstalledPackageCollectionItem

    Architecture string
    The architecture of the package that is installed on the managed instance group.
    Name string
    The name of the package that is installed on the managed instance group.
    Architecture string
    The architecture of the package that is installed on the managed instance group.
    Name string
    The name of the package that is installed on the managed instance group.
    architecture String
    The architecture of the package that is installed on the managed instance group.
    name String
    The name of the package that is installed on the managed instance group.
    architecture string
    The architecture of the package that is installed on the managed instance group.
    name string
    The name of the package that is installed on the managed instance group.
    architecture str
    The architecture of the package that is installed on the managed instance group.
    name str
    The name of the package that is installed on the managed instance group.
    architecture String
    The architecture of the package that is installed on the managed instance group.
    name String
    The name of the package that is installed on the managed instance group.

    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