volcengine.ebs.AutoSnapshotPolicy
Explore with Pulumi AI
Provides a resource to manage ebs auto snapshot policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.ebs.AutoSnapshotPolicy("foo", {
autoSnapshotPolicyName: "acc-test-auto-snapshot-policy",
projectName: "default",
repeatWeekdays: [
"2",
"6",
],
retentionDays: -1,
tags: [{
key: "k1",
value: "v1",
}],
timePoints: [
"1",
"5",
"9",
],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ebs.AutoSnapshotPolicy("foo",
auto_snapshot_policy_name="acc-test-auto-snapshot-policy",
project_name="default",
repeat_weekdays=[
"2",
"6",
],
retention_days=-1,
tags=[volcengine.ebs.AutoSnapshotPolicyTagArgs(
key="k1",
value="v1",
)],
time_points=[
"1",
"5",
"9",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ebs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ebs.NewAutoSnapshotPolicy(ctx, "foo", &ebs.AutoSnapshotPolicyArgs{
AutoSnapshotPolicyName: pulumi.String("acc-test-auto-snapshot-policy"),
ProjectName: pulumi.String("default"),
RepeatWeekdays: pulumi.StringArray{
pulumi.String("2"),
pulumi.String("6"),
},
RetentionDays: -1,
Tags: ebs.AutoSnapshotPolicyTagArray{
&ebs.AutoSnapshotPolicyTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
TimePoints: pulumi.StringArray{
pulumi.String("1"),
pulumi.String("5"),
pulumi.String("9"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Ebs.AutoSnapshotPolicy("foo", new()
{
AutoSnapshotPolicyName = "acc-test-auto-snapshot-policy",
ProjectName = "default",
RepeatWeekdays = new[]
{
"2",
"6",
},
RetentionDays = -1,
Tags = new[]
{
new Volcengine.Ebs.Inputs.AutoSnapshotPolicyTagArgs
{
Key = "k1",
Value = "v1",
},
},
TimePoints = new[]
{
"1",
"5",
"9",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ebs.AutoSnapshotPolicy;
import com.pulumi.volcengine.ebs.AutoSnapshotPolicyArgs;
import com.pulumi.volcengine.ebs.inputs.AutoSnapshotPolicyTagArgs;
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 foo = new AutoSnapshotPolicy("foo", AutoSnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("acc-test-auto-snapshot-policy")
.projectName("default")
.repeatWeekdays(
2,
6)
.retentionDays("TODO: GenUnaryOpExpression")
.tags(AutoSnapshotPolicyTagArgs.builder()
.key("k1")
.value("v1")
.build())
.timePoints(
1,
5,
9)
.build());
}
}
Coming soon!
Create AutoSnapshotPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AutoSnapshotPolicy(name: string, args: AutoSnapshotPolicyArgs, opts?: CustomResourceOptions);
@overload
def AutoSnapshotPolicy(resource_name: str,
args: AutoSnapshotPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AutoSnapshotPolicy(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,
project_name: Optional[str] = None,
repeat_days: Optional[int] = None,
repeat_weekdays: Optional[Sequence[str]] = None,
tags: Optional[Sequence[AutoSnapshotPolicyTagArgs]] = None)
func NewAutoSnapshotPolicy(ctx *Context, name string, args AutoSnapshotPolicyArgs, opts ...ResourceOption) (*AutoSnapshotPolicy, error)
public AutoSnapshotPolicy(string name, AutoSnapshotPolicyArgs args, CustomResourceOptions? opts = null)
public AutoSnapshotPolicy(String name, AutoSnapshotPolicyArgs args)
public AutoSnapshotPolicy(String name, AutoSnapshotPolicyArgs args, CustomResourceOptions options)
type: volcengine:ebs:AutoSnapshotPolicy
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 AutoSnapshotPolicyArgs
- 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 AutoSnapshotPolicyArgs
- 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 AutoSnapshotPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoSnapshotPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoSnapshotPolicyArgs
- 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 autoSnapshotPolicyResource = new Volcengine.Ebs.AutoSnapshotPolicy("autoSnapshotPolicyResource", new()
{
AutoSnapshotPolicyName = "string",
RetentionDays = 0,
TimePoints = new[]
{
"string",
},
ProjectName = "string",
RepeatDays = 0,
RepeatWeekdays = new[]
{
"string",
},
Tags = new[]
{
new Volcengine.Ebs.Inputs.AutoSnapshotPolicyTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := ebs.NewAutoSnapshotPolicy(ctx, "autoSnapshotPolicyResource", &ebs.AutoSnapshotPolicyArgs{
AutoSnapshotPolicyName: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
TimePoints: pulumi.StringArray{
pulumi.String("string"),
},
ProjectName: pulumi.String("string"),
RepeatDays: pulumi.Int(0),
RepeatWeekdays: pulumi.StringArray{
pulumi.String("string"),
},
Tags: ebs.AutoSnapshotPolicyTagArray{
&ebs.AutoSnapshotPolicyTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var autoSnapshotPolicyResource = new AutoSnapshotPolicy("autoSnapshotPolicyResource", AutoSnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("string")
.retentionDays(0)
.timePoints("string")
.projectName("string")
.repeatDays(0)
.repeatWeekdays("string")
.tags(AutoSnapshotPolicyTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
auto_snapshot_policy_resource = volcengine.ebs.AutoSnapshotPolicy("autoSnapshotPolicyResource",
auto_snapshot_policy_name="string",
retention_days=0,
time_points=["string"],
project_name="string",
repeat_days=0,
repeat_weekdays=["string"],
tags=[{
"key": "string",
"value": "string",
}])
const autoSnapshotPolicyResource = new volcengine.ebs.AutoSnapshotPolicy("autoSnapshotPolicyResource", {
autoSnapshotPolicyName: "string",
retentionDays: 0,
timePoints: ["string"],
projectName: "string",
repeatDays: 0,
repeatWeekdays: ["string"],
tags: [{
key: "string",
value: "string",
}],
});
type: volcengine:ebs:AutoSnapshotPolicy
properties:
autoSnapshotPolicyName: string
projectName: string
repeatDays: 0
repeatWeekdays:
- string
retentionDays: 0
tags:
- key: string
value: string
timePoints:
- string
AutoSnapshotPolicy 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 AutoSnapshotPolicy resource accepts the following input properties:
- Auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- Retention
Days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - Time
Points List<string> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - Project
Name string - The project name of the auto snapshot policy.
- Repeat
Days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - Repeat
Weekdays List<string> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - List<Auto
Snapshot Policy Tag> - Tags.
- Auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- Retention
Days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - Time
Points []string - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - Project
Name string - The project name of the auto snapshot policy.
- Repeat
Days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - Repeat
Weekdays []string - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - []Auto
Snapshot Policy Tag Args - Tags.
- auto
Snapshot StringPolicy Name - The name of the auto snapshot policy.
- retention
Days Integer - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - time
Points List<String> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - project
Name String - The project name of the auto snapshot policy.
- repeat
Days Integer - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays List<String> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - List<Auto
Snapshot Policy Tag> - Tags.
- auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- retention
Days number - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - time
Points string[] - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - project
Name string - The project name of the auto snapshot policy.
- repeat
Days number - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays string[] - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - Auto
Snapshot Policy Tag[] - Tags.
- auto_
snapshot_ strpolicy_ name - The name of the auto snapshot policy.
- retention_
days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - time_
points Sequence[str] - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - project_
name str - The project name of the auto snapshot policy.
- repeat_
days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat_
weekdays Sequence[str] - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - Sequence[Auto
Snapshot Policy Tag Args] - Tags.
- auto
Snapshot StringPolicy Name - The name of the auto snapshot policy.
- retention
Days Number - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - time
Points List<String> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - project
Name String - The project name of the auto snapshot policy.
- repeat
Days Number - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays List<String> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AutoSnapshotPolicy resource produces the following output properties:
- Created
At string - The creation time of the auto snapshot policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the auto snapshot policy.
- Updated
At string - The updated time of the auto snapshot policy.
- int
- The number of volumes associated with the auto snapshot policy.
- Created
At string - The creation time of the auto snapshot policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the auto snapshot policy.
- Updated
At string - The updated time of the auto snapshot policy.
- int
- The number of volumes associated with the auto snapshot policy.
- created
At String - The creation time of the auto snapshot policy.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the auto snapshot policy.
- updated
At String - The updated time of the auto snapshot policy.
- Integer
- The number of volumes associated with the auto snapshot policy.
- created
At string - The creation time of the auto snapshot policy.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the auto snapshot policy.
- updated
At string - The updated time of the auto snapshot policy.
- number
- The number of volumes associated with the auto snapshot policy.
- created_
at str - The creation time of the auto snapshot policy.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the auto snapshot policy.
- updated_
at str - The updated time of the auto snapshot policy.
- volume_
nums int - The number of volumes associated with the auto snapshot policy.
- created
At String - The creation time of the auto snapshot policy.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the auto snapshot policy.
- updated
At String - The updated time of the auto snapshot policy.
- Number
- The number of volumes associated with the auto snapshot policy.
Look up Existing AutoSnapshotPolicy Resource
Get an existing AutoSnapshotPolicy 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?: AutoSnapshotPolicyState, opts?: CustomResourceOptions): AutoSnapshotPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_snapshot_policy_name: Optional[str] = None,
created_at: Optional[str] = None,
project_name: Optional[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[AutoSnapshotPolicyTagArgs]] = None,
time_points: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
volume_nums: Optional[int] = None) -> AutoSnapshotPolicy
func GetAutoSnapshotPolicy(ctx *Context, name string, id IDInput, state *AutoSnapshotPolicyState, opts ...ResourceOption) (*AutoSnapshotPolicy, error)
public static AutoSnapshotPolicy Get(string name, Input<string> id, AutoSnapshotPolicyState? state, CustomResourceOptions? opts = null)
public static AutoSnapshotPolicy get(String name, Output<String> id, AutoSnapshotPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- Created
At string - The creation time of the auto snapshot policy.
- Project
Name string - The project name of the auto snapshot policy.
- Repeat
Days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - Repeat
Weekdays List<string> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - Retention
Days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - Status string
- The status of the auto snapshot policy.
- List<Auto
Snapshot Policy Tag> - Tags.
- Time
Points List<string> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - Updated
At string - The updated time of the auto snapshot policy.
- int
- The number of volumes associated with the auto snapshot policy.
- Auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- Created
At string - The creation time of the auto snapshot policy.
- Project
Name string - The project name of the auto snapshot policy.
- Repeat
Days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - Repeat
Weekdays []string - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - Retention
Days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - Status string
- The status of the auto snapshot policy.
- []Auto
Snapshot Policy Tag Args - Tags.
- Time
Points []string - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - Updated
At string - The updated time of the auto snapshot policy.
- int
- The number of volumes associated with the auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of the auto snapshot policy.
- created
At String - The creation time of the auto snapshot policy.
- project
Name String - The project name of the auto snapshot policy.
- repeat
Days Integer - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays List<String> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - retention
Days Integer - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - status String
- The status of the auto snapshot policy.
- List<Auto
Snapshot Policy Tag> - Tags.
- time
Points List<String> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - updated
At String - The updated time of the auto snapshot policy.
- Integer
- The number of volumes associated with the auto snapshot policy.
- auto
Snapshot stringPolicy Name - The name of the auto snapshot policy.
- created
At string - The creation time of the auto snapshot policy.
- project
Name string - The project name of the auto snapshot policy.
- repeat
Days number - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays string[] - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - retention
Days number - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - status string
- The status of the auto snapshot policy.
- Auto
Snapshot Policy Tag[] - Tags.
- time
Points string[] - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - updated
At string - The updated time of the auto snapshot policy.
- number
- The number of volumes associated with the auto snapshot policy.
- auto_
snapshot_ strpolicy_ name - The name of the auto snapshot policy.
- created_
at str - The creation time of the auto snapshot policy.
- project_
name str - The project name of the auto snapshot policy.
- repeat_
days int - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat_
weekdays Sequence[str] - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - retention_
days int - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - status str
- The status of the auto snapshot policy.
- Sequence[Auto
Snapshot Policy Tag Args] - Tags.
- time_
points Sequence[str] - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - updated_
at str - The updated time of the auto snapshot policy.
- volume_
nums int - The number of volumes associated with the auto snapshot policy.
- auto
Snapshot StringPolicy Name - The name of the auto snapshot policy.
- created
At String - The creation time of the auto snapshot policy.
- project
Name String - The project name of the auto snapshot policy.
- repeat
Days Number - Create snapshots repeatedly on a daily basis, with intervals of a certain number of days between each snapshot. The value range is
1-30
. Only one ofrepeat_weekdays, repeat_days
can be specified. - repeat
Weekdays List<String> - The date of creating snapshot repeatedly by week. The value range is
1-7
, for example, 1 represents Monday. Only one ofrepeat_weekdays, repeat_days
can be specified. - retention
Days Number - The retention days of the auto snapshot. Valid values: -1 and 1~65536.
-1
means permanently preserving the snapshot. - status String
- The status of the auto snapshot policy.
- List<Property Map>
- Tags.
- time
Points List<String> - The creation time points of the auto snapshot policy. The value range is
0~23
, representing a total of 24 time points from 00:00 to 23:00, for example, 1 represents 01:00. - updated
At String - The updated time of the auto snapshot policy.
- Number
- The number of volumes associated with the auto snapshot policy.
Supporting Types
AutoSnapshotPolicyTag, AutoSnapshotPolicyTagArgs
Import
EbsAutoSnapshotPolicy can be imported using the id, e.g.
$ pulumi import volcengine:ebs/autoSnapshotPolicy:AutoSnapshotPolicy default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.