共用方式為


OperationalInsightsTableCollection.CreateOrUpdateAsync Method

Definition

Update or Create a Log Analytics workspace table.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}
  • Operation Id: Tables_CreateOrUpdate
  • Default Api Version: 2022-10-01
  • Resource: OperationalInsightsTableResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string tableName, Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.OperationalInsights.OperationalInsightsTableData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.OperationalInsights.OperationalInsightsTableResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, tableName As String, data As OperationalInsightsTableData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of OperationalInsightsTableResource))

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.

tableName
String

The name of the table.

data
OperationalInsightsTableData

The parameters required to update table properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

tableName or data is null.

Applies to