Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Managed
Instance stringId - The OCID of the managed instance.
- Classification
Types List<string> - A filter to return only packages that match the given update classification type.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
List<Get
Managed Instance Errata Filter> - Name
Contains 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
- Managed
Instance stringId - The OCID of the managed instance.
- Classification
Types []string - A filter to return only packages that match the given update classification type.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Filters
[]Get
Managed Instance Errata Filter - Name
Contains 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 StringId - The OCID of the managed instance.
- classification
Types List<String> - A filter to return only packages that match the given update classification type.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
List<Get
Managed Instance Errata Filter> - name
Contains 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
- managed
Instance stringId - The OCID of the managed instance.
- classification
Types string[] - A filter to return only packages that match the given update classification type.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- filters
Get
Managed Instance Errata Filter[] - name
Contains 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[osmanagementhub.
Get Managed 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
- managed
Instance StringId - The OCID of the managed instance.
- classification
Types List<String> - A filter to return only packages that match the given update classification type.
- compartment
Id 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>
- name
Contains 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.
- Managed
Instance List<GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection> - The list of managed_instance_erratum_summary_collection.
- Managed
Instance stringId - Classification
Types List<string> - Compartment
Id string - Filters
List<Get
Managed Instance Errata Filter> - Name
Contains string - Names List<string>
- The name of the software package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Instance []GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection - The list of managed_instance_erratum_summary_collection.
- Managed
Instance stringId - Classification
Types []string - Compartment
Id string - Filters
[]Get
Managed Instance Errata Filter - Name
Contains string - Names []string
- The name of the software package.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Instance List<GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection> - The list of managed_instance_erratum_summary_collection.
- managed
Instance StringId - classification
Types List<String> - compartment
Id String - filters
List<Get
Managed Instance Errata Filter> - name
Contains String - names List<String>
- The name of the software package.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Instance GetErratum Summary Collections Managed Instance Errata Managed Instance Erratum Summary Collection[] - The list of managed_instance_erratum_summary_collection.
- managed
Instance stringId - classification
Types string[] - compartment
Id string - filters
Get
Managed Instance Errata Filter[] - name
Contains string - names string[]
- The name of the software package.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
instance_ Sequence[osmanagementhub.erratum_ summary_ collections Get 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[osmanagementhub.
Get Managed 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.
- managed
Instance List<Property Map>Erratum Summary Collections - The list of managed_instance_erratum_summary_collection.
- managed
Instance StringId - classification
Types List<String> - compartment
Id String - filters List<Property Map>
- name
Contains String - names List<String>
- The name of the software package.
Supporting Types
GetManagedInstanceErrataFilter
GetManagedInstanceErrataManagedInstanceErratumSummaryCollection
- items List<Property Map>
- List of errata.
GetManagedInstanceErrataManagedInstanceErratumSummaryCollectionItem
- Advisory
Type 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<Get
Managed 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.
- Time
Issued string - The date and time the package was issued by a providing erratum (in RFC 3339 format).
- Advisory
Type string - The advisory type of the erratum.
- Name string
- The assigned erratum name. It's unique and not changeable. Example:
ELSA-2020-5804
- Packages
[]Get
Managed 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.
- Time
Issued string - The date and time the package was issued by a providing erratum (in RFC 3339 format).
- advisory
Type 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<Get
Managed 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.
- time
Issued String - The date and time the package was issued by a providing erratum (in RFC 3339 format).
- advisory
Type string - The advisory type of the erratum.
- name string
- The assigned erratum name. It's unique and not changeable. Example:
ELSA-2020-5804
- packages
Get
Managed 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.
- time
Issued 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.
Get Managed 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).
- advisory
Type 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.
- time
Issued 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.
- Display
Name 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.
- Display
Name 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.
- display
Name 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.
- display
Name 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.
- display
Name 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.