get.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "operationId": "getProxyHost",
  3. "summary": "Get a Proxy Host",
  4. "tags": ["proxy-hosts"],
  5. "security": [
  6. {
  7. "bearerAuth": [
  8. "proxy_hosts.view"
  9. ]
  10. }
  11. ],
  12. "parameters": [
  13. {
  14. "in": "path",
  15. "name": "hostID",
  16. "description": "The ID of the Proxy Host",
  17. "schema": {
  18. "type": "integer",
  19. "minimum": 1
  20. },
  21. "required": true,
  22. "example": 1
  23. }
  24. ],
  25. "responses": {
  26. "200": {
  27. "description": "200 response",
  28. "content": {
  29. "application/json": {
  30. "examples": {
  31. "default": {
  32. "value": {
  33. "id": 3,
  34. "created_on": "2025-10-30T01:12:05.000Z",
  35. "modified_on": "2025-10-30T01:12:05.000Z",
  36. "owner_user_id": 1,
  37. "domain_names": [
  38. "test.example.com"
  39. ],
  40. "forward_host": "127.0.0.1",
  41. "forward_port": 8080,
  42. "access_list_id": 0,
  43. "certificate_id": 0,
  44. "ssl_forced": false,
  45. "caching_enabled": false,
  46. "block_exploits": false,
  47. "advanced_config": "",
  48. "meta": {
  49. "nginx_online": true,
  50. "nginx_err": null
  51. },
  52. "allow_websocket_upgrade": false,
  53. "http2_support": false,
  54. "forward_scheme": "http",
  55. "enabled": true,
  56. "locations": [],
  57. "hsts_enabled": false,
  58. "hsts_subdomains": false,
  59. "trust_forwarded_proto": false,
  60. "owner": {
  61. "id": 1,
  62. "created_on": "2025-10-28T00:50:24.000Z",
  63. "modified_on": "2025-10-28T00:50:24.000Z",
  64. "is_disabled": false,
  65. "email": "[email protected]",
  66. "name": "jamiec",
  67. "nickname": "jamiec",
  68. "avatar": "//www.gravatar.com/avatar/6193176330f8d38747f038c170ddb193?default=mm",
  69. "roles": [
  70. "admin"
  71. ]
  72. }
  73. }
  74. }
  75. },
  76. "schema": {
  77. "$ref": "../../../../components/proxy-host-object.json"
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }