Language

NeuroShieldCollection.CreateOrUpdate Method

Definition

Creates or updates a NeuroShield resource.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkSecurity/neuroShields/{neuroShieldName}.
  • Operation Id. : NeuroShields_CreateOrUpdate.
  • Default Api Version. : 2026-10-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkSecurity.NeuroShieldResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string neuroShieldName, Azure.ResourceManager.NetworkSecurity.NeuroShieldData data, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkSecurity.NeuroShieldData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkSecurity.NeuroShieldResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkSecurity.NeuroShieldData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkSecurity.NeuroShieldResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, neuroShieldName As String, data As NeuroShieldData, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NeuroShieldResource)

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.

neuroShieldName
String

The name of the NeuroShield resource.

data
NeuroShieldData

The create or update request body.

ifMatch
Nullable<ETag>

The entity tag that makes the request conditional.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

neuroShieldName or data is null.

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

Applies to