CdnExtensions.GetCdnWebAgent 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.
Gets a web agent with the specified name within a resource group. <item> Mocking. To mock this method, please mock GetCdnWebAgent(String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource> GetCdnWebAgent(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string webAgentName, System.Threading.CancellationToken cancellationToken = default);
static member GetCdnWebAgent : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>
<Extension()>
Public Function GetCdnWebAgent (resourceGroupResource As ResourceGroupResource, webAgentName As String, Optional cancellationToken As CancellationToken = Nothing) As 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.