GET /v1/services/mlmodelServices
from metadata.sdk import configure
from metadata.sdk.entities import MlModelServices
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
services = MlModelServices.list(limit=50)
for svc in services.data:
print(f"{svc.fullyQualifiedName} ({svc.serviceType})")
# List all with auto-pagination
for svc in MlModelServices.list_all():
print(f"{svc.fullyQualifiedName}")
# List with fields
services = MlModelServices.list(
fields=["owners", "tags", "domains"],
limit=50
)
for svc in services.data:
print(f"{svc.fullyQualifiedName}")
if svc.owners:
print(f" Owners: {[o.name for o in svc.owners]}")
import static org.openmetadata.sdk.fluent.MlModelServices.*;
// List first page
var result = MlModelServices.list()
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
// List with fields
var result = MlModelServices.list()
.fields("owners", "tags", "domains")
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/services/mlmodelServices?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/services/mlmodelServices?fields=owners,tags,domains&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "ca22d46e-81b9-4e48-85b5-0adc44980da9",
"name": "mlflow_svc",
"fullyQualifiedName": "mlflow_svc",
"serviceType": "Mlflow",
"version": 0.1,
"updatedAt": 1769982621618,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/services/mlmodelServices/ca22d46e-81b9-4e48-85b5-0adc44980da9",
"connection": {
"config": {
"type": "Mlflow",
"trackingUri": "http://localhost:8088",
"registryUri": "http://localhost:8088",
"supportsMetadataExtraction": true
}
},
"owners": [],
"tags": [],
"deleted": false,
"domains": []
}
],
"paging": {
"after": "...",
"total": 3
}
}
List ML Model Services
List all ML model services with optional filtering and pagination
GET
/
v1
/
services
/
mlmodelServices
GET /v1/services/mlmodelServices
from metadata.sdk import configure
from metadata.sdk.entities import MlModelServices
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
services = MlModelServices.list(limit=50)
for svc in services.data:
print(f"{svc.fullyQualifiedName} ({svc.serviceType})")
# List all with auto-pagination
for svc in MlModelServices.list_all():
print(f"{svc.fullyQualifiedName}")
# List with fields
services = MlModelServices.list(
fields=["owners", "tags", "domains"],
limit=50
)
for svc in services.data:
print(f"{svc.fullyQualifiedName}")
if svc.owners:
print(f" Owners: {[o.name for o in svc.owners]}")
import static org.openmetadata.sdk.fluent.MlModelServices.*;
// List first page
var result = MlModelServices.list()
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
// List with fields
var result = MlModelServices.list()
.fields("owners", "tags", "domains")
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/services/mlmodelServices?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/services/mlmodelServices?fields=owners,tags,domains&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "ca22d46e-81b9-4e48-85b5-0adc44980da9",
"name": "mlflow_svc",
"fullyQualifiedName": "mlflow_svc",
"serviceType": "Mlflow",
"version": 0.1,
"updatedAt": 1769982621618,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/services/mlmodelServices/ca22d46e-81b9-4e48-85b5-0adc44980da9",
"connection": {
"config": {
"type": "Mlflow",
"trackingUri": "http://localhost:8088",
"registryUri": "http://localhost:8088",
"supportsMetadataExtraction": true
}
},
"owners": [],
"tags": [],
"deleted": false,
"domains": []
}
],
"paging": {
"after": "...",
"total": 3
}
}
List ML Model Services
List all ML model services with optional filtering and pagination.Query Parameters
integer
default:"10"
Maximum number of results to return (max: 1000000).
string
Cursor for backward pagination.
string
Cursor for forward pagination.
string
Comma-separated list of fields to include:
owners, tags, domains.string
default:"non-deleted"
Include
all, deleted, or non-deleted entities.GET /v1/services/mlmodelServices
from metadata.sdk import configure
from metadata.sdk.entities import MlModelServices
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
services = MlModelServices.list(limit=50)
for svc in services.data:
print(f"{svc.fullyQualifiedName} ({svc.serviceType})")
# List all with auto-pagination
for svc in MlModelServices.list_all():
print(f"{svc.fullyQualifiedName}")
# List with fields
services = MlModelServices.list(
fields=["owners", "tags", "domains"],
limit=50
)
for svc in services.data:
print(f"{svc.fullyQualifiedName}")
if svc.owners:
print(f" Owners: {[o.name for o in svc.owners]}")
import static org.openmetadata.sdk.fluent.MlModelServices.*;
// List first page
var result = MlModelServices.list()
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
// List with fields
var result = MlModelServices.list()
.fields("owners", "tags", "domains")
.limit(50)
.execute();
for (var svc : result.getData()) {
System.out.println(svc.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/services/mlmodelServices?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/services/mlmodelServices?fields=owners,tags,domains&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "ca22d46e-81b9-4e48-85b5-0adc44980da9",
"name": "mlflow_svc",
"fullyQualifiedName": "mlflow_svc",
"serviceType": "Mlflow",
"version": 0.1,
"updatedAt": 1769982621618,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/services/mlmodelServices/ca22d46e-81b9-4e48-85b5-0adc44980da9",
"connection": {
"config": {
"type": "Mlflow",
"trackingUri": "http://localhost:8088",
"registryUri": "http://localhost:8088",
"supportsMetadataExtraction": true
}
},
"owners": [],
"tags": [],
"deleted": false,
"domains": []
}
],
"paging": {
"after": "...",
"total": 3
}
}
Returns
Returns a paginated list of ML model service objects. By default, only basic fields are included. Use thefields parameter to request additional data.
Response
array
Array of ML model service objects.
Show properties
Show properties
string
Unique identifier for the ML model service (UUID format).
string
ML model service name.
string
Fully qualified name of the service.
string
Human-readable display name.
string
Type of ML model service (e.g., Mlflow, Sklearn, SageMaker, CustomMlModel).
object
Connection configuration for the service.
array
List of owners. Only included when
fields contains owners.array
Classification tags. Only included when
fields contains tags.array
Domain assignments. Only included when
fields contains domains.object
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to list ML model services |
Was this page helpful?
⌘I