From 344d78dc548f718f22b4fe5134c45ad0661bb61b Mon Sep 17 00:00:00 2001 From: Raja Nadar Date: Wed, 24 Oct 2018 07:33:25 -0700 Subject: [PATCH] website: update the response json fields for sessions (#4604) Updated the response json with the true response from Consul 1.2.2 --- website/source/api/session.html.md | 52 +++++++++++++++++++----------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/website/source/api/session.html.md b/website/source/api/session.html.md index 5ca37a2da6..90db44bf9f 100644 --- a/website/source/api/session.html.md +++ b/website/source/api/session.html.md @@ -177,13 +177,17 @@ $ curl \ ```json [ { - "LockDelay": 1.5e+10, + "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", + "Name": "test-session", + "Node": "raja-laptop-02", "Checks": [ "serfHealth" ], - "Node": "foobar", - "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", - "CreateIndex": 1086449 + "LockDelay": 1.5e+10, + "Behavior": "release", + "TTL": "30s", + "CreateIndex": 1086449, + "ModifyIndex": 1086449 } ] ``` @@ -229,14 +233,18 @@ $ curl \ ```json [ { - "LockDelay": 1.5e+10, + "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", + "Name": "test-session", + "Node": "raja-laptop-02", "Checks": [ "serfHealth" ], - "Node": "foobar", - "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", - "CreateIndex": 1086449 - }, + "LockDelay": 1.5e+10, + "Behavior": "release", + "TTL": "30s", + "CreateIndex": 1086449, + "ModifyIndex": 1086449 + } ] ``` @@ -276,14 +284,18 @@ $ curl \ ```json [ { - "LockDelay": 1.5e+10, + "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", + "Name": "test-session", + "Node": "raja-laptop-02", "Checks": [ "serfHealth" ], - "Node": "foobar", - "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", - "CreateIndex": 1086449 - }, + "LockDelay": 1.5e+10, + "Behavior": "release", + "TTL": "30s", + "CreateIndex": 1086449, + "ModifyIndex": 1086449 + } ] ``` @@ -328,15 +340,17 @@ $ curl \ ```json [ { - "LockDelay": 1.5e+10, + "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", + "Name": "test-session", + "Node": "raja-laptop-02", "Checks": [ "serfHealth" ], - "Node": "foobar", - "ID": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", - "CreateIndex": 1086449, + "LockDelay": 1.5e+10, "Behavior": "release", - "TTL": "15s" + "TTL": "15s", + "CreateIndex": 1086449, + "ModifyIndex": 1086449 } ] ```