Files

96 lines
1.7 KiB
JSON
Raw Permalink Normal View History

2024-10-09 18:05:15 +10:00
{
"type": "object",
"description": "Stream object",
"required": [
"id",
"created_on",
"modified_on",
"owner_user_id",
"incoming_port",
"forwarding_host",
"forwarding_port",
"tcp_forwarding",
"udp_forwarding",
"enabled",
"meta"
],
2024-10-09 18:05:15 +10:00
"additionalProperties": false,
"properties": {
"id": {
2024-10-10 15:53:11 +10:00
"$ref": "../common.json#/properties/id"
2024-10-09 18:05:15 +10:00
},
"created_on": {
2024-10-10 15:53:11 +10:00
"$ref": "../common.json#/properties/created_on"
2024-10-09 18:05:15 +10:00
},
"modified_on": {
2024-10-10 15:53:11 +10:00
"$ref": "../common.json#/properties/modified_on"
2024-10-09 18:05:15 +10:00
},
"owner_user_id": {
2024-10-10 15:53:11 +10:00
"$ref": "../common.json#/properties/user_id"
2024-10-09 18:05:15 +10:00
},
"incoming_port": {
"type": "integer",
"minimum": 1,
"maximum": 65535,
"example": 9090
2024-10-09 18:05:15 +10:00
},
"forwarding_host": {
"anyOf": [
{
"description": "Domain Name",
"type": "string",
"pattern": "^(?:[^.*]+\\.?)+[^.]$",
"example": "example.com"
2024-10-09 18:05:15 +10:00
},
{
"type": "string",
2025-09-15 17:34:00 +10:00
"format": "^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$"
2024-10-09 18:05:15 +10:00
},
{
"type": "string",
"format": "ipv6"
}
],
"example": "example.com"
2024-10-09 18:05:15 +10:00
},
"forwarding_port": {
"type": "integer",
"minimum": 1,
"maximum": 65535,
"example": 80
2024-10-09 18:05:15 +10:00
},
"tcp_forwarding": {
"type": "boolean",
"example": true
2024-10-09 18:05:15 +10:00
},
"udp_forwarding": {
"type": "boolean",
"example": false
2024-10-09 18:05:15 +10:00
},
"enabled": {
2024-10-10 15:53:11 +10:00
"$ref": "../common.json#/properties/enabled"
2024-10-09 18:05:15 +10:00
},
2025-02-04 17:53:59 +10:00
"certificate_id": {
"$ref": "../common.json#/properties/certificate_id"
},
2024-10-09 18:05:15 +10:00
"meta": {
"type": "object",
"example": {}
2025-02-05 09:00:31 +10:00
},
"certificate": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "./certificate-object.json"
}
],
"example": null
},
"owner": {
"$ref": "./user-object.json"
2024-10-09 18:05:15 +10:00
}
}
}