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

oci.OsManagementHub.getManagedInstanceUpdatablePackages

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

    Returns a list of updatable packages for a managed instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceUpdatablePackages = oci.OsManagementHub.getManagedInstanceUpdatablePackages({
        managedInstanceId: testManagedInstance.id,
        advisoryNames: managedInstanceUpdatablePackageAdvisoryName,
        classificationTypes: managedInstanceUpdatablePackageClassificationType,
        compartmentId: compartmentId,
        displayNames: managedInstanceUpdatablePackageDisplayName,
        displayNameContains: managedInstanceUpdatablePackageDisplayNameContains,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_updatable_packages = oci.OsManagementHub.get_managed_instance_updatable_packages(managed_instance_id=test_managed_instance["id"],
        advisory_names=managed_instance_updatable_package_advisory_name,
        classification_types=managed_instance_updatable_package_classification_type,
        compartment_id=compartment_id,
        display_names=managed_instance_updatable_package_display_name,
        display_name_contains=managed_instance_updatable_package_display_name_contains)
    
    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.GetManagedInstanceUpdatablePackages(ctx, &osmanagementhub.GetManagedInstanceUpdatablePackagesArgs{
    			ManagedInstanceId:   testManagedInstance.Id,
    			AdvisoryNames:       managedInstanceUpdatablePackageAdvisoryName,
    			ClassificationTypes: managedInstanceUpdatablePackageClassificationType,
    			CompartmentId:       pulumi.StringRef(compartmentId),
    			DisplayNames:        managedInstanceUpdatablePackageDisplayName,
    			DisplayNameContains: pulumi.StringRef(managedInstanceUpdatablePackageDisplayNameContains),
    		}, 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 testManagedInstanceUpdatablePackages = Oci.OsManagementHub.GetManagedInstanceUpdatablePackages.Invoke(new()
        {
            ManagedInstanceId = testManagedInstance.Id,
            AdvisoryNames = managedInstanceUpdatablePackageAdvisoryName,
            ClassificationTypes = managedInstanceUpdatablePackageClassificationType,
            CompartmentId = compartmentId,
            DisplayNames = managedInstanceUpdatablePackageDisplayName,
            DisplayNameContains = managedInstanceUpdatablePackageDisplayNameContains,
        });
    
    });
    
    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.GetManagedInstanceUpdatablePackagesArgs;
    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 testManagedInstanceUpdatablePackages = OsManagementHubFunctions.getManagedInstanceUpdatablePackages(GetManagedInstanceUpdatablePackagesArgs.builder()
                .managedInstanceId(testManagedInstance.id())
                .advisoryNames(managedInstanceUpdatablePackageAdvisoryName)
                .classificationTypes(managedInstanceUpdatablePackageClassificationType)
                .compartmentId(compartmentId)
                .displayNames(managedInstanceUpdatablePackageDisplayName)
                .displayNameContains(managedInstanceUpdatablePackageDisplayNameContains)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceUpdatablePackages:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceUpdatablePackages
          Arguments:
            managedInstanceId: ${testManagedInstance.id}
            advisoryNames: ${managedInstanceUpdatablePackageAdvisoryName}
            classificationTypes: ${managedInstanceUpdatablePackageClassificationType}
            compartmentId: ${compartmentId}
            displayNames: ${managedInstanceUpdatablePackageDisplayName}
            displayNameContains: ${managedInstanceUpdatablePackageDisplayNameContains}
    

    Using getManagedInstanceUpdatablePackages

    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 getManagedInstanceUpdatablePackages(args: GetManagedInstanceUpdatablePackagesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceUpdatablePackagesResult>
    function getManagedInstanceUpdatablePackagesOutput(args: GetManagedInstanceUpdatablePackagesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceUpdatablePackagesResult>
    def get_managed_instance_updatable_packages(advisory_names: Optional[Sequence[str]] = None,
                                                classification_types: Optional[Sequence[str]] = None,
                                                compartment_id: Optional[str] = None,
                                                display_name_contains: Optional[str] = None,
                                                display_names: Optional[Sequence[str]] = None,
                                                filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceUpdatablePackagesFilter]] = None,
                                                managed_instance_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetManagedInstanceUpdatablePackagesResult
    def get_managed_instance_updatable_packages_output(advisory_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                classification_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                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.GetManagedInstanceUpdatablePackagesFilterArgs]]]] = None,
                                                managed_instance_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceUpdatablePackagesResult]
    func GetManagedInstanceUpdatablePackages(ctx *Context, args *GetManagedInstanceUpdatablePackagesArgs, opts ...InvokeOption) (*GetManagedInstanceUpdatablePackagesResult, error)
    func GetManagedInstanceUpdatablePackagesOutput(ctx *Context, args *GetManagedInstanceUpdatablePackagesOutputArgs, opts ...InvokeOption) GetManagedInstanceUpdatablePackagesResultOutput

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

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

    The following arguments are supported:

    ManagedInstanceId string
    The OCID of the managed instance.
    AdvisoryNames List<string>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    ClassificationTypes List<string>
    A filter to return only packages that match the given update classification type.
    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<GetManagedInstanceUpdatablePackagesFilter>
    ManagedInstanceId string
    The OCID of the managed instance.
    AdvisoryNames []string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    ClassificationTypes []string
    A filter to return only packages that match the given update classification type.
    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 []GetManagedInstanceUpdatablePackagesFilter
    managedInstanceId String
    The OCID of the managed instance.
    advisoryNames List<String>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    classificationTypes List<String>
    A filter to return only packages that match the given update classification type.
    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<GetManagedInstanceUpdatablePackagesFilter>
    managedInstanceId string
    The OCID of the managed instance.
    advisoryNames string[]
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    classificationTypes string[]
    A filter to return only packages that match the given update classification type.
    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 GetManagedInstanceUpdatablePackagesFilter[]
    managed_instance_id str
    The OCID of the managed instance.
    advisory_names Sequence[str]
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    classification_types Sequence[str]
    A filter to return only packages that match the given update classification type.
    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.GetManagedInstanceUpdatablePackagesFilter]
    managedInstanceId String
    The OCID of the managed instance.
    advisoryNames List<String>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    classificationTypes List<String>
    A filter to return only packages that match the given update classification type.
    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>

    getManagedInstanceUpdatablePackages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    UpdatablePackageCollections List<GetManagedInstanceUpdatablePackagesUpdatablePackageCollection>
    The list of updatable_package_collection.
    AdvisoryNames List<string>
    ClassificationTypes List<string>
    CompartmentId string
    DisplayNameContains string
    DisplayNames List<string>
    Software source name.
    Filters List<GetManagedInstanceUpdatablePackagesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceId string
    UpdatablePackageCollections []GetManagedInstanceUpdatablePackagesUpdatablePackageCollection
    The list of updatable_package_collection.
    AdvisoryNames []string
    ClassificationTypes []string
    CompartmentId string
    DisplayNameContains string
    DisplayNames []string
    Software source name.
    Filters []GetManagedInstanceUpdatablePackagesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    updatablePackageCollections List<GetManagedInstanceUpdatablePackagesUpdatablePackageCollection>
    The list of updatable_package_collection.
    advisoryNames List<String>
    classificationTypes List<String>
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<GetManagedInstanceUpdatablePackagesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceId string
    updatablePackageCollections GetManagedInstanceUpdatablePackagesUpdatablePackageCollection[]
    The list of updatable_package_collection.
    advisoryNames string[]
    classificationTypes string[]
    compartmentId string
    displayNameContains string
    displayNames string[]
    Software source name.
    filters GetManagedInstanceUpdatablePackagesFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceId String
    updatablePackageCollections List<Property Map>
    The list of updatable_package_collection.
    advisoryNames List<String>
    classificationTypes List<String>
    compartmentId String
    displayNameContains String
    displayNames List<String>
    Software source name.
    filters List<Property Map>

    Supporting Types

    GetManagedInstanceUpdatablePackagesFilter

    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

    GetManagedInstanceUpdatablePackagesUpdatablePackageCollection

    items List<Property Map>
    List of updatable packages.

    GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItem

    Architecture string
    The architecture for which this package was built.
    DisplayName string
    A filter to return resources that match the given display names.
    Erratas List<string>
    List of errata applicable to this update.
    InstalledVersion string
    The version of the package that is currently installed on the instance.
    Name string
    Unique identifier for the package.
    PackageClassification string
    Status of the software package.
    RelatedCves List<string>
    List of CVEs applicable to this erratum.
    SoftwareSources List<GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    Type string
    Type of the package.
    UpdateType string
    The type of update.
    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.
    Erratas []string
    List of errata applicable to this update.
    InstalledVersion string
    The version of the package that is currently installed on the instance.
    Name string
    Unique identifier for the package.
    PackageClassification string
    Status of the software package.
    RelatedCves []string
    List of CVEs applicable to this erratum.
    SoftwareSources []GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource
    List of software sources that provide the software package.
    Type string
    Type of the package.
    UpdateType string
    The type of update.
    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.
    erratas List<String>
    List of errata applicable to this update.
    installedVersion String
    The version of the package that is currently installed on the instance.
    name String
    Unique identifier for the package.
    packageClassification String
    Status of the software package.
    relatedCves List<String>
    List of CVEs applicable to this erratum.
    softwareSources List<GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource>
    List of software sources that provide the software package.
    type String
    Type of the package.
    updateType String
    The type of update.
    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.
    erratas string[]
    List of errata applicable to this update.
    installedVersion string
    The version of the package that is currently installed on the instance.
    name string
    Unique identifier for the package.
    packageClassification string
    Status of the software package.
    relatedCves string[]
    List of CVEs applicable to this erratum.
    softwareSources GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource[]
    List of software sources that provide the software package.
    type string
    Type of the package.
    updateType string
    The type of update.
    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.
    erratas Sequence[str]
    List of errata applicable to this update.
    installed_version str
    The version of the package that is currently installed on the instance.
    name str
    Unique identifier for the package.
    package_classification str
    Status of the software package.
    related_cves Sequence[str]
    List of CVEs applicable to this erratum.
    software_sources Sequence[osmanagementhub.GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource]
    List of software sources that provide the software package.
    type str
    Type of the package.
    update_type str
    The type of update.
    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.
    erratas List<String>
    List of errata applicable to this update.
    installedVersion String
    The version of the package that is currently installed on the instance.
    name String
    Unique identifier for the package.
    packageClassification String
    Status of the software package.
    relatedCves List<String>
    List of CVEs applicable to this erratum.
    softwareSources List<Property Map>
    List of software sources that provide the software package.
    type String
    Type of the package.
    updateType String
    The type of update.
    version String
    Version of the installed package.

    GetManagedInstanceUpdatablePackagesUpdatablePackageCollectionItemSoftwareSource

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi