1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousPatch
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Database.getAutonomousPatch

Explore with Pulumi AI

oci logo
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:

    AutonomousPatchId string
    The autonomous patch OCID.
    AutonomousPatchId string
    The autonomous patch OCID.
    autonomousPatchId String
    The autonomous patch OCID.
    autonomousPatchId string
    The autonomous patch OCID.
    autonomous_patch_id str
    The autonomous patch OCID.
    autonomousPatchId String
    The autonomous patch OCID.

    getAutonomousPatch Result

    The following output properties are available:

    AutonomousPatchId string
    AutonomousPatchType string
    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.
    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.
    AutonomousPatchId string
    AutonomousPatchType string
    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.
    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.
    autonomousPatchId String
    autonomousPatchType String
    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.
    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.
    autonomousPatchId string
    autonomousPatchType string
    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.
    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_id str
    autonomous_patch_type str
    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.
    autonomousPatchId String
    autonomousPatchType String
    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.
    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.

    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.41.0 published on Wednesday, Jun 19, 2024 by Pulumi