CdnWebAgentKnowledgeSourceCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • 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.NullableResponse<Azure.ResourceManager.Cdn.CdnWebAgentKnowledgeSourceResource> GetIfExists(string knowledgeSourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Cdn.CdnWebAgentKnowledgeSourceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Cdn.CdnWebAgentKnowledgeSourceResource>
Public Overridable Function GetIfExists (knowledgeSourceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(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.

Applies to