Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getAutonomousPatch
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Autonomous Patch resource in Oracle Cloud Infrastructure Database service.
Gets information about a specific autonomous patch.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousPatch = oci.Database.getAutonomousPatch({
autonomousPatchId: testAutonomousPatchOciDatabaseAutonomousPatch.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_patch = oci.Database.get_autonomous_patch(autonomous_patch_id=test_autonomous_patch_oci_database_autonomous_patch["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.GetAutonomousPatch(ctx, &database.GetAutonomousPatchArgs{
AutonomousPatchId: testAutonomousPatchOciDatabaseAutonomousPatch.Id,
}, 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 testAutonomousPatch = Oci.Database.GetAutonomousPatch.Invoke(new()
{
AutonomousPatchId = testAutonomousPatchOciDatabaseAutonomousPatch.Id,
});
});
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.GetAutonomousPatchArgs;
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 testAutonomousPatch = DatabaseFunctions.getAutonomousPatch(GetAutonomousPatchArgs.builder()
.autonomousPatchId(testAutonomousPatchOciDatabaseAutonomousPatch.id())
.build());
}
}
variables:
testAutonomousPatch:
fn::invoke:
Function: oci:Database:getAutonomousPatch
Arguments:
autonomousPatchId: ${testAutonomousPatchOciDatabaseAutonomousPatch.id}
Using getAutonomousPatch
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 getAutonomousPatch(args: GetAutonomousPatchArgs, opts?: InvokeOptions): Promise<GetAutonomousPatchResult>
function getAutonomousPatchOutput(args: GetAutonomousPatchOutputArgs, opts?: InvokeOptions): Output<GetAutonomousPatchResult>
def get_autonomous_patch(autonomous_patch_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAutonomousPatchResult
def get_autonomous_patch_output(autonomous_patch_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousPatchResult]
func GetAutonomousPatch(ctx *Context, args *GetAutonomousPatchArgs, opts ...InvokeOption) (*GetAutonomousPatchResult, error)
func GetAutonomousPatchOutput(ctx *Context, args *GetAutonomousPatchOutputArgs, opts ...InvokeOption) GetAutonomousPatchResultOutput
> Note: This function is named GetAutonomousPatch
in the Go SDK.
public static class GetAutonomousPatch
{
public static Task<GetAutonomousPatchResult> InvokeAsync(GetAutonomousPatchArgs args, InvokeOptions? opts = null)
public static Output<GetAutonomousPatchResult> Invoke(GetAutonomousPatchInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutonomousPatchResult> getAutonomousPatch(GetAutonomousPatchArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getAutonomousPatch:getAutonomousPatch
arguments:
# arguments dictionary
The following arguments are supported:
- Autonomous
Patch stringId - The autonomous patch OCID.
- Autonomous
Patch stringId - The autonomous patch OCID.
- autonomous
Patch StringId - The autonomous patch OCID.
- autonomous
Patch stringId - The autonomous patch OCID.
- autonomous_
patch_ strid - The autonomous patch OCID.
- autonomous
Patch StringId - The autonomous patch OCID.
getAutonomousPatch Result
The following output properties are available:
- Autonomous
Patch stringId - Autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Description string
- The text describing this patch package.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 stringId - Autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- Description string
- The text describing this patch package.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 StringId - autonomous
Patch StringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- description String
- The text describing this patch package.
- id String
- The provider-assigned unique ID for this managed resource.
- 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 stringId - autonomous
Patch stringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- description string
- The text describing this patch package.
- id string
- The provider-assigned unique ID for this managed resource.
- 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_ strid - autonomous_
patch_ strtype - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- description str
- The text describing this patch package.
- id str
- The provider-assigned unique ID for this managed resource.
- 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 StringId - autonomous
Patch StringType - Maintenance run type, either "QUARTERLY" or "TIMEZONE".
- description String
- The text describing this patch package.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi