Question Answering Projects - Get Import Status
获取导入作业的状态。
GET {Endpoint}/language/authoring/query-knowledgebases/projects/{projectName}/import/jobs/{jobId}?api-version=2023-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
Endpoint
|
path | True |
string (uri) |
支持的认知服务终结点(例如 https://.api.cognitiveservices.azure.com). |
job
|
path | True |
string |
作业 ID。 |
project
|
path | True |
string maxLength: 100pattern: ^(?=[a-zA-Z0-9])[a-zA-Z0-9-]{0,98}[a-zA-Z0-9]$ |
项目的名称。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求已成功。 |
|
Other Status Codes |
意外的错误响应。 标头 x-ms-error-code: string |
安全性
Ocp-Apim-Subscription-Key
类型:
apiKey
在:
header
OAuth2Auth
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
https://cognitiveservices.azure.com/.default |
示例
Successful query
示例请求
GET {Endpoint}/language/authoring/query-knowledgebases/projects/proj1/import/jobs/job1?api-version=2023-04-01
示例响应
{
"createdDateTime": "2021-05-01T17:21:14Z",
"errors": [],
"expirationDateTime": "2021-05-01T17:21:14Z",
"jobId": "635c2741-15c4-4c2c-9f78-bfd30b6b2a4a",
"lastUpdatedDateTime": "2021-05-01T17:21:14Z",
"status": "succeeded"
}
定义
名称 | 说明 |
---|---|
Azure. |
错误对象。 |
Azure. |
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors。 |
Error |
错误对象。 |
Error |
人工可读错误代码。 |
Error |
错误响应。 |
Inner |
人工可读错误代码。 |
Inner |
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
job |
作业状态。 |
Question |
导入作业状态、项目元数据和资产。 |
Azure.Core.Foundations.Error
错误对象。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集之一。 |
details |
导致此报告错误的特定错误的详细信息数组。 |
|
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
错误的人工可读表示形式。 |
target |
string |
错误的目标。 |
Azure.Core.Foundations.InnerError
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集之一。 |
innererror |
内部错误。 |
Error
错误对象。
名称 | 类型 | 说明 |
---|---|---|
code |
服务器定义的错误代码集之一。 |
|
details |
Error[] |
导致此报告错误的特定错误的详细信息数组。 |
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
错误的人工可读表示形式。 |
target |
string |
错误的目标。 |
ErrorCode
人工可读错误代码。
值 | 说明 |
---|---|
AzureCognitiveSearchIndexLimitReached |
Azure 认知搜索索引限制达到错误 |
AzureCognitiveSearchIndexNotFound |
Azure 认知搜索索引找不到错误 |
AzureCognitiveSearchNotFound |
Azure 认知搜索找不到错误 |
AzureCognitiveSearchThrottling |
Azure 认知搜索限制错误 |
Conflict |
冲突错误 |
Forbidden |
禁止访问错误 |
InternalServerError |
内部服务器错误 |
InvalidArgument |
参数错误无效 |
InvalidRequest |
请求错误无效 |
NotFound |
找不到错误 |
OperationNotFound |
找不到操作错误 |
ProjectNotFound |
项目找不到错误 |
QuotaExceeded |
超出配额错误 |
ServiceUnavailable |
服务不可用错误 |
Timeout |
超时错误 |
TooManyRequests |
请求过多错误 |
Unauthorized |
未经授权的访问错误 |
Warning |
警告错误 |
ErrorResponse
错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
InnerErrorCode
人工可读错误代码。
值 | 说明 |
---|---|
AzureCognitiveSearchNotFound |
Azure 认知搜索找不到错误 |
AzureCognitiveSearchThrottling |
Azure 认知搜索限制错误 |
EmptyRequest |
空请求错误 |
ExtractionFailure |
提取失败错误 |
InvalidCountryHint |
国家/地区提示错误无效 |
InvalidDocument |
文档错误无效 |
InvalidDocumentBatch |
文档批处理错误无效 |
InvalidParameterValue |
参数值错误无效 |
InvalidRequest |
请求错误无效 |
InvalidRequestBodyFormat |
请求正文格式错误无效 |
KnowledgeBaseNotFound |
知识库找不到错误 |
MissingInputDocuments |
缺少输入文档错误 |
ModelVersionIncorrect |
模型版本错误错误 |
UnsupportedLanguageCode |
不支持的语言代码错误 |
InnerErrorModel
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。
名称 | 类型 | 说明 |
---|---|---|
code |
服务器定义的错误代码集之一。 |
|
details |
object |
错误详细信息。 |
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
jobStatus
作业状态。
值 | 说明 |
---|---|
cancelled | |
cancelling | |
failed | |
notStarted | |
partiallyCompleted | |
running | |
succeeded |
QuestionAnsweringAuthoringImportJobState
导入作业状态、项目元数据和资产。
名称 | 类型 | 说明 |
---|---|---|
createdDateTime |
string (date-time) |
作业的创建日期时间。 |
errors |
执行作业时遇到的错误。 |
|
expirationDateTime |
string (date-time) |
作业的到期日期时间。 |
jobId |
string |
作业 ID。 |
lastUpdatedDateTime |
string (date-time) |
更新作业的最后一个日期。 |
status |
作业状态。 |