다음을 통해 공유


Custom Models - Get Copy Result

현재 상태 및 사용자 지정 모델 복사 작업의 결과를 가져옵니다.

GET {endpoint}/formrecognizer/v2.1/custom/models/{modelId}/copyResults/{resultId}

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
endpoint
path True

string

지원되는 Cognitive Services 엔드포인트(프로토콜 및 호스트 이름( 예: https://westus2.api.cognitive.microsoft.com).

modelId
path True

string

uuid

모델 식별자입니다.

resultId
path True

string

uuid

복사 작업 결과 식별자입니다.

요청 헤더

Name 필수 형식 Description
Ocp-Apim-Subscription-Key True

string

응답

Name 형식 Description
200 OK

CopyOperationResult

Success

Other Status Codes

ErrorResponse

오류에 대한 추가 세부 정보를 포함하는 성공하지 못한 응답과 함께 제공되는 응답 엔터티입니다.

보안

Ocp-Apim-Subscription-Key

형식: apiKey
In(다음 안에): 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}"
      }
    ]
  }
}

정의

Name Description
CopyOperationResult

큐에 대기된 복사 작업의 상태 및 결과입니다.

CopyResult

사용자 지정 모델 복사 결과입니다.

ErrorInformation
ErrorResponse
OperationStatus

큐에 대기된 작업의 상태입니다.

CopyOperationResult

큐에 대기된 복사 작업의 상태 및 결과입니다.

Name 형식 Description
copyResult

CopyResult

복사 작업의 결과입니다.

createdDateTime

string

복사 작업이 제출된 날짜 및 시간(UTC)입니다.

lastUpdatedDateTime

string

상태 마지막으로 업데이트된 날짜 및 시간(UTC)입니다.

status

OperationStatus

작업 상태입니다.

CopyResult

사용자 지정 모델 복사 결과입니다.

Name 형식 Description
errors

ErrorInformation[]

복사 작업 중에 반환된 오류입니다.

modelId

string

대상 모델의 식별자입니다.

ErrorInformation

Name 형식 Description
code

string

message

string

ErrorResponse

Name 형식 Description
error

ErrorInformation

OperationStatus

큐에 대기된 작업의 상태입니다.

Name 형식 Description
failed

string

notStarted

string

running

string

succeeded

string