快照是一种备份方式,每个快照都是云盘数据在某个时间点的备份文件。当数据丢失或故障时,您可以通过快照回滚云盘数据,找回丢失的数据。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const storageEBSSnapshotDemo = new bytepluscc.storageebs.Snapshot("StorageEBSSnapshotDemo", {
volumeId: "vol-3wt6pip1dy3qu*****",
snapshotName: "StorageEBSSnapshotDemo",
description: "StorageEBSSnapshotDemo description",
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
storage_ebs_snapshot_demo = bytepluscc.storageebs.Snapshot("StorageEBSSnapshotDemo",
volume_id="vol-3wt6pip1dy3qu*****",
snapshot_name="StorageEBSSnapshotDemo",
description="StorageEBSSnapshotDemo description",
project_name="default",
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.NewSnapshot(ctx, "StorageEBSSnapshotDemo", &storageebs.SnapshotArgs{
VolumeId: pulumi.String("vol-3wt6pip1dy3qu*****"),
SnapshotName: pulumi.String("StorageEBSSnapshotDemo"),
Description: pulumi.String("StorageEBSSnapshotDemo description"),
ProjectName: pulumi.String("default"),
Tags: storageebs.SnapshotTagArray{
&storageebs.SnapshotTagArgs{
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 storageEBSSnapshotDemo = new Bytepluscc.Storageebs.Snapshot("StorageEBSSnapshotDemo", new()
{
VolumeId = "vol-3wt6pip1dy3qu*****",
SnapshotName = "StorageEBSSnapshotDemo",
Description = "StorageEBSSnapshotDemo description",
ProjectName = "default",
Tags = new[]
{
new Bytepluscc.Storageebs.Inputs.SnapshotTagArgs
{
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.Snapshot;
import com.byteplus.bytepluscc.storageebs.SnapshotArgs;
import com.pulumi.bytepluscc.storageebs.inputs.SnapshotTagArgs;
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 storageEBSSnapshotDemo = new Snapshot("storageEBSSnapshotDemo", SnapshotArgs.builder()
.volumeId("vol-3wt6pip1dy3qu*****")
.snapshotName("StorageEBSSnapshotDemo")
.description("StorageEBSSnapshotDemo description")
.projectName("default")
.tags(SnapshotTagArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
storageEBSSnapshotDemo:
type: bytepluscc:storageebs:Snapshot
name: StorageEBSSnapshotDemo
properties:
volumeId: vol-3wt6pip1dy3qu*****
snapshotName: StorageEBSSnapshotDemo
description: StorageEBSSnapshotDemo description
projectName: default
tags:
- key: env
value: test
Create Snapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);@overload
def Snapshot(resource_name: str,
args: SnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Snapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
snapshot_name: Optional[str] = None,
volume_id: Optional[str] = None,
description: Optional[str] = None,
project_name: Optional[str] = None,
retention_days: Optional[int] = None,
tags: Optional[Sequence[SnapshotTagArgs]] = None)func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: bytepluscc:storageebs:Snapshot
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 SnapshotArgs
- 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 SnapshotArgs
- 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 SnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SnapshotArgs
- 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 byteplusccSnapshotResource = new Bytepluscc.Storageebs.Snapshot("byteplusccSnapshotResource", new()
{
SnapshotName = "string",
VolumeId = "string",
Description = "string",
ProjectName = "string",
RetentionDays = 0,
Tags = new[]
{
new Bytepluscc.Storageebs.Inputs.SnapshotTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := storageebs.NewSnapshot(ctx, "byteplusccSnapshotResource", &storageebs.SnapshotArgs{
SnapshotName: pulumi.String("string"),
VolumeId: pulumi.String("string"),
Description: pulumi.String("string"),
ProjectName: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
Tags: storageebs.SnapshotTagArray{
&storageebs.SnapshotTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var byteplusccSnapshotResource = new com.byteplus.bytepluscc.storageebs.Snapshot("byteplusccSnapshotResource", com.byteplus.bytepluscc.storageebs.SnapshotArgs.builder()
.snapshotName("string")
.volumeId("string")
.description("string")
.projectName("string")
.retentionDays(0)
.tags(SnapshotTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
bytepluscc_snapshot_resource = bytepluscc.storageebs.Snapshot("byteplusccSnapshotResource",
snapshot_name="string",
volume_id="string",
description="string",
project_name="string",
retention_days=0,
tags=[{
"key": "string",
"value": "string",
}])
const byteplusccSnapshotResource = new bytepluscc.storageebs.Snapshot("byteplusccSnapshotResource", {
snapshotName: "string",
volumeId: "string",
description: "string",
projectName: "string",
retentionDays: 0,
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:storageebs:Snapshot
properties:
description: string
projectName: string
retentionDays: 0
snapshotName: string
tags:
- key: string
value: string
volumeId: string
Snapshot 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 Snapshot resource accepts the following input properties:
- Snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- Volume
Id string - 快照相关的云盘ID。
- Description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- Project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- Retention
Days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
-
List<Byteplus.
Snapshot Tag>
- Snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- Volume
Id string - 快照相关的云盘ID。
- Description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- Project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- Retention
Days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
-
[]Snapshot
Tag Args
- snapshot
Name String - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- volume
Id String - 快照相关的云盘ID。
- description String
- 快照描述信息,默认为空,长度限制为0~255个字符。
- project
Name String - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days Integer - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
-
List<Snapshot
Tag>
- snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- volume
Id string - 快照相关的云盘ID。
- description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days number - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
-
Snapshot
Tag[]
- snapshot_
name str - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- volume_
id str - 快照相关的云盘ID。
- description str
- 快照描述信息,默认为空,长度限制为0~255个字符。
- project_
name str - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention_
days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
-
Sequence[Snapshot
Tag Args]
- snapshot
Name String - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- volume
Id String - 快照相关的云盘ID。
- description String
- 快照描述信息,默认为空,长度限制为0~255个字符。
- project
Name String - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days Number - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Creation
Time string - 快照创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - 镜像ID
- Instant
Access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- Progress int
- 快照转储进度。
- bool
- 快照是否共享。
- Snapshot
Group stringId - 快照一致性组ID。
- Snapshot
Id string - 快照ID。
- Snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- Status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- Volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- Volume
Name string - 云盘名称。
- Volume
Size int - 云盘大小,单位为GiB。
- Volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- Volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- Zone
Id string - 快照所在的可用区ID。
- Creation
Time string - 快照创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - 镜像ID
- Instant
Access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- Progress int
- 快照转储进度。
- bool
- 快照是否共享。
- Snapshot
Group stringId - 快照一致性组ID。
- Snapshot
Id string - 快照ID。
- Snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- Status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- Volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- Volume
Name string - 云盘名称。
- Volume
Size int - 云盘大小,单位为GiB。
- Volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- Volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- Zone
Id string - 快照所在的可用区ID。
- creation
Time String - 快照创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - 镜像ID
- instant
Access Boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress Integer
- 快照转储进度。
- Boolean
- 快照是否共享。
- snapshot
Group StringId - 快照一致性组ID。
- snapshot
Id String - 快照ID。
- snapshot
Type String - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status String
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- volume
Kind String - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name String - 云盘名称。
- volume
Size Integer - 云盘大小,单位为GiB。
- volume
Status String - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type String - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id String - 快照所在的可用区ID。
- creation
Time string - 快照创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - 镜像ID
- instant
Access boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress number
- 快照转储进度。
- boolean
- 快照是否共享。
- snapshot
Group stringId - 快照一致性组ID。
- snapshot
Id string - 快照ID。
- snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name string - 云盘名称。
- volume
Size number - 云盘大小,单位为GiB。
- volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id string - 快照所在的可用区ID。
- creation_
time str - 快照创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- image_
id str - 镜像ID
- instant_
access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress int
- 快照转储进度。
- bool
- 快照是否共享。
- snapshot_
group_ strid - 快照一致性组ID。
- snapshot_
id str - 快照ID。
- snapshot_
type str - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status str
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- volume_
kind str - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume_
name str - 云盘名称。
- volume_
size int - 云盘大小,单位为GiB。
- volume_
status str - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume_
type str - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone_
id str - 快照所在的可用区ID。
- creation
Time String - 快照创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - 镜像ID
- instant
Access Boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress Number
- 快照转储进度。
- Boolean
- 快照是否共享。
- snapshot
Group StringId - 快照一致性组ID。
- snapshot
Id String - 快照ID。
- snapshot
Type String - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status String
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- volume
Kind String - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name String - 云盘名称。
- volume
Size Number - 云盘大小,单位为GiB。
- volume
Status String - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type String - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id String - 快照所在的可用区ID。
Look up Existing Snapshot Resource
Get an existing Snapshot 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?: SnapshotState, opts?: CustomResourceOptions): Snapshot@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_time: Optional[str] = None,
description: Optional[str] = None,
image_id: Optional[str] = None,
instant_access: Optional[bool] = None,
progress: Optional[int] = None,
project_name: Optional[str] = None,
retention_days: Optional[int] = None,
shared: Optional[bool] = None,
snapshot_group_id: Optional[str] = None,
snapshot_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
snapshot_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[SnapshotTagArgs]] = None,
volume_id: Optional[str] = None,
volume_kind: Optional[str] = None,
volume_name: Optional[str] = None,
volume_size: Optional[int] = None,
volume_status: Optional[str] = None,
volume_type: Optional[str] = None,
zone_id: Optional[str] = None) -> Snapshotfunc GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)public static Snapshot get(String name, Output<String> id, SnapshotState state, CustomResourceOptions options)resources: _: type: bytepluscc:storageebs:Snapshot 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.
- Creation
Time string - 快照创建时间。
- Description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- Image
Id string - 镜像ID
- Instant
Access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- Progress int
- 快照转储进度。
- Project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- Retention
Days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- bool
- 快照是否共享。
- Snapshot
Group stringId - 快照一致性组ID。
- Snapshot
Id string - 快照ID。
- Snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- Snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- Status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
-
List<Byteplus.
Snapshot Tag> - Volume
Id string - 快照相关的云盘ID。
- Volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- Volume
Name string - 云盘名称。
- Volume
Size int - 云盘大小,单位为GiB。
- Volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- Volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- Zone
Id string - 快照所在的可用区ID。
- Creation
Time string - 快照创建时间。
- Description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- Image
Id string - 镜像ID
- Instant
Access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- Progress int
- 快照转储进度。
- Project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- Retention
Days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- bool
- 快照是否共享。
- Snapshot
Group stringId - 快照一致性组ID。
- Snapshot
Id string - 快照ID。
- Snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- Snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- Status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
-
[]Snapshot
Tag Args - Volume
Id string - 快照相关的云盘ID。
- Volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- Volume
Name string - 云盘名称。
- Volume
Size int - 云盘大小,单位为GiB。
- Volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- Volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- Zone
Id string - 快照所在的可用区ID。
- creation
Time String - 快照创建时间。
- description String
- 快照描述信息,默认为空,长度限制为0~255个字符。
- image
Id String - 镜像ID
- instant
Access Boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress Integer
- 快照转储进度。
- project
Name String - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days Integer - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- Boolean
- 快照是否共享。
- snapshot
Group StringId - 快照一致性组ID。
- snapshot
Id String - 快照ID。
- snapshot
Name String - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- snapshot
Type String - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status String
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
-
List<Snapshot
Tag> - volume
Id String - 快照相关的云盘ID。
- volume
Kind String - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name String - 云盘名称。
- volume
Size Integer - 云盘大小,单位为GiB。
- volume
Status String - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type String - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id String - 快照所在的可用区ID。
- creation
Time string - 快照创建时间。
- description string
- 快照描述信息,默认为空,长度限制为0~255个字符。
- image
Id string - 镜像ID
- instant
Access boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress number
- 快照转储进度。
- project
Name string - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days number - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- boolean
- 快照是否共享。
- snapshot
Group stringId - 快照一致性组ID。
- snapshot
Id string - 快照ID。
- snapshot
Name string - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- snapshot
Type string - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status string
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
-
Snapshot
Tag[] - volume
Id string - 快照相关的云盘ID。
- volume
Kind string - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name string - 云盘名称。
- volume
Size number - 云盘大小,单位为GiB。
- volume
Status string - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type string - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id string - 快照所在的可用区ID。
- creation_
time str - 快照创建时间。
- description str
- 快照描述信息,默认为空,长度限制为0~255个字符。
- image_
id str - 镜像ID
- instant_
access bool - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress int
- 快照转储进度。
- project_
name str - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention_
days int - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- bool
- 快照是否共享。
- snapshot_
group_ strid - 快照一致性组ID。
- snapshot_
id str - 快照ID。
- snapshot_
name str - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- snapshot_
type str - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status str
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
-
Sequence[Snapshot
Tag Args] - volume_
id str - 快照相关的云盘ID。
- volume_
kind str - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume_
name str - 云盘名称。
- volume_
size int - 云盘大小,单位为GiB。
- volume_
status str - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume_
type str - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone_
id str - 快照所在的可用区ID。
- creation
Time String - 快照创建时间。
- description String
- 快照描述信息,默认为空,长度限制为0~255个字符。
- image
Id String - 镜像ID
- instant
Access Boolean - 快照是否开启极速可用能力,取值说明如下:true:已开启极速可用能力。false:未开启极速可用能力。
- progress Number
- 快照转储进度。
- project
Name String - 快照所要加入的Project(项目)名称。注意快照不会继承云盘的项目,即快照与云盘可以所属不同的项目。如果您在创建快照时未设置ProjectName,快照会默认加入default项目。
- retention
Days Number - 快照保留时间,单位为天,取值说明如下:空:永久保留快照 。1~65536:指定保存天数。默认为空,即默认永久保留快照。说明快照保留时间从快照创建时刻开始计算。
- Boolean
- 快照是否共享。
- snapshot
Group StringId - 快照一致性组ID。
- snapshot
Id String - 快照ID。
- snapshot
Name String - 创建的快照名称。命名规范如下:长度限制为1~128个字符。只能包含中文、字母、数字、下划线(_)、中划线(-)和英文句号(.)。为防止和自动快照的名称冲突,不能以“auto”开头。
- snapshot
Type String - 快照类型,取值说明如下:user:查询手动快照。auto:查询自动快照。share:查询共享快照。默认查询所有快照。
- status String
- 快照状态,取值说明如下:available:可用。creating:创建中。rollbacking:回滚中。deleted:已删除。failed:错误。
- List<Property Map>
- volume
Id String - 快照相关的云盘ID。
- volume
Kind String - 云盘种类,取值说明如下:system:系统盘。data:数据盘。
- volume
Name String - 云盘名称。
- volume
Size Number - 云盘大小,单位为GiB。
- volume
Status String - 云盘状态,取值说明如下:available:可用, attaching:挂载中, attached:已挂载, detaching:卸载中, creating:创建中, deleting:删除中, error:错误, extending:扩容中, "":云盘被删除。
- volume
Type String - 云盘类型,取值说明如下:ESSDPL0:极速型SSD云盘,PL0规格。ESSDFlexPL:极速型SSD云盘,FlexPL规格。TSSD_TL0:吞吐型SSD云盘
- zone
Id String - 快照所在的可用区ID。
Supporting Types
SnapshotTag, SnapshotTagArgs
Import
$ pulumi import bytepluscc:storageebs/snapshot:Snapshot example "snapshot_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.
