CustomEntityStoreAssignmentCollection.CreateOrUpdate Method

Definition

Creates a custom entity store assignment for the provided subscription, if not already exists.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments/{customEntityStoreAssignmentName}
  • Operation Id: CustomEntityStoreAssignments_Create
  • Default Api Version: 2021-07-01-preview
  • Resource: CustomEntityStoreAssignmentResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string customEntityStoreAssignmentName, Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, customEntityStoreAssignmentName As String, content As CustomEntityStoreAssignmentCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CustomEntityStoreAssignmentResource)

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.

customEntityStoreAssignmentName
String

Name of the custom entity store assignment. Generated name is GUID.

content
CustomEntityStoreAssignmentCreateOrUpdateContent

Custom entity store assignment body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

customEntityStoreAssignmentName or content is null.

Applies to