Show / Hide Table of Contents

Class Snapshot

Provides an ECS snapshot resource.

For information about snapshot and how to use it, see Snapshot.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var snapshot = new AliCloud.Ecs.Snapshot("snapshot", new AliCloud.Ecs.SnapshotArgs
    {
        Description = "this snapshot is created for testing",
        DiskId = alicloud_disk_attachment.Instance_attachment.Disk_id,
        Tags = 
        {
            { "version", "1.2" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Snapshot
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class Snapshot : CustomResource

Constructors

View Source

Snapshot(String, SnapshotArgs, CustomResourceOptions)

Create a Snapshot resource with the given unique name, arguments, and options.

Declaration
public Snapshot(string name, SnapshotArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SnapshotArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

Description of the snapshot. This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

DiskId

The source disk ID.

Declaration
public Output<string> DiskId { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Name of the snapshot. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-", ".", "_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Default value is null.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, SnapshotState, CustomResourceOptions)

Get an existing Snapshot resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Snapshot Get(string name, Input<string> id, SnapshotState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SnapshotState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Snapshot
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.