Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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,
});
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/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
})
}
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:
- Managed
Instance stringGroup Id - The OCID of the managed instance group.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Display
Names List<string> - A filter to return resources that match the given display names.
- Filters
List<Get
Managed Instance Group Installed Packages Filter> - Time
Install stringDate End - 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 stringDate Start - The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- Managed
Instance stringGroup Id - The OCID of the managed instance group.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Display
Names []string - A filter to return resources that match the given display names.
- Filters
[]Get
Managed Instance Group Installed Packages Filter - Time
Install stringDate End - 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 stringDate Start - The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- managed
Instance StringGroup Id - The OCID of the managed instance group.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- display
Names List<String> - A filter to return resources that match the given display names.
- filters
List<Get
Managed Instance Group Installed Packages Filter> - time
Install StringDate End - 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 StringDate Start - The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- managed
Instance stringGroup Id - The OCID of the managed instance group.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- display
Names string[] - A filter to return resources that match the given display names.
- filters
Get
Managed Instance Group Installed Packages Filter[] - time
Install stringDate End - 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 stringDate Start - The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- managed_
instance_ strgroup_ id - 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_ strcontains - 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.
Get Managed Instance Group Installed Packages Filter] - time_
install_ strdate_ end - 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_ strdate_ start - The install date after which to list all packages, in ISO 8601 format Example: 2017-07-14T02:40:00.000Z
- managed
Instance StringGroup Id - The OCID of the managed instance group.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- display
Names List<String> - A filter to return resources that match the given display names.
- filters List<Property Map>
- time
Install StringDate End - 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 StringDate Start - 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.
- Managed
Instance stringGroup Id - Managed
Instance List<GetGroup Installed Package Collections Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection> - The list of managed_instance_group_installed_package_collection.
- Compartment
Id string - Display
Name stringContains - Display
Names List<string> - Filters
List<Get
Managed Instance Group Installed Packages Filter> - Time
Install stringDate End - Time
Install stringDate Start
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance stringGroup Id - Managed
Instance []GetGroup Installed Package Collections Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection - The list of managed_instance_group_installed_package_collection.
- Compartment
Id string - Display
Name stringContains - Display
Names []string - Filters
[]Get
Managed Instance Group Installed Packages Filter - Time
Install stringDate End - Time
Install stringDate Start
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringGroup Id - managed
Instance List<GetGroup Installed Package Collections Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection> - The list of managed_instance_group_installed_package_collection.
- compartment
Id String - display
Name StringContains - display
Names List<String> - filters
List<Get
Managed Instance Group Installed Packages Filter> - time
Install StringDate End - time
Install StringDate Start
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance stringGroup Id - managed
Instance GetGroup Installed Package Collections Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection[] - The list of managed_instance_group_installed_package_collection.
- compartment
Id string - display
Name stringContains - display
Names string[] - filters
Get
Managed Instance Group Installed Packages Filter[] - time
Install stringDate End - time
Install stringDate Start
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ strgroup_ id - managed_
instance_ Sequence[osmanagementhub.group_ installed_ package_ collections Get Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection] - The list of managed_instance_group_installed_package_collection.
- compartment_
id str - display_
name_ strcontains - display_
names Sequence[str] - filters
Sequence[osmanagementhub.
Get Managed Instance Group Installed Packages Filter] - time_
install_ strdate_ end - time_
install_ strdate_ start
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance StringGroup Id - managed
Instance List<Property Map>Group Installed Package Collections - The list of managed_instance_group_installed_package_collection.
- compartment
Id String - display
Name StringContains - display
Names List<String> - filters List<Property Map>
- time
Install StringDate End - time
Install StringDate Start
Supporting Types
GetManagedInstanceGroupInstalledPackagesFilter
GetManagedInstanceGroupInstalledPackagesManagedInstanceGroupInstalledPackageCollection
- Items
List<Get
Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection Item> - List of installed packages.
- Items
[]Get
Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection Item - List of installed packages.
- items
List<Get
Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection Item> - List of installed packages.
- items
Get
Managed Instance Group Installed Packages Managed Instance Group Installed Package Collection Item[] - List of installed packages.
- 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.