host.html.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "ApiSpecs": [
  3. {
  4. "HttpVerb": "GET",
  5. "Path": "/api/v1/host/1647/template",
  6. "Calls": [
  7. {
  8. "Id": 0,
  9. "CurrentPath": "/api/v1/host/1647/template",
  10. "MethodType": "GET",
  11. "PostForm": null,
  12. "RequestHeader": {
  13. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  14. "X-Forwarded-For": " 127.0.0.1\r"
  15. },
  16. "CommonRequestHeaders": null,
  17. "ResponseHeader": {
  18. "Access-Control-Allow-Credentials": "true",
  19. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  20. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  21. "Access-Control-Allow-Origin": "*",
  22. "Access-Control-Expose-Headers": "Content-Length",
  23. "Access-Control-Max-Age": "86400",
  24. "Content-Type": "application/json; charset=utf-8"
  25. },
  26. "RequestUrlParams": {},
  27. "RequestBody": "",
  28. "ResponseBody": "[{\"id\":125,\"tpl_name\":\"tplA\",\"parent_id\":0,\"action_id\":99,\"create_user\":\"root\"},{\"id\":142,\"tpl_name\":\"tplB\",\"parent_id\":0,\"action_id\":111,\"create_user\":\"root\"},{\"id\":180,\"tpl_name\":\"tplC\",\"parent_id\":0,\"action_id\":142,\"create_user\":\"root\"}]",
  29. "ResponseCode": 200
  30. }
  31. ]
  32. },
  33. {
  34. "HttpVerb": "GET",
  35. "Path": "/api/v1/host/1647/hostgroup",
  36. "Calls": [
  37. {
  38. "Id": 1,
  39. "CurrentPath": "/api/v1/host/1647/hostgroup",
  40. "MethodType": "GET",
  41. "PostForm": null,
  42. "RequestHeader": {
  43. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  44. "X-Forwarded-For": " 127.0.0.1\r"
  45. },
  46. "CommonRequestHeaders": null,
  47. "ResponseHeader": {
  48. "Access-Control-Allow-Credentials": "true",
  49. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  50. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  51. "Access-Control-Allow-Origin": "*",
  52. "Access-Control-Expose-Headers": "Content-Length",
  53. "Access-Control-Max-Age": "86400",
  54. "Content-Type": "application/json; charset=utf-8"
  55. },
  56. "RequestUrlParams": {},
  57. "RequestBody": "",
  58. "ResponseBody": "[{\"id\":78,\"grp_name\":\"tplB\",\"create_user\":\"userA\"},{\"id\":145,\"grp_name\":\"Owl_Default_Group\",\"create_user\":\"userA\"}]",
  59. "ResponseCode": 200
  60. }
  61. ]
  62. }
  63. ]
  64. }