While building an R81.20 MDS in my lab, I noticed read-only sessions get a UUID now:
➜ ~ curl -k https://standaloneR8110/web_api/login --header "Content-Type: application/json" -d '{"user":"admin","password":"1qaz!QAZ","read-only":true}'
{
"sid" : "Xqq38zvtE1plx4ni6Ut5y22KXPLQYQoanE8_sP1m-w8",
"url" : "https://standaloneR8110:443/web_api",
"session-timeout" : 600,
"last-login-was-at" : {...},
"read-only" : true,
"api-server-version" : "1.8.1",
"user-name" : "admin",
"user-uid" : "f15f2c0c-ca41-4d4f-ab1c-9c853e767005"
}
➜ ~ curl -k https://mdsR8120/web_api/login --header "Content-Type: application/json" -d '{"user":"admin","password":"1qaz!QAZ","read-only":true}'
{
"uid" : "00e564c5-a40c-41e7-9f07-cb2e2da33cc9",
"sid" : "SfhKiZMZE8rwZ5KeIuysfqiqzliqMo7F5D3g1OUlVyI",
"url" : "https://mdsR8120:443/web_api",
"session-timeout" : 600,
"read-only" : true,
"api-server-version" : "1.9",
"user-name" : "admin",
"user-uid" : "80617f9d-db66-4c0b-815d-4799d12eb3fd"
}
R81.20 SmartCenters also return a UUID. The missing "last-login-was-at" in the MDS output is because this was a new VM and I hadn't logged in before.