WorkloadNetworkPortMirroringProfileCollection.CreateOrUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a port mirroring profile by id in a private cloud workload network.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
- Operation Id: WorkloadNetworks_CreatePortMirroring
- Default Api Version: 2023-03-01
- Resource: WorkloadNetworkPortMirroringProfileResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string portMirroringId, Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, portMirroringId As String, data As WorkloadNetworkPortMirroringProfileData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of WorkloadNetworkPortMirroringProfileResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- portMirroringId
- String
NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.
NSX port mirroring.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
portMirroringId
is an empty string, and was expected to be non-empty.
portMirroringId
or data
is null.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för