Freigeben über


MonitorExtensions.GetMonitorPrivateLinkScopeAsync Methode

Definition

Gibt ein Azure Monitor PrivateLinkScope zurück.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}
  • Vorgang IdPrivateLinkScopes_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>> GetMonitorPrivateLinkScopeAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string scopeName, System.Threading.CancellationToken cancellationToken = default);
static member GetMonitorPrivateLinkScopeAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>>
<Extension()>
Public Function GetMonitorPrivateLinkScopeAsync (resourceGroupResource As ResourceGroupResource, scopeName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MonitorPrivateLinkScopeResource))

Parameter

resourceGroupResource
ResourceGroupResource

Der ResourceGroupResource instance, für den die Methode ausgeführt wird.

scopeName
String

Der Name der Azure Monitor PrivateLinkScope-Ressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

scopeName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

scopeName ist NULL.

Gilt für: