69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://hwlab.pikastech.local/protocol/schemas/patch-panel-status.schema.json",
|
|
"title": "HWLAB Patch Panel Status",
|
|
"type": "object",
|
|
"required": [
|
|
"patchPanelStatusId",
|
|
"projectId",
|
|
"gatewaySessionId",
|
|
"serviceId",
|
|
"state",
|
|
"environment",
|
|
"observedAt"
|
|
],
|
|
"properties": {
|
|
"patchPanelStatusId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"projectId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"gatewaySessionId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"wiringConfigId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"serviceId": {
|
|
"const": "hwlab-patch-panel"
|
|
},
|
|
"state": {
|
|
"type": "string",
|
|
"enum": ["unknown", "ready", "applying", "active", "faulted", "offline"]
|
|
},
|
|
"environment": {
|
|
"$ref": "common.json#/$defs/environment"
|
|
},
|
|
"activeConnections": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["fromResourceId", "fromPort", "toResourceId", "toPort"],
|
|
"properties": {
|
|
"fromResourceId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"fromPort": {
|
|
"type": "string"
|
|
},
|
|
"toResourceId": {
|
|
"$ref": "common.json#/$defs/id"
|
|
},
|
|
"toPort": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"observedAt": {
|
|
"$ref": "common.json#/$defs/timestamp"
|
|
},
|
|
"metadata": {
|
|
"$ref": "common.json#/$defs/jsonObject"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|