Custom Models - Get Copy Result
取得自定義模型複製作業的目前狀態和結果。
GET {endpoint}/formrecognizer/v2.1/custom/models/{modelId}/copyResults/{resultId}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
支援的認知服務端點 (通訊協定和主機名,例如: https://westus2.api.cognitive.microsoft.com) 。 |
model
|
path | True |
string uuid |
模型標識碼。 |
result
|
path | True |
string uuid |
複製作業結果標識碼。 |
要求標頭
名稱 | 必要 | 類型 | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
Success |
|
Other Status Codes |
回應實體隨附的非成功回應,其中包含有關錯誤的其他詳細數據。 |
安全性
Ocp-Apim-Subscription-Key
類型:
apiKey
位於:
header
範例
Get copy custom model result |
Get copy custom model result with failures |
Get copy custom model result
範例要求
GET {endpoint}/formrecognizer/v2.1/custom/models/f973e3c1-1148-43bb-bea8-49d0603ab3a8/copyResults/3b1e6c5b-e113-4114-ab6b-ce65dfe8050f
範例回覆
{
"status": "succeeded",
"createdDateTime": "2020-01-01T00:00:00Z",
"lastUpdatedDateTime": "2020-01-01T00:01:00Z",
"copyResult": {
"modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
"errors": []
}
}
Get copy custom model result with failures
範例要求
GET {endpoint}/formrecognizer/v2.1/custom/models/f973e3c1-1148-43bb-bea8-49d0603ab3a8/copyResults/3b1e6c5b-e113-4114-ab6b-ce65dfe8050f
範例回覆
{
"status": "failed",
"createdDateTime": "2020-01-01T00:00:00Z",
"lastUpdatedDateTime": "2020-01-01T00:01:00Z",
"copyResult": {
"modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
"errors": [
{
"code": "ResourceResolverError",
"message": "{ErrorMessage}"
}
]
}
}
定義
名稱 | Description |
---|---|
Copy |
佇列複製作業的狀態和結果。 |
Copy |
自定義模型複製結果。 |
Error |
|
Error |
|
Operation |
佇列作業的狀態。 |
CopyOperationResult
佇列複製作業的狀態和結果。
名稱 | 類型 | Description |
---|---|---|
copyResult |
複製作業的結果。 |
|
createdDateTime |
string |
提交複製作業的日期和時間 (UTC) 。 |
lastUpdatedDateTime |
string |
上次更新狀態的日期和時間 (UTC) 。 |
status |
作業狀態。 |
CopyResult
自定義模型複製結果。
名稱 | 類型 | Description |
---|---|---|
errors |
複製作業期間傳回的錯誤。 |
|
modelId |
string |
目標模型的標識碼。 |
ErrorInformation
名稱 | 類型 | Description |
---|---|---|
code |
string |
|
message |
string |
ErrorResponse
名稱 | 類型 | Description |
---|---|---|
error |
OperationStatus
佇列作業的狀態。
名稱 | 類型 | Description |
---|---|---|
failed |
string |
|
notStarted |
string |
|
running |
string |
|
succeeded |
string |