1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceInstalledPackages
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceInstalledPackages

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    This data source provides the list of Managed Instance Installed Packages in Oracle Cloud Infrastructure Os Management Hub service.

    Lists the packages that are installed on the managed instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceInstalledPackages = oci.OsManagementHub.getManagedInstanceInstalledPackages({
        managedInstanceId: testManagedInstance.id,
        compartmentId: compartmentId,
        displayNames: managedInstanceInstalledPackageDisplayName,
        displayNameContains: managedInstanceInstalledPackageDisplayNameContains,
        timeInstallDateEnd: managedInstanceInstalledPackageTimeInstallDateEnd,
        timeInstallDateStart: managedInstanceInstalledPackageTimeInstallDateStart,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_installed_packages = oci.OsManagementHub.get_managed_instance_installed_packages(managed_instance_id=test_managed_instance["id"],
        compartment_id=compartment_id,
        display_names=managed_instance_installed_package_display_name,
        display_name_contains=managed_instance_installed_package_display_name_contains,
        time_install_date_end=managed_instance_installed_package_time_install_date_end,
        time_install_date_start=managed_instance_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.GetManagedInstanceInstalledPackages(ctx, &osmanagementhub.GetManagedInstanceInstalledPackagesArgs{
    			ManagedInstanceId:    testManagedInstance.Id,
    			CompartmentId:        pulumi.StringRef(compartmentId),
    			DisplayNames:         managedInstanceInstalledPackageDisplayName,
    			DisplayNameContains:  pulumi.StringRef(managedInstanceInstalledPackageDisplayNameContains),
    			TimeInstallDateEnd:   pulumi.StringRef(managedInstanceInstalledPackageTimeInstallDateEnd),
    			TimeInstallDateStart: pulumi.StringRef(managedInstanceInstalledPackageTimeInstallDateStart),
    		}, 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 testManagedInstanceInstalledPackages = Oci.OsManagementHub.GetManagedInstanceInstalledPackages.Invoke(new()
        {
            ManagedInstanceId = testManagedInstance.Id,
            CompartmentId = compartmentId,
            DisplayNames = managedInstanceInstalledPackageDisplayName,
            DisplayNameContains = managedInstanceInstalledPackageDisplayNameContains,
            TimeInstallDateEnd = managedInstanceInstalledPackageTimeInstallDateEnd,
            TimeInstallDateStart = managedInstanceInstalledPackageTimeInstallDateStart,
        });
    
    });
    
    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.GetManagedInstanceInstalledPackagesArgs;
    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 testManagedInstanceInstalledPackages = OsManagementHubFunctions.getManagedInstanceInstalledPackages(GetManagedInstanceInstalledPackagesArgs.builder()
                .managedInstanceId(testManagedInstance.id())
                .compartmentId(compartmentId)
                .displayNames(managedInstanceInstalledPackageDisplayName)
                .displayNameContains(managedInstanceInstalledPackageDisplayNameContains)
                .timeInstallDateEnd(managedInstanceInstalledPackageTimeInstallDateEnd)
                .timeInstallDateStart(managedInstanceInstalledPackageTimeInstallDateStart)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceInstalledPackages:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceInstalledPackages
          Arguments:
            managedInstanceId: ${testManagedInstance.id}
            compartmentId: ${compartmentId}
            displayNames: ${managedInstanceInstalledPackageDisplayName}
            displayNameContains: ${managedInstanceInstalledPackageDisplayNameContains}
            timeInstallDateEnd: ${managedInstanceInstalledPackageTimeInstallDateEnd}
            timeInstallDateStart: ${managedInstanceInstalledPackageTimeInstallDateStart}
    

    Using getManagedInstanceInstalledPackages

    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 getManagedInstanceInstalledPackages(args: GetManagedInstanceInstalledPackagesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceInstalledPackagesResult>
    function getManagedInstanceInstalledPackagesOutput(args: GetManagedInstanceInstalledPackagesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceInstalledPackagesResult>
    def get_managed_instance_installed_packages(compartment_id: Optional[str] = None,
                                                display_name_contains: Optional[str] = None,
                                                display_names: Optional[Sequence[str]] = None,
                                                filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceInstalledPackagesFilter]] = None,
                                                managed_instance_id: Optional[str] = None,
                                                time_install_date_end: Optional[str] = None,
                                                time_install_date_start: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetManagedInstanceInstalledPackagesResult
    def get_managed_instance_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.GetManagedInstanceInstalledPackagesFilterArgs]]]] = None,
                                                managed_instance_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[GetManagedInstanceInstalledPackagesResult]
    func GetManagedInstanceInstalledPackages(ctx *Context, args *GetManagedInstanceInstalledPackagesArgs, opts ...InvokeOption) (*GetManagedInstanceInstalledPackagesResult, error)
    func GetManagedInstanceInstalledPackagesOutput(ctx *Context, args *GetManagedInstanceInstalledPackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceInstalledPackagesResultOutput

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

    public static class GetManagedInstanceInstalledPackages 
    {
        public static Task<GetManagedInstanceInstalledPackagesResult> InvokeAsync(GetManagedInstanceInstalledPackagesArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedInstanceInstalledPackagesResult> Invoke(GetManagedInstanceInstalledPackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedInstanceInstalledPackagesResult> getManagedInstanceInstalledPackages(GetManagedInstanceInstalledPackagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getManagedInstanceInstalledPackages:getManagedInstanceInstalledPackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ManagedInstanceId string
    The OCID of the managed instance.
    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<GetManagedInstanceInstalledPackagesFilter>
    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
    ManagedInstanceId string
    The OCID of the managed instance.
    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 []GetManagedInstanceInstalledPackagesFilter
    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
    managedInstanceId String
    The OCID of the managed instance.
    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<GetManagedInstanceInstalledPackagesFilter>
    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
    managedInstanceId string
    The OCID of the managed instance.
    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 GetManagedInstanceInstalledPackagesFilter[]
    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_id str
    The OCID of the managed instance.
    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.GetManagedInstanceInstalledPackagesFilter]
    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
    managedInstanceId String
    The OCID of the managed instance.
    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

    getManagedInstanceInstalledPackages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledPackageCollections List<GetManagedInstanceInstalledPackagesInstalledPackageCollection>
    The list of installed_package_collection.
    ManagedInstanceId string
    CompartmentId string
    DisplayNameContains string
    DisplayNames List<string>
    Software source name.
    Filters List<GetManagedInstanceInstalledPackagesFilter>
    TimeInstallDateEnd string
    TimeInstallDateStart string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledPackageCollections []GetManagedInstanceInstalledPackagesInstalledPackageCollection
    The list of installed_package_collection.
    ManagedInstanceId string
    CompartmentId string
    DisplayNameContains string
    DisplayNames []string
    Software source name.
    Filters []GetManagedInstanceInstalledPackagesFilter
    TimeInstallDateEnd string
    TimeInstallDateStart string
    id String
    The provider-assigned unique ID for this managed resource.
    installedPackageCollections List<GetManagedInstanceInstalledPackagesInstalledPackageCollection>
    The list of installed_package_collection.
    managedInstanceId String
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<GetManagedInstanceInstalledPackagesFilter>
    timeInstallDateEnd String
    timeInstallDateStart String
    id string
    The provider-assigned unique ID for this managed resource.
    installedPackageCollections GetManagedInstanceInstalledPackagesInstalledPackageCollection[]
    The list of installed_package_collection.
    managedInstanceId string
    compartmentId string
    displayNameContains string
    displayNames string[]
    Software source name.
    filters GetManagedInstanceInstalledPackagesFilter[]
    timeInstallDateEnd string
    timeInstallDateStart string
    id String
    The provider-assigned unique ID for this managed resource.
    installedPackageCollections List<Property Map>
    The list of installed_package_collection.
    managedInstanceId String
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<Property Map>
    timeInstallDateEnd String
    timeInstallDateStart String

    Supporting Types

    GetManagedInstanceInstalledPackagesFilter

    Name string
    Unique identifier for the package.
    Values List<string>
    Regex bool
    Name string
    Unique identifier for the package.
    Values []string
    Regex bool
    name String
    Unique identifier for the package.
    values List<String>
    regex Boolean
    name string
    Unique identifier for the package.
    values string[]
    regex boolean
    name str
    Unique identifier for the package.
    values Sequence[str]
    regex bool
    name String
    Unique identifier for the package.
    values List<String>
    regex Boolean

    GetManagedInstanceInstalledPackagesInstalledPackageCollection

    items List<Property Map>
    List of installed packages.

    GetManagedInstanceInstalledPackagesInstalledPackageCollectionItem

    Architecture string
    The architecture for which this package was built.
    DisplayName string
    A filter to return resources that match the given display names.
    Name string
    Unique identifier for the package.
    PackageClassification string
    Status of the software package.
    SoftwareSources List<GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    TimeInstalled string
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    TimeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    Type string
    Type of the package.
    Version string
    Version of the installed package.
    Architecture string
    The architecture for which this package was built.
    DisplayName string
    A filter to return resources that match the given display names.
    Name string
    Unique identifier for the package.
    PackageClassification string
    Status of the software package.
    SoftwareSources []GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource
    List of software sources that provide the software package.
    TimeInstalled string
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    TimeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    Type string
    Type of the package.
    Version string
    Version of the installed package.
    architecture String
    The architecture for which this package was built.
    displayName String
    A filter to return resources that match the given display names.
    name String
    Unique identifier for the package.
    packageClassification String
    Status of the software package.
    softwareSources List<GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    timeInstalled String
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    timeIssued String
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    type String
    Type of the package.
    version String
    Version of the installed package.
    architecture string
    The architecture for which this package was built.
    displayName string
    A filter to return resources that match the given display names.
    name string
    Unique identifier for the package.
    packageClassification string
    Status of the software package.
    softwareSources GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource[]
    List of software sources that provide the software package.
    timeInstalled string
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    timeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    type string
    Type of the package.
    version string
    Version of the installed 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.
    name str
    Unique identifier for the package.
    package_classification str
    Status of the software package.
    software_sources Sequence[osmanagementhub.GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource]
    List of software sources that provide the software package.
    time_installed str
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    time_issued str
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    type str
    Type of the package.
    version str
    Version of the installed package.
    architecture String
    The architecture for which this package was built.
    displayName String
    A filter to return resources that match the given display names.
    name String
    Unique identifier for the package.
    packageClassification String
    Status of the software package.
    softwareSources List<Property Map>
    List of software sources that provide the software package.
    timeInstalled String
    The date and time the package was installed, as described in RFC 3339, section 14.29.
    timeIssued String
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    type String
    Type of the package.
    version String
    Version of the installed package.

    GetManagedInstanceInstalledPackagesInstalledPackageCollectionItemSoftwareSource

    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.18.0 published on Friday, Nov 22, 2024 by Pulumi