通过


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

Volumes interface

表示卷的接口。

方法

beginCreate(string, string, string, string, Volume, VolumesCreateOptionalParams)

创建卷。

beginCreateAndWait(string, string, string, string, Volume, VolumesCreateOptionalParams)

创建卷。

beginDelete(string, string, string, string, VolumesDeleteOptionalParams)

删除卷。

beginDeleteAndWait(string, string, string, string, VolumesDeleteOptionalParams)

删除卷。

beginPreBackup(string, string, string, VolumeNameList, VolumesPreBackupOptionalParams)

验证是否可以为卷列表创建磁盘快照备份。

beginPreBackupAndWait(string, string, string, VolumeNameList, VolumesPreBackupOptionalParams)

验证是否可以为卷列表创建磁盘快照备份。

beginPreRestore(string, string, string, DiskSnapshotList, VolumesPreRestoreOptionalParams)

验证是否可以将备份磁盘快照的列表还原到 ElasticSan 卷。

beginPreRestoreAndWait(string, string, string, DiskSnapshotList, VolumesPreRestoreOptionalParams)

验证是否可以将备份磁盘快照的列表还原到 ElasticSan 卷。

beginUpdate(string, string, string, string, VolumeUpdate, VolumesUpdateOptionalParams)

更新卷。

beginUpdateAndWait(string, string, string, string, VolumeUpdate, VolumesUpdateOptionalParams)

更新卷。

get(string, string, string, string, VolumesGetOptionalParams)

获取卷。

listByVolumeGroup(string, string, string, VolumesListByVolumeGroupOptionalParams)

列出 VolumeGroup 中的卷。

方法详细信息

beginCreate(string, string, string, string, Volume, VolumesCreateOptionalParams)

创建卷。

function beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: Volume, options?: VolumesCreateOptionalParams): Promise<SimplePollerLike<OperationState<Volume>, Volume>>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

parameters
Volume

Volume 对象。

options
VolumesCreateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<Volume>, Volume>>

beginCreateAndWait(string, string, string, string, Volume, VolumesCreateOptionalParams)

创建卷。

function beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: Volume, options?: VolumesCreateOptionalParams): Promise<Volume>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

parameters
Volume

Volume 对象。

options
VolumesCreateOptionalParams

选项参数。

返回

Promise<Volume>

beginDelete(string, string, string, string, VolumesDeleteOptionalParams)

删除卷。

function beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

options
VolumesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, string, VolumesDeleteOptionalParams)

删除卷。

function beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

options
VolumesDeleteOptionalParams

选项参数。

返回

Promise<void>

beginPreBackup(string, string, string, VolumeNameList, VolumesPreBackupOptionalParams)

验证是否可以为卷列表创建磁盘快照备份。

function beginPreBackup(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeNameList, options?: VolumesPreBackupOptionalParams): Promise<SimplePollerLike<OperationState<PreValidationResponse>, PreValidationResponse>>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

parameters
VolumeNameList

卷名称列表(目前仅支持列表中的一个卷名称)。如果列表更大,服务器将返回错误)

options
VolumesPreBackupOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<PreValidationResponse>, PreValidationResponse>>

beginPreBackupAndWait(string, string, string, VolumeNameList, VolumesPreBackupOptionalParams)

验证是否可以为卷列表创建磁盘快照备份。

function beginPreBackupAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeNameList, options?: VolumesPreBackupOptionalParams): Promise<PreValidationResponse>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

parameters
VolumeNameList

卷名称列表(目前仅支持列表中的一个卷名称)。如果列表更大,服务器将返回错误)

options
VolumesPreBackupOptionalParams

选项参数。

返回

beginPreRestore(string, string, string, DiskSnapshotList, VolumesPreRestoreOptionalParams)

验证是否可以将备份磁盘快照的列表还原到 ElasticSan 卷。

function beginPreRestore(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: DiskSnapshotList, options?: VolumesPreRestoreOptionalParams): Promise<SimplePollerLike<OperationState<PreValidationResponse>, PreValidationResponse>>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

parameters
DiskSnapshotList

磁盘快照列表(目前仅支持列表中的一个磁盘快照,并且磁盘快照必须与 ElasticSan 位于同一 Azure 区域中。如果列表更大,服务器将返回错误)

options
VolumesPreRestoreOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<PreValidationResponse>, PreValidationResponse>>

beginPreRestoreAndWait(string, string, string, DiskSnapshotList, VolumesPreRestoreOptionalParams)

验证是否可以将备份磁盘快照的列表还原到 ElasticSan 卷。

function beginPreRestoreAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: DiskSnapshotList, options?: VolumesPreRestoreOptionalParams): Promise<PreValidationResponse>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

parameters
DiskSnapshotList

磁盘快照列表(目前仅支持列表中的一个磁盘快照,并且磁盘快照必须与 ElasticSan 位于同一 Azure 区域中。如果列表更大,服务器将返回错误)

options
VolumesPreRestoreOptionalParams

选项参数。

返回

beginUpdate(string, string, string, string, VolumeUpdate, VolumesUpdateOptionalParams)

更新卷。

function beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: VolumeUpdate, options?: VolumesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Volume>, Volume>>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

parameters
VolumeUpdate

Volume 对象。

options
VolumesUpdateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<Volume>, Volume>>

beginUpdateAndWait(string, string, string, string, VolumeUpdate, VolumesUpdateOptionalParams)

更新卷。

function beginUpdateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, parameters: VolumeUpdate, options?: VolumesUpdateOptionalParams): Promise<Volume>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

parameters
VolumeUpdate

Volume 对象。

options
VolumesUpdateOptionalParams

选项参数。

返回

Promise<Volume>

get(string, string, string, string, VolumesGetOptionalParams)

获取卷。

function get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise<Volume>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

volumeName

string

卷的名称。

options
VolumesGetOptionalParams

选项参数。

返回

Promise<Volume>

listByVolumeGroup(string, string, string, VolumesListByVolumeGroupOptionalParams)

列出 VolumeGroup 中的卷。

function listByVolumeGroup(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumesListByVolumeGroupOptionalParams): PagedAsyncIterableIterator<Volume, Volume[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 此名称不区分大小写。

elasticSanName

string

ElasticSan 的名称。

volumeGroupName

string

VolumeGroup 的名称。

options
VolumesListByVolumeGroupOptionalParams

选项参数。

返回