Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
This data source provides details about a specific Oci Cache Backup resource in Oracle Cloud Infrastructure Redis service.
Gets an Oracle Cloud Infrastructure Cache Backup by identifier
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOciCacheBackup = oci.redis.getOciCacheBackup({
ociCacheBackupId: testOciCacheBackupOciRedisOciCacheBackup.id,
});
import pulumi
import pulumi_oci as oci
test_oci_cache_backup = oci.redis.get_oci_cache_backup(oci_cache_backup_id=test_oci_cache_backup_oci_redis_oci_cache_backup["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/redis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.GetOciCacheBackup(ctx, &redis.GetOciCacheBackupArgs{
OciCacheBackupId: testOciCacheBackupOciRedisOciCacheBackup.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 testOciCacheBackup = Oci.Redis.GetOciCacheBackup.Invoke(new()
{
OciCacheBackupId = testOciCacheBackupOciRedisOciCacheBackup.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Redis.RedisFunctions;
import com.pulumi.oci.Redis.inputs.GetOciCacheBackupArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 testOciCacheBackup = RedisFunctions.getOciCacheBackup(GetOciCacheBackupArgs.builder()
.ociCacheBackupId(testOciCacheBackupOciRedisOciCacheBackup.id())
.build());
}
}
variables:
testOciCacheBackup:
fn::invoke:
function: oci:Redis:getOciCacheBackup
arguments:
ociCacheBackupId: ${testOciCacheBackupOciRedisOciCacheBackup.id}
Example coming soon!
Using getOciCacheBackup
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 getOciCacheBackup(args: GetOciCacheBackupArgs, opts?: InvokeOptions): Promise<GetOciCacheBackupResult>
function getOciCacheBackupOutput(args: GetOciCacheBackupOutputArgs, opts?: InvokeOptions): Output<GetOciCacheBackupResult>def get_oci_cache_backup(oci_cache_backup_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOciCacheBackupResult
def get_oci_cache_backup_output(oci_cache_backup_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOciCacheBackupResult]func LookupOciCacheBackup(ctx *Context, args *LookupOciCacheBackupArgs, opts ...InvokeOption) (*LookupOciCacheBackupResult, error)
func LookupOciCacheBackupOutput(ctx *Context, args *LookupOciCacheBackupOutputArgs, opts ...InvokeOption) LookupOciCacheBackupResultOutput> Note: This function is named LookupOciCacheBackup in the Go SDK.
public static class GetOciCacheBackup
{
public static Task<GetOciCacheBackupResult> InvokeAsync(GetOciCacheBackupArgs args, InvokeOptions? opts = null)
public static Output<GetOciCacheBackupResult> Invoke(GetOciCacheBackupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOciCacheBackupResult> getOciCacheBackup(GetOciCacheBackupArgs args, InvokeOptions options)
public static Output<GetOciCacheBackupResult> getOciCacheBackup(GetOciCacheBackupArgs args, InvokeOptions options)
fn::invoke:
function: oci:Redis/getOciCacheBackup:getOciCacheBackup
arguments:
# arguments dictionarydata "oci_redis_getocicachebackup" "name" {
# arguments
}The following arguments are supported:
- Oci
Cache stringBackup Id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- Oci
Cache stringBackup Id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- oci_
cache_ stringbackup_ id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- oci
Cache StringBackup Id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- oci
Cache stringBackup Id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- oci_
cache_ strbackup_ id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
- oci
Cache StringBackup Id - Unique Oracle Cloud Infrastructure Cache Backup identifier.
getOciCacheBackup Result
The following output properties are available:
- Backup
Size doubleIn Gbs - Backup size in GB.
- Backup
Source string - Specifies whether the backup was created from a replica or primary node
- Backup
Type string - Backup Type.
- Cluster
Memory doubleIn Gbs - The amount of memory allocated to the cluster, in gigabytes.
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- Compartment
Id string - Backup compartment identifier
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- Backup description
- Display
Name string - Backup display name
- Export
To intObject Storage Trigger - Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- Unique identifier that is immutable on creation
- Oci
Cache stringBackup Id - Retention
Period intIn Days - Backup retention period in days.
- int
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- Source
Cluster stringId - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- State string
- The current state of the backup.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the backup was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the backup was updated. An RFC3339 formatted datetime string.
- Backup
Size float64In Gbs - Backup size in GB.
- Backup
Source string - Specifies whether the backup was created from a replica or primary node
- Backup
Type string - Backup Type.
- Cluster
Memory float64In Gbs - The amount of memory allocated to the cluster, in gigabytes.
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- Compartment
Id string - Backup compartment identifier
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- Backup description
- Display
Name string - Backup display name
- Export
To intObject Storage Trigger - map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- Unique identifier that is immutable on creation
- Oci
Cache stringBackup Id - Retention
Period intIn Days - Backup retention period in days.
- int
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- Source
Cluster stringId - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- State string
- The current state of the backup.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the backup was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the backup was updated. An RFC3339 formatted datetime string.
- backup_
size_ numberin_ gbs - Backup size in GB.
- backup_
source string - Specifies whether the backup was created from a replica or primary node
- backup_
type string - Backup Type.
- cluster_
memory_ numberin_ gbs - The amount of memory allocated to the cluster, in gigabytes.
- cluster_
mode string - Specifies whether the cluster is sharded or non-sharded.
- compartment_
id string - Backup compartment identifier
- map(string)
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- Backup description
- display_
name string - Backup display name
- export_
to_ numberobject_ storage_ trigger - map(string)
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- Unique identifier that is immutable on creation
- oci_
cache_ stringbackup_ id - retention_
period_ numberin_ days - Backup retention period in days.
- number
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- software_
version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- source_
cluster_ stringid - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- state string
- The current state of the backup.
- map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created string - The date and time the backup was created. An RFC3339 formatted datetime string.
- time_
updated string - The date and time the backup was updated. An RFC3339 formatted datetime string.
- backup
Size DoubleIn Gbs - Backup size in GB.
- backup
Source String - Specifies whether the backup was created from a replica or primary node
- backup
Type String - Backup Type.
- cluster
Memory DoubleIn Gbs - The amount of memory allocated to the cluster, in gigabytes.
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id String - Backup compartment identifier
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- Backup description
- display
Name String - Backup display name
- export
To IntegerObject Storage Trigger - Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- Unique identifier that is immutable on creation
- oci
Cache StringBackup Id - retention
Period IntegerIn Days - Backup retention period in days.
- Integer
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- source
Cluster StringId - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- state String
- The current state of the backup.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the backup was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the backup was updated. An RFC3339 formatted datetime string.
- backup
Size numberIn Gbs - Backup size in GB.
- backup
Source string - Specifies whether the backup was created from a replica or primary node
- backup
Type string - Backup Type.
- cluster
Memory numberIn Gbs - The amount of memory allocated to the cluster, in gigabytes.
- cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id string - Backup compartment identifier
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- Backup description
- display
Name string - Backup display name
- export
To numberObject Storage Trigger - {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- Unique identifier that is immutable on creation
- oci
Cache stringBackup Id - retention
Period numberIn Days - Backup retention period in days.
- number
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- source
Cluster stringId - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- state string
- The current state of the backup.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the backup was created. An RFC3339 formatted datetime string.
- time
Updated string - The date and time the backup was updated. An RFC3339 formatted datetime string.
- backup_
size_ floatin_ gbs - Backup size in GB.
- backup_
source str - Specifies whether the backup was created from a replica or primary node
- backup_
type str - Backup Type.
- cluster_
memory_ floatin_ gbs - The amount of memory allocated to the cluster, in gigabytes.
- cluster_
mode str - Specifies whether the cluster is sharded or non-sharded.
- compartment_
id str - Backup compartment identifier
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- Backup description
- display_
name str - Backup display name
- export_
to_ intobject_ storage_ trigger - Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- Unique identifier that is immutable on creation
- oci_
cache_ strbackup_ id - retention_
period_ intin_ days - Backup retention period in days.
- int
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- software_
version str - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- source_
cluster_ strid - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- state str
- The current state of the backup.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the backup was created. An RFC3339 formatted datetime string.
- time_
updated str - The date and time the backup was updated. An RFC3339 formatted datetime string.
- backup
Size NumberIn Gbs - Backup size in GB.
- backup
Source String - Specifies whether the backup was created from a replica or primary node
- backup
Type String - Backup Type.
- cluster
Memory NumberIn Gbs - The amount of memory allocated to the cluster, in gigabytes.
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id String - Backup compartment identifier
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- Backup description
- display
Name String - Backup display name
- export
To NumberObject Storage Trigger - Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- Unique identifier that is immutable on creation
- oci
Cache StringBackup Id - retention
Period NumberIn Days - Backup retention period in days.
- Number
- The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- source
Cluster StringId - The source Oracle Cloud Infrastructure Cache Cluster OCID.
- state String
- The current state of the backup.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the backup was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the backup was updated. An RFC3339 formatted datetime string.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
