RaiTopicCollection.Get(String, CancellationToken) Method

Definition

Gets the specified custom topic associated with the Azure OpenAI account.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raitopics/{raiTopicName}.
  • Operation Id. : RaiTopics_Get.
  • Default Api Version. : 2026-01-15-preview.
public virtual Azure.Response<Azure.ResourceManager.CognitiveServices.RaiTopicResource> Get(string raiTopicName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CognitiveServices.RaiTopicResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CognitiveServices.RaiTopicResource>
Public Overridable Function Get (raiTopicName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RaiTopicResource)

Parameters

raiTopicName
String

The name of the Rai Topic associated with the Cognitive Services Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

raiTopicName is null.

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

Applies to