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.
stringThe Resource Identifier (RID) of the Model to list live deployments for.
stringoptionalIf provided, only return the live deployment associated with this branch.
booleanoptionalEnables the use of preview functionality.
objectlist<LiveDeployment>optional1
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"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 Name | ||
|---|---|---|
Model | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The given Model could not be found. | |
| Parameters | modelRid | |
See Errors for a general overview of errors in the platform.