Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getAutonomousContainerPatches
Explore with Pulumi AI
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: testAutonomousContainerDatabase.id,
    compartmentId: compartmentId,
    autonomousPatchType: autonomousContainerPatchAutonomousPatchType,
});
import pulumi
import pulumi_oci as oci
test_autonomous_container_patches = oci.Database.get_autonomous_container_patches(autonomous_container_database_id=test_autonomous_container_database["id"],
    compartment_id=compartment_id,
    autonomous_patch_type=autonomous_container_patch_autonomous_patch_type)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testAutonomousContainerDatabase.Id,
			CompartmentId:                 compartmentId,
			AutonomousPatchType:           pulumi.StringRef(autonomousContainerPatchAutonomousPatchType),
		}, 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 = testAutonomousContainerDatabase.Id,
        CompartmentId = compartmentId,
        AutonomousPatchType = autonomousContainerPatchAutonomousPatchType,
    });
});
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(testAutonomousContainerDatabase.id())
            .compartmentId(compartmentId)
            .autonomousPatchType(autonomousContainerPatchAutonomousPatchType)
            .build());
    }
}
variables:
  testAutonomousContainerPatches:
    fn::invoke:
      function: oci:Database:getAutonomousContainerPatches
      arguments:
        autonomousContainerDatabaseId: ${testAutonomousContainerDatabase.id}
        compartmentId: ${compartmentId}
        autonomousPatchType: ${autonomousContainerPatchAutonomousPatchType}
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[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[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)
public static Output<GetAutonomousContainerPatchesResult> getAutonomousContainerPatches(GetAutonomousContainerPatchesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousContainerPatches:getAutonomousContainerPatches
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutonomousContainer stringDatabase Id 
- The Autonomous Container Database OCID.
- CompartmentId string
- The compartment OCID.
- AutonomousPatch stringType 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Filters
List<GetAutonomous Container Patches Filter> 
- AutonomousContainer stringDatabase Id 
- The Autonomous Container Database OCID.
- CompartmentId string
- The compartment OCID.
- AutonomousPatch stringType 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Filters
[]GetAutonomous Container Patches Filter 
- autonomousContainer StringDatabase Id 
- The Autonomous Container Database OCID.
- compartmentId String
- The compartment OCID.
- autonomousPatch StringType 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters
List<GetAutonomous Container Patches Filter> 
- autonomousContainer stringDatabase Id 
- The Autonomous Container Database OCID.
- compartmentId string
- The compartment OCID.
- autonomousPatch stringType 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters
GetAutonomous Container Patches Filter[] 
- autonomous_container_ strdatabase_ id 
- The Autonomous Container Database OCID.
- compartment_id str
- The compartment OCID.
- autonomous_patch_ strtype 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters
Sequence[GetAutonomous Container Patches Filter] 
- autonomousContainer StringDatabase Id 
- The Autonomous Container Database OCID.
- compartmentId String
- The compartment OCID.
- autonomousPatch StringType 
- Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters List<Property Map>
getAutonomousContainerPatches Result
The following output properties are available:
- AutonomousContainer stringDatabase Id 
- AutonomousPatches List<GetAutonomous Container Patches Autonomous Patch> 
- The list of autonomous_patches.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- AutonomousPatch stringType 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Filters
List<GetAutonomous Container Patches Filter> 
- AutonomousContainer stringDatabase Id 
- AutonomousPatches []GetAutonomous Container Patches Autonomous Patch 
- The list of autonomous_patches.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- AutonomousPatch stringType 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Filters
[]GetAutonomous Container Patches Filter 
- autonomousContainer StringDatabase Id 
- autonomousPatches List<GetAutonomous Container Patches Autonomous Patch> 
- The list of autonomous_patches.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- autonomousPatch StringType 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters
List<GetAutonomous Container Patches Filter> 
- autonomousContainer stringDatabase Id 
- autonomousPatches GetAutonomous Container Patches Autonomous Patch[] 
- The list of autonomous_patches.
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- autonomousPatch stringType 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters
GetAutonomous Container Patches Filter[] 
- autonomous_container_ strdatabase_ id 
- autonomous_patches Sequence[GetAutonomous Container Patches Autonomous Patch] 
- The list of autonomous_patches.
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- autonomous_patch_ strtype 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters
Sequence[GetAutonomous Container Patches Filter] 
- autonomousContainer StringDatabase Id 
- autonomousPatches List<Property Map>
- The list of autonomous_patches.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- autonomousPatch StringType 
- Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters List<Property Map>
Supporting Types
GetAutonomousContainerPatchesAutonomousPatch     
- AutonomousPatch stringType 
- 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.
- AutonomousPatch stringType 
- 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.
- autonomousPatch StringType 
- 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.
- autonomousPatch stringType 
- 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_ strtype 
- 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.
- autonomousPatch StringType 
- 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    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.