Share via


PurviewKafkaConfigurationCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/kafkaConfigurations/{kafkaConfigurationName}
  • Operation Id: KafkaConfigurations_Get
  • Default Api Version: 2023-05-01-preview
  • Resource: PurviewKafkaConfigurationResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Purview.PurviewKafkaConfigurationResource> GetIfExists (string kafkaConfigurationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Purview.PurviewKafkaConfigurationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Purview.PurviewKafkaConfigurationResource>
Public Overridable Function GetIfExists (kafkaConfigurationName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PurviewKafkaConfigurationResource)

Parameters

kafkaConfigurationName
String

Name of kafka configuration.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

kafkaConfigurationName is null.

Applies to