你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Snapshot 构造函数

定义

重载

Snapshot()

初始化 Snapshot 类的新实例。

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, Nullable<Boolean>)

初始化 Snapshot 类的新实例。

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, String)

初始化 Snapshot 类的新实例。

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, CopyCompletionError, String)

初始化 Snapshot 类的新实例。

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, String, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, CopyCompletionError, String)

初始化 Snapshot 类的新实例。

Snapshot()

初始化 Snapshot 类的新实例。

public Snapshot ();
Public Sub New ()

适用于

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, Nullable<Boolean>)

初始化 Snapshot 类的新实例。

public Snapshot (string location, Microsoft.Azure.Management.Compute.Models.CreationData creationData, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, string managedBy, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation, DateTime? timeCreated, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, string hyperVGeneration, Microsoft.Azure.Management.Compute.Models.PurchasePlan purchasePlan, int? diskSizeGB, long? diskSizeBytes = default, string diskState = default, string uniqueId = default, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, string provisioningState = default, bool? incremental = default, Microsoft.Azure.Management.Compute.Models.Encryption encryption = default, string networkAccessPolicy = default, string diskAccessId = default, bool? supportsHibernation = default);
new Microsoft.Azure.Management.Compute.Models.Snapshot : string * Microsoft.Azure.Management.Compute.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.SnapshotSku * Microsoft.Azure.Management.Compute.Models.ExtendedLocation * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * string * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Nullable<int> * Nullable<int64> * string * string * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * string * Nullable<bool> * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Nullable<bool> -> Microsoft.Azure.Management.Compute.Models.Snapshot
Public Sub New (location As String, creationData As CreationData, id As String, name As String, type As String, tags As IDictionary(Of String, String), managedBy As String, sku As SnapshotSku, extendedLocation As ExtendedLocation, timeCreated As Nullable(Of DateTime), osType As Nullable(Of OperatingSystemTypes), hyperVGeneration As String, purchasePlan As PurchasePlan, diskSizeGB As Nullable(Of Integer), Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional diskState As String = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional provisioningState As String = Nothing, Optional incremental As Nullable(Of Boolean) = Nothing, Optional encryption As Encryption = Nothing, Optional networkAccessPolicy As String = Nothing, Optional diskAccessId As String = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing)

参数

location
String

资源位置

creationData
CreationData

磁盘源信息。 创建磁盘后,无法更改创建数据信息。

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

managedBy
String

未使用。 始终为 Null。

extendedLocation
ExtendedLocation

将在其中创建快照的扩展位置。 无法更改扩展位置。

timeCreated
Nullable<DateTime>

创建快照的时间。

osType
Nullable<OperatingSystemTypes>

操作系统类型。 可能的值包括:“Windows”、“Linux”

hyperVGeneration
String

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 可能的值包括:“V1”、“V2”

purchasePlan
PurchasePlan

最初从中创建快照源磁盘的映像的购买计划信息。

diskSizeGB
Nullable<Int32>

如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。

diskSizeBytes
Nullable<Int64>

磁盘的大小(以字节为单位)。 该字段是只读字段。

diskState
String

快照的状态。 可能的值包括:“Unattached”、“Attached”、“Reserved”、“Frozen”、“ActiveSAS”、“ActiveSASFrozen”、“ReadyToUpload”、“ActiveUpload”

uniqueId
String

标识资源的唯一 Guid。

encryptionSettingsCollection
EncryptionSettingsCollection

加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。

provisioningState
String

磁盘预配状态。

incremental
Nullable<Boolean>

快照是否为增量。 同一磁盘上的增量快照比完整快照占用的空间少,可以进行差异。

encryption
Encryption

加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。

networkAccessPolicy
String

可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”

diskAccessId
String

用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。

supportsHibernation
Nullable<Boolean>

指示快照上的 OS 支持休眠。

适用于

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, String)

初始化 Snapshot 类的新实例。

public Snapshot (string location, Microsoft.Azure.Management.Compute.Models.CreationData creationData, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string managedBy = default, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default, DateTime? timeCreated = default, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType = default, string hyperVGeneration = default, Microsoft.Azure.Management.Compute.Models.PurchasePlan purchasePlan = default, Microsoft.Azure.Management.Compute.Models.SupportedCapabilities supportedCapabilities = default, int? diskSizeGB = default, long? diskSizeBytes = default, string diskState = default, string uniqueId = default, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, string provisioningState = default, bool? incremental = default, Microsoft.Azure.Management.Compute.Models.Encryption encryption = default, string networkAccessPolicy = default, string diskAccessId = default, Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile securityProfile = default, bool? supportsHibernation = default, string publicNetworkAccess = default, double? completionPercent = default, string dataAccessAuthMode = default);
new Microsoft.Azure.Management.Compute.Models.Snapshot : string * Microsoft.Azure.Management.Compute.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.SnapshotSku * Microsoft.Azure.Management.Compute.Models.ExtendedLocation * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * string * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.SupportedCapabilities * Nullable<int> * Nullable<int64> * string * string * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * string * Nullable<bool> * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile * Nullable<bool> * string * Nullable<double> * string -> Microsoft.Azure.Management.Compute.Models.Snapshot
Public Sub New (location As String, creationData As CreationData, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional managedBy As String = Nothing, Optional sku As SnapshotSku = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional timeCreated As Nullable(Of DateTime) = Nothing, Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional hyperVGeneration As String = Nothing, Optional purchasePlan As PurchasePlan = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional diskState As String = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional provisioningState As String = Nothing, Optional incremental As Nullable(Of Boolean) = Nothing, Optional encryption As Encryption = Nothing, Optional networkAccessPolicy As String = Nothing, Optional diskAccessId As String = Nothing, Optional securityProfile As DiskSecurityProfile = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As String = Nothing, Optional completionPercent As Nullable(Of Double) = Nothing, Optional dataAccessAuthMode As String = Nothing)

参数

location
String

资源位置

creationData
CreationData

磁盘源信息。 创建磁盘后,无法更改创建数据信息。

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

managedBy
String

未使用。 始终为 Null。

extendedLocation
ExtendedLocation

将在其中创建快照的扩展位置。 无法更改扩展位置。

timeCreated
Nullable<DateTime>

创建快照的时间。

osType
Nullable<OperatingSystemTypes>

操作系统类型。 可能的值包括:“Windows”、“Linux”

hyperVGeneration
String

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 可能的值包括:“V1”、“V2”

purchasePlan
PurchasePlan

最初从中创建快照源磁盘的映像的购买计划信息。

supportedCapabilities
SupportedCapabilities

最初从中创建快照源磁盘的映像支持的功能列表。

diskSizeGB
Nullable<Int32>

如果 creationData.createOption 为 Empty,则此字段是必需的,它指示要创建的磁盘的大小。 如果此字段可用于使用其他选项进行更新或创建,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许重设大小,并且只能增加磁盘的大小。

diskSizeBytes
Nullable<Int64>

磁盘的大小(以字节为单位)。 该字段是只读字段。

diskState
String

快照的状态。 可能的值包括:“Unattached”、“Attached”、“Reserved”、“Frozen”、“ActiveSAS”、“ActiveSASFrozen”、“ReadyToUpload”、“ActiveUpload”

uniqueId
String

标识资源的唯一 Guid。

encryptionSettingsCollection
EncryptionSettingsCollection

加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。

provisioningState
String

磁盘预配状态。

incremental
Nullable<Boolean>

快照是否为增量。 同一磁盘上的增量快照比完整快照占用的空间少,可以进行差异。

encryption
Encryption

加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。

networkAccessPolicy
String

可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”

diskAccessId
String

用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。

securityProfile
DiskSecurityProfile

包含资源的安全相关信息。

supportsHibernation
Nullable<Boolean>

指示快照上的 OS 支持休眠。

publicNetworkAccess
String

可能的值包括:“Enabled”、“Disabled”

completionPercent
Nullable<Double>

通过 CopyStart 操作创建资源时后台副本的完成百分比。

dataAccessAuthMode
String

可能的值包括:“AzureActiveDirectory”、“None”

适用于

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, CopyCompletionError, String)

初始化 Snapshot 类的新实例。

public Snapshot (string location, Microsoft.Azure.Management.Compute.Models.CreationData creationData, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, string managedBy, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation, DateTime? timeCreated, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType, string hyperVGeneration, Microsoft.Azure.Management.Compute.Models.PurchasePlan purchasePlan, Microsoft.Azure.Management.Compute.Models.SupportedCapabilities supportedCapabilities, int? diskSizeGB, long? diskSizeBytes, string diskState, string uniqueId, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection, string provisioningState, bool? incremental, Microsoft.Azure.Management.Compute.Models.Encryption encryption, string networkAccessPolicy = default, string diskAccessId = default, Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile securityProfile = default, bool? supportsHibernation = default, string publicNetworkAccess = default, double? completionPercent = default, Microsoft.Azure.Management.Compute.Models.CopyCompletionError copyCompletionError = default, string dataAccessAuthMode = default);
new Microsoft.Azure.Management.Compute.Models.Snapshot : string * Microsoft.Azure.Management.Compute.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.SnapshotSku * Microsoft.Azure.Management.Compute.Models.ExtendedLocation * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * string * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.SupportedCapabilities * Nullable<int> * Nullable<int64> * string * string * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * string * Nullable<bool> * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile * Nullable<bool> * string * Nullable<double> * Microsoft.Azure.Management.Compute.Models.CopyCompletionError * string -> Microsoft.Azure.Management.Compute.Models.Snapshot
Public Sub New (location As String, creationData As CreationData, id As String, name As String, type As String, tags As IDictionary(Of String, String), managedBy As String, sku As SnapshotSku, extendedLocation As ExtendedLocation, timeCreated As Nullable(Of DateTime), osType As Nullable(Of OperatingSystemTypes), hyperVGeneration As String, purchasePlan As PurchasePlan, supportedCapabilities As SupportedCapabilities, diskSizeGB As Nullable(Of Integer), diskSizeBytes As Nullable(Of Long), diskState As String, uniqueId As String, encryptionSettingsCollection As EncryptionSettingsCollection, provisioningState As String, incremental As Nullable(Of Boolean), encryption As Encryption, Optional networkAccessPolicy As String = Nothing, Optional diskAccessId As String = Nothing, Optional securityProfile As DiskSecurityProfile = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As String = Nothing, Optional completionPercent As Nullable(Of Double) = Nothing, Optional copyCompletionError As CopyCompletionError = Nothing, Optional dataAccessAuthMode As String = Nothing)

参数

location
String

资源位置

creationData
CreationData

磁盘源信息。 创建磁盘后,无法更改创建数据信息。

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

managedBy
String

未使用。 始终为 Null。

extendedLocation
ExtendedLocation

将在其中创建快照的扩展位置。 无法更改扩展位置。

timeCreated
Nullable<DateTime>

创建快照的时间。

osType
Nullable<OperatingSystemTypes>

操作系统类型。 可能的值包括:“Windows”、“Linux”

hyperVGeneration
String

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 可能的值包括:“V1”、“V2”

purchasePlan
PurchasePlan

最初从中创建快照源磁盘的映像的购买计划信息。

supportedCapabilities
SupportedCapabilities

最初从快照创建源磁盘的映像支持的功能列表。

diskSizeGB
Nullable<Int32>

如果 creationData.createOption 为空,则此字段是必需的,它指示要创建的磁盘的大小。 如果存在此字段用于更新或创建其他选项,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许调整大小,并且只能增加磁盘的大小。

diskSizeBytes
Nullable<Int64>

磁盘的大小(以字节为单位)。 该字段是只读字段。

diskState
String

快照的状态。 可能的值包括:“Unattached”、“Attached”、“Reserved”、“Frozen”、“ActiveSAS”、“ActiveSASFrozen”、“ReadyToUpload”、“ActiveUpload”

uniqueId
String

标识资源的唯一 Guid。

encryptionSettingsCollection
EncryptionSettingsCollection

使用的加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。

provisioningState
String

磁盘预配状态。

incremental
Nullable<Boolean>

快照是否是增量的。 同一磁盘上的增量快照占用的空间比完整快照少,并且可以进行差异。

encryption
Encryption

加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。

networkAccessPolicy
String

可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”

diskAccessId
String

用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。

securityProfile
DiskSecurityProfile

包含资源的安全相关信息。

supportsHibernation
Nullable<Boolean>

指示快照上的 OS 支持休眠。

publicNetworkAccess
String

可能的值包括:“Enabled”、“Disabled”

completionPercent
Nullable<Double>

通过 CopyStart 操作创建资源时后台副本的完成百分比。

copyCompletionError
CopyCompletionError

指示通过 CopyStart 操作创建的资源的后台副本失败时的错误详细信息。

dataAccessAuthMode
String

可能的值包括:“AzureActiveDirectory”、“None”

适用于

Snapshot(String, CreationData, String, String, String, IDictionary<String, String>, String, SnapshotSku, ExtendedLocation, Nullable<DateTime>, Nullable<OperatingSystemTypes>, String, PurchasePlan, SupportedCapabilities, Nullable<Int32>, Nullable<Int64>, String, String, EncryptionSettingsCollection, String, Nullable<Boolean>, String, Encryption, String, String, DiskSecurityProfile, Nullable<Boolean>, String, Nullable<Double>, CopyCompletionError, String)

初始化 Snapshot 类的新实例。

public Snapshot (string location, Microsoft.Azure.Management.Compute.Models.CreationData creationData, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string managedBy = default, Microsoft.Azure.Management.Compute.Models.SnapshotSku sku = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default, DateTime? timeCreated = default, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes? osType = default, string hyperVGeneration = default, Microsoft.Azure.Management.Compute.Models.PurchasePlan purchasePlan = default, Microsoft.Azure.Management.Compute.Models.SupportedCapabilities supportedCapabilities = default, int? diskSizeGB = default, long? diskSizeBytes = default, string diskState = default, string uniqueId = default, Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection encryptionSettingsCollection = default, string provisioningState = default, bool? incremental = default, string incrementalSnapshotFamilyId = default, Microsoft.Azure.Management.Compute.Models.Encryption encryption = default, string networkAccessPolicy = default, string diskAccessId = default, Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile securityProfile = default, bool? supportsHibernation = default, string publicNetworkAccess = default, double? completionPercent = default, Microsoft.Azure.Management.Compute.Models.CopyCompletionError copyCompletionError = default, string dataAccessAuthMode = default);
new Microsoft.Azure.Management.Compute.Models.Snapshot : string * Microsoft.Azure.Management.Compute.Models.CreationData * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.SnapshotSku * Microsoft.Azure.Management.Compute.Models.ExtendedLocation * Nullable<DateTime> * Nullable<Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes> * string * Microsoft.Azure.Management.Compute.Models.PurchasePlan * Microsoft.Azure.Management.Compute.Models.SupportedCapabilities * Nullable<int> * Nullable<int64> * string * string * Microsoft.Azure.Management.Compute.Models.EncryptionSettingsCollection * string * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.Encryption * string * string * Microsoft.Azure.Management.Compute.Models.DiskSecurityProfile * Nullable<bool> * string * Nullable<double> * Microsoft.Azure.Management.Compute.Models.CopyCompletionError * string -> Microsoft.Azure.Management.Compute.Models.Snapshot
Public Sub New (location As String, creationData As CreationData, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional managedBy As String = Nothing, Optional sku As SnapshotSku = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional timeCreated As Nullable(Of DateTime) = Nothing, Optional osType As Nullable(Of OperatingSystemTypes) = Nothing, Optional hyperVGeneration As String = Nothing, Optional purchasePlan As PurchasePlan = Nothing, Optional supportedCapabilities As SupportedCapabilities = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional diskSizeBytes As Nullable(Of Long) = Nothing, Optional diskState As String = Nothing, Optional uniqueId As String = Nothing, Optional encryptionSettingsCollection As EncryptionSettingsCollection = Nothing, Optional provisioningState As String = Nothing, Optional incremental As Nullable(Of Boolean) = Nothing, Optional incrementalSnapshotFamilyId As String = Nothing, Optional encryption As Encryption = Nothing, Optional networkAccessPolicy As String = Nothing, Optional diskAccessId As String = Nothing, Optional securityProfile As DiskSecurityProfile = Nothing, Optional supportsHibernation As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As String = Nothing, Optional completionPercent As Nullable(Of Double) = Nothing, Optional copyCompletionError As CopyCompletionError = Nothing, Optional dataAccessAuthMode As String = Nothing)

参数

location
String

资源位置

creationData
CreationData

磁盘源信息。 创建磁盘后,无法更改创建数据信息。

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

managedBy
String

未使用。 始终为 Null。

extendedLocation
ExtendedLocation

将在其中创建快照的扩展位置。 无法更改扩展位置。

timeCreated
Nullable<DateTime>

创建快照的时间。

osType
Nullable<OperatingSystemTypes>

操作系统类型。 可能的值包括:“Windows”、“Linux”

hyperVGeneration
String

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 可能的值包括:“V1”、“V2”

purchasePlan
PurchasePlan

最初从中创建快照源磁盘的映像的购买计划信息。

supportedCapabilities
SupportedCapabilities

最初从快照创建源磁盘的映像支持的功能列表。

diskSizeGB
Nullable<Int32>

如果 creationData.createOption 为空,则此字段是必需的,它指示要创建的磁盘的大小。 如果存在此字段用于更新或创建其他选项,则表示调整大小。 仅当磁盘未附加到正在运行的 VM 时,才允许调整大小,并且只能增加磁盘的大小。

diskSizeBytes
Nullable<Int64>

磁盘的大小(以字节为单位)。 该字段是只读字段。

diskState
String

快照的状态。 可能的值包括:“Unattached”、“Attached”、“Reserved”、“Frozen”、“ActiveSAS”、“ActiveSASFrozen”、“ReadyToUpload”、“ActiveUpload”

uniqueId
String

标识资源的唯一 Guid。

encryptionSettingsCollection
EncryptionSettingsCollection

使用的加密设置集合是 Azure 磁盘加密,可以包含每个磁盘或快照的多个加密设置。

provisioningState
String

磁盘预配状态。

incremental
Nullable<Boolean>

快照是否是增量的。 同一磁盘上的增量快照占用的空间比完整快照少,并且可以进行差异。

incrementalSnapshotFamilyId
String

磁盘的增量快照共享增量快照系列 ID。只能在具有相同系列 ID 的增量快照上调用获取页面范围差异 API。

encryption
Encryption

加密属性可用于使用客户管理的密钥或平台管理的密钥加密静态数据。

networkAccessPolicy
String

可能的值包括:“AllowAll”、“AllowPrivate”、“DenyAll”

diskAccessId
String

用于在磁盘上使用专用终结点的 DiskAccess 资源的 ARM ID。

securityProfile
DiskSecurityProfile

包含资源的安全相关信息。

supportsHibernation
Nullable<Boolean>

指示快照上的 OS 支持休眠。

publicNetworkAccess
String

可能的值包括:“Enabled”、“Disabled”

completionPercent
Nullable<Double>

通过 CopyStart 操作创建资源时后台副本的完成百分比。

copyCompletionError
CopyCompletionError

指示通过 CopyStart 操作创建的资源的后台副本失败时的错误详细信息。

dataAccessAuthMode
String

可能的值包括:“AzureActiveDirectory”、“None”

适用于