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

Read the active routing generation

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

GET /api/v1/routing-registry

Platform administrators can read the active immutable routing generation for diagnostics and an explicit static-configuration replacement. No definitions, endpoints, credential references, secrets or purchase prices are returned. local_static_configuration_matches is false on a Gateway whose local static configuration has been superseded; new inference on that instance fails closed until it restarts with matching configuration. The response is not cached.

Operation: getRoutingRegistryStatus.

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/routing-registry" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

No path, query, or header parameters are declared.

No request body is declared.

Active publication status

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"generation",
"format_version",
"local_static_configuration_matches"
],
"properties": {
"generation": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"format_version": {
"type": "integer",
"enum": [
1
]
},
"local_static_configuration_matches": {
"type": "boolean"
}
}
}
}
}

Missing or invalid authorization

Platform administration is required

Publication is unavailable or its format is unsupported

Platform administrators can read the active immutable routing generation for diagnostics and an explicit static-configuration replacement. No definitions, endpoints, credential references, secrets or purchase prices are returned. local_static_configuration_matches is false on a Gateway whose local static configuration has been superseded; new inference on that instance fails closed until it restarts with matching configuration. The response is not cached.

Supported scope: implemented