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

IInputsOperations.TestWithHttpMessagesAsync 方法

定义

测试输入的数据源是否可由 Azure 流分析服务访问和使用。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.StreamAnalytics.Models.ResourceTestStatus>> TestWithHttpMessagesAsync (string resourceGroupName, string jobName, string inputName, Microsoft.Azure.Management.StreamAnalytics.Models.Input input = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member TestWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.StreamAnalytics.Models.Input * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.StreamAnalytics.Models.ResourceTestStatus>>
Public Function TestWithHttpMessagesAsync (resourceGroupName As String, jobName As String, inputName As String, Optional input As Input = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ResourceTestStatus))

参数

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

jobName
String

流式处理作业的名称。

inputName
String

输入的名称。

input
Input

如果指定的输入尚不存在,则此参数必须包含要测试的完整输入定义。 如果指定的输入已存在,则可以将此参数保留为 null 以按原样测试现有输入,或者如果指定,指定的属性将覆盖现有输入 (中的相应属性,就像 PATCH 操作) 一样,生成的输入将进行测试。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

适用于