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

oci.OsManagementHub.getErratum

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_erratum = oci.OsManagementHub.get_erratum(compartment_id=compartment_id,
        name=erratum_name)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testErratum:
        fn::invoke:
          Function: oci:OsManagementHub:getErratum
          Arguments:
            compartmentId: ${compartmentId}
            name: ${erratumName}
    

    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>
    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]
    func GetErratum(ctx *Context, args *GetErratumArgs, opts ...InvokeOption) (*GetErratumResult, error)
    func GetErratumOutput(ctx *Context, args *GetErratumOutputArgs, opts ...InvokeOption) GetErratumResultOutput

    > 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)
    }
    public static CompletableFuture<GetErratumResult> getErratum(GetErratumArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getErratum:getErratum
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    Name string
    The erratum name (such as ELSA-2023-34678).
    CompartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    Name string
    The erratum name (such as ELSA-2023-34678).
    compartmentId String
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    name String
    The erratum name (such as ELSA-2023-34678).
    compartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    name string
    The erratum name (such as ELSA-2023-34678).
    compartment_id str
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    name str
    The erratum name (such as ELSA-2023-34678).
    compartmentId String
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    name 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 string
    The architecture for which this software was built.
    Checksum string
    Checksum of the package.
    ChecksumType string
    Type of the checksum.
    DisplayName string
    Software source name.
    IsLatest bool
    Indicates whether this package is the latest version.
    Name string
    The erratum name (such as ELSA-2023-34678).
    OsFamilies List<string>
    The OS families the package belongs to.
    SoftwareSources 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 string
    Type of the package.
    Version string
    Version of the package.
    Architecture string
    The architecture for which this software was built.
    Checksum string
    Checksum of the package.
    ChecksumType string
    Type of the checksum.
    DisplayName string
    Software source name.
    IsLatest bool
    Indicates whether this package is the latest version.
    Name string
    The erratum name (such as ELSA-2023-34678).
    OsFamilies []string
    The OS families the package belongs to.
    SoftwareSources []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 string
    Type of the package.
    Version string
    Version of the package.
    architecture String
    The architecture for which this software was built.
    checksum String
    Checksum of the package.
    checksumType String
    Type of the checksum.
    displayName String
    Software source name.
    isLatest Boolean
    Indicates whether this package is the latest version.
    name String
    The erratum name (such as ELSA-2023-34678).
    osFamilies List<String>
    The OS families the package belongs to.
    softwareSources 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 String
    Type of the package.
    version String
    Version of the package.
    architecture string
    The architecture for which this software was built.
    checksum string
    Checksum of the package.
    checksumType string
    Type of the checksum.
    displayName string
    Software source name.
    isLatest boolean
    Indicates whether this package is the latest version.
    name string
    The erratum name (such as ELSA-2023-34678).
    osFamilies string[]
    The OS families the package belongs to.
    softwareSources 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 string
    Type of the package.
    version string
    Version of the package.
    architecture str
    The architecture for which this software was built.
    checksum str
    Checksum of the package.
    checksum_type str
    Type of the checksum.
    display_name str
    Software source name.
    is_latest bool
    Indicates whether this package is the latest version.
    name str
    The erratum name (such as ELSA-2023-34678).
    os_families Sequence[str]
    The OS families the package belongs to.
    software_sources 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 str
    Type of the package.
    version str
    Version of the package.
    architecture String
    The architecture for which this software was built.
    checksum String
    Checksum of the package.
    checksumType String
    Type of the checksum.
    displayName String
    Software source name.
    isLatest Boolean
    Indicates whether this package is the latest version.
    name String
    The erratum name (such as ELSA-2023-34678).
    osFamilies List<String>
    The OS families the package belongs to.
    softwareSources 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 String
    Type of the package.
    version String
    Version of the package.

    GetErratumPackageSoftwareSource

    Description string
    Software source description.
    DisplayName string
    Software source name.
    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
    Software source name.
    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
    Software source name.
    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
    Software source name.
    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
    Software source name.
    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
    Software source name.
    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.17.0 published on Friday, Nov 15, 2024 by Pulumi