published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
To enable automatic backup for backup sources, you can create a backup plan, associate backup sources and backup policies within the plan, specify backup storage space, and set backup data retention rules. After creating the backup plan, the system will automatically back up the specified sources in a unified manner according to the associated backup policy configuration
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
cBRBackupPlanDemo:
type: volcenginecc:cbr:BackupPlan
name: CBRBackupPlanDemo
properties:
name: CBRBackupPlanDemo
policyId: policy-krn3z1wf9ubujxxxxx
resourceLists:
- resource_type: ECS
resource_id: res-krn4bq3sctbwvxxxxx
meta_information:
vepfsMeta: ""
ecsMeta: '{"AutoBackupAllAttachedVolumes":true,"VolumeList":[{"VolumeId":"vol-3wt6m9uygg4kgxxxxx","VolumeName":"emr-d6af13acb6966xxxxx-volume-1-2","VolumeType":"ESSD_FlexPL"},{"VolumeId":"vol-3wt6m9vh3a3qxxxxx","VolumeName":"emr-d6af13acb6966xxxxx-volume-2-2","VolumeType":"ESSD_FlexPL"}]}'
Create BackupPlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupPlan(name: string, args: BackupPlanArgs, opts?: CustomResourceOptions);@overload
def BackupPlan(resource_name: str,
args: BackupPlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupPlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
resource_lists: Optional[Sequence[BackupPlanResourceListArgs]] = None,
policy_id: Optional[str] = None)func NewBackupPlan(ctx *Context, name string, args BackupPlanArgs, opts ...ResourceOption) (*BackupPlan, error)public BackupPlan(string name, BackupPlanArgs args, CustomResourceOptions? opts = null)
public BackupPlan(String name, BackupPlanArgs args)
public BackupPlan(String name, BackupPlanArgs args, CustomResourceOptions options)
type: volcenginecc:cbr:BackupPlan
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 BackupPlanArgs
- 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 BackupPlanArgs
- 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 BackupPlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupPlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupPlanArgs
- 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 backupPlanResource = new Volcenginecc.Cbr.BackupPlan("backupPlanResource", new()
{
Name = "string",
ResourceLists = new[]
{
new Volcenginecc.Cbr.Inputs.BackupPlanResourceListArgs
{
MetaInformation = new Volcenginecc.Cbr.Inputs.BackupPlanResourceListMetaInformationArgs
{
EcsMeta = "string",
VepfsMeta = "string",
},
ResourceId = "string",
ResourceType = "string",
},
},
PolicyId = "string",
});
example, err := cbr.NewBackupPlan(ctx, "backupPlanResource", &cbr.BackupPlanArgs{
Name: pulumi.String("string"),
ResourceLists: cbr.BackupPlanResourceListArray{
&cbr.BackupPlanResourceListArgs{
MetaInformation: &cbr.BackupPlanResourceListMetaInformationArgs{
EcsMeta: pulumi.String("string"),
VepfsMeta: pulumi.String("string"),
},
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
},
PolicyId: pulumi.String("string"),
})
var backupPlanResource = new BackupPlan("backupPlanResource", BackupPlanArgs.builder()
.name("string")
.resourceLists(BackupPlanResourceListArgs.builder()
.metaInformation(BackupPlanResourceListMetaInformationArgs.builder()
.ecsMeta("string")
.vepfsMeta("string")
.build())
.resourceId("string")
.resourceType("string")
.build())
.policyId("string")
.build());
backup_plan_resource = volcenginecc.cbr.BackupPlan("backupPlanResource",
name="string",
resource_lists=[{
"meta_information": {
"ecs_meta": "string",
"vepfs_meta": "string",
},
"resource_id": "string",
"resource_type": "string",
}],
policy_id="string")
const backupPlanResource = new volcenginecc.cbr.BackupPlan("backupPlanResource", {
name: "string",
resourceLists: [{
metaInformation: {
ecsMeta: "string",
vepfsMeta: "string",
},
resourceId: "string",
resourceType: "string",
}],
policyId: "string",
});
type: volcenginecc:cbr:BackupPlan
properties:
name: string
policyId: string
resourceLists:
- metaInformation:
ecsMeta: string
vepfsMeta: string
resourceId: string
resourceType: string
BackupPlan 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 BackupPlan resource accepts the following input properties:
- Name string
- Backup Plan Name
- Resource
Lists List<Volcengine.Backup Plan Resource List> - Policy
Id string - Backup Policy ID
- Name string
- Backup Plan Name
- Resource
Lists []BackupPlan Resource List Args - Policy
Id string - Backup Policy ID
- name String
- Backup Plan Name
- resource
Lists List<BackupPlan Resource List> - policy
Id String - Backup Policy ID
- name string
- Backup Plan Name
- resource
Lists BackupPlan Resource List[] - policy
Id string - Backup Policy ID
- name str
- Backup Plan Name
- resource_
lists Sequence[BackupPlan Resource List Args] - policy_
id str - Backup Policy ID
- name String
- Backup Plan Name
- resource
Lists List<Property Map> - policy
Id String - Backup Policy ID
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupPlan resource produces the following output properties:
- Account
Id string - Account ID that created this plan
- Created
Time string - Creation Time
- Id string
- The provider-assigned unique ID for this managed resource.
- Plan
Id string - Backup Plan ID
- Policy
Volcengine.
Backup Plan Policy - Backup Policy
- Updated
Time string - Update Time
- Account
Id string - Account ID that created this plan
- Created
Time string - Creation Time
- Id string
- The provider-assigned unique ID for this managed resource.
- Plan
Id string - Backup Plan ID
- Policy
Backup
Plan Policy - Backup Policy
- Updated
Time string - Update Time
- account
Id String - Account ID that created this plan
- created
Time String - Creation Time
- id String
- The provider-assigned unique ID for this managed resource.
- plan
Id String - Backup Plan ID
- policy
Backup
Plan Policy - Backup Policy
- updated
Time String - Update Time
- account
Id string - Account ID that created this plan
- created
Time string - Creation Time
- id string
- The provider-assigned unique ID for this managed resource.
- plan
Id string - Backup Plan ID
- policy
Backup
Plan Policy - Backup Policy
- updated
Time string - Update Time
- account_
id str - Account ID that created this plan
- created_
time str - Creation Time
- id str
- The provider-assigned unique ID for this managed resource.
- plan_
id str - Backup Plan ID
- policy
Backup
Plan Policy - Backup Policy
- updated_
time str - Update Time
- account
Id String - Account ID that created this plan
- created
Time String - Creation Time
- id String
- The provider-assigned unique ID for this managed resource.
- plan
Id String - Backup Plan ID
- policy Property Map
- Backup Policy
- updated
Time String - Update Time
Look up Existing BackupPlan Resource
Get an existing BackupPlan 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?: BackupPlanState, opts?: CustomResourceOptions): BackupPlan@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_time: Optional[str] = None,
name: Optional[str] = None,
plan_id: Optional[str] = None,
policy: Optional[BackupPlanPolicyArgs] = None,
policy_id: Optional[str] = None,
resource_lists: Optional[Sequence[BackupPlanResourceListArgs]] = None,
updated_time: Optional[str] = None) -> BackupPlanfunc GetBackupPlan(ctx *Context, name string, id IDInput, state *BackupPlanState, opts ...ResourceOption) (*BackupPlan, error)public static BackupPlan Get(string name, Input<string> id, BackupPlanState? state, CustomResourceOptions? opts = null)public static BackupPlan get(String name, Output<String> id, BackupPlanState state, CustomResourceOptions options)resources: _: type: volcenginecc:cbr:BackupPlan 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.
- Account
Id string - Account ID that created this plan
- Created
Time string - Creation Time
- Name string
- Backup Plan Name
- Plan
Id string - Backup Plan ID
- Policy
Volcengine.
Backup Plan Policy - Backup Policy
- Policy
Id string - Backup Policy ID
- Resource
Lists List<Volcengine.Backup Plan Resource List> - Updated
Time string - Update Time
- Account
Id string - Account ID that created this plan
- Created
Time string - Creation Time
- Name string
- Backup Plan Name
- Plan
Id string - Backup Plan ID
- Policy
Backup
Plan Policy Args - Backup Policy
- Policy
Id string - Backup Policy ID
- Resource
Lists []BackupPlan Resource List Args - Updated
Time string - Update Time
- account
Id String - Account ID that created this plan
- created
Time String - Creation Time
- name String
- Backup Plan Name
- plan
Id String - Backup Plan ID
- policy
Backup
Plan Policy - Backup Policy
- policy
Id String - Backup Policy ID
- resource
Lists List<BackupPlan Resource List> - updated
Time String - Update Time
- account
Id string - Account ID that created this plan
- created
Time string - Creation Time
- name string
- Backup Plan Name
- plan
Id string - Backup Plan ID
- policy
Backup
Plan Policy - Backup Policy
- policy
Id string - Backup Policy ID
- resource
Lists BackupPlan Resource List[] - updated
Time string - Update Time
- account_
id str - Account ID that created this plan
- created_
time str - Creation Time
- name str
- Backup Plan Name
- plan_
id str - Backup Plan ID
- policy
Backup
Plan Policy Args - Backup Policy
- policy_
id str - Backup Policy ID
- resource_
lists Sequence[BackupPlan Resource List Args] - updated_
time str - Update Time
- account
Id String - Account ID that created this plan
- created
Time String - Creation Time
- name String
- Backup Plan Name
- plan
Id String - Backup Plan ID
- policy Property Map
- Backup Policy
- policy
Id String - Backup Policy ID
- resource
Lists List<Property Map> - updated
Time String - Update Time
Supporting Types
BackupPlanPolicy, BackupPlanPolicyArgs
- Account
Id string - Account ID that created this policy
- Backup
Type string - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- Created
Time string - Creation Time
- Crontab string
- Specifies the backup schedule. Supports standard crontab expressions
- Enable
Policy bool - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- Name string
- Policy Name
- Plan
Number int - Number of backup plans associated with this policy
- Policy
Id string - Backup Policy ID
- Retention
Day int - Retention time for recovery points. -1 means retain indefinitely
- Updated
Time string - Update Time
- Account
Id string - Account ID that created this policy
- Backup
Type string - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- Created
Time string - Creation Time
- Crontab string
- Specifies the backup schedule. Supports standard crontab expressions
- Enable
Policy bool - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- Name string
- Policy Name
- Plan
Number int - Number of backup plans associated with this policy
- Policy
Id string - Backup Policy ID
- Retention
Day int - Retention time for recovery points. -1 means retain indefinitely
- Updated
Time string - Update Time
- account
Id String - Account ID that created this policy
- backup
Type String - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- created
Time String - Creation Time
- crontab String
- Specifies the backup schedule. Supports standard crontab expressions
- enable
Policy Boolean - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- name String
- Policy Name
- plan
Number Integer - Number of backup plans associated with this policy
- policy
Id String - Backup Policy ID
- retention
Day Integer - Retention time for recovery points. -1 means retain indefinitely
- updated
Time String - Update Time
- account
Id string - Account ID that created this policy
- backup
Type string - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- created
Time string - Creation Time
- crontab string
- Specifies the backup schedule. Supports standard crontab expressions
- enable
Policy boolean - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- name string
- Policy Name
- plan
Number number - Number of backup plans associated with this policy
- policy
Id string - Backup Policy ID
- retention
Day number - Retention time for recovery points. -1 means retain indefinitely
- updated
Time string - Update Time
- account_
id str - Account ID that created this policy
- backup_
type str - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- created_
time str - Creation Time
- crontab str
- Specifies the backup schedule. Supports standard crontab expressions
- enable_
policy bool - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- name str
- Policy Name
- plan_
number int - Number of backup plans associated with this policy
- policy_
id str - Backup Policy ID
- retention_
day int - Retention time for recovery points. -1 means retain indefinitely
- updated_
time str - Update Time
- account
Id String - Account ID that created this policy
- backup
Type String - Backup type. Options: FULL: Full backup. INCREMENTAL: Incremental backup
- created
Time String - Creation Time
- crontab String
- Specifies the backup schedule. Supports standard crontab expressions
- enable
Policy Boolean - Whether the policy is enabled. Options: true: Enable policy. false: Disable policy
- name String
- Policy Name
- plan
Number Number - Number of backup plans associated with this policy
- policy
Id String - Backup Policy ID
- retention
Day Number - Retention time for recovery points. -1 means retain indefinitely
- updated
Time String - Update Time
BackupPlanResourceList, BackupPlanResourceListArgs
- Meta
Information Volcengine.Backup Plan Resource List Meta Information - Resource meta information, used to store additional configuration when creating a backup plan
- Resource
Id string - Backup Source ID
- Resource
Type string - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
- Meta
Information BackupPlan Resource List Meta Information - Resource meta information, used to store additional configuration when creating a backup plan
- Resource
Id string - Backup Source ID
- Resource
Type string - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
- meta
Information BackupPlan Resource List Meta Information - Resource meta information, used to store additional configuration when creating a backup plan
- resource
Id String - Backup Source ID
- resource
Type String - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
- meta
Information BackupPlan Resource List Meta Information - Resource meta information, used to store additional configuration when creating a backup plan
- resource
Id string - Backup Source ID
- resource
Type string - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
- meta_
information BackupPlan Resource List Meta Information - Resource meta information, used to store additional configuration when creating a backup plan
- resource_
id str - Backup Source ID
- resource_
type str - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
- meta
Information Property Map - Resource meta information, used to store additional configuration when creating a backup plan
- resource
Id String - Backup Source ID
- resource
Type String - Backup source type. Options: ECS: ECS full machine backup. vePFS: vePFS file system backup
BackupPlanResourceListMetaInformation, BackupPlanResourceListMetaInformationArgs
- ecs_
meta str - ECS metadata, which is a JSON string
- vepfs_
meta str - vePFS backup source metadata, which is a JSON string
Import
$ pulumi import volcenginecc:cbr/backupPlan:BackupPlan example "plan_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
