ComputeExtensions.GetManagedDisks 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
| Name | Description |
|---|---|
| GetManagedDisks(ResourceGroupResource) |
Gets a collection of ManagedDisks in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetManagedDisks() instead. </item> |
| GetManagedDisks(SubscriptionResource, CancellationToken) |
Lists all the disks under a subscription. <item> Mocking. To mock this method, please mock GetManagedDisks(CancellationToken) instead. </item> |
GetManagedDisks(ResourceGroupResource)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
Gets a collection of ManagedDisks in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetManagedDisks() instead. </item>
public static Azure.ResourceManager.Compute.ManagedDiskCollection GetManagedDisks(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetManagedDisks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.ManagedDiskCollection
<Extension()>
Public Function GetManagedDisks (resourceGroupResource As ResourceGroupResource) As ManagedDiskCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of ManagedDisks and their operations over a ManagedDiskResource.
Exceptions
resourceGroupResource is null.
Applies to
GetManagedDisks(SubscriptionResource, CancellationToken)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
Lists all the disks under a subscription. <item> Mocking. To mock this method, please mock GetManagedDisks(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Compute.ManagedDiskResource> GetManagedDisks(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedDisks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.ManagedDiskResource>
<Extension()>
Public Function GetManagedDisks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ManagedDiskResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ManagedDiskResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.