oci.Core.VolumeBackupPolicy
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/v3/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[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=[{
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VolumeBackupPolicy resource accepts the following input properties:
- CompartmentId 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"}
- DestinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- DisplayName 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<VolumeBackup Policy Schedule> 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- CompartmentId 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"}
- DestinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- DisplayName 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
[]VolumeBackup Policy Schedule Args 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartmentId 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"}
- destinationRegion String
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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<VolumeBackup Policy Schedule> 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartmentId 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"}
- destinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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
VolumeBackup 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[VolumeBackup Policy Schedule Args] 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- compartmentId 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"}
- destinationRegion String
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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.
- TimeCreated 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.
- TimeCreated 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.
- timeCreated 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.
- timeCreated 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.
- timeCreated 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[VolumeBackupPolicyScheduleArgs]] = None,
        time_created: Optional[str] = None) -> VolumeBackupPolicyfunc 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)resources:  _:    type: oci:Core:VolumeBackupPolicy    get:      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.
- CompartmentId 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"}
- DestinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- DisplayName 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<VolumeBackup Policy Schedule> 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- TimeCreated string
- The date and time the volume backup policy was created. Format defined by RFC3339.
- CompartmentId 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"}
- DestinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- DisplayName 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
[]VolumeBackup Policy Schedule Args 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- TimeCreated string
- The date and time the volume backup policy was created. Format defined by RFC3339.
- compartmentId 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"}
- destinationRegion String
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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<VolumeBackup Policy Schedule> 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- timeCreated String
- The date and time the volume backup policy was created. Format defined by RFC3339.
- compartmentId 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"}
- destinationRegion string
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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
VolumeBackup Policy Schedule[] 
- (Updatable) The collection of schedules for the volume backup policy. See see Schedules in Policy-Based Backups for more information.
- timeCreated 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[VolumeBackup 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.
- compartmentId 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"}
- destinationRegion String
- (Updatable) The paired destination region for copying scheduled backups to. Example: us-ashburn-1. See Region Pairs for details about paired regions.
- displayName 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.
- timeCreated String
- The date and time the volume backup policy was created. Format defined by RFC3339.
Supporting Types
VolumeBackupPolicySchedule, VolumeBackupPolicyScheduleArgs        
- BackupType string
- (Updatable) The type of volume backup to create.
- Period string
- (Updatable) The volume backup frequency.
- RetentionSeconds int
- (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- DayOf intMonth 
- (Updatable) The day of the month to schedule the volume backup.
- DayOf stringWeek 
- (Updatable) The day of the week to schedule the volume backup.
- HourOf 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.
- OffsetSeconds 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.
- OffsetType string
- (Updatable) Indicates how the offset is defined. If value is - STRUCTURED, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_SECONDS.
- TimeZone 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 
- BackupType string
- (Updatable) The type of volume backup to create.
- Period string
- (Updatable) The volume backup frequency.
- RetentionSeconds int
- (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- DayOf intMonth 
- (Updatable) The day of the month to schedule the volume backup.
- DayOf stringWeek 
- (Updatable) The day of the week to schedule the volume backup.
- HourOf 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.
- OffsetSeconds 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.
- OffsetType string
- (Updatable) Indicates how the offset is defined. If value is - STRUCTURED, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_SECONDS.
- TimeZone 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 
- backupType String
- (Updatable) The type of volume backup to create.
- period String
- (Updatable) The volume backup frequency.
- retentionSeconds Integer
- (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- dayOf IntegerMonth 
- (Updatable) The day of the month to schedule the volume backup.
- dayOf StringWeek 
- (Updatable) The day of the week to schedule the volume backup.
- hourOf 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.
- offsetSeconds 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.
- offsetType String
- (Updatable) Indicates how the offset is defined. If value is - STRUCTURED, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_SECONDS.
- timeZone 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 
- backupType string
- (Updatable) The type of volume backup to create.
- period string
- (Updatable) The volume backup frequency.
- retentionSeconds number
- (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- dayOf numberMonth 
- (Updatable) The day of the month to schedule the volume backup.
- dayOf stringWeek 
- (Updatable) The day of the week to schedule the volume backup.
- hourOf 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.
- offsetSeconds 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.
- offsetType string
- (Updatable) Indicates how the offset is defined. If value is - STRUCTURED, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_SECONDS.
- timeZone 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, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_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 
- backupType String
- (Updatable) The type of volume backup to create.
- period String
- (Updatable) The volume backup frequency.
- retentionSeconds Number
- (Updatable) How long, in seconds, to keep the volume backups created by this schedule.
- dayOf NumberMonth 
- (Updatable) The day of the month to schedule the volume backup.
- dayOf StringWeek 
- (Updatable) The day of the week to schedule the volume backup.
- hourOf 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.
- offsetSeconds 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.
- offsetType String
- (Updatable) Indicates how the offset is defined. If value is - STRUCTURED, then- hourOfDay,- dayOfWeek,- dayOfMonth, and- monthfields are used and- offsetSecondswill be ignored in requests and users should ignore its value from the responses.- hourOfDayis applicable for periods- ONE_DAY,- ONE_WEEK,- ONE_MONTHand- ONE_YEAR.- dayOfWeekis applicable for period- ONE_WEEK.- dayOfMonthis applicable for periods- ONE_MONTHand- ONE_YEAR.- 'month' is applicable for period 'ONE_YEAR'. - They will be ignored in the requests for inapplicable periods. - If value is - NUMERIC_SECONDS, then- offsetSecondswill 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 - offsetTypein their requests, the behaviour is just like- NUMERIC_SECONDS.
- timeZone 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 ociTerraform Provider.
