SecurityStandardCollection.CreateOrUpdate Method

Definition

Creates or updates a security standard over a given scope

  • Request Path. : /{scope}/providers/Microsoft.Security/securityStandards/{standardId}.
  • Operation Id. : SecurityStandards_CreateOrUpdate.
  • Default Api Version. : 2024-08-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityStandardResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string standardId, Azure.ResourceManager.SecurityCenter.SecurityStandardData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityStandardData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityStandardResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.SecurityStandardData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SecurityStandardResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, standardId As String, data As SecurityStandardData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SecurityStandardResource)

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.

standardId
String

The Security Standard key - unique key for the standard type.

data
SecurityStandardData

Custom security standard over a pre-defined scope.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

standardId or data is null.

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

Applies to