MockableCdnResourceGroupResource.GetCdnWebAgentAsync 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.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/webAgents/{webAgentName}.
- Operation Id. : WebAgents_Get.
- Default Api Version. : 2025-09-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>> GetCdnWebAgentAsync(string webAgentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCdnWebAgentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>>
override this.GetCdnWebAgentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Cdn.CdnWebAgentResource>>
Public Overridable Function GetCdnWebAgentAsync (webAgentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CdnWebAgentResource))
Parameters
- webAgentName
- String
The name of the web agent.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
webAgentName is null.
webAgentName is an empty string, and was expected to be non-empty.