Dela via


Custom Models - List

Hämta information om alla anpassade modeller

GET {endpoint}/formrecognizer/v2.1/custom/models?op=full

URI-parametrar

Name I Obligatorisk Typ Description
endpoint
path True

string

Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel: https://westus2.api.cognitive.microsoft.com).

op
query True

string

Ange om du vill returnera en sammanfattning eller en fullständig lista över modeller.

Begärandehuvud

Name Obligatorisk Typ Description
Ocp-Apim-Subscription-Key True

string

Svar

Name Typ Description
200 OK

Models

Klart

Other Status Codes

ErrorResponse

Svarsentitet som medföljer icke-lyckade svar som innehåller ytterligare information om felet.

Säkerhet

Ocp-Apim-Subscription-Key

Typ: apiKey
I: header

Exempel

List custom models

Exempelbegäran

GET {endpoint}/formrecognizer/v2.1/custom/models?op=full

Exempelsvar

{
  "summary": {
    "count": 2,
    "limit": 5000,
    "lastUpdatedDateTime": "2019-05-01T10:53:21Z"
  },
  "modelList": [
    {
      "modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
      "modelName": "test model 1",
      "status": "ready",
      "createdDateTime": "2019-05-01T10:53:21Z",
      "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
      "attributes": {
        "isComposed": false
      }
    },
    {
      "modelId": "f973e3c1-0001-43bb-bea8-49d0603ab3a8",
      "modelName": "test model 2",
      "status": "ready",
      "createdDateTime": "2019-05-01T10:53:21Z",
      "lastUpdatedDateTime": "2019-05-01T10:53:23Z",
      "attributes": {
        "isComposed": true
      }
    }
  ],
  "nextLink": ""
}

Definitioner

Name Description
Attributes

Valfria modellattribut.

ErrorInformation
ErrorResponse
ModelInfo

Grundläggande anpassad modellinformation.

Models

Svar på liståtgärden anpassade modeller.

ModelStatus

Status för modellen.

Summary

Sammanfattning av alla tränade anpassade modeller.

Attributes

Valfria modellattribut.

Name Typ Standardvärde Description
isComposed

boolean

False

Är den här modellen sammansatt? (standard: false).

ErrorInformation

Name Typ Description
code

string

message

string

ErrorResponse

Name Typ Description
error

ErrorInformation

ModelInfo

Grundläggande anpassad modellinformation.

Name Typ Description
attributes

Attributes

Valfria modellattribut.

createdDateTime

string

Datum och tid (UTC) när modellen skapades.

lastUpdatedDateTime

string

Datum och tid (UTC) när statusen senast uppdaterades.

modelId

string

Modellidentifierare.

modelName

string

Valfritt användardefinierat modellnamn (maxlängd: 1024).

status

ModelStatus

Status för modellen.

Models

Svar på liståtgärden anpassade modeller.

Name Typ Description
modelList

ModelInfo[]

Samling av tränade anpassade modeller.

nextLink

string

Länka till nästa sida med anpassade modeller.

summary

Summary

Sammanfattning av alla tränade anpassade modeller.

ModelStatus

Status för modellen.

Name Typ Description
creating

string

invalid

string

ready

string

Summary

Sammanfattning av alla tränade anpassade modeller.

Name Typ Description
count

integer

Aktuellt antal tränade anpassade modeller.

lastUpdatedDateTime

string

Datum och tid (UTC) när sammanfattningen senast uppdaterades.

limit

integer

Maximalt antal modeller som kan tränas för det här kontot.