共用方式為


Volume interface

表示卷的介面。

方法

create(string, string, VolumeResourceDescription, VolumeCreateOptionalParams)

建立具有指定名稱、描述和屬性的磁碟區資源。 如果磁碟區資源的名稱相同,則會使用指定的描述和屬性來更新它。

delete(string, string, VolumeDeleteOptionalParams)

刪除名稱所識別的磁碟區資源。

get(string, string, VolumeGetOptionalParams)

取得具有指定名稱之磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

listByResourceGroup(string, VolumeListByResourceGroupOptionalParams)

取得指定資源群組中所有磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

listBySubscription(VolumeListBySubscriptionOptionalParams)

取得指定資源群組中所有磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

方法詳細資料

create(string, string, VolumeResourceDescription, VolumeCreateOptionalParams)

建立具有指定名稱、描述和屬性的磁碟區資源。 如果磁碟區資源的名稱相同,則會使用指定的描述和屬性來更新它。

function create(resourceGroupName: string, volumeResourceName: string, volumeResourceDescription: VolumeResourceDescription, options?: VolumeCreateOptionalParams): Promise<VolumeResourceDescription>

參數

resourceGroupName

string

Azure 資源組名

volumeResourceName

string

磁碟區的識別。

volumeResourceDescription
VolumeResourceDescription

建立磁碟區資源的描述。

options
VolumeCreateOptionalParams

選項參數。

傳回

delete(string, string, VolumeDeleteOptionalParams)

刪除名稱所識別的磁碟區資源。

function delete(resourceGroupName: string, volumeResourceName: string, options?: VolumeDeleteOptionalParams): Promise<void>

參數

resourceGroupName

string

Azure 資源組名

volumeResourceName

string

磁碟區的識別。

options
VolumeDeleteOptionalParams

選項參數。

傳回

Promise<void>

get(string, string, VolumeGetOptionalParams)

取得具有指定名稱之磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

function get(resourceGroupName: string, volumeResourceName: string, options?: VolumeGetOptionalParams): Promise<VolumeResourceDescription>

參數

resourceGroupName

string

Azure 資源組名

volumeResourceName

string

磁碟區的識別。

options
VolumeGetOptionalParams

選項參數。

傳回

listByResourceGroup(string, VolumeListByResourceGroupOptionalParams)

取得指定資源群組中所有磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

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

參數

resourceGroupName

string

Azure 資源組名

options
VolumeListByResourceGroupOptionalParams

選項參數。

傳回

listBySubscription(VolumeListBySubscriptionOptionalParams)

取得指定資源群組中所有磁碟區資源的相關信息。 此資訊包括磁碟區的描述和其他屬性。

function listBySubscription(options?: VolumeListBySubscriptionOptionalParams): PagedAsyncIterableIterator<VolumeResourceDescription, VolumeResourceDescription[], PageSettings>

參數

options
VolumeListBySubscriptionOptionalParams

選項參數。

傳回