共用方式為


CustomEntityStoreAssignmentCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string customEntityStoreAssignmentName, Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.Models.CustomEntityStoreAssignmentCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.CustomEntityStoreAssignmentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, customEntityStoreAssignmentName As String, content As CustomEntityStoreAssignmentCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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