Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

List platform-managed model route pools

Generated from the checked-in source. Do not edit this reference by hand.

GET /api/v1/pools/index

Installation credential or explicit platform-administrator grant required. Lists enabled and disabled shared and personal pools with their current configuration. Ordered by alias using database ordering. after is the exclusive alias cursor returned as next_after; it need not identify a currently existing pool. This is a live view, not a cross-page snapshot: new aliases before the cursor require a fresh traversal. No upstream requests, credentials, endpoints or prices are returned. Pool organization identifiers are API references, not display labels.

Operation: listModelRoutePools.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"bearerAuth": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/api/v1/pools/index" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: query. Optional.

JSON
{
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[!-~]+$"
}

Location: query. Optional.

JSON
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}

No request body is declared.

Bounded current configurations and continuation cursor.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"has_more",
"next_after"
],
"additionalProperties": false,
"properties": {
"data": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"required": [
"alias",
"organization_id",
"enabled",
"revision",
"candidates"
],
"properties": {
"alias": {
"type": "string"
},
"organization_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"project_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"display_name": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"slug": {
"type": [
"string",
"null"
]
},
"public_catalog": {
"type": "boolean"
},
"billing_mode": {
"type": "string",
"enum": [
"pool_tariff",
"candidate_tariff"
]
},
"enabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"candidates": {
"type": "array",
"minItems": 1,
"maxItems": 64,
"items": {
"type": "object",
"required": [
"alias",
"priority",
"weight",
"enabled"
],
"properties": {
"alias": {
"type": "string"
},
"priority": {
"type": "integer",
"minimum": -1000,
"maximum": 1000
},
"weight": {
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"enabled": {
"type": "boolean"
}
}
}
},
"rules": {
"type": "array",
"maxItems": 32,
"items": {
"type": "object"
}
},
"default_action": {
"type": "string",
"enum": [
"candidates",
"reject"
]
}
}
}
},
"has_more": {
"type": "boolean"
},
"next_after": {
"type": [
"string",
"null"
]
}
}
}

Invalid query, alias cursor or page size; framework query errors may use plain text.

Authentication required.

Platform administration required.

Installation credential or explicit platform-administrator grant required. Lists enabled and disabled shared and personal pools with their current configuration. Ordered by alias using database ordering. after is the exclusive alias cursor returned as next_after; it need not identify a currently existing pool. This is a live view, not a cross-page snapshot: new aliases before the cursor require a fresh traversal. No upstream requests, credentials, endpoints or prices are returned. Pool organization identifiers are API references, not display labels.

Supported scope: implemented