Get model version uri by alias
GET/metalakes/:metalake/catalogs/:catalog/schemas/:schema/models/:model/aliases/:alias/uri
Get model version uri by alias
Request
Path Parameters
The name of the metalake
The name of the catalog
The name of the schema
The name of the model
The alias of the model version
Query Parameters
The uri name of the model version
Responses
- 200
- 404
- 5xx
The response of model version uri
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- ModelResponse
Schema
Possible values: [0
]
Status code of the response
The uri of the model version
{
"code": 0,
"uri": "string"
}
{
"code": 0,
"uri": "hdfs://path/to/model"
}
Not Found - The target model version uri does not exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchModelVersionException
- NoSuchModelVersionURINameException
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "NoSuchModelVersionException",
"message": "Model version does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchModelVersionException: Model version does not exist"
]
}
{
"code": 1003,
"type": "NoSuchModelVersionURINameException",
"message": "Model version uri does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchModelVersionURINameException: Model version uri 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
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}