1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceGroupInstalledPackages
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.OsManagementHub.getManagedInstanceGroupInstalledPackages

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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.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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testManagedInstanceGroupInstalledPackages:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceGroupInstalledPackages
      arguments:
        managedInstanceGroupId: ${testManagedInstanceGroup.id}
        compartmentId: ${compartmentId}
        displayNames: ${managedInstanceGroupInstalledPackageDisplayName}
        displayNameContains: ${managedInstanceGroupInstalledPackageDisplayNameContains}
        timeInstallDateEnd: ${managedInstanceGroupInstalledPackageTimeInstallDateEnd}
        timeInstallDateStart: ${managedInstanceGroupInstalledPackageTimeInstallDateStart}
Copy

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>
Copy
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]
Copy
func GetManagedInstanceGroupInstalledPackages(ctx *Context, args *GetManagedInstanceGroupInstalledPackagesArgs, opts ...InvokeOption) (*GetManagedInstanceGroupInstalledPackagesResult, error)
func GetManagedInstanceGroupInstalledPackagesOutput(ctx *Context, args *GetManagedInstanceGroupInstalledPackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceGroupInstalledPackagesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetManagedInstanceGroupInstalledPackagesResult> getManagedInstanceGroupInstalledPackages(GetManagedInstanceGroupInstalledPackagesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceGroupInstalledPackagesResult> getManagedInstanceGroupInstalledPackages(GetManagedInstanceGroupInstalledPackagesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceGroupInstalledPackages:getManagedInstanceGroupInstalledPackages
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ManagedInstanceGroupId This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. []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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. string
The name of the package that is installed on the managed instance group.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of the package that is installed on the managed instance group.
Values This property is required. []string
Regex bool
name This property is required. String
The name of the package that is installed on the managed instance group.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of the package that is installed on the managed instance group.
values This property is required. string[]
regex boolean
name This property is required. str
The name of the package that is installed on the managed instance group.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of the package that is installed on the managed instance group.
values This property is required. List<String>
regex Boolean

GetManagedInstanceGroupInstalledPackagesManagedInstanceGroupInstalledPackageCollection

items This property is required. List<Property Map>
List of installed packages.

GetManagedInstanceGroupInstalledPackagesManagedInstanceGroupInstalledPackageCollectionItem

Architecture This property is required. string
The architecture of the package that is installed on the managed instance group.
Name This property is required. string
The name of the package that is installed on the managed instance group.
Architecture This property is required. string
The architecture of the package that is installed on the managed instance group.
Name This property is required. string
The name of the package that is installed on the managed instance group.
architecture This property is required. String
The architecture of the package that is installed on the managed instance group.
name This property is required. String
The name of the package that is installed on the managed instance group.
architecture This property is required. string
The architecture of the package that is installed on the managed instance group.
name This property is required. string
The name of the package that is installed on the managed instance group.
architecture This property is required. str
The architecture of the package that is installed on the managed instance group.
name This property is required. str
The name of the package that is installed on the managed instance group.
architecture This property is required. String
The architecture of the package that is installed on the managed instance group.
name This property is required. 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.