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


DatabaseWatcherTargetCollection.GetAsync(String, CancellationToken) Method

Definition

Get a Target

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

Parameters

targetName
String

The target resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

targetName is null.

Applies to