Lingua

NeuroShieldProtectedResourceCollection.CreateOrUpdate Method

Definition

Creates or updates a protected resource under a NeuroShield resource.

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

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.

protectedResourceName
String

The name of the protected resource.

data
NeuroShieldProtectedResourceData

The create or update request body for a protected resource.

ifMatch
Nullable<ETag>

The entity tag that makes the request conditional.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

protectedResourceName or data is null.

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

Applies to