Skip to main content
Fetch Models Policy
curl --request GET \
  --url https://{api_endpoint}/api/v1/model_policy \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "display_name": "<string>",
    "policy": {
      "strategy": {
        "mode": "loadbalance",
        "on_status_codes": [
          123
        ]
      },
      "cache": {
        "mode": "<string>"
      },
      "retry": {
        "attempts": 123,
        "on_status_codes": [
          123
        ]
      },
      "targets": [
        {
          "model_name": "<string>",
          "weight": 123
        }
      ]
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

name
string[] | null
display_name
string[] | null
id
string[] | null

Response

Successful Response

id
string
required
name
string
required
description
string | null
required
display_name
string
required
policy
object
required