1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousContainerPatches
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Database.getAutonomousContainerPatches

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides the list of Autonomous Container Patches in Oracle Cloud Infrastructure Database service.

    Lists the patches applicable to the requested container database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousContainerPatches = oci.Database.getAutonomousContainerPatches({
        autonomousContainerDatabaseId: oci_database_autonomous_container_database.test_autonomous_container_database.id,
        compartmentId: _var.compartment_id,
        autonomousPatchType: _var.autonomous_container_patch_autonomous_patch_type,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_container_patches = oci.Database.get_autonomous_container_patches(autonomous_container_database_id=oci_database_autonomous_container_database["test_autonomous_container_database"]["id"],
        compartment_id=var["compartment_id"],
        autonomous_patch_type=var["autonomous_container_patch_autonomous_patch_type"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.GetAutonomousContainerPatches(ctx, &database.GetAutonomousContainerPatchesArgs{
    			AutonomousContainerDatabaseId: oci_database_autonomous_container_database.Test_autonomous_container_database.Id,
    			CompartmentId:                 _var.Compartment_id,
    			AutonomousPatchType:           pulumi.StringRef(_var.Autonomous_container_patch_autonomous_patch_type),
    		}, 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 testAutonomousContainerPatches = Oci.Database.GetAutonomousContainerPatches.Invoke(new()
        {
            AutonomousContainerDatabaseId = oci_database_autonomous_container_database.Test_autonomous_container_database.Id,
            CompartmentId = @var.Compartment_id,
            AutonomousPatchType = @var.Autonomous_container_patch_autonomous_patch_type,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.DatabaseFunctions;
    import com.pulumi.oci.Database.inputs.GetAutonomousContainerPatchesArgs;
    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 testAutonomousContainerPatches = DatabaseFunctions.getAutonomousContainerPatches(GetAutonomousContainerPatchesArgs.builder()
                .autonomousContainerDatabaseId(oci_database_autonomous_container_database.test_autonomous_container_database().id())
                .compartmentId(var_.compartment_id())
                .autonomousPatchType(var_.autonomous_container_patch_autonomous_patch_type())
                .build());
    
        }
    }
    
    variables:
      testAutonomousContainerPatches:
        fn::invoke:
          Function: oci:Database:getAutonomousContainerPatches
          Arguments:
            autonomousContainerDatabaseId: ${oci_database_autonomous_container_database.test_autonomous_container_database.id}
            compartmentId: ${var.compartment_id}
            autonomousPatchType: ${var.autonomous_container_patch_autonomous_patch_type}
    

    Using getAutonomousContainerPatches

    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 getAutonomousContainerPatches(args: GetAutonomousContainerPatchesArgs, opts?: InvokeOptions): Promise<GetAutonomousContainerPatchesResult>
    function getAutonomousContainerPatchesOutput(args: GetAutonomousContainerPatchesOutputArgs, opts?: InvokeOptions): Output<GetAutonomousContainerPatchesResult>
    def get_autonomous_container_patches(autonomous_container_database_id: Optional[str] = None,
                                         autonomous_patch_type: Optional[str] = None,
                                         compartment_id: Optional[str] = None,
                                         filters: Optional[Sequence[_database.GetAutonomousContainerPatchesFilter]] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetAutonomousContainerPatchesResult
    def get_autonomous_container_patches_output(autonomous_container_database_id: Optional[pulumi.Input[str]] = None,
                                         autonomous_patch_type: Optional[pulumi.Input[str]] = None,
                                         compartment_id: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousContainerPatchesFilterArgs]]]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousContainerPatchesResult]
    func GetAutonomousContainerPatches(ctx *Context, args *GetAutonomousContainerPatchesArgs, opts ...InvokeOption) (*GetAutonomousContainerPatchesResult, error)
    func GetAutonomousContainerPatchesOutput(ctx *Context, args *GetAutonomousContainerPatchesOutputArgs, opts ...InvokeOption) GetAutonomousContainerPatchesResultOutput

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

    public static class GetAutonomousContainerPatches 
    {
        public static Task<GetAutonomousContainerPatchesResult> InvokeAsync(GetAutonomousContainerPatchesArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousContainerPatchesResult> Invoke(GetAutonomousContainerPatchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutonomousContainerPatchesResult> getAutonomousContainerPatches(GetAutonomousContainerPatchesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousContainerPatches:getAutonomousContainerPatches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AutonomousContainerDatabaseId string
    The Autonomous Container Database OCID.
    CompartmentId string
    The compartment OCID.
    AutonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    Filters List<GetAutonomousContainerPatchesFilter>
    AutonomousContainerDatabaseId string
    The Autonomous Container Database OCID.
    CompartmentId string
    The compartment OCID.
    AutonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    Filters []GetAutonomousContainerPatchesFilter
    autonomousContainerDatabaseId String
    The Autonomous Container Database OCID.
    compartmentId String
    The compartment OCID.
    autonomousPatchType String
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    filters List<GetAutonomousContainerPatchesFilter>
    autonomousContainerDatabaseId string
    The Autonomous Container Database OCID.
    compartmentId string
    The compartment OCID.
    autonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    filters GetAutonomousContainerPatchesFilter[]
    autonomous_container_database_id str
    The Autonomous Container Database OCID.
    compartment_id str
    The compartment OCID.
    autonomous_patch_type str
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    filters Sequence[database.GetAutonomousContainerPatchesFilter]
    autonomousContainerDatabaseId String
    The Autonomous Container Database OCID.
    compartmentId String
    The compartment OCID.
    autonomousPatchType String
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    filters List<Property Map>

    getAutonomousContainerPatches Result

    The following output properties are available:

    AutonomousContainerDatabaseId string
    AutonomousPatches List<GetAutonomousContainerPatchesAutonomousPatch>
    The list of autonomous_patches.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AutonomousPatchType string
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    Filters List<GetAutonomousContainerPatchesFilter>
    AutonomousContainerDatabaseId string
    AutonomousPatches []GetAutonomousContainerPatchesAutonomousPatch
    The list of autonomous_patches.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AutonomousPatchType string
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    Filters []GetAutonomousContainerPatchesFilter
    autonomousContainerDatabaseId String
    autonomousPatches List<GetAutonomousContainerPatchesAutonomousPatch>
    The list of autonomous_patches.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    autonomousPatchType String
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    filters List<GetAutonomousContainerPatchesFilter>
    autonomousContainerDatabaseId string
    autonomousPatches GetAutonomousContainerPatchesAutonomousPatch[]
    The list of autonomous_patches.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    autonomousPatchType string
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    filters GetAutonomousContainerPatchesFilter[]
    autonomous_container_database_id str
    autonomous_patches Sequence[database.GetAutonomousContainerPatchesAutonomousPatch]
    The list of autonomous_patches.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    autonomous_patch_type str
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    filters Sequence[database.GetAutonomousContainerPatchesFilter]
    autonomousContainerDatabaseId String
    autonomousPatches List<Property Map>
    The list of autonomous_patches.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    autonomousPatchType String
    Maintenance run type, either "QUARTERLY" or "TIMEZONE".
    filters List<Property Map>

    Supporting Types

    GetAutonomousContainerPatchesAutonomousPatch

    AutonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    Description string
    The text describing this patch package.
    Id string
    The OCID of the patch.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    PatchModel string
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    Quarter string
    First month of the quarter in which the patch was released.
    State string
    The current state of the patch as a result of lastAction.
    TimeReleased string
    The date and time that the patch was released.
    Type string
    The type of patch. BUNDLE is one example.
    Version string
    The version of this patch package.
    Year string
    Year in which the patch was released.
    AutonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    Description string
    The text describing this patch package.
    Id string
    The OCID of the patch.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    PatchModel string
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    Quarter string
    First month of the quarter in which the patch was released.
    State string
    The current state of the patch as a result of lastAction.
    TimeReleased string
    The date and time that the patch was released.
    Type string
    The type of patch. BUNDLE is one example.
    Version string
    The version of this patch package.
    Year string
    Year in which the patch was released.
    autonomousPatchType String
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    description String
    The text describing this patch package.
    id String
    The OCID of the patch.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchModel String
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    quarter String
    First month of the quarter in which the patch was released.
    state String
    The current state of the patch as a result of lastAction.
    timeReleased String
    The date and time that the patch was released.
    type String
    The type of patch. BUNDLE is one example.
    version String
    The version of this patch package.
    year String
    Year in which the patch was released.
    autonomousPatchType string
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    description string
    The text describing this patch package.
    id string
    The OCID of the patch.
    lifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchModel string
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    quarter string
    First month of the quarter in which the patch was released.
    state string
    The current state of the patch as a result of lastAction.
    timeReleased string
    The date and time that the patch was released.
    type string
    The type of patch. BUNDLE is one example.
    version string
    The version of this patch package.
    year string
    Year in which the patch was released.
    autonomous_patch_type str
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    description str
    The text describing this patch package.
    id str
    The OCID of the patch.
    lifecycle_details str
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patch_model str
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    quarter str
    First month of the quarter in which the patch was released.
    state str
    The current state of the patch as a result of lastAction.
    time_released str
    The date and time that the patch was released.
    type str
    The type of patch. BUNDLE is one example.
    version str
    The version of this patch package.
    year str
    Year in which the patch was released.
    autonomousPatchType String
    Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
    description String
    The text describing this patch package.
    id String
    The OCID of the patch.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchModel String
    Database patching model preference. See My Oracle Support note 2285040.1 for information on the Release Update (RU) and Release Update Revision (RUR) patching models.
    quarter String
    First month of the quarter in which the patch was released.
    state String
    The current state of the patch as a result of lastAction.
    timeReleased String
    The date and time that the patch was released.
    type String
    The type of patch. BUNDLE is one example.
    version String
    The version of this patch package.
    year String
    Year in which the patch was released.

    GetAutonomousContainerPatchesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi