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

Volumes interface

表示卷的接口。

方法

beginCreateOrUpdate(string, string, Volume, VolumesCreateOrUpdateOptionalParams)

创建新卷或更新现有卷的属性。

beginCreateOrUpdateAndWait(string, string, Volume, VolumesCreateOrUpdateOptionalParams)

创建新卷或更新现有卷的属性。

beginDelete(string, string, VolumesDeleteOptionalParams)

删除提供的卷。

beginDeleteAndWait(string, string, VolumesDeleteOptionalParams)

删除提供的卷。

get(string, string, VolumesGetOptionalParams)

获取提供的卷的属性。

listByResourceGroup(string, VolumesListByResourceGroupOptionalParams)

获取提供的资源组中的卷列表。

listBySubscription(VolumesListBySubscriptionOptionalParams)

获取提供的订阅中的卷列表。

update(string, string, VolumesUpdateOptionalParams)

更新与提供的卷关联的标记。

方法详细信息

beginCreateOrUpdate(string, string, Volume, VolumesCreateOrUpdateOptionalParams)

创建新卷或更新现有卷的属性。

function beginCreateOrUpdate(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Volume>, Volume>>

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

volumeParameters
Volume

请求正文。

options
VolumesCreateOrUpdateOptionalParams

选项参数。

返回

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

beginCreateOrUpdateAndWait(string, string, Volume, VolumesCreateOrUpdateOptionalParams)

创建新卷或更新现有卷的属性。

function beginCreateOrUpdateAndWait(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise<Volume>

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

volumeParameters
Volume

请求正文。

options
VolumesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Volume>

beginDelete(string, string, VolumesDeleteOptionalParams)

删除提供的卷。

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

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

options
VolumesDeleteOptionalParams

选项参数。

返回

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

beginDeleteAndWait(string, string, VolumesDeleteOptionalParams)

删除提供的卷。

function beginDeleteAndWait(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise<OperationStatusResult>

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

options
VolumesDeleteOptionalParams

选项参数。

返回

get(string, string, VolumesGetOptionalParams)

获取提供的卷的属性。

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

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

options
VolumesGetOptionalParams

选项参数。

返回

Promise<Volume>

listByResourceGroup(string, VolumesListByResourceGroupOptionalParams)

获取提供的资源组中的卷列表。

function listByResourceGroup(resourceGroupName: string, options?: VolumesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Volume, Volume[], PageSettings>

参数

resourceGroupName

string

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

返回

listBySubscription(VolumesListBySubscriptionOptionalParams)

获取提供的订阅中的卷列表。

function listBySubscription(options?: VolumesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Volume, Volume[], PageSettings>

参数

options
VolumesListBySubscriptionOptionalParams

选项参数。

返回

update(string, string, VolumesUpdateOptionalParams)

更新与提供的卷关联的标记。

function update(resourceGroupName: string, volumeName: string, options?: VolumesUpdateOptionalParams): Promise<Volume>

参数

resourceGroupName

string

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

volumeName

string

卷的名称。

options
VolumesUpdateOptionalParams

选项参数。

返回

Promise<Volume>