CdnExtensions.GetCdnWebAgentAsync Method

Definition

Gets a web agent with the specified name within a resource group. <item> Mocking. To mock this method, please mock GetCdnWebAgentAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>> GetCdnWebAgentAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string webAgentName, System.Threading.CancellationToken cancellationToken = default);
static member GetCdnWebAgentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>>
<Extension()>
Public Function GetCdnWebAgentAsync (resourceGroupResource As ResourceGroupResource, webAgentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CdnWebAgentResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

webAgentName
String

The name of the web agent.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to