GET
/
v2
/
functions
/
{owner_name}
/
{function_name}
/
versions
/
{version_id}
curl --request GET \
  --url https://mango.sievedata.com/v2/functions/{owner_name}/{function_name}/versions/{version_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "build_status": "<string>",
  "queued_at": "2023-11-07T05:31:56Z",
  "built_at": "2023-11-07T05:31:56Z",
  "ready_at": "2023-11-07T05:31:56Z",
  "compute_type": "<string>",
  "python_packages": [
    "<string>"
  ],
  "system_packages": [
    "<string>"
  ],
  "cuda_version": "<string>",
  "gpu": true,
  "split": 123,
  "minimum_replicas": 123,
  "maximum_replicas": 123,
  "inputs": [
    {
      "type": "<string>",
      "name": "<string>",
      "data": "<string>",
      "description": "<string>",
      "schema": {}
    }
  ],
  "outputs": [
    {
      "type": "<string>",
      "name": "<string>",
      "data": "<string>",
      "description": "<string>",
      "schema": {}
    }
  ],
  "current_workers": {
    "starting": 123,
    "setup": 123,
    "active": 123,
    "idle": 123,
    "awaiting_resources": 123
  },
  "environment_variables": [
    {
      "name": "<string>",
      "description": "<string>",
      "default": "<string>"
    }
  ],
  "stream_output": true,
  "function_dependencies": [
    "<string>"
  ]
}

Authorizations

X-API-Key
string
headerrequired

The Sieve API key to authenticate with.

Path Parameters

owner_name
string
required

The owner of the function.

function_name
string
required

The name of the function.

version_id
string
required

The ID of the function version.

Response

200 - application/json
id
string
required

Id of the model

build_status
string
required

Build status of the function version. Statuses are 'queued', 'building', 'pushing', 'deploying', 'ready', 'error'

queued_at
string | null
required

The time that the function build is queued

built_at
string | null
required

The time that the function build finished building

ready_at
string | null
required

The time that the model is ready to process jobs

compute_type
string
required

Machine type to use. See possible values for GPU machine types

python_packages
string[]
required

An array of the model's python pip packages

system_packages
string[]
required

An array of the model's system packages

cuda_version
string | null

Cuda Version

gpu
boolean
required

Whether this model uses gpu

split
integer
required

How many functions to allocate per node

minimum_replicas
integer
default: 0

The minimum number of replicas of the model. Scale your model's minimum replicas to avoid cold starts

maximum_replicas
integer | null

The maximum number of replicas of the model. Prevents model replicas from scaling beyond a certain point

inputs
object[]
required

The inputs to a function

outputs
object[]
required

The outputs to a function

current_workers
object | null

The current number and status of the model's workers

environment_variables
required

The outputs to a function

stream_output
boolean | null

Stream output

function_dependencies
string[]
required

Function dependencies