共用方式為


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

選項參數。

傳回