StorageTargetsExtensions.GetAsync Method

Definition

Returns a Storage Target from a Cache.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.StorageCache.Models.StorageTarget> GetAsync (this Microsoft.Azure.Management.StorageCache.IStorageTargets operations, string resourceGroupName, string cacheName, string storageTargetName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.StorageCache.IStorageTargets * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.StorageCache.Models.StorageTarget>
<Extension()>
Public Function GetAsync (operations As IStorageTargets, resourceGroupName As String, cacheName As String, storageTargetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageTarget)

Parameters

operations
IStorageTargets

The operations group for this extension method.

resourceGroupName
String

Target resource group.

cacheName
String

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName
String

Name of Storage Target.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to