Search documentation
karat

+

K

User Documentation ↗
Version 2.0

List Live Deployments

GET/api/v2/models/liveDeployments
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Lists direct live deployments for the specified Model, optionally filtered by branch. Only direct deployments (those tracking the latest model version on a branch) are returned.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:models-read.

Query parameters

modelRid
string

The Resource Identifier (RID) of the Model to list live deployments for.

branch
stringoptional

If provided, only return the live deployment associated with this branch.

preview
booleanoptional

Enables the use of preview functionality.

Response body

ListLiveDeploymentsResponse
object
Hide child attributes

Hide child attributes

data
list<LiveDeployment>optional
Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 curl \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/models/liveDeployments?modelRid=ri.models.main.model.f351c142-0e4c-4b12-adc2-6e1539737ae9&branch=master&preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "data": [ { "runtimeConfiguration": { "minReplicas": 1, "maxReplicas": 3, "cpu": 1, "memory": "256MiB", "threadCount": 32 }, "modelVersion": { "modelRid": "ri.models.main.model.f351c142-0e4c-4b12-adc2-6e1539737ae9", "modelVersionRid": "ri.models.main.model-version.adf94926-c3ac-41ea-beb2-4946699d08ee" }, "rid": "ri.foundry-ml-live.main.live-deployment.f351c142-0e4c-4b12-adc2-6e1539737ae9", "branch": "master", "status": { "state": "ACTIVE", "isReady": true } } ] }

Error responses

Error Name
ModelNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given Model could not be found.
ParametersmodelRid