共用方式為


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) 。

modelId
path True

string

uuid

模型標識碼。

resultId
path True

string

uuid

複製作業結果標識碼。

要求標頭

名稱 必要 類型 Description
Ocp-Apim-Subscription-Key True

string

回應

名稱 類型 Description
200 OK

CopyOperationResult

Success

Other Status Codes

ErrorResponse

回應實體隨附的非成功回應,其中包含有關錯誤的其他詳細數據。

安全性

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
CopyOperationResult

佇列複製作業的狀態和結果。

CopyResult

自定義模型複製結果。

ErrorInformation
ErrorResponse
OperationStatus

佇列作業的狀態。

CopyOperationResult

佇列複製作業的狀態和結果。

名稱 類型 Description
copyResult

CopyResult

複製作業的結果。

createdDateTime

string

提交複製作業的日期和時間 (UTC) 。

lastUpdatedDateTime

string

上次更新狀態的日期和時間 (UTC) 。

status

OperationStatus

作業狀態。

CopyResult

自定義模型複製結果。

名稱 類型 Description
errors

ErrorInformation[]

複製作業期間傳回的錯誤。

modelId

string

目標模型的標識碼。

ErrorInformation

名稱 類型 Description
code

string

message

string

ErrorResponse

名稱 類型 Description
error

ErrorInformation

OperationStatus

佇列作業的狀態。

名稱 類型 Description
failed

string

notStarted

string

running

string

succeeded

string