| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
This example modifies a user's session timeout:
% curl --user larry:letmein -3 -s -k -i -X PUT \
-H "Content-Type: application/json" -d @- \
https://tanana:215/api/appliance/v1/users/larry/preferences <<JSON
> {"session_timeout":60}
> JSON
HTTP/1.1 202 Accepted
Date: Wed, 24 Jul 2013 05:43:17 GMT
X-Zfs-Sa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 0
{
"preferences": {
"href": "appliance/v1/users/larry/preferences",
"locale": "C",
"login_screen": "status/dashboard",
"session_timeout": 60,
"advanced_analytics": false,
"keys": {}
}
}