Поделиться через


DatabaseWatcherHealthValidationCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/healthValidations/{healthValidationName}
  • Operation Id: HealthValidation_Get
  • Default Api Version: 2025-01-02
  • Resource: DatabaseWatcherHealthValidationResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DatabaseWatcher.DatabaseWatcherHealthValidationResource>> GetIfExistsAsync(string healthValidationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DatabaseWatcher.DatabaseWatcherHealthValidationResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DatabaseWatcher.DatabaseWatcherHealthValidationResource>>
Public Overridable Function GetIfExistsAsync (healthValidationName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DatabaseWatcherHealthValidationResource))

Parameters

healthValidationName
String

The health validation resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

healthValidationName is null.

Applies to