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