redirection-host-object.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "type": "object",
  3. "description": "Redirection Host object",
  4. "required": ["id", "created_on", "modified_on", "owner_user_id", "domain_names", "forward_http_code", "forward_scheme", "forward_domain_name", "preserve_path", "certificate_id", "ssl_forced", "hsts_enabled", "hsts_subdomains", "http2_support", "block_exploits", "advanced_config", "enabled", "meta"],
  5. "additionalProperties": false,
  6. "properties": {
  7. "id": {
  8. "$ref": "../common.json#/properties/id"
  9. },
  10. "created_on": {
  11. "$ref": "../common.json#/properties/created_on"
  12. },
  13. "modified_on": {
  14. "$ref": "../common.json#/properties/modified_on"
  15. },
  16. "owner_user_id": {
  17. "$ref": "../common.json#/properties/user_id"
  18. },
  19. "domain_names": {
  20. "$ref": "../common.json#/properties/domain_names"
  21. },
  22. "forward_http_code": {
  23. "description": "Redirect HTTP Status Code",
  24. "example": 302,
  25. "type": "integer",
  26. "minimum": 300,
  27. "maximum": 308
  28. },
  29. "forward_scheme": {
  30. "type": "string",
  31. "enum": ["http", "https"]
  32. },
  33. "forward_domain_name": {
  34. "description": "Domain Name",
  35. "example": "jc21.com",
  36. "type": "string",
  37. "pattern": "^(?:[^.*]+\\.?)+[^.]$"
  38. },
  39. "preserve_path": {
  40. "description": "Should the path be preserved",
  41. "example": true,
  42. "type": "boolean"
  43. },
  44. "certificate_id": {
  45. "$ref": "../common.json#/properties/certificate_id"
  46. },
  47. "ssl_forced": {
  48. "$ref": "../common.json#/properties/ssl_forced"
  49. },
  50. "hsts_enabled": {
  51. "$ref": "../common.json#/properties/hsts_enabled"
  52. },
  53. "hsts_subdomains": {
  54. "$ref": "../common.json#/properties/hsts_subdomains"
  55. },
  56. "http2_support": {
  57. "$ref": "../common.json#/properties/http2_support"
  58. },
  59. "block_exploits": {
  60. "$ref": "../common.json#/properties/block_exploits"
  61. },
  62. "advanced_config": {
  63. "type": "string"
  64. },
  65. "enabled": {
  66. "$ref": "../common.json#/properties/enabled"
  67. },
  68. "meta": {
  69. "type": "object"
  70. }
  71. }
  72. }