summaryrefslogtreecommitdiffstats
path: root/resources/consulhelp.txt
blob: 433325581a73e7a3fdc12eca97c6f1ddb3be9b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
  "items": [
    {
      "Description": "Get all the services",
      "request": {
        "endpoint": "/healthservices/services",
        "method": "GET"
      }
    },
    {
      "Description": "Get all the nodes",
      "request": {
        "endpoint": "/healthservices/nodes",
        "method": "GET"
      }
    },
    {
      "Description": "Get all the datacenters",
      "request": {
        "endpoint": "/healthservices/datacenters",
        "method": "GET"
      }
    },
    {
      "Description": "Get all the health checks for the service",
      "request": {
        "endpoint": "/healthservices/services/<service_name>",
        "method": "GET"
      }
    },
    {
      "Description": "Get all the health checks for the nodes",
      "request": {
        "endpoint": "/healthservices/nodes/<node_name>",
        "method": "GET"
      }
    },
    {
      "Description": "Register a new service",
      "request": {
        "endpoint": "/healthservices/register",
        "method": "POST",
        "requestBodyType": "JSON",
        "requestBody": {
          "services": [
            {
              "id": "<service_id>",
              "name": "<service_name>",
              "tags": [
                
              ],
              "address": "<service_address>",
              "port": "<service_port>",
              "checks": [
                {
                  "endpoint": "<http url for status>",
                  "interval": "<frequency to check health> e.g. 10s|10m",
                  "description": "<human readable description of the check",
                  "name": "<name of the check>"
                },
                {
                  "endpoint": "<http url for status>",
                  "interval": "<frequency to check health> e.g. 10s|10m",
                  "description": "<human readable description of the check",
                  "name": "<name of the check>"
                },
                
              ]
            }
          ]
        }
      }
    },
    {
      "Description": "Deregister a service",
      "request": {
        "endpoint": "/healthservices/register/<service_id>",
        "method": "POST"
      }
    },
    {
      "Description": "Get Historical Data for a service",
      "request": {
        "endpoint": "/healthservices/svchist/<service_id>?start=yyyy-MM-dd'T'HH:mm:ss.SSZ&end=yyyy-MM-dd'T'HH:mm:ss.SSZ",
        "method": "GET"
      }
    }
  ]
}