Status aller konfigurierten Ollama-Endpoints
GET
/v1/endpoints
const url = 'https://example.com/v1/endpoints';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/endpoints \ --header 'Authorization: Bearer <token>'Authorizations
Abschnitt betitelt „Authorizations“Responses
Abschnitt betitelt „Responses“Ein Eintrag pro Endpoint aus config.json → endpoints.
Media typeapplication/json
Array<object>
object
name
string
url
string
state
string
healthy
boolean
last_ping
string format: date-time
latency_ms
integer
models
Array<string>
inflight
integer
max_inflight
integer
consecutive_fails
integer
priority
integer
Example
[ { "state": "healthy" }]