published on Friday, Sep 11, 2026 by ucloud
published on Friday, Sep 11, 2026 by ucloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
// Query availability zone
const _default = ucloud.getZones({});
// Create cloud disk with the snapshot service enabled
const example = new ucloud.Disk("example", {
availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
name: "tf-example-disk",
diskSize: 20,
snapshotService: true,
});
// Create a snapshot of the cloud disk
const exampleDiskSnapshot = new ucloud.DiskSnapshot("example", {
availabilityZone: _default.then(_default => _default.zones?.[0]?.id),
diskId: example.diskId,
name: "tf-example-disk-snapshot",
});
import pulumi
import pulumi_ucloud as ucloud
# Query availability zone
default = ucloud.get_zones()
# Create cloud disk with the snapshot service enabled
example = ucloud.Disk("example",
availability_zone=default.zones[0].id,
name="tf-example-disk",
disk_size=20,
snapshot_service=True)
# Create a snapshot of the cloud disk
example_disk_snapshot = ucloud.DiskSnapshot("example",
availability_zone=default.zones[0].id,
disk_id=example.disk_id,
name="tf-example-disk-snapshot")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query availability zone
_default, err := ucloud.GetZones(ctx, &ucloud.GetZonesArgs{}, nil)
if err != nil {
return err
}
// Create cloud disk with the snapshot service enabled
example, err := ucloud.NewDisk(ctx, "example", &ucloud.DiskArgs{
AvailabilityZone: pulumi.String(_default.Zones[0].Id),
Name: pulumi.String("tf-example-disk"),
DiskSize: pulumi.Float64(20),
SnapshotService: pulumi.Bool(true),
})
if err != nil {
return err
}
// Create a snapshot of the cloud disk
_, err = ucloud.NewDiskSnapshot(ctx, "example", &ucloud.DiskSnapshotArgs{
AvailabilityZone: pulumi.String(_default.Zones[0].Id),
DiskId: example.DiskId,
Name: pulumi.String("tf-example-disk-snapshot"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() =>
{
// Query availability zone
var @default = Ucloud.GetZones.Invoke();
// Create cloud disk with the snapshot service enabled
var example = new Ucloud.Disk("example", new()
{
AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
Name = "tf-example-disk",
DiskSize = 20,
SnapshotService = true,
});
// Create a snapshot of the cloud disk
var exampleDiskSnapshot = new Ucloud.DiskSnapshot("example", new()
{
AvailabilityZone = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
DiskId = example.DiskId,
Name = "tf-example-disk-snapshot",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.UcloudFunctions;
import com.pulumi.ucloud.inputs.GetZonesArgs;
import com.pulumi.ucloud.Disk;
import com.pulumi.ucloud.DiskArgs;
import com.pulumi.ucloud.DiskSnapshot;
import com.pulumi.ucloud.DiskSnapshotArgs;
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) {
// Query availability zone
final var default = UcloudFunctions.getZones(GetZonesArgs.builder()
.build());
// Create cloud disk with the snapshot service enabled
var example = new Disk("example", DiskArgs.builder()
.availabilityZone(default_.zones()[0].id())
.name("tf-example-disk")
.diskSize(20.0)
.snapshotService(true)
.build());
// Create a snapshot of the cloud disk
var exampleDiskSnapshot = new DiskSnapshot("exampleDiskSnapshot", DiskSnapshotArgs.builder()
.availabilityZone(default_.zones()[0].id())
.diskId(example.diskId())
.name("tf-example-disk-snapshot")
.build());
}
}
resources:
# Create cloud disk with the snapshot service enabled
example:
type: ucloud:Disk
properties:
availabilityZone: ${default.zones[0].id}
name: tf-example-disk
diskSize: 20
snapshotService: true
# Create a snapshot of the cloud disk
exampleDiskSnapshot:
type: ucloud:DiskSnapshot
name: example
properties:
availabilityZone: ${default.zones[0].id}
diskId: ${example.diskId}
name: tf-example-disk-snapshot
variables:
# Query availability zone
default:
fn::invoke:
function: ucloud:getZones
arguments: {}
Example coming soon!
Create DiskSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DiskSnapshot(name: string, args: DiskSnapshotArgs, opts?: CustomResourceOptions);@overload
def DiskSnapshot(resource_name: str,
args: DiskSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DiskSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
disk_id: Optional[str] = None,
disk_snapshot_id: Optional[str] = None,
name: Optional[str] = None)func NewDiskSnapshot(ctx *Context, name string, args DiskSnapshotArgs, opts ...ResourceOption) (*DiskSnapshot, error)public DiskSnapshot(string name, DiskSnapshotArgs args, CustomResourceOptions? opts = null)
public DiskSnapshot(String name, DiskSnapshotArgs args)
public DiskSnapshot(String name, DiskSnapshotArgs args, CustomResourceOptions options)
type: ucloud:DiskSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ucloud_disk_snapshot" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DiskSnapshotArgs
- 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 DiskSnapshotArgs
- 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 DiskSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DiskSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DiskSnapshotArgs
- 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 diskSnapshotResource = new Ucloud.DiskSnapshot("diskSnapshotResource", new()
{
AvailabilityZone = "string",
DiskId = "string",
DiskSnapshotId = "string",
Name = "string",
});
example, err := ucloud.NewDiskSnapshot(ctx, "diskSnapshotResource", &ucloud.DiskSnapshotArgs{
AvailabilityZone: pulumi.String("string"),
DiskId: pulumi.String("string"),
DiskSnapshotId: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "ucloud_disk_snapshot" "diskSnapshotResource" {
lifecycle {
create_before_destroy = true
}
availability_zone = "string"
disk_id = "string"
disk_snapshot_id = "string"
name = "string"
}
var diskSnapshotResource = new DiskSnapshot("diskSnapshotResource", DiskSnapshotArgs.builder()
.availabilityZone("string")
.diskId("string")
.diskSnapshotId("string")
.name("string")
.build());
disk_snapshot_resource = ucloud.DiskSnapshot("diskSnapshotResource",
availability_zone="string",
disk_id="string",
disk_snapshot_id="string",
name="string")
const diskSnapshotResource = new ucloud.DiskSnapshot("diskSnapshotResource", {
availabilityZone: "string",
diskId: "string",
diskSnapshotId: "string",
name: "string",
});
type: ucloud:DiskSnapshot
properties:
availabilityZone: string
diskId: string
diskSnapshotId: string
name: string
DiskSnapshot 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 DiskSnapshot resource accepts the following input properties:
- Availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- Disk
Id string - The ID of the cloud disk which the snapshot is created from.
- Disk
Snapshot stringId - The ID of the snapshot.
- Name string
- Availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- Disk
Id string - The ID of the cloud disk which the snapshot is created from.
- Disk
Snapshot stringId - The ID of the snapshot.
- Name string
- availability_
zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- disk_
id string - The ID of the cloud disk which the snapshot is created from.
- disk_
snapshot_ stringid - The ID of the snapshot.
- name string
- availability
Zone String - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- disk
Id String - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot StringId - The ID of the snapshot.
- name String
- availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- disk
Id string - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot stringId - The ID of the snapshot.
- name string
- availability_
zone str - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- disk_
id str - The ID of the cloud disk which the snapshot is created from.
- disk_
snapshot_ strid - The ID of the snapshot.
- name str
- availability
Zone String - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- disk
Id String - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot StringId - The ID of the snapshot.
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the DiskSnapshot resource produces the following output properties:
- Comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- Create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- Disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Disk boolAvailable - Whether the source disk of the snapshot is available.
- Size double
- The size of the snapshot in GB.
- Source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- Status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- Comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- Create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- Disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Disk boolAvailable - Whether the source disk of the snapshot is available.
- Size float64
- The size of the snapshot in GB.
- Source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- Status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create_
time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk_
type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - id string
- The provider-assigned unique ID for this managed resource.
- is_
disk_ boolavailable - Whether the source disk of the snapshot is available.
- size number
- The size of the snapshot in GB.
- source_
disk_ stringname - The name of the cloud disk which the snapshot is created from.
- status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- comment String
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time String - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Type String - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - id String
- The provider-assigned unique ID for this managed resource.
- is
Disk BooleanAvailable - Whether the source disk of the snapshot is available.
- size Double
- The size of the snapshot in GB.
- source
Disk StringName - The name of the cloud disk which the snapshot is created from.
- status String
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - id string
- The provider-assigned unique ID for this managed resource.
- is
Disk booleanAvailable - Whether the source disk of the snapshot is available.
- size number
- The size of the snapshot in GB.
- source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- comment str
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create_
time str - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk_
type str - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - id str
- The provider-assigned unique ID for this managed resource.
- is_
disk_ boolavailable - Whether the source disk of the snapshot is available.
- size float
- The size of the snapshot in GB.
- source_
disk_ strname - The name of the cloud disk which the snapshot is created from.
- status str
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- comment String
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time String - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Type String - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - id String
- The provider-assigned unique ID for this managed resource.
- is
Disk BooleanAvailable - Whether the source disk of the snapshot is available.
- size Number
- The size of the snapshot in GB.
- source
Disk StringName - The name of the cloud disk which the snapshot is created from.
- status String
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
Look up Existing DiskSnapshot Resource
Get an existing DiskSnapshot 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?: DiskSnapshotState, opts?: CustomResourceOptions): DiskSnapshot@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
comment: Optional[str] = None,
create_time: Optional[str] = None,
disk_id: Optional[str] = None,
disk_snapshot_id: Optional[str] = None,
disk_type: Optional[str] = None,
is_disk_available: Optional[bool] = None,
name: Optional[str] = None,
size: Optional[float] = None,
source_disk_name: Optional[str] = None,
status: Optional[str] = None) -> DiskSnapshotfunc GetDiskSnapshot(ctx *Context, name string, id IDInput, state *DiskSnapshotState, opts ...ResourceOption) (*DiskSnapshot, error)public static DiskSnapshot Get(string name, Input<string> id, DiskSnapshotState? state, CustomResourceOptions? opts = null)public static DiskSnapshot get(String name, Output<String> id, DiskSnapshotState state, CustomResourceOptions options)resources: _: type: ucloud:DiskSnapshot get: id: ${id}import {
to = ucloud_disk_snapshot.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.
- Availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- Comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- Create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- Disk
Id string - The ID of the cloud disk which the snapshot is created from.
- Disk
Snapshot stringId - The ID of the snapshot.
- Disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - Is
Disk boolAvailable - Whether the source disk of the snapshot is available.
- Name string
- Size double
- The size of the snapshot in GB.
- Source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- Status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- Availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- Comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- Create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- Disk
Id string - The ID of the cloud disk which the snapshot is created from.
- Disk
Snapshot stringId - The ID of the snapshot.
- Disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - Is
Disk boolAvailable - Whether the source disk of the snapshot is available.
- Name string
- Size float64
- The size of the snapshot in GB.
- Source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- Status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- availability_
zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create_
time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk_
id string - The ID of the cloud disk which the snapshot is created from.
- disk_
snapshot_ stringid - The ID of the snapshot.
- disk_
type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - is_
disk_ boolavailable - Whether the source disk of the snapshot is available.
- name string
- size number
- The size of the snapshot in GB.
- source_
disk_ stringname - The name of the cloud disk which the snapshot is created from.
- status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- availability
Zone String - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- comment String
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time String - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Id String - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot StringId - The ID of the snapshot.
- disk
Type String - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - is
Disk BooleanAvailable - Whether the source disk of the snapshot is available.
- name String
- size Double
- The size of the snapshot in GB.
- source
Disk StringName - The name of the cloud disk which the snapshot is created from.
- status String
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- availability
Zone string - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- comment string
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time string - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Id string - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot stringId - The ID of the snapshot.
- disk
Type string - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - is
Disk booleanAvailable - Whether the source disk of the snapshot is available.
- name string
- size number
- The size of the snapshot in GB.
- source
Disk stringName - The name of the cloud disk which the snapshot is created from.
- status string
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- availability_
zone str - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- comment str
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create_
time str - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk_
id str - The ID of the cloud disk which the snapshot is created from.
- disk_
snapshot_ strid - The ID of the snapshot.
- disk_
type str - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - is_
disk_ boolavailable - Whether the source disk of the snapshot is available.
- name str
- size float
- The size of the snapshot in GB.
- source_
disk_ strname - The name of the cloud disk which the snapshot is created from.
- status str
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
- availability
Zone String - Availability zone where the snapshot is located, it must be the same as the availability zone of the source disk. Such as: "cn-bj2-02". You may refer to list of availability zone.
- comment String
- The description of the snapshot. It is read only, the remote api does not accept a description while the snapshot is being created.
- create
Time String - The time of creation of the snapshot, formatted in RFC3339 time string.
- disk
Id String - The ID of the cloud disk which the snapshot is created from.
- disk
Snapshot StringId - The ID of the snapshot.
- disk
Type String - The type of the source disk. Possible values are:
data_diskas cloud disk,ssd_data_diskas ssd cloud disk,rssd_data_diskas RDMA-SSD cloud disk,system_diskas cloud system disk,ssd_system_diskas ssd cloud system disk. - is
Disk BooleanAvailable - Whether the source disk of the snapshot is available.
- name String
- size Number
- The size of the snapshot in GB.
- source
Disk StringName - The name of the cloud disk which the snapshot is created from.
- status String
- The status of the snapshot. Possible values are:
Normal,Failed,Creating.
Import
Disk snapshot can be imported using the id, e.g.
$ pulumi import ucloud:index/diskSnapshot:DiskSnapshot example snap-abcdefg
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ucloud ucloud/terraform-provider-ucloud
- License
- Notes
- This Pulumi package is based on the
ucloudTerraform Provider.
published on Friday, Sep 11, 2026 by ucloud