Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagedInstanceErrata
Explore with Pulumi AI
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[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[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)
public static Output<GetManagedInstanceErrataResult> getManagedInstanceErrata(GetManagedInstanceErrataArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceErrata:getManagedInstanceErrata
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- 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<GetManaged Instance Errata Filter> 
- 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
- ManagedInstance stringId 
- 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
[]GetManaged Instance Errata Filter 
- 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
- managedInstance StringId 
- 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<GetManaged Instance Errata Filter> 
- 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
- managedInstance stringId 
- 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
GetManaged Instance Errata Filter[] 
- 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_ strid 
- 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[GetManaged Instance Errata Filter] 
- 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
- managedInstance StringId 
- 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.
- ManagedInstance List<GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection> 
- The list of managed_instance_erratum_summary_collection.
- ManagedInstance stringId 
- ClassificationTypes List<string>
- CompartmentId string
- Filters
List<GetManaged Instance Errata Filter> 
- NameContains string
- Names List<string>
- The name of the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance []GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection 
- The list of managed_instance_erratum_summary_collection.
- ManagedInstance stringId 
- ClassificationTypes []string
- CompartmentId string
- Filters
[]GetManaged Instance Errata Filter 
- NameContains string
- Names []string
- The name of the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance List<GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection> 
- The list of managed_instance_erratum_summary_collection.
- managedInstance StringId 
- classificationTypes List<String>
- compartmentId String
- filters
List<GetManaged Instance Errata Filter> 
- nameContains String
- names List<String>
- The name of the software package.
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection[] 
- The list of managed_instance_erratum_summary_collection.
- managedInstance stringId 
- classificationTypes string[]
- compartmentId string
- filters
GetManaged Instance Errata Filter[] 
- nameContains string
- names string[]
- The name of the software package.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ Sequence[Geterratum_ summary_ collections Managed Instance Errata Managed Instance Erratum Summary Collection] 
- The list of managed_instance_erratum_summary_collection.
- managed_instance_ strid 
- classification_types Sequence[str]
- compartment_id str
- filters
Sequence[GetManaged Instance Errata Filter] 
- name_contains str
- names Sequence[str]
- The name of the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance List<Property Map>Erratum Summary Collections 
- The list of managed_instance_erratum_summary_collection.
- managedInstance StringId 
- classificationTypes List<String>
- compartmentId String
- filters List<Property Map>
- nameContains String
- names List<String>
- The name of the software package.
Supporting Types
GetManagedInstanceErrataFilter    
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<GetManaged Instance Errata Managed Instance Erratum Summary Collection Item Package> 
- The list of packages affected by this erratum.
- 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
[]GetManaged Instance Errata Managed Instance Erratum Summary Collection Item Package 
- The list of packages affected by this erratum.
- []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<GetManaged Instance Errata Managed Instance Erratum Summary Collection Item Package> 
- The list of packages affected by this erratum.
- 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
GetManaged Instance Errata Managed Instance Erratum Summary Collection Item Package[] 
- The list of packages affected by this erratum.
- 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[GetManaged Instance Errata Managed Instance Erratum Summary Collection Item Package] 
- The list of packages affected by this erratum.
- 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.
- 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 ociTerraform Provider.