HciExtensions.GetVirtualHardDisks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetVirtualHardDisks(ResourceGroupResource) |
Gets a collection of VirtualHardDiskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualHardDisks() instead. |
GetVirtualHardDisks(SubscriptionResource, CancellationToken) |
Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.
|
GetVirtualHardDisks(ResourceGroupResource)
- Source:
- HciExtensions.cs
Gets a collection of VirtualHardDiskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualHardDisks() instead.
public static Azure.ResourceManager.Hci.VirtualHardDiskCollection GetVirtualHardDisks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualHardDisks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.VirtualHardDiskCollection
<Extension()>
Public Function GetVirtualHardDisks (resourceGroupResource As ResourceGroupResource) As VirtualHardDiskCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of VirtualHardDiskResources and their operations over a VirtualHardDiskResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetVirtualHardDisks(SubscriptionResource, CancellationToken)
- Source:
- HciExtensions.cs
Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualHardDisks
- Operation Id: VirtualHardDisks_ListAll
public static Azure.Pageable<Azure.ResourceManager.Hci.VirtualHardDiskResource> GetVirtualHardDisks (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualHardDisks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.VirtualHardDiskResource>
<Extension()>
Public Function GetVirtualHardDisks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualHardDiskResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of VirtualHardDiskResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET