你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SecurityInsightsWatchlistCollection.CreateOrUpdate 方法

定义

创建或更新监视列表及其监视列表项 (批量创建,例如通过文本/csv 内容类型) 。 若要创建监视列表及其 Items,应使用 rawContent 和 contentType 属性调用此终结点。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}
  • 操作IdWatchlists_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string watchlistAlias, Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityInsights.SecurityInsightsWatchlistResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, watchlistAlias As String, data As SecurityInsightsWatchlistData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of SecurityInsightsWatchlistResource)

参数

waitUntil
WaitUntil

Completed 如果方法应在服务上完成长时间运行的操作之前等待返回,则为 ; Started 如果它在启动操作后应返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

watchlistAlias
String

监视列表别名。

data
SecurityInsightsWatchlistData

监视列表。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

watchlistAlias 是一个空字符串,预期为非空。

watchlistAliasdata 为 null。

适用于