List model versions
GET/metalakes/:metalake/catalogs/:catalog/schemas/:schema/models/:model/versions
List model versions
Request
Path Parameters
metalake stringrequired
The name of the metalake
catalog stringrequired
The name of the catalog
schema stringrequired
The name of the schema
model stringrequired
The name of the model
Responses
- 200
- 404
- 5xx
The response of model version list
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- ModelVersionListResponse
Schema
code int32
Possible values: [0
]
Status code of the response
versions int32[]
The list of model versions
{
"code": 0,
"versions": [
null
]
}
{
"code": 0,
"versions": [
0,
1,
2
]
}
Not Found - The target model does not exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchModelException
Schema
code integerrequired
Possible values: >= 1000
and <= 1100
HTTP response code
type stringrequired
Internal type definition of the error
message stringrequired
A human-readable message
stack string[]
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "NoSuchModelException",
"message": "Model does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchModelException: Model does not exist"
]
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
code integerrequired
Possible values: >= 1000
and <= 1100
HTTP response code
type stringrequired
Internal type definition of the error
message stringrequired
A human-readable message
stack string[]
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}
Loading...