Упростить интерфейс и добавить чтение компьютеров через API ALD 3.1

This commit is contained in:
scandalist-trash committed 2026-10-27 12:30:25 -04:00
1 parent d90c6c7517
commit 16b6dd76e1
28 files changed
+891 -102

No files matched your search

+77
View File
@@ -0,0 +1,77 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:ald-transition:ald-computers",
"type": "object",
"properties": {
"schema_version": {
"const": 1
},
"total": {
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
"listed": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"computers": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"fqdn": {
"type": "string",
"format": "hostname",
"maxLength": 253
},
"address": {
"type": "string",
"maxLength": 45
}
},
"required": [
"fqdn",
"address"
],
"additionalProperties": false
}
},
"list_complete": {
"type": "boolean"
},
"observed_at": {
"type": "string",
"format": "date-time"
},
"source_ref": {
"const": "ALD31_REST_PACKAGE"
},
"scope": {
"const": "portal_visible_computers"
},
"migration_verified": {
"const": false
},
"controller": {
"type": "string",
"format": "hostname",
"maxLength": 253
}
},
"required": [
"schema_version",
"total",
"listed",
"computers",
"list_complete",
"observed_at",
"source_ref",
"scope",
"migration_verified",
"controller"
],
"additionalProperties": false
}