Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Autonomous
Container stringDatabase Id - The Autonomous Container Database OCID.
- Compartment
Id string - The compartment OCID.
- Autonomous
Patch stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Filters
List<Get
Autonomous Container Patches Filter>
- Autonomous
Container stringDatabase Id - The Autonomous Container Database OCID.
- Compartment
Id string - The compartment OCID.
- Autonomous
Patch stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Filters
[]Get
Autonomous Container Patches Filter
- autonomous
Container StringDatabase Id - The Autonomous Container Database OCID.
- compartment
Id String - The compartment OCID.
- autonomous
Patch StringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters
List<Get
Autonomous Container Patches Filter>
- autonomous
Container stringDatabase Id - The Autonomous Container Database OCID.
- compartment
Id string - The compartment OCID.
- autonomous
Patch stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters
Get
Autonomous 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[database.
Get Autonomous Container Patches Filter]
- autonomous
Container StringDatabase Id - The Autonomous Container Database OCID.
- compartment
Id String - The compartment OCID.
- autonomous
Patch StringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- filters List<Property Map>
getAutonomousContainerPatches Result
The following output properties are available:
- Autonomous
Container stringDatabase Id - Autonomous
Patches List<GetAutonomous Container Patches Autonomous Patch> - The list of autonomous_patches.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Filters
List<Get
Autonomous Container Patches Filter>
- Autonomous
Container stringDatabase Id - Autonomous
Patches []GetAutonomous Container Patches Autonomous Patch - The list of autonomous_patches.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Filters
[]Get
Autonomous Container Patches Filter
- autonomous
Container StringDatabase Id - autonomous
Patches List<GetAutonomous Container Patches Autonomous Patch> - The list of autonomous_patches.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- autonomous
Patch StringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters
List<Get
Autonomous Container Patches Filter>
- autonomous
Container stringDatabase Id - autonomous
Patches GetAutonomous Container Patches Autonomous Patch[] - The list of autonomous_patches.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters
Get
Autonomous Container Patches Filter[]
- autonomous_
container_ strdatabase_ id - autonomous_
patches Sequence[database.Get Autonomous 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[database.
Get Autonomous Container Patches Filter]
- autonomous
Container StringDatabase Id - autonomous
Patches List<Property Map> - The list of autonomous_patches.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- autonomous
Patch StringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- filters List<Property Map>
Supporting Types
GetAutonomousContainerPatchesAutonomousPatch
- Autonomous
Patch stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Description string
- The text describing this patch package.
- Id string
- The OCID of the patch.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- Patch
Model 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.
- Time
Released 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 stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- Description string
- The text describing this patch package.
- Id string
- The OCID of the patch.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- Patch
Model 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.
- Time
Released 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 StringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- description String
- The text describing this patch package.
- id String
- The OCID of the patch.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- patch
Model 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.
- time
Released 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 stringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- description string
- The text describing this patch package.
- id string
- The OCID of the patch.
- lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- patch
Model 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.
- time
Released 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.
- autonomous
Patch StringType - Autonomous patch type, either "QUARTERLY" or "TIMEZONE".
- description String
- The text describing this patch package.
- id String
- The OCID of the patch.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- patch
Model 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.
- time
Released 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
oci
Terraform Provider.