Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getOneoffPatch
Explore with Pulumi AI
This data source provides details about a specific Oneoff Patch resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified one-off patch.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOneoffPatch = oci.Database.getOneoffPatch({
    oneoffPatchId: testOneoffPatchOciDatabaseOneoffPatch.id,
});
import pulumi
import pulumi_oci as oci
test_oneoff_patch = oci.Database.get_oneoff_patch(oneoff_patch_id=test_oneoff_patch_oci_database_oneoff_patch["id"])
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.GetOneoffPatch(ctx, &database.GetOneoffPatchArgs{
			OneoffPatchId: testOneoffPatchOciDatabaseOneoffPatch.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 testOneoffPatch = Oci.Database.GetOneoffPatch.Invoke(new()
    {
        OneoffPatchId = testOneoffPatchOciDatabaseOneoffPatch.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.GetOneoffPatchArgs;
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 testOneoffPatch = DatabaseFunctions.getOneoffPatch(GetOneoffPatchArgs.builder()
            .oneoffPatchId(testOneoffPatchOciDatabaseOneoffPatch.id())
            .build());
    }
}
variables:
  testOneoffPatch:
    fn::invoke:
      function: oci:Database:getOneoffPatch
      arguments:
        oneoffPatchId: ${testOneoffPatchOciDatabaseOneoffPatch.id}
Using getOneoffPatch
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 getOneoffPatch(args: GetOneoffPatchArgs, opts?: InvokeOptions): Promise<GetOneoffPatchResult>
function getOneoffPatchOutput(args: GetOneoffPatchOutputArgs, opts?: InvokeOptions): Output<GetOneoffPatchResult>def get_oneoff_patch(oneoff_patch_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetOneoffPatchResult
def get_oneoff_patch_output(oneoff_patch_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetOneoffPatchResult]func LookupOneoffPatch(ctx *Context, args *LookupOneoffPatchArgs, opts ...InvokeOption) (*LookupOneoffPatchResult, error)
func LookupOneoffPatchOutput(ctx *Context, args *LookupOneoffPatchOutputArgs, opts ...InvokeOption) LookupOneoffPatchResultOutput> Note: This function is named LookupOneoffPatch in the Go SDK.
public static class GetOneoffPatch 
{
    public static Task<GetOneoffPatchResult> InvokeAsync(GetOneoffPatchArgs args, InvokeOptions? opts = null)
    public static Output<GetOneoffPatchResult> Invoke(GetOneoffPatchInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOneoffPatchResult> getOneoffPatch(GetOneoffPatchArgs args, InvokeOptions options)
public static Output<GetOneoffPatchResult> getOneoffPatch(GetOneoffPatchArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getOneoffPatch:getOneoffPatch
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OneoffPatch stringId 
- The one-off patch OCID.
- OneoffPatch stringId 
- The one-off patch OCID.
- oneoffPatch StringId 
- The one-off patch OCID.
- oneoffPatch stringId 
- The one-off patch OCID.
- oneoff_patch_ strid 
- The one-off patch OCID.
- oneoffPatch StringId 
- The one-off patch OCID.
getOneoffPatch Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- DbVersion string
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- One-off patch name.
- DownloadOneoff intPatch Trigger 
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the one-off patch.
- LifecycleDetails string
- Detailed message for the lifecycle state.
- OneOff List<string>Patches 
- List of one-off patches for Database Homes.
- OneoffPatch stringId 
- ReleaseUpdate string
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- Sha256sum string
- SHA-256 checksum of the one-off patch.
- SizeIn doubleKbs 
- The size of one-off patch in kilobytes.
- State string
- The current state of the one-off patch.
- TimeCreated string
- The date and time one-off patch was created.
- TimeOf stringExpiration 
- The date and time until which the one-off patch will be available for download.
- TimeUpdated string
- The date and time one-off patch was updated.
- CompartmentId string
- The OCID of the compartment.
- DbVersion string
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- One-off patch name.
- DownloadOneoff intPatch Trigger 
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the one-off patch.
- LifecycleDetails string
- Detailed message for the lifecycle state.
- OneOff []stringPatches 
- List of one-off patches for Database Homes.
- OneoffPatch stringId 
- ReleaseUpdate string
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- Sha256sum string
- SHA-256 checksum of the one-off patch.
- SizeIn float64Kbs 
- The size of one-off patch in kilobytes.
- State string
- The current state of the one-off patch.
- TimeCreated string
- The date and time one-off patch was created.
- TimeOf stringExpiration 
- The date and time until which the one-off patch will be available for download.
- TimeUpdated string
- The date and time one-off patch was updated.
- compartmentId String
- The OCID of the compartment.
- dbVersion String
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- One-off patch name.
- downloadOneoff IntegerPatch Trigger 
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the one-off patch.
- lifecycleDetails String
- Detailed message for the lifecycle state.
- oneOff List<String>Patches 
- List of one-off patches for Database Homes.
- oneoffPatch StringId 
- releaseUpdate String
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- sha256sum String
- SHA-256 checksum of the one-off patch.
- sizeIn DoubleKbs 
- The size of one-off patch in kilobytes.
- state String
- The current state of the one-off patch.
- timeCreated String
- The date and time one-off patch was created.
- timeOf StringExpiration 
- The date and time until which the one-off patch will be available for download.
- timeUpdated String
- The date and time one-off patch was updated.
- compartmentId string
- The OCID of the compartment.
- dbVersion string
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName string
- One-off patch name.
- downloadOneoff numberPatch Trigger 
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the one-off patch.
- lifecycleDetails string
- Detailed message for the lifecycle state.
- oneOff string[]Patches 
- List of one-off patches for Database Homes.
- oneoffPatch stringId 
- releaseUpdate string
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- sha256sum string
- SHA-256 checksum of the one-off patch.
- sizeIn numberKbs 
- The size of one-off patch in kilobytes.
- state string
- The current state of the one-off patch.
- timeCreated string
- The date and time one-off patch was created.
- timeOf stringExpiration 
- The date and time until which the one-off patch will be available for download.
- timeUpdated string
- The date and time one-off patch was updated.
- compartment_id str
- The OCID of the compartment.
- db_version str
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name str
- One-off patch name.
- download_oneoff_ intpatch_ trigger 
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the one-off patch.
- lifecycle_details str
- Detailed message for the lifecycle state.
- one_off_ Sequence[str]patches 
- List of one-off patches for Database Homes.
- oneoff_patch_ strid 
- release_update str
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- sha256sum str
- SHA-256 checksum of the one-off patch.
- size_in_ floatkbs 
- The size of one-off patch in kilobytes.
- state str
- The current state of the one-off patch.
- time_created str
- The date and time one-off patch was created.
- time_of_ strexpiration 
- The date and time until which the one-off patch will be available for download.
- time_updated str
- The date and time one-off patch was updated.
- compartmentId String
- The OCID of the compartment.
- dbVersion String
- A valid Oracle Database version. To get a list of supported versions, use the ListDbVersions operation.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- One-off patch name.
- downloadOneoff NumberPatch Trigger 
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the one-off patch.
- lifecycleDetails String
- Detailed message for the lifecycle state.
- oneOff List<String>Patches 
- List of one-off patches for Database Homes.
- oneoffPatch StringId 
- releaseUpdate String
- The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- sha256sum String
- SHA-256 checksum of the one-off patch.
- sizeIn NumberKbs 
- The size of one-off patch in kilobytes.
- state String
- The current state of the one-off patch.
- timeCreated String
- The date and time one-off patch was created.
- timeOf StringExpiration 
- The date and time until which the one-off patch will be available for download.
- timeUpdated String
- The date and time one-off patch was updated.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.