1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getErratum
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.OsManagementHub.getErratum

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides details about a specific Erratum resource in Oracle Cloud Infrastructure Os Management Hub service.

Returns information about the specified erratum based on its advisory name.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testErratum = oci.OsManagementHub.getErratum({
    compartmentId: compartmentId,
    name: erratumName,
});
Copy
import pulumi
import pulumi_oci as oci

test_erratum = oci.OsManagementHub.get_erratum(compartment_id=compartment_id,
    name=erratum_name)
Copy
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.GetErratum(ctx, &osmanagementhub.GetErratumArgs{
			CompartmentId: compartmentId,
			Name:          erratumName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testErratum = Oci.OsManagementHub.GetErratum.Invoke(new()
    {
        CompartmentId = compartmentId,
        Name = erratumName,
    });

});
Copy
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.GetErratumArgs;
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 testErratum = OsManagementHubFunctions.getErratum(GetErratumArgs.builder()
            .compartmentId(compartmentId)
            .name(erratumName)
            .build());

    }
}
Copy
variables:
  testErratum:
    fn::invoke:
      function: oci:OsManagementHub:getErratum
      arguments:
        compartmentId: ${compartmentId}
        name: ${erratumName}
Copy

Using getErratum

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 getErratum(args: GetErratumArgs, opts?: InvokeOptions): Promise<GetErratumResult>
function getErratumOutput(args: GetErratumOutputArgs, opts?: InvokeOptions): Output<GetErratumResult>
Copy
def get_erratum(compartment_id: Optional[str] = None,
                name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetErratumResult
def get_erratum_output(compartment_id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetErratumResult]
Copy
func GetErratum(ctx *Context, args *GetErratumArgs, opts ...InvokeOption) (*GetErratumResult, error)
func GetErratumOutput(ctx *Context, args *GetErratumOutputArgs, opts ...InvokeOption) GetErratumResultOutput
Copy

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

public static class GetErratum 
{
    public static Task<GetErratumResult> InvokeAsync(GetErratumArgs args, InvokeOptions? opts = null)
    public static Output<GetErratumResult> Invoke(GetErratumInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetErratumResult> getErratum(GetErratumArgs args, InvokeOptions options)
public static Output<GetErratumResult> getErratum(GetErratumArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getErratum:getErratum
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
Name This property is required. string
The erratum name (such as ELSA-2023-34678).
CompartmentId This property is required. string
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
Name This property is required. string
The erratum name (such as ELSA-2023-34678).
compartmentId This property is required. String
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
name This property is required. String
The erratum name (such as ELSA-2023-34678).
compartmentId This property is required. string
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
name This property is required. string
The erratum name (such as ELSA-2023-34678).
compartment_id This property is required. str
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
name This property is required. str
The erratum name (such as ELSA-2023-34678).
compartmentId This property is required. String
The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
name This property is required. String
The erratum name (such as ELSA-2023-34678).

getErratum Result

The following output properties are available:

AdvisorySeverity string
The severity for a security advisory, otherwise, null.
AdvisoryType string
The advisory type of the erratum.
ClassificationType string
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
CompartmentId string
Description string
Software source description.
From string
Information specifying from where the erratum was release.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Unique identifier for the package. Note that this is not an OCID.
OsFamilies List<string>
The OS families the package belongs to.
Packages List<GetErratumPackage>
List of packages affected by this erratum.
References string
Information describing how to find more information about. the erratum.
RelatedCves List<string>
List of CVEs applicable to this erratum.
Repositories List<string>
List of repository identifiers.
Solution string
Information describing how the erratum can be resolved.
Synopsis string
Summary description of the erratum.
TimeIssued string
The date and time the erratum was issued (in RFC 3339 format).
TimeUpdated string
The date and time the erratum was updated (in RFC 3339 format).
AdvisorySeverity string
The severity for a security advisory, otherwise, null.
AdvisoryType string
The advisory type of the erratum.
ClassificationType string
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
CompartmentId string
Description string
Software source description.
From string
Information specifying from where the erratum was release.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Unique identifier for the package. Note that this is not an OCID.
OsFamilies []string
The OS families the package belongs to.
Packages []GetErratumPackage
List of packages affected by this erratum.
References string
Information describing how to find more information about. the erratum.
RelatedCves []string
List of CVEs applicable to this erratum.
Repositories []string
List of repository identifiers.
Solution string
Information describing how the erratum can be resolved.
Synopsis string
Summary description of the erratum.
TimeIssued string
The date and time the erratum was issued (in RFC 3339 format).
TimeUpdated string
The date and time the erratum was updated (in RFC 3339 format).
advisorySeverity String
The severity for a security advisory, otherwise, null.
advisoryType String
The advisory type of the erratum.
classificationType String
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
compartmentId String
description String
Software source description.
from String
Information specifying from where the erratum was release.
id String
The provider-assigned unique ID for this managed resource.
name String
Unique identifier for the package. Note that this is not an OCID.
osFamilies List<String>
The OS families the package belongs to.
packages List<GetErratumPackage>
List of packages affected by this erratum.
references String
Information describing how to find more information about. the erratum.
relatedCves List<String>
List of CVEs applicable to this erratum.
repositories List<String>
List of repository identifiers.
solution String
Information describing how the erratum can be resolved.
synopsis String
Summary description of the erratum.
timeIssued String
The date and time the erratum was issued (in RFC 3339 format).
timeUpdated String
The date and time the erratum was updated (in RFC 3339 format).
advisorySeverity string
The severity for a security advisory, otherwise, null.
advisoryType string
The advisory type of the erratum.
classificationType string
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
compartmentId string
description string
Software source description.
from string
Information specifying from where the erratum was release.
id string
The provider-assigned unique ID for this managed resource.
name string
Unique identifier for the package. Note that this is not an OCID.
osFamilies string[]
The OS families the package belongs to.
packages GetErratumPackage[]
List of packages affected by this erratum.
references string
Information describing how to find more information about. the erratum.
relatedCves string[]
List of CVEs applicable to this erratum.
repositories string[]
List of repository identifiers.
solution string
Information describing how the erratum can be resolved.
synopsis string
Summary description of the erratum.
timeIssued string
The date and time the erratum was issued (in RFC 3339 format).
timeUpdated string
The date and time the erratum was updated (in RFC 3339 format).
advisory_severity str
The severity for a security advisory, otherwise, null.
advisory_type str
The advisory type of the erratum.
classification_type str
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
compartment_id str
description str
Software source description.
from_ str
Information specifying from where the erratum was release.
id str
The provider-assigned unique ID for this managed resource.
name str
Unique identifier for the package. Note that this is not an OCID.
os_families Sequence[str]
The OS families the package belongs to.
packages Sequence[osmanagementhub.GetErratumPackage]
List of packages affected by this erratum.
references str
Information describing how to find more information about. the erratum.
related_cves Sequence[str]
List of CVEs applicable to this erratum.
repositories Sequence[str]
List of repository identifiers.
solution str
Information describing how the erratum can be resolved.
synopsis str
Summary description of the erratum.
time_issued str
The date and time the erratum was issued (in RFC 3339 format).
time_updated str
The date and time the erratum was updated (in RFC 3339 format).
advisorySeverity String
The severity for a security advisory, otherwise, null.
advisoryType String
The advisory type of the erratum.
classificationType String
Type of the erratum. This property is deprecated and it will be removed in a future API release. Please refer to the advisoryType property instead.
compartmentId String
description String
Software source description.
from String
Information specifying from where the erratum was release.
id String
The provider-assigned unique ID for this managed resource.
name String
Unique identifier for the package. Note that this is not an OCID.
osFamilies List<String>
The OS families the package belongs to.
packages List<Property Map>
List of packages affected by this erratum.
references String
Information describing how to find more information about. the erratum.
relatedCves List<String>
List of CVEs applicable to this erratum.
repositories List<String>
List of repository identifiers.
solution String
Information describing how the erratum can be resolved.
synopsis String
Summary description of the erratum.
timeIssued String
The date and time the erratum was issued (in RFC 3339 format).
timeUpdated String
The date and time the erratum was updated (in RFC 3339 format).

Supporting Types

GetErratumPackage

Architecture This property is required. string
The architecture for which this software was built.
Checksum This property is required. string
Checksum of the package.
ChecksumType This property is required. string
Type of the checksum.
DisplayName This property is required. string
Software source name.
IsLatest This property is required. bool
Indicates whether this package is the latest version.
Name This property is required. string
The erratum name (such as ELSA-2023-34678).
OsFamilies This property is required. List<string>
The OS families the package belongs to.
SoftwareSources This property is required. List<GetErratumPackageSoftwareSource>
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
Type This property is required. string
Type of the package.
Version This property is required. string
Version of the package.
Architecture This property is required. string
The architecture for which this software was built.
Checksum This property is required. string
Checksum of the package.
ChecksumType This property is required. string
Type of the checksum.
DisplayName This property is required. string
Software source name.
IsLatest This property is required. bool
Indicates whether this package is the latest version.
Name This property is required. string
The erratum name (such as ELSA-2023-34678).
OsFamilies This property is required. []string
The OS families the package belongs to.
SoftwareSources This property is required. []GetErratumPackageSoftwareSource
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
Type This property is required. string
Type of the package.
Version This property is required. string
Version of the package.
architecture This property is required. String
The architecture for which this software was built.
checksum This property is required. String
Checksum of the package.
checksumType This property is required. String
Type of the checksum.
displayName This property is required. String
Software source name.
isLatest This property is required. Boolean
Indicates whether this package is the latest version.
name This property is required. String
The erratum name (such as ELSA-2023-34678).
osFamilies This property is required. List<String>
The OS families the package belongs to.
softwareSources This property is required. List<GetErratumPackageSoftwareSource>
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
type This property is required. String
Type of the package.
version This property is required. String
Version of the package.
architecture This property is required. string
The architecture for which this software was built.
checksum This property is required. string
Checksum of the package.
checksumType This property is required. string
Type of the checksum.
displayName This property is required. string
Software source name.
isLatest This property is required. boolean
Indicates whether this package is the latest version.
name This property is required. string
The erratum name (such as ELSA-2023-34678).
osFamilies This property is required. string[]
The OS families the package belongs to.
softwareSources This property is required. GetErratumPackageSoftwareSource[]
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
type This property is required. string
Type of the package.
version This property is required. string
Version of the package.
architecture This property is required. str
The architecture for which this software was built.
checksum This property is required. str
Checksum of the package.
checksum_type This property is required. str
Type of the checksum.
display_name This property is required. str
Software source name.
is_latest This property is required. bool
Indicates whether this package is the latest version.
name This property is required. str
The erratum name (such as ELSA-2023-34678).
os_families This property is required. Sequence[str]
The OS families the package belongs to.
software_sources This property is required. Sequence[osmanagementhub.GetErratumPackageSoftwareSource]
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
type This property is required. str
Type of the package.
version This property is required. str
Version of the package.
architecture This property is required. String
The architecture for which this software was built.
checksum This property is required. String
Checksum of the package.
checksumType This property is required. String
Type of the checksum.
displayName This property is required. String
Software source name.
isLatest This property is required. Boolean
Indicates whether this package is the latest version.
name This property is required. String
The erratum name (such as ELSA-2023-34678).
osFamilies This property is required. List<String>
The OS families the package belongs to.
softwareSources This property is required. List<Property Map>
List of software sources that provide the software package. This property is deprecated and it will be removed in a future API release.
type This property is required. String
Type of the package.
version This property is required. String
Version of the package.

GetErratumPackageSoftwareSource

Description This property is required. string
Software source description.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
IsMandatoryForAutonomousLinux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
SoftwareSourceType This property is required. string
Type of the software source.
Description This property is required. string
Software source description.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
IsMandatoryForAutonomousLinux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
SoftwareSourceType This property is required. string
Type of the software source.
description This property is required. String
Software source description.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. Boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. String
Type of the software source.
description This property is required. string
Software source description.
displayName This property is required. string
Software source name.
id This property is required. string
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. string
Type of the software source.
description This property is required. str
Software source description.
display_name This property is required. str
Software source name.
id This property is required. str
The OCID of the software source.
is_mandatory_for_autonomous_linux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
software_source_type This property is required. str
Type of the software source.
description This property is required. String
Software source description.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. Boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. 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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi