1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceErrata
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.OsManagementHub.getManagedInstanceErrata

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Returns a list of applicable errata on the managed instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedInstanceErrata = oci.OsManagementHub.getManagedInstanceErrata({
        managedInstanceId: testManagedInstance.id,
        classificationTypes: managedInstanceErrataClassificationType,
        compartmentId: compartmentId,
        names: managedInstanceErrataName,
        nameContains: managedInstanceErrataNameContains,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_instance_errata = oci.OsManagementHub.get_managed_instance_errata(managed_instance_id=test_managed_instance["id"],
        classification_types=managed_instance_errata_classification_type,
        compartment_id=compartment_id,
        names=managed_instance_errata_name,
        name_contains=managed_instance_errata_name_contains)
    
    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.GetManagedInstanceErrata(ctx, &osmanagementhub.GetManagedInstanceErrataArgs{
    			ManagedInstanceId:   testManagedInstance.Id,
    			ClassificationTypes: managedInstanceErrataClassificationType,
    			CompartmentId:       pulumi.StringRef(compartmentId),
    			Names:               managedInstanceErrataName,
    			NameContains:        pulumi.StringRef(managedInstanceErrataNameContains),
    		}, 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 testManagedInstanceErrata = Oci.OsManagementHub.GetManagedInstanceErrata.Invoke(new()
        {
            ManagedInstanceId = testManagedInstance.Id,
            ClassificationTypes = managedInstanceErrataClassificationType,
            CompartmentId = compartmentId,
            Names = managedInstanceErrataName,
            NameContains = managedInstanceErrataNameContains,
        });
    
    });
    
    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.GetManagedInstanceErrataArgs;
    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 testManagedInstanceErrata = OsManagementHubFunctions.getManagedInstanceErrata(GetManagedInstanceErrataArgs.builder()
                .managedInstanceId(testManagedInstance.id())
                .classificationTypes(managedInstanceErrataClassificationType)
                .compartmentId(compartmentId)
                .names(managedInstanceErrataName)
                .nameContains(managedInstanceErrataNameContains)
                .build());
    
        }
    }
    
    variables:
      testManagedInstanceErrata:
        fn::invoke:
          Function: oci:OsManagementHub:getManagedInstanceErrata
          Arguments:
            managedInstanceId: ${testManagedInstance.id}
            classificationTypes: ${managedInstanceErrataClassificationType}
            compartmentId: ${compartmentId}
            names: ${managedInstanceErrataName}
            nameContains: ${managedInstanceErrataNameContains}
    

    Using getManagedInstanceErrata

    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 getManagedInstanceErrata(args: GetManagedInstanceErrataArgs, opts?: InvokeOptions): Promise<GetManagedInstanceErrataResult>
    function getManagedInstanceErrataOutput(args: GetManagedInstanceErrataOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceErrataResult>
    def get_managed_instance_errata(classification_types: Optional[Sequence[str]] = None,
                                    compartment_id: Optional[str] = None,
                                    filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceErrataFilter]] = None,
                                    managed_instance_id: Optional[str] = None,
                                    name_contains: Optional[str] = None,
                                    names: Optional[Sequence[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetManagedInstanceErrataResult
    def get_managed_instance_errata_output(classification_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    compartment_id: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceErrataFilterArgs]]]] = None,
                                    managed_instance_id: Optional[pulumi.Input[str]] = None,
                                    name_contains: Optional[pulumi.Input[str]] = None,
                                    names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceErrataResult]
    func GetManagedInstanceErrata(ctx *Context, args *GetManagedInstanceErrataArgs, opts ...InvokeOption) (*GetManagedInstanceErrataResult, error)
    func GetManagedInstanceErrataOutput(ctx *Context, args *GetManagedInstanceErrataOutputArgs, opts ...InvokeOption) GetManagedInstanceErrataResultOutput

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

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

    The following arguments are supported:

    ManagedInstanceId string
    The OCID of the managed instance.
    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.
    Filters List<GetManagedInstanceErrataFilter>
    NameContains string
    A filter to return resources that may partially match the erratum name given.
    Names List<string>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    ManagedInstanceId string
    The OCID of the managed instance.
    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.
    Filters []GetManagedInstanceErrataFilter
    NameContains string
    A filter to return resources that may partially match the erratum name given.
    Names []string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    managedInstanceId String
    The OCID of the managed instance.
    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.
    filters List<GetManagedInstanceErrataFilter>
    nameContains String
    A filter to return resources that may partially match the erratum name given.
    names List<String>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    managedInstanceId string
    The OCID of the managed instance.
    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.
    filters GetManagedInstanceErrataFilter[]
    nameContains string
    A filter to return resources that may partially match the erratum name given.
    names string[]
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    managed_instance_id str
    The OCID of the managed instance.
    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.
    filters Sequence[osmanagementhub.GetManagedInstanceErrataFilter]
    name_contains str
    A filter to return resources that may partially match the erratum name given.
    names Sequence[str]
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    managedInstanceId String
    The OCID of the managed instance.
    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.
    filters List<Property Map>
    nameContains String
    A filter to return resources that may partially match the erratum name given.
    names List<String>
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804

    getManagedInstanceErrata Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceErratumSummaryCollections List<GetManagedInstanceErrataManagedInstanceErratumSummaryCollection>
    The list of managed_instance_erratum_summary_collection.
    ManagedInstanceId string
    ClassificationTypes List<string>
    CompartmentId string
    Filters List<GetManagedInstanceErrataFilter>
    NameContains string
    Names List<string>
    The name of the software package.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedInstanceErratumSummaryCollections []GetManagedInstanceErrataManagedInstanceErratumSummaryCollection
    The list of managed_instance_erratum_summary_collection.
    ManagedInstanceId string
    ClassificationTypes []string
    CompartmentId string
    Filters []GetManagedInstanceErrataFilter
    NameContains string
    Names []string
    The name of the software package.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceErratumSummaryCollections List<GetManagedInstanceErrataManagedInstanceErratumSummaryCollection>
    The list of managed_instance_erratum_summary_collection.
    managedInstanceId String
    classificationTypes List<String>
    compartmentId String
    filters List<GetManagedInstanceErrataFilter>
    nameContains String
    names List<String>
    The name of the software package.
    id string
    The provider-assigned unique ID for this managed resource.
    managedInstanceErratumSummaryCollections GetManagedInstanceErrataManagedInstanceErratumSummaryCollection[]
    The list of managed_instance_erratum_summary_collection.
    managedInstanceId string
    classificationTypes string[]
    compartmentId string
    filters GetManagedInstanceErrataFilter[]
    nameContains string
    names string[]
    The name of the software package.
    id str
    The provider-assigned unique ID for this managed resource.
    managed_instance_erratum_summary_collections Sequence[osmanagementhub.GetManagedInstanceErrataManagedInstanceErratumSummaryCollection]
    The list of managed_instance_erratum_summary_collection.
    managed_instance_id str
    classification_types Sequence[str]
    compartment_id str
    filters Sequence[osmanagementhub.GetManagedInstanceErrataFilter]
    name_contains str
    names Sequence[str]
    The name of the software package.
    id String
    The provider-assigned unique ID for this managed resource.
    managedInstanceErratumSummaryCollections List<Property Map>
    The list of managed_instance_erratum_summary_collection.
    managedInstanceId String
    classificationTypes List<String>
    compartmentId String
    filters List<Property Map>
    nameContains String
    names List<String>
    The name of the software package.

    Supporting Types

    GetManagedInstanceErrataFilter

    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Values List<string>
    Regex bool
    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Values []string
    Regex bool
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    values List<String>
    regex Boolean
    name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    values string[]
    regex boolean
    name str
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    values Sequence[str]
    regex bool
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    values List<String>
    regex Boolean

    GetManagedInstanceErrataManagedInstanceErratumSummaryCollection

    items List<Property Map>
    List of errata.

    GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItem

    AdvisoryType string
    The advisory type of the erratum.
    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Packages List<GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage>
    The list of packages affected by this erratum.
    RelatedCves List<string>
    The list of CVEs applicable to this erratum.
    Synopsis string
    A summary description of the erratum.
    TimeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    AdvisoryType string
    The advisory type of the erratum.
    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Packages []GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage
    The list of packages affected by this erratum.
    RelatedCves []string
    The list of CVEs applicable to this erratum.
    Synopsis string
    A summary description of the erratum.
    TimeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    advisoryType String
    The advisory type of the erratum.
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    packages List<GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage>
    The list of packages affected by this erratum.
    relatedCves List<String>
    The list of CVEs applicable to this erratum.
    synopsis String
    A summary description of the erratum.
    timeIssued String
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    advisoryType string
    The advisory type of the erratum.
    name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    packages GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage[]
    The list of packages affected by this erratum.
    relatedCves string[]
    The list of CVEs applicable to this erratum.
    synopsis string
    A summary description of the erratum.
    timeIssued string
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    advisory_type str
    The advisory type of the erratum.
    name str
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    packages Sequence[osmanagementhub.GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage]
    The list of packages affected by this erratum.
    related_cves Sequence[str]
    The list of CVEs applicable to this erratum.
    synopsis str
    A summary description of the erratum.
    time_issued str
    The date and time the package was issued by a providing erratum (in RFC 3339 format).
    advisoryType String
    The advisory type of the erratum.
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    packages List<Property Map>
    The list of packages affected by this erratum.
    relatedCves List<String>
    The list of CVEs applicable to this erratum.
    synopsis String
    A summary description of the erratum.
    timeIssued String
    The date and time the package was issued by a providing erratum (in RFC 3339 format).

    GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItemPackage

    Architecture string
    The CPU architecture type for which this package was built.
    DisplayName string
    Full package name in NERVA format. This value should be unique.
    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Type string
    Type of the package.
    Version string
    The version of the software package.
    Architecture string
    The CPU architecture type for which this package was built.
    DisplayName string
    Full package name in NERVA format. This value should be unique.
    Name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    Type string
    Type of the package.
    Version string
    The version of the software package.
    architecture String
    The CPU architecture type for which this package was built.
    displayName String
    Full package name in NERVA format. This value should be unique.
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    type String
    Type of the package.
    version String
    The version of the software package.
    architecture string
    The CPU architecture type for which this package was built.
    displayName string
    Full package name in NERVA format. This value should be unique.
    name string
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    type string
    Type of the package.
    version string
    The version of the software package.
    architecture str
    The CPU architecture type for which this package was built.
    display_name str
    Full package name in NERVA format. This value should be unique.
    name str
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    type str
    Type of the package.
    version str
    The version of the software package.
    architecture String
    The CPU architecture type for which this package was built.
    displayName String
    Full package name in NERVA format. This value should be unique.
    name String
    The assigned erratum name. It's unique and not changeable. Example: ELSA-2020-5804
    type String
    Type of the package.
    version String
    The version of the software package.

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