StorageActionsExtensions.GetStorageTasks 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
GetStorageTasks(ResourceGroupResource) |
Gets a collection of StorageTaskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageTasks() instead. |
GetStorageTasks(SubscriptionResource, CancellationToken) |
Lists all the storage tasks available under the subscription.
|
GetStorageTasks(ResourceGroupResource)
- Source:
- StorageActionsExtensions.cs
Gets a collection of StorageTaskResources in the ResourceGroupResource. MockingTo mock this method, please mock GetStorageTasks() instead.
public static Azure.ResourceManager.StorageActions.StorageTaskCollection GetStorageTasks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetStorageTasks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.StorageActions.StorageTaskCollection
<Extension()>
Public Function GetStorageTasks (resourceGroupResource As ResourceGroupResource) As StorageTaskCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of StorageTaskResources and their operations over a StorageTaskResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetStorageTasks(SubscriptionResource, CancellationToken)
- Source:
- StorageActionsExtensions.cs
Lists all the storage tasks available under the subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StorageActions/storageTasks
- Operation Id: StorageTasks_ListBySubscription
- Default Api Version: 2023-01-01
- Resource: StorageTaskResource
public static Azure.Pageable<Azure.ResourceManager.StorageActions.StorageTaskResource> GetStorageTasks (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageTasks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.StorageActions.StorageTaskResource>
<Extension()>
Public Function GetStorageTasks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of StorageTaskResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of StorageTaskResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET