published on Monday, Jun 15, 2026 by Byteplus
published on Monday, Jun 15, 2026 by Byteplus
Automatic snapshot policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const storageEBSSnapshotPolicyDemo = new bytepluscc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", {
autoSnapshotPolicyName: "ccapi-test",
timePoints: [
"0",
"1",
],
repeatWeekdays: [
"2",
"5",
],
retentionDays: 7,
projectName: "default",
addVolumeIds: [
"vol-3x594jtg0g4cxxxxx",
"vol-3x594j4dvp4i4txxxxx",
],
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
storage_ebs_snapshot_policy_demo = bytepluscc.storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo",
auto_snapshot_policy_name="ccapi-test",
time_points=[
"0",
"1",
],
repeat_weekdays=[
"2",
"5",
],
retention_days=7,
project_name="default",
add_volume_ids=[
"vol-3x594jtg0g4cxxxxx",
"vol-3x594j4dvp4i4txxxxx",
],
tags=[{
"key": "env",
"value": "test",
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/storageebs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storageebs.NewSnapshotPolicy(ctx, "StorageEBSSnapshotPolicyDemo", &storageebs.SnapshotPolicyArgs{
AutoSnapshotPolicyName: pulumi.String("ccapi-test"),
TimePoints: pulumi.StringArray{
pulumi.String("0"),
pulumi.String("1"),
},
RepeatWeekdays: pulumi.StringArray{
pulumi.String("2"),
pulumi.String("5"),
},
RetentionDays: pulumi.Int(7),
ProjectName: pulumi.String("default"),
AddVolumeIds: pulumi.StringArray{
pulumi.String("vol-3x594jtg0g4cxxxxx"),
pulumi.String("vol-3x594j4dvp4i4txxxxx"),
},
Tags: storageebs.SnapshotPolicyTagArray{
&storageebs.SnapshotPolicyTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var storageEBSSnapshotPolicyDemo = new Bytepluscc.Storageebs.SnapshotPolicy("StorageEBSSnapshotPolicyDemo", new()
{
AutoSnapshotPolicyName = "ccapi-test",
TimePoints = new[]
{
"0",
"1",
},
RepeatWeekdays = new[]
{
"2",
"5",
},
RetentionDays = 7,
ProjectName = "default",
AddVolumeIds = new[]
{
"vol-3x594jtg0g4cxxxxx",
"vol-3x594j4dvp4i4txxxxx",
},
Tags = new[]
{
new Bytepluscc.Storageebs.Inputs.SnapshotPolicyTagArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.storageebs.SnapshotPolicy;
import com.byteplus.bytepluscc.storageebs.SnapshotPolicyArgs;
import com.pulumi.bytepluscc.storageebs.inputs.SnapshotPolicyTagArgs;
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 storageEBSSnapshotPolicyDemo = new SnapshotPolicy("storageEBSSnapshotPolicyDemo", SnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("ccapi-test")
.timePoints(
"0",
"1")
.repeatWeekdays(
"2",
"5")
.retentionDays(7)
.projectName("default")
.addVolumeIds(
"vol-3x594jtg0g4cxxxxx",
"vol-3x594j4dvp4i4txxxxx")
.tags(SnapshotPolicyTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
storageEBSSnapshotPolicyDemo:
type: bytepluscc:storageebs:SnapshotPolicy
name: StorageEBSSnapshotPolicyDemo
properties:
autoSnapshotPolicyName: ccapi-test
timePoints:
- '0'
- '1'
repeatWeekdays:
- '2'
- '5'
retentionDays: 7
projectName: default
addVolumeIds:
- vol-3x594jtg0g4cxxxxx
- vol-3x594j4dvp4i4txxxxx
tags:
- key: env
value: test
Example coming soon!
Create SnapshotPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SnapshotPolicy(name: string, args: SnapshotPolicyArgs, opts?: CustomResourceOptions);@overload
def SnapshotPolicy(resource_name: str,
args: SnapshotPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SnapshotPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_snapshot_policy_name: Optional[str] = None,
retention_days: Optional[int] = None,
time_points: Optional[Sequence[str]] = None,
add_volume_ids: Optional[Sequence[str]] = None,
project_name: Optional[str] = None,
remove_volume_ids: Optional[Sequence[str]] = None,
repeat_days: Optional[int] = None,
repeat_weekdays: Optional[Sequence[str]] = None,
tags: Optional[Sequence[SnapshotPolicyTagArgs]] = None)func NewSnapshotPolicy(ctx *Context, name string, args SnapshotPolicyArgs, opts ...ResourceOption) (*SnapshotPolicy, error)public SnapshotPolicy(string name, SnapshotPolicyArgs args, CustomResourceOptions? opts = null)
public SnapshotPolicy(String name, SnapshotPolicyArgs args)
public SnapshotPolicy(String name, SnapshotPolicyArgs args, CustomResourceOptions options)
type: bytepluscc:storageebs:SnapshotPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_storageebs_snapshotpolicy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SnapshotPolicyArgs
- 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 SnapshotPolicyArgs
- 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 SnapshotPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotPolicyArgs
- 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 snapshotPolicyResource = new Bytepluscc.Storageebs.SnapshotPolicy("snapshotPolicyResource", new()
{
AutoSnapshotPolicyName = "string",
RetentionDays = 0,
TimePoints = new[]
{
"string",
},
AddVolumeIds = new[]
{
"string",
},
ProjectName = "string",
RemoveVolumeIds = new[]
{
"string",
},
RepeatDays = 0,
RepeatWeekdays = new[]
{
"string",
},
Tags = new[]
{
new Bytepluscc.Storageebs.Inputs.SnapshotPolicyTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := storageebs.NewSnapshotPolicy(ctx, "snapshotPolicyResource", &storageebs.SnapshotPolicyArgs{
AutoSnapshotPolicyName: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
TimePoints: pulumi.StringArray{
pulumi.String("string"),
},
AddVolumeIds: pulumi.StringArray{
pulumi.String("string"),
},
ProjectName: pulumi.String("string"),
RemoveVolumeIds: pulumi.StringArray{
pulumi.String("string"),
},
RepeatDays: pulumi.Int(0),
RepeatWeekdays: pulumi.StringArray{
pulumi.String("string"),
},
Tags: storageebs.SnapshotPolicyTagArray{
&storageebs.SnapshotPolicyTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
resource "bytepluscc_storageebs_snapshotpolicy" "snapshotPolicyResource" {
auto_snapshot_policy_name = "string"
retention_days = 0
time_points = ["string"]
add_volume_ids = ["string"]
project_name = "string"
remove_volume_ids = ["string"]
repeat_days = 0
repeat_weekdays = ["string"]
tags {
key = "string"
value = "string"
}
}
var snapshotPolicyResource = new SnapshotPolicy("snapshotPolicyResource", SnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("string")
.retentionDays(0)
.timePoints("string")
.addVolumeIds("string")
.projectName("string")
.removeVolumeIds("string")
.repeatDays(0)
.repeatWeekdays("string")
.tags(SnapshotPolicyTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
snapshot_policy_resource = bytepluscc.storageebs.SnapshotPolicy("snapshotPolicyResource",
auto_snapshot_policy_name="string",
retention_days=0,
time_points=["string"],
add_volume_ids=["string"],
project_name="string",
remove_volume_ids=["string"],
repeat_days=0,
repeat_weekdays=["string"],
tags=[{
"key": "string",
"value": "string",
}])
const snapshotPolicyResource = new bytepluscc.storageebs.SnapshotPolicy("snapshotPolicyResource", {
autoSnapshotPolicyName: "string",
retentionDays: 0,
timePoints: ["string"],
addVolumeIds: ["string"],
projectName: "string",
removeVolumeIds: ["string"],
repeatDays: 0,
repeatWeekdays: ["string"],
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:storageebs:SnapshotPolicy
properties:
addVolumeIds:
- string
autoSnapshotPolicyName: string
projectName: string
removeVolumeIds:
- string
repeatDays: 0
repeatWeekdays:
- string
retentionDays: 0
tags:
- key: string
value: string
timePoints:
- string
SnapshotPolicy 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 SnapshotPolicy resource accepts the following input properties:
- Auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- Retention
Days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- Time
Points List<string> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- Add
Volume List<string>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- Project
Name string - Project associated with the automatic snapshot policy.
- Remove
Volume List<string>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- Repeat
Days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- Repeat
Weekdays List<string> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
-
List<Byteplus.
Snapshot Policy Tag>
- Auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- Retention
Days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- Time
Points []string - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- Add
Volume []stringIds - List of cloud disk IDs to associate with the automatic snapshot policy.
- Project
Name string - Project associated with the automatic snapshot policy.
- Remove
Volume []stringIds - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- Repeat
Days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- Repeat
Weekdays []string - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
-
[]Snapshot
Policy Tag Args
- auto_
snapshot_ stringpolicy_ name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- retention_
days number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- time_
points list(string) - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- add_
volume_ list(string)ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- project_
name string - Project associated with the automatic snapshot policy.
- remove_
volume_ list(string)ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat_
days number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat_
weekdays list(string) - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- list(object)
- auto
Snapshot StringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- retention
Days Integer - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- time
Points List<String> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- add
Volume List<String>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- project
Name String - Project associated with the automatic snapshot policy.
- remove
Volume List<String>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days Integer - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays List<String> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
-
List<Snapshot
Policy Tag>
- auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- retention
Days number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- time
Points string[] - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- add
Volume string[]Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- project
Name string - Project associated with the automatic snapshot policy.
- remove
Volume string[]Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays string[] - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
-
Snapshot
Policy Tag[]
- auto_
snapshot_ strpolicy_ name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- retention_
days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- time_
points Sequence[str] - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- add_
volume_ Sequence[str]ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- project_
name str - Project associated with the automatic snapshot policy.
- remove_
volume_ Sequence[str]ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat_
days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat_
weekdays Sequence[str] - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
-
Sequence[Snapshot
Policy Tag Args]
- auto
Snapshot StringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- retention
Days Number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- time
Points List<String> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- add
Volume List<String>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- project
Name String - Project associated with the automatic snapshot policy.
- remove
Volume List<String>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days Number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays List<String> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the SnapshotPolicy resource produces the following output properties:
- Auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- Created
At string - Creation time of the automatic snapshot policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Reserved parameter.
- Updated
At string - Update time of the automatic snapshot policy.
- int
- Total number of cloud disks.
- Auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- Created
At string - Creation time of the automatic snapshot policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Reserved parameter.
- Updated
At string - Update time of the automatic snapshot policy.
- int
- Total number of cloud disks.
- auto_
snapshot_ stringpolicy_ id - Automatic snapshot policy ID.
- created_
at string - Creation time of the automatic snapshot policy.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Reserved parameter.
- updated_
at string - Update time of the automatic snapshot policy.
- volume_
nums number - Total number of cloud disks.
- auto
Snapshot StringPolicy Id - Automatic snapshot policy ID.
- created
At String - Creation time of the automatic snapshot policy.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Reserved parameter.
- updated
At String - Update time of the automatic snapshot policy.
- Integer
- Total number of cloud disks.
- auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- created
At string - Creation time of the automatic snapshot policy.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Reserved parameter.
- updated
At string - Update time of the automatic snapshot policy.
- number
- Total number of cloud disks.
- auto_
snapshot_ strpolicy_ id - Automatic snapshot policy ID.
- created_
at str - Creation time of the automatic snapshot policy.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Reserved parameter.
- updated_
at str - Update time of the automatic snapshot policy.
- volume_
nums int - Total number of cloud disks.
- auto
Snapshot StringPolicy Id - Automatic snapshot policy ID.
- created
At String - Creation time of the automatic snapshot policy.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Reserved parameter.
- updated
At String - Update time of the automatic snapshot policy.
- Number
- Total number of cloud disks.
Look up Existing SnapshotPolicy Resource
Get an existing SnapshotPolicy 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?: SnapshotPolicyState, opts?: CustomResourceOptions): SnapshotPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_volume_ids: Optional[Sequence[str]] = None,
auto_snapshot_policy_id: Optional[str] = None,
auto_snapshot_policy_name: Optional[str] = None,
created_at: Optional[str] = None,
project_name: Optional[str] = None,
remove_volume_ids: Optional[Sequence[str]] = None,
repeat_days: Optional[int] = None,
repeat_weekdays: Optional[Sequence[str]] = None,
retention_days: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[SnapshotPolicyTagArgs]] = None,
time_points: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
volume_nums: Optional[int] = None) -> SnapshotPolicyfunc GetSnapshotPolicy(ctx *Context, name string, id IDInput, state *SnapshotPolicyState, opts ...ResourceOption) (*SnapshotPolicy, error)public static SnapshotPolicy Get(string name, Input<string> id, SnapshotPolicyState? state, CustomResourceOptions? opts = null)public static SnapshotPolicy get(String name, Output<String> id, SnapshotPolicyState state, CustomResourceOptions options)resources: _: type: bytepluscc:storageebs:SnapshotPolicy get: id: ${id}import {
to = bytepluscc_storageebs_snapshotpolicy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Add
Volume List<string>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- Auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- Auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- Created
At string - Creation time of the automatic snapshot policy.
- Project
Name string - Project associated with the automatic snapshot policy.
- Remove
Volume List<string>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- Repeat
Days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- Repeat
Weekdays List<string> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- Retention
Days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- Status string
- Reserved parameter.
-
List<Byteplus.
Snapshot Policy Tag> - Time
Points List<string> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- Updated
At string - Update time of the automatic snapshot policy.
- int
- Total number of cloud disks.
- Add
Volume []stringIds - List of cloud disk IDs to associate with the automatic snapshot policy.
- Auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- Auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- Created
At string - Creation time of the automatic snapshot policy.
- Project
Name string - Project associated with the automatic snapshot policy.
- Remove
Volume []stringIds - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- Repeat
Days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- Repeat
Weekdays []string - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- Retention
Days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- Status string
- Reserved parameter.
-
[]Snapshot
Policy Tag Args - Time
Points []string - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- Updated
At string - Update time of the automatic snapshot policy.
- int
- Total number of cloud disks.
- add_
volume_ list(string)ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- auto_
snapshot_ stringpolicy_ id - Automatic snapshot policy ID.
- auto_
snapshot_ stringpolicy_ name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- created_
at string - Creation time of the automatic snapshot policy.
- project_
name string - Project associated with the automatic snapshot policy.
- remove_
volume_ list(string)ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat_
days number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat_
weekdays list(string) - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- retention_
days number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- status string
- Reserved parameter.
- list(object)
- time_
points list(string) - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- updated_
at string - Update time of the automatic snapshot policy.
- volume_
nums number - Total number of cloud disks.
- add
Volume List<String>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- auto
Snapshot StringPolicy Id - Automatic snapshot policy ID.
- auto
Snapshot StringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- created
At String - Creation time of the automatic snapshot policy.
- project
Name String - Project associated with the automatic snapshot policy.
- remove
Volume List<String>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days Integer - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays List<String> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- retention
Days Integer - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- status String
- Reserved parameter.
-
List<Snapshot
Policy Tag> - time
Points List<String> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- updated
At String - Update time of the automatic snapshot policy.
- Integer
- Total number of cloud disks.
- add
Volume string[]Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- auto
Snapshot stringPolicy Id - Automatic snapshot policy ID.
- auto
Snapshot stringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- created
At string - Creation time of the automatic snapshot policy.
- project
Name string - Project associated with the automatic snapshot policy.
- remove
Volume string[]Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays string[] - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- retention
Days number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- status string
- Reserved parameter.
-
Snapshot
Policy Tag[] - time
Points string[] - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- updated
At string - Update time of the automatic snapshot policy.
- number
- Total number of cloud disks.
- add_
volume_ Sequence[str]ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- auto_
snapshot_ strpolicy_ id - Automatic snapshot policy ID.
- auto_
snapshot_ strpolicy_ name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- created_
at str - Creation time of the automatic snapshot policy.
- project_
name str - Project associated with the automatic snapshot policy.
- remove_
volume_ Sequence[str]ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat_
days int - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat_
weekdays Sequence[str] - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- retention_
days int - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- status str
- Reserved parameter.
-
Sequence[Snapshot
Policy Tag Args] - time_
points Sequence[str] - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- updated_
at str - Update time of the automatic snapshot policy.
- volume_
nums int - Total number of cloud disks.
- add
Volume List<String>Ids - List of cloud disk IDs to associate with the automatic snapshot policy.
- auto
Snapshot StringPolicy Id - Automatic snapshot policy ID.
- auto
Snapshot StringPolicy Name - Automatic snapshot policy name. Naming rules: The first character must be Chinese, a letter, or an underscore (). It can include Chinese, letters, numbers, underscores (), hyphens (-), or periods (.). Length must be between 1 and 128 characters.
- created
At String - Creation time of the automatic snapshot policy.
- project
Name String - Project associated with the automatic snapshot policy.
- remove
Volume List<String>Ids - List of cloud disk IDs to disassociate from the automatic snapshot policy.
- repeat
Days Number - Create snapshots on a daily basis, with a specified interval in days. The value range is [1, 30]. When repeating snapshot creation daily, the day you create the automatic snapshot policy is considered Day 1. Snapshots will not be created for past time points. If all scheduled snapshot times for the day have passed, the day is still counted as Day 1.
- repeat
Weekdays List<String> - Create snapshots on a weekly basis by selecting one or more days from Monday to Sunday. The value range is 1–7. When creating an automatic snapshot policy, you must set either the RepeatWeekdays.N or RepeatDays parameter. Setting both parameters at the same time is not supported.
- retention
Days Number - Retention period for automatic snapshots, in days. -1: Save permanently; 1–65536: Specify number of days to retain.
- status String
- Reserved parameter.
- List<Property Map>
- time
Points List<String> - Snapshot creation time points, using UTC +8 time. Unit: hour. Value range: 0–23.
- updated
At String - Update time of the automatic snapshot policy.
- Number
- Total number of cloud disks.
Supporting Types
SnapshotPolicyTag, SnapshotPolicyTagArgs
Import
$ pulumi import bytepluscc:storageebs/snapshotPolicy:SnapshotPolicy example "auto_snapshot_policy_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jun 15, 2026 by Byteplus