ProfileResource.GetCdnProfileAgent(String, CancellationToken) Method

Definition

Gets an agent link (web agent association) within a CDN profile.

public virtual Azure.Response<Azure.ResourceManager.Cdn.CdnProfileAgentResource> GetCdnProfileAgent(string agentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCdnProfileAgent : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Cdn.CdnProfileAgentResource>
override this.GetCdnProfileAgent : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Cdn.CdnProfileAgentResource>
Public Overridable Function GetCdnProfileAgent (agentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CdnProfileAgentResource)

Parameters

agentName
String

Name of the web agent association.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

agentName is null.

agentName is an empty string, and was expected to be non-empty.

Applies to