oci.Core.VolumeBackupPolicy
Explore with Pulumi AI
This resource provides the Volume Backup Policy resource in Oracle Cloud Infrastructure Core service.
Creates a new user defined backup policy.
For more information about Oracle defined backup policies and user defined backup policies, see Policy-Based Backups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeBackupPolicy = new oci.core.VolumeBackupPolicy("test_volume_backup_policy", {
compartmentId: compartmentId,
definedTags: {
"Operations.CostCenter": "42",
},
destinationRegion: volumeBackupPolicyDestinationRegion,
displayName: volumeBackupPolicyDisplayName,
freeformTags: {
Department: "Finance",
},
schedules: [{
backupType: volumeBackupPolicySchedulesBackupType,
period: volumeBackupPolicySchedulesPeriod,
retentionSeconds: volumeBackupPolicySchedulesRetentionSeconds,
dayOfMonth: volumeBackupPolicySchedulesDayOfMonth,
dayOfWeek: volumeBackupPolicySchedulesDayOfWeek,
hourOfDay: volumeBackupPolicySchedulesHourOfDay,
month: volumeBackupPolicySchedulesMonth,
offsetSeconds: volumeBackupPolicySchedulesOffsetSeconds,
offsetType: volumeBackupPolicySchedulesOffsetType,
timeZone: volumeBackupPolicySchedulesTimeZone,
}],
});
import pulumi
import pulumi_oci as oci
test_volume_backup_policy = oci.core.VolumeBackupPolicy("test_volume_backup_policy",
compartment_id=compartment_id,
defined_tags={
"Operations.CostCenter": "42",
},
destination_region=volume_backup_policy_destination_region,
display_name=volume_backup_policy_display_name,
freeform_tags={
"Department": "Finance",
},
schedules=[{
"backup_type": volume_backup_policy_schedules_backup_type,
"period": volume_backup_policy_schedules_period,
"retention_seconds": volume_backup_policy_schedules_retention_seconds,
"day_of_month": volume_backup_policy_schedules_day_of_month,
"day_of_week": volume_backup_policy_schedules_day_of_week,
"hour_of_day": volume_backup_policy_schedules_hour_of_day,
"month": volume_backup_policy_schedules_month,
"offset_seconds": volume_backup_policy_schedules_offset_seconds,
"offset_type": volume_backup_policy_schedules_offset_type,
"time_zone": volume_backup_policy_schedules_time_zone,
}])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewVolumeBackupPolicy(ctx, "test_volume_backup_policy", &Core.VolumeBackupPolicyArgs{
CompartmentId: pulumi.Any(compartmentId),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DestinationRegion: pulumi.Any(volumeBackupPolicyDestinationRegion),
DisplayName: pulumi.Any(volumeBackupPolicyDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
Schedules: core.VolumeBackupPolicyScheduleArray{
&core.VolumeBackupPolicyScheduleArgs{
BackupType: pulumi.Any(volumeBackupPolicySchedulesBackupType),
Period: pulumi.Any(volumeBackupPolicySchedulesPeriod),
RetentionSeconds: pulumi.Any(volumeBackupPolicySchedulesRetentionSeconds),
DayOfMonth: pulumi.Any(volumeBackupPolicySchedulesDayOfMonth),
DayOfWeek: pulumi.Any(volumeBackupPolicySchedulesDayOfWeek),
HourOfDay: pulumi.Any(volumeBackupPolicySchedulesHourOfDay),
Month: pulumi.Any(volumeBackupPolicySchedulesMonth),
OffsetSeconds: pulumi.Any(volumeBackupPolicySchedulesOffsetSeconds),
OffsetType: pulumi.Any(volumeBackupPolicySchedulesOffsetType),
TimeZone: pulumi.Any(volumeBackupPolicySchedulesTimeZone),
},
},
})
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 testVolumeBackupPolicy = new Oci.Core.VolumeBackupPolicy("test_volume_backup_policy", new()
{
CompartmentId = compartmentId,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DestinationRegion = volumeBackupPolicyDestinationRegion,
DisplayName = volumeBackupPolicyDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
Schedules = new[]
{
new Oci.Core.Inputs.VolumeBackupPolicyScheduleArgs
{
BackupType = volumeBackupPolicySchedulesBackupType,
Period = volumeBackupPolicySchedulesPeriod,
RetentionSeconds = volumeBackupPolicySchedulesRetentionSeconds,
DayOfMonth = volumeBackupPolicySchedulesDayOfMonth,
DayOfWeek = volumeBackupPolicySchedulesDayOfWeek,
HourOfDay = volumeBackupPolicySchedulesHourOfDay,
Month = volumeBackupPolicySchedulesMonth,
OffsetSeconds = volumeBackupPolicySchedulesOffsetSeconds,
OffsetType = volumeBackupPolicySchedulesOffsetType,
TimeZone = volumeBackupPolicySchedulesTimeZone,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.VolumeBackupPolicy;
import com.pulumi.oci.Core.VolumeBackupPolicyArgs;
import com.pulumi.oci.Core.inputs.VolumeBackupPolicyScheduleArgs;
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) {
var testVolumeBackupPolicy = new VolumeBackupPolicy("testVolumeBackupPolicy", VolumeBackupPolicyArgs.builder()
.compartmentId(compartmentId)
.definedTags(Map.of("Operations.CostCenter", "42"))
.destinationRegion(volumeBackupPolicyDestinationRegion)
.displayName(volumeBackupPolicyDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.schedules(VolumeBackupPolicyScheduleArgs.builder()
.backupType(volumeBackupPolicySchedulesBackupType)
.period(volumeBackupPolicySchedulesPeriod)
.retentionSeconds(volumeBackupPolicySchedulesRetentionSeconds)
.dayOfMonth(volumeBackupPolicySchedulesDayOfMonth)
.dayOfWeek(volumeBackupPolicySchedulesDayOfWeek)
.hourOfDay(volumeBackupPolicySchedulesHourOfDay)
.month(volumeBackupPolicySchedulesMonth)
.offsetSeconds(volumeBackupPolicySchedulesOffsetSeconds)
.offsetType(volumeBackupPolicySchedulesOffsetType)
.timeZone(volumeBackupPolicySchedulesTimeZone)
.build())
.build());
}
}
resources:
testVolumeBackupPolicy:
type: oci:Core:VolumeBackupPolicy
name: test_volume_backup_policy
properties:
compartmentId: ${compartmentId}
definedTags:
Operations.CostCenter: '42'
destinationRegion: ${volumeBackupPolicyDestinationRegion}
displayName: ${volumeBackupPolicyDisplayName}
freeformTags:
Department: Finance
schedules:
- backupType: ${volumeBackupPolicySchedulesBackupType}
period: ${volumeBackupPolicySchedulesPeriod}
retentionSeconds: ${volumeBackupPolicySchedulesRetentionSeconds}
dayOfMonth: ${volumeBackupPolicySchedulesDayOfMonth}
dayOfWeek: ${volumeBackupPolicySchedulesDayOfWeek}
hourOfDay: ${volumeBackupPolicySchedulesHourOfDay}
month: ${volumeBackupPolicySchedulesMonth}
offsetSeconds: ${volumeBackupPolicySchedulesOffsetSeconds}
offsetType: ${volumeBackupPolicySchedulesOffsetType}
timeZone: ${volumeBackupPolicySchedulesTimeZone}
Create VolumeBackupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VolumeBackupPolicy(name: string, args: VolumeBackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def VolumeBackupPolicy(resource_name: str,
args: VolumeBackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VolumeBackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
destination_region: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
schedules: Optional[Sequence[_core.VolumeBackupPolicyScheduleArgs]] = None)
func NewVolumeBackupPolicy(ctx *Context, name string, args VolumeBackupPolicyArgs, opts ...ResourceOption) (*VolumeBackupPolicy, error)
public VolumeBackupPolicy(string name, VolumeBackupPolicyArgs args, CustomResourceOptions? opts = null)
public VolumeBackupPolicy(String name, VolumeBackupPolicyArgs args)
public VolumeBackupPolicy(String name, VolumeBackupPolicyArgs args, CustomResourceOptions options)
type: oci:Core:VolumeBackupPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VolumeBackupPolicyArgs
- 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 VolumeBackupPolicyArgs
- 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 VolumeBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeBackupPolicyArgs
- 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 volumeBackupPolicyResource = new Oci.Core.VolumeBackupPolicy("volumeBackupPolicyResource", new()
{
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
DestinationRegion = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
Schedules = new[]
{
new Oci.Core.Inputs.VolumeBackupPolicyScheduleArgs
{
BackupType = "string",
Period = "string",
RetentionSeconds = 0,
DayOfMonth = 0,
DayOfWeek = "string",
HourOfDay = 0,
Month = "string",
OffsetSeconds = 0,
OffsetType = "string",
TimeZone = "string",
},
},
});
example, err := Core.NewVolumeBackupPolicy(ctx, "volumeBackupPolicyResource", &Core.VolumeBackupPolicyArgs{
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DestinationRegion: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Schedules: core.VolumeBackupPolicyScheduleArray{
&core.VolumeBackupPolicyScheduleArgs{
BackupType: pulumi.String("string"),
Period: pulumi.String("string"),
RetentionSeconds: pulumi.Int(0),
DayOfMonth: pulumi.Int(0),
DayOfWeek: pulumi.String("string"),
HourOfDay: pulumi.Int(0),
Month: pulumi.String("string"),
OffsetSeconds: pulumi.Int(0),
OffsetType: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
},
})
var volumeBackupPolicyResource = new VolumeBackupPolicy("volumeBackupPolicyResource", VolumeBackupPolicyArgs.builder()
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.destinationRegion("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.schedules(VolumeBackupPolicyScheduleArgs.builder()
.backupType("string")
.period("string")
.retentionSeconds(0)
.dayOfMonth(0)
.dayOfWeek("string")
.hourOfDay(0)
.month("string")
.offsetSeconds(0)
.offsetType("string")
.timeZone("string")
.build())
.build());
volume_backup_policy_resource = oci.core.VolumeBackupPolicy("volumeBackupPolicyResource",
compartment_id="string",
defined_tags={
"string": "string",
},
destination_region="string",
display_name="string",
freeform_tags={
"string": "string",
},
schedules=[oci.core.VolumeBackupPolicyScheduleArgs(
backup_type="string",
period="string",
retention_seconds=0,
day_of_month=0,
day_of_week="string",
hour_of_day=0,
month="string",
offset_seconds=0,
offset_type="string",
time_zone="string",
)])
const volumeBackupPolicyResource = new oci.core.VolumeBackupPolicy("volumeBackupPolicyResource", {
compartmentId: "string",
definedTags: {
string: "string",
},
destinationRegion: "string",
displayName: "string",
freeformTags: {
string: "string",
},
schedules: [{
backupType: "string",
period: "string",
retentionSeconds: 0,
dayOfMonth: 0,
dayOfWeek: "string",
hourOfDay: 0,
month: "string",
offsetSeconds: 0,
offsetType: "string",
timeZone: "string",
}],
});
type: oci:Core:VolumeBackupPolicy
properties:
compartmentId: string
definedTags:
string: string
destinationRegion: string
displayName: string
freeformTags:
string: string
schedules:
- backupType: string
dayOfMonth: 0
dayOfWeek: string
hourOfDay: 0
month: string
offsetSeconds: 0
offsetType: string
period: string
retentionSeconds: 0
timeZone: string
VolumeBackupPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VolumeBackupPolicy resource accepts the following input properties:
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Schedules
List<Volume
Backup Policy Schedule> - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Schedules
[]Volume
Backup Policy Schedule Args - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region String - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- schedules
List<Volume
Backup Policy Schedule> - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- schedules
Volume
Backup Policy Schedule[] - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination_
region str - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- schedules
Sequence[core.
Volume Backup Policy Schedule Args] - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartment
Id String - The OCID of the compartment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region String - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- schedules List<Property Map>
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeBackupPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- id str
- The provider-assigned unique ID for this managed resource.
- time_
created str - The date and time the volume backup policy was created. Format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
Look up Existing VolumeBackupPolicy Resource
Get an existing VolumeBackupPolicy 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?: VolumeBackupPolicyState, opts?: CustomResourceOptions): VolumeBackupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
destination_region: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
schedules: Optional[Sequence[_core.VolumeBackupPolicyScheduleArgs]] = None,
time_created: Optional[str] = None) -> VolumeBackupPolicy
func GetVolumeBackupPolicy(ctx *Context, name string, id IDInput, state *VolumeBackupPolicyState, opts ...ResourceOption) (*VolumeBackupPolicy, error)
public static VolumeBackupPolicy Get(string name, Input<string> id, VolumeBackupPolicyState? state, CustomResourceOptions? opts = null)
public static VolumeBackupPolicy get(String name, Output<String> id, VolumeBackupPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Schedules
List<Volume
Backup Policy Schedule> - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Schedules
[]Volume
Backup Policy Schedule Args - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region String - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- schedules
List<Volume
Backup Policy Schedule> - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region string - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- schedules
Volume
Backup Policy Schedule[] - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination_
region str - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- schedules
Sequence[core.
Volume Backup Policy Schedule Args] - (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- time_
created str - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- destination
Region String - (Updatable) The paired destination region for copying scheduled backups to. Example:
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- schedules List<Property Map>
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
Supporting Types
VolumeBackupPolicySchedule, VolumeBackupPolicyScheduleArgs
- Backup
Type string - (Updatable) The type of volume backup to create.
- Period string
- (Updatable) The volume backup frequency.
- Retention
Seconds int - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- Day
Of intMonth - (Updatable) The day of the month to schedule the volume backup.
- Day
Of stringWeek - (Updatable) The day of the week to schedule the volume backup.
- Hour
Of intDay - (Updatable) The hour of the day to schedule the volume backup.
- Month string
- (Updatable) The month of the year to schedule the volume backup.
- Offset
Seconds int - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- Offset
Type string (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- Time
Zone string (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
- Backup
Type string - (Updatable) The type of volume backup to create.
- Period string
- (Updatable) The volume backup frequency.
- Retention
Seconds int - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- Day
Of intMonth - (Updatable) The day of the month to schedule the volume backup.
- Day
Of stringWeek - (Updatable) The day of the week to schedule the volume backup.
- Hour
Of intDay - (Updatable) The hour of the day to schedule the volume backup.
- Month string
- (Updatable) The month of the year to schedule the volume backup.
- Offset
Seconds int - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- Offset
Type string (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- Time
Zone string (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
- backup
Type String - (Updatable) The type of volume backup to create.
- period String
- (Updatable) The volume backup frequency.
- retention
Seconds Integer - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- day
Of IntegerMonth - (Updatable) The day of the month to schedule the volume backup.
- day
Of StringWeek - (Updatable) The day of the week to schedule the volume backup.
- hour
Of IntegerDay - (Updatable) The hour of the day to schedule the volume backup.
- month String
- (Updatable) The month of the year to schedule the volume backup.
- offset
Seconds Integer - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type String (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- time
Zone String (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
- backup
Type string - (Updatable) The type of volume backup to create.
- period string
- (Updatable) The volume backup frequency.
- retention
Seconds number - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- day
Of numberMonth - (Updatable) The day of the month to schedule the volume backup.
- day
Of stringWeek - (Updatable) The day of the week to schedule the volume backup.
- hour
Of numberDay - (Updatable) The hour of the day to schedule the volume backup.
- month string
- (Updatable) The month of the year to schedule the volume backup.
- offset
Seconds number - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type string (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- time
Zone string (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
- backup_
type str - (Updatable) The type of volume backup to create.
- period str
- (Updatable) The volume backup frequency.
- retention_
seconds int - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- day_
of_ intmonth - (Updatable) The day of the month to schedule the volume backup.
- day_
of_ strweek - (Updatable) The day of the week to schedule the volume backup.
- hour_
of_ intday - (Updatable) The hour of the day to schedule the volume backup.
- month str
- (Updatable) The month of the year to schedule the volume backup.
- offset_
seconds int - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset_
type str (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- time_
zone str (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
- backup
Type String - (Updatable) The type of volume backup to create.
- period String
- (Updatable) The volume backup frequency.
- retention
Seconds Number - (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- day
Of NumberMonth - (Updatable) The day of the month to schedule the volume backup.
- day
Of StringWeek - (Updatable) The day of the week to schedule the volume backup.
- hour
Of NumberDay - (Updatable) The hour of the day to schedule the volume backup.
- month String
- (Updatable) The month of the year to schedule the volume backup.
- offset
Seconds Number - (Updatable) The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type String (Updatable) Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses.hourOfDay
is applicable for periodsONE_DAY
,ONE_WEEK
,ONE_MONTH
andONE_YEAR
.dayOfWeek
is applicable for periodONE_WEEK
.dayOfMonth
is applicable for periodsONE_MONTH
andONE_YEAR
.'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is
NUMERIC_SECONDS
, thenoffsetSeconds
will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.For clients using older versions of Apis and not sending
offsetType
in their requests, the behaviour is just likeNUMERIC_SECONDS
.- time
Zone String (Updatable) Specifies what time zone is the schedule in enum:
UTC
REGIONAL_DATA_CENTER_TIME
** 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
Import
VolumeBackupPolicies can be imported using the id
, e.g.
$ pulumi import oci:Core/volumeBackupPolicy:VolumeBackupPolicy test_volume_backup_policy "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
oci
Terraform Provider.