Freigeben über


WorkloadNetworkPortMirroringProfileCollection.GetAsync Methode

Definition

Abrufen eines Portspiegelungsprofils nach ID in einem privaten Cloudworkloadnetzwerk.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
  • Vorgang IdWorkloadNetworks_GetPortMirroring
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>> GetAsync (string portMirroringId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>>
Public Overridable Function GetAsync (portMirroringId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WorkloadNetworkPortMirroringProfileResource))

Parameter

portMirroringId
String

NSX-Portspiegelungsbezeichner. Im Allgemeinen identisch mit dem Anzeigenamen der Portspiegelung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

portMirroringId ist NULL.

Gilt für: