published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
This resource provides the Oci Cache Backup resource in Oracle Cloud Infrastructure Redis service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/ocicache/latest/OciCacheBackup
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/redis
Creates a new Oracle Cloud Infrastructure Cache Backup.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOciCacheBackup = new oci.redis.OciCacheBackup("test_oci_cache_backup", {
compartmentId: compartmentId,
displayName: ociCacheBackupDisplayName,
sourceClusterId: testRedisCluster.id,
backupSource: ociCacheBackupBackupSource,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: ociCacheBackupDescription,
freeformTags: {
"bar-key": "value",
},
retentionPeriodInDays: Number(ociCacheBackupRetentionPeriodInDays),
});
import pulumi
import pulumi_oci as oci
test_oci_cache_backup = oci.redis.OciCacheBackup("test_oci_cache_backup",
compartment_id=compartment_id,
display_name=oci_cache_backup_display_name,
source_cluster_id=test_redis_cluster["id"],
backup_source=oci_cache_backup_backup_source,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=oci_cache_backup_description,
freeform_tags={
"bar-key": "value",
},
retention_period_in_days=int(oci_cache_backup_retention_period_in_days))
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.NewOciCacheBackup(ctx, "test_oci_cache_backup", &redis.OciCacheBackupArgs{
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(ociCacheBackupDisplayName),
SourceClusterId: pulumi.Any(testRedisCluster.Id),
BackupSource: pulumi.Any(ociCacheBackupBackupSource),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(ociCacheBackupDescription),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
RetentionPeriodInDays: pulumi.Any(ociCacheBackupRetentionPeriodInDays),
})
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 = new Oci.Redis.OciCacheBackup("test_oci_cache_backup", new()
{
CompartmentId = compartmentId,
DisplayName = ociCacheBackupDisplayName,
SourceClusterId = testRedisCluster.Id,
BackupSource = ociCacheBackupBackupSource,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = ociCacheBackupDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
RetentionPeriodInDays = ociCacheBackupRetentionPeriodInDays,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Redis.OciCacheBackup;
import com.pulumi.oci.Redis.OciCacheBackupArgs;
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) {
var testOciCacheBackup = new OciCacheBackup("testOciCacheBackup", OciCacheBackupArgs.builder()
.compartmentId(compartmentId)
.displayName(ociCacheBackupDisplayName)
.sourceClusterId(testRedisCluster.id())
.backupSource(ociCacheBackupBackupSource)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(ociCacheBackupDescription)
.freeformTags(Map.of("bar-key", "value"))
.retentionPeriodInDays(ociCacheBackupRetentionPeriodInDays)
.build());
}
}
resources:
testOciCacheBackup:
type: oci:Redis:OciCacheBackup
name: test_oci_cache_backup
properties:
compartmentId: ${compartmentId}
displayName: ${ociCacheBackupDisplayName}
sourceClusterId: ${testRedisCluster.id}
backupSource: ${ociCacheBackupBackupSource}
definedTags:
foo-namespace.bar-key: value
description: ${ociCacheBackupDescription}
freeformTags:
bar-key: value
retentionPeriodInDays: ${ociCacheBackupRetentionPeriodInDays}
Example coming soon!
Create OciCacheBackup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OciCacheBackup(name: string, args: OciCacheBackupArgs, opts?: CustomResourceOptions);@overload
def OciCacheBackup(resource_name: str,
args: OciCacheBackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OciCacheBackup(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
source_cluster_id: Optional[str] = None,
backup_source: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
export_to_object_storage_trigger: Optional[int] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
retention_period_in_days: Optional[int] = None)func NewOciCacheBackup(ctx *Context, name string, args OciCacheBackupArgs, opts ...ResourceOption) (*OciCacheBackup, error)public OciCacheBackup(string name, OciCacheBackupArgs args, CustomResourceOptions? opts = null)
public OciCacheBackup(String name, OciCacheBackupArgs args)
public OciCacheBackup(String name, OciCacheBackupArgs args, CustomResourceOptions options)
type: oci:Redis:OciCacheBackup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_redis_ocicachebackup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OciCacheBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OciCacheBackupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OciCacheBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OciCacheBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OciCacheBackupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ociCacheBackupResource = new Oci.Redis.OciCacheBackup("ociCacheBackupResource", new()
{
CompartmentId = "string",
DisplayName = "string",
SourceClusterId = "string",
BackupSource = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
ExportToObjectStorageTrigger = 0,
FreeformTags =
{
{ "string", "string" },
},
RetentionPeriodInDays = 0,
});
example, err := redis.NewOciCacheBackup(ctx, "ociCacheBackupResource", &redis.OciCacheBackupArgs{
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
SourceClusterId: pulumi.String("string"),
BackupSource: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
ExportToObjectStorageTrigger: pulumi.Int(0),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
RetentionPeriodInDays: pulumi.Int(0),
})
resource "oci_redis_ocicachebackup" "ociCacheBackupResource" {
compartment_id = "string"
display_name = "string"
source_cluster_id = "string"
backup_source = "string"
defined_tags = {
"string" = "string"
}
description = "string"
export_to_object_storage_trigger = 0
freeform_tags = {
"string" = "string"
}
retention_period_in_days = 0
}
var ociCacheBackupResource = new OciCacheBackup("ociCacheBackupResource", OciCacheBackupArgs.builder()
.compartmentId("string")
.displayName("string")
.sourceClusterId("string")
.backupSource("string")
.definedTags(Map.of("string", "string"))
.description("string")
.exportToObjectStorageTrigger(0)
.freeformTags(Map.of("string", "string"))
.retentionPeriodInDays(0)
.build());
oci_cache_backup_resource = oci.redis.OciCacheBackup("ociCacheBackupResource",
compartment_id="string",
display_name="string",
source_cluster_id="string",
backup_source="string",
defined_tags={
"string": "string",
},
description="string",
export_to_object_storage_trigger=0,
freeform_tags={
"string": "string",
},
retention_period_in_days=0)
const ociCacheBackupResource = new oci.redis.OciCacheBackup("ociCacheBackupResource", {
compartmentId: "string",
displayName: "string",
sourceClusterId: "string",
backupSource: "string",
definedTags: {
string: "string",
},
description: "string",
exportToObjectStorageTrigger: 0,
freeformTags: {
string: "string",
},
retentionPeriodInDays: 0,
});
type: oci:Redis:OciCacheBackup
properties:
backupSource: string
compartmentId: string
definedTags:
string: string
description: string
displayName: string
exportToObjectStorageTrigger: 0
freeformTags:
string: string
retentionPeriodInDays: 0
sourceClusterId: string
OciCacheBackup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OciCacheBackup resource accepts the following input properties:
- Compartment
Id string - (Updatable) Compartment identifier
- Display
Name string - (Updatable) Backup display name.
- Source
Cluster stringId - Oracle Cloud Infrastructure Cache cluster identifier
- Backup
Source string - Specifies whether the backup was created from a replica or primary node
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- (Updatable) Backup description
- Export
To intObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Retention
Period intIn Days - (Updatable) Backup retention period in days.
- Compartment
Id string - (Updatable) Compartment identifier
- Display
Name string - (Updatable) Backup display name.
- Source
Cluster stringId - Oracle Cloud Infrastructure Cache cluster identifier
- Backup
Source string - Specifies whether the backup was created from a replica or primary node
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- (Updatable) Backup description
- Export
To intObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Retention
Period intIn Days - (Updatable) Backup retention period in days.
- compartment_
id string - (Updatable) Compartment identifier
- display_
name string - (Updatable) Backup display name.
- source_
cluster_ stringid - Oracle Cloud Infrastructure Cache cluster identifier
- backup_
source string - Specifies whether the backup was created from a replica or primary node
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- (Updatable) Backup description
- export_
to_ numberobject_ storage_ trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map(string)
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention_
period_ numberin_ days - (Updatable) Backup retention period in days.
- compartment
Id String - (Updatable) Compartment identifier
- display
Name String - (Updatable) Backup display name.
- source
Cluster StringId - Oracle Cloud Infrastructure Cache cluster identifier
- backup
Source String - Specifies whether the backup was created from a replica or primary node
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- (Updatable) Backup description
- export
To IntegerObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period IntegerIn Days - (Updatable) Backup retention period in days.
- compartment
Id string - (Updatable) Compartment identifier
- display
Name string - (Updatable) Backup display name.
- source
Cluster stringId - Oracle Cloud Infrastructure Cache cluster identifier
- backup
Source string - Specifies whether the backup was created from a replica or primary node
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- (Updatable) Backup description
- export
To numberObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period numberIn Days - (Updatable) Backup retention period in days.
- compartment_
id str - (Updatable) Compartment identifier
- display_
name str - (Updatable) Backup display name.
- source_
cluster_ strid - Oracle Cloud Infrastructure Cache cluster identifier
- backup_
source str - Specifies whether the backup was created from a replica or primary node
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- (Updatable) Backup description
- export_
to_ intobject_ storage_ trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention_
period_ intin_ days - (Updatable) Backup retention period in days.
- compartment
Id String - (Updatable) Compartment identifier
- display
Name String - (Updatable) Backup display name.
- source
Cluster StringId - Oracle Cloud Infrastructure Cache cluster identifier
- backup
Source String - Specifies whether the backup was created from a replica or primary node
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- (Updatable) Backup description
- export
To NumberObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period NumberIn Days - (Updatable) Backup retention period in days.
Outputs
All input properties are implicitly available as output properties. Additionally, the OciCacheBackup resource produces the following output properties:
- Backup
Size doubleIn Gbs - Backup size in GB.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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_
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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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
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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- 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
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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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_
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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- 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
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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- 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.
Look up Existing OciCacheBackup Resource
Get an existing OciCacheBackup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OciCacheBackupState, opts?: CustomResourceOptions): OciCacheBackup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_size_in_gbs: Optional[float] = None,
backup_source: Optional[str] = None,
backup_type: Optional[str] = None,
cluster_memory_in_gbs: Optional[float] = None,
cluster_mode: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
export_to_object_storage_trigger: Optional[int] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
retention_period_in_days: Optional[int] = None,
shard_count: Optional[int] = None,
software_version: Optional[str] = None,
source_cluster_id: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> OciCacheBackupfunc GetOciCacheBackup(ctx *Context, name string, id IDInput, state *OciCacheBackupState, opts ...ResourceOption) (*OciCacheBackup, error)public static OciCacheBackup Get(string name, Input<string> id, OciCacheBackupState? state, CustomResourceOptions? opts = null)public static OciCacheBackup get(String name, Output<String> id, OciCacheBackupState state, CustomResourceOptions options)resources: _: type: oci:Redis:OciCacheBackup get: id: ${id}import {
to = oci_redis_ocicachebackup.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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 - (Updatable) Compartment identifier
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- (Updatable) Backup description
- Display
Name string - (Updatable) Backup display name.
- Export
To intObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Retention
Period intIn Days - (Updatable) Backup retention period in days.
- Shard
Count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- (Updatable) Backup description
- Display
Name string - (Updatable) Backup display name.
- Export
To intObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Retention
Period intIn Days - (Updatable) Backup retention period in days.
- Shard
Count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- (Updatable) Backup description
- display_
name string - (Updatable) Backup display name.
- export_
to_ numberobject_ storage_ trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map(string)
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention_
period_ numberin_ days - (Updatable) Backup retention period in days.
- shard_
count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- (Updatable) Backup description
- display
Name String - (Updatable) Backup display name.
- export
To IntegerObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period IntegerIn Days - (Updatable) Backup retention period in days.
- shard
Count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- (Updatable) Backup description
- display
Name string - (Updatable) Backup display name.
- export
To numberObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period numberIn Days - (Updatable) Backup retention period in days.
- shard
Count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- (Updatable) Backup description
- display_
name str - (Updatable) Backup display name.
- export_
to_ intobject_ storage_ trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention_
period_ intin_ days - (Updatable) Backup retention period in days.
- shard_
count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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 - (Updatable) Compartment identifier
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- (Updatable) Backup description
- display
Name String - (Updatable) Backup display name.
- export
To NumberObject Storage Trigger (Updatable) An optional property when incremented triggers Export To Object Storage. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - retention
Period NumberIn Days - (Updatable) Backup retention period in days.
- shard
Count 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 - Oracle Cloud Infrastructure Cache cluster identifier
- 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.
Import
OciCacheBackups can be imported using the id, e.g.
$ pulumi import oci:Redis/ociCacheBackup:OciCacheBackup test_oci_cache_backup "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Friday, May 15, 2026 by Pulumi
