Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getAutonomousContainerPatches

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

using System.Collections.Generic;
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,
    });

});
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,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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())
            .build());

    }
}
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"])
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,
});
variables:
  testAutonomousContainerPatches:
    Fn::Invoke:
      Function: oci:Database:getAutonomousContainerPatches
      Arguments:
        autonomousContainerDatabaseId: ${oci_database_autonomous_container_database.test_autonomous_container_database.id}
        compartmentId: ${var.compartment_id}

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,
                                     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,
                                     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.

Filters List<GetAutonomousContainerPatchesFilter>
AutonomousContainerDatabaseId string

The Autonomous Container Database OCID.

CompartmentId string

The compartment OCID.

Filters []GetAutonomousContainerPatchesFilter
autonomousContainerDatabaseId String

The Autonomous Container Database OCID.

compartmentId String

The compartment OCID.

filters List<GetAutonomousContainerPatchesFilter>
autonomousContainerDatabaseId string

The Autonomous Container Database OCID.

compartmentId string

The compartment OCID.

filters GetAutonomousContainerPatchesFilter[]
autonomousContainerDatabaseId String

The Autonomous Container Database OCID.

compartmentId String

The compartment OCID.

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.

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.

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.

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.

filters GetAutonomousContainerPatchesFilter[]
autonomous_container_database_id str
autonomous_patches GetAutonomousContainerPatchesAutonomousPatch]

The list of autonomous_patches.

compartment_id str
id str

The provider-assigned unique ID for this managed resource.

filters 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.

filters List<Property Map>

Supporting Types

GetAutonomousContainerPatchesAutonomousPatch

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.

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.

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.

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.

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.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.