Condividi tramite


TopicRecordCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/topics/{topicName}.
  • Operation Id. : TopicRecords_Get.
  • Default Api Version. : 2025-08-18-preview.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Confluent.TopicRecordResource>> GetIfExistsAsync(string topicName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Confluent.TopicRecordResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Confluent.TopicRecordResource>>
Public Overridable Function GetIfExistsAsync (topicName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of TopicRecordResource))

Parameters

topicName
String

Confluent kafka or schema registry topic name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

topicName is null.

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

Applies to