Query parameters
- allow_no_match
boolean Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the
_all
string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. Iftrue
, the API returns an empty array when there are no matches and the subset of results when there are partial matches. Iffalse
, the API returns a 404 status code when there are no matches or only partial matches. - bytes
string The unit used to display byte values.
Values are
b
,kb
,mb
,gb
,tb
, orpb
. - h
string | array[string] A comma-separated list of column names to display.
Supported values include:
create_time
(orct
): The time when the trained model was created.created_by
(orc
,createdBy
): Information on the creator of the trained model.data_frame_analytics_id
(ordf
,dataFrameAnalytics
,dfid
): Identifier for the data frame analytics job that created the model. Only displayed if it is still available.description
(ord
): The description of the trained model.heap_size
(orhs
,modelHeapSize
): The estimated heap size to keep the trained model in memory.id
: Identifier for the trained model.ingest.count
(oric
,ingestCount
): The total number of documents that are processed by the model.ingest.current
(oricurr
,ingestCurrent
): The total number of document that are currently being handled by the trained model.ingest.failed
(orif
,ingestFailed
): The total number of failed ingest attempts with the trained model.ingest.pipelines
(orip
,ingestPipelines
): The total number of ingest pipelines that are referencing the trained model.ingest.time
(orit
,ingestTime
): The total time that is spent processing documents with the trained model.license
(orl
): The license level of the trained model.operations
(oro
,modelOperations
): The estimated number of operations to use the trained model. This number helps measuring the computational complexity of the model.version
(orv
): The Elasticsearch version number in which the trained model was created.
Values are
create_time
,ct
,created_by
,c
,createdBy
,data_frame_analytics_id
,df
,dataFrameAnalytics
,dfid
,description
,d
,heap_size
,hs
,modelHeapSize
,id
,ingest.count
,ic
,ingestCount
,ingest.current
,icurr
,ingestCurrent
,ingest.failed
,if
,ingestFailed
,ingest.pipelines
,ip
,ingestPipelines
,ingest.time
,it
,ingestTime
,license
,l
,operations
,o
,modelOperations
,version
, orv
. - s
string | array[string] A comma-separated list of column names or aliases used to sort the response.
Supported values include:
create_time
(orct
): The time when the trained model was created.created_by
(orc
,createdBy
): Information on the creator of the trained model.data_frame_analytics_id
(ordf
,dataFrameAnalytics
,dfid
): Identifier for the data frame analytics job that created the model. Only displayed if it is still available.description
(ord
): The description of the trained model.heap_size
(orhs
,modelHeapSize
): The estimated heap size to keep the trained model in memory.id
: Identifier for the trained model.ingest.count
(oric
,ingestCount
): The total number of documents that are processed by the model.ingest.current
(oricurr
,ingestCurrent
): The total number of document that are currently being handled by the trained model.ingest.failed
(orif
,ingestFailed
): The total number of failed ingest attempts with the trained model.ingest.pipelines
(orip
,ingestPipelines
): The total number of ingest pipelines that are referencing the trained model.ingest.time
(orit
,ingestTime
): The total time that is spent processing documents with the trained model.license
(orl
): The license level of the trained model.operations
(oro
,modelOperations
): The estimated number of operations to use the trained model. This number helps measuring the computational complexity of the model.version
(orv
): The Elasticsearch version number in which the trained model was created.
Values are
create_time
,ct
,created_by
,c
,createdBy
,data_frame_analytics_id
,df
,dataFrameAnalytics
,dfid
,description
,d
,heap_size
,hs
,modelHeapSize
,id
,ingest.count
,ic
,ingestCount
,ingest.current
,icurr
,ingestCurrent
,ingest.failed
,if
,ingestFailed
,ingest.pipelines
,ip
,ingestPipelines
,ingest.time
,it
,ingestTime
,license
,l
,operations
,o
,modelOperations
,version
, orv
. - from
number Skips the specified number of transforms.
- size
number The maximum number of transforms to display.
- time
string Unit used to display time values.
Values are
nanos
,micros
,ms
,s
,m
,h
, ord
.
curl \
--request GET 'http://api.example.com/_cat/ml/trained_models' \
--header "Authorization: $API_KEY"
[
{
"id": "ddddd-1580216177138",
"heap_size": "0b",
"operations": "196",
"create_time": "2025-03-25T00:01:38.662Z",
"type": "pytorch",
"ingest.pipelines": "0",
"data_frame.id": "__none__"
},
{
"id": "lang_ident_model_1",
"heap_size": "1mb",
"operations": "39629",
"create_time": "2019-12-05T12:28:34.594Z",
"type": "lang_ident",
"ingest.pipelines": "0",
"data_frame.id": "__none__"
}
]