API v2: Session Timestamping ๐ยถ
Note
To timestamp sessions, first you haveย toย enable and configure the timestamping feature. Goย toย Settings > System > Timestamping. For more information refer to the Timestamping section of the Fudo Enterprise Documentation.
Data Structures: SessionTimestampModelยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
ID of the session to timestamp. Immutable. |
|
string |
Timestamp details for the session. Read-only. |
Retrieve Available Attributes of the SessionTimestampModelยถ
Request
Method |
|
Path |
|
GET /api/v2/objspec/session_timestamp
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/session_timestamp'
Data Structures: TimestampModelยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
boolean |
Indicates whether timestamping is enabled. |
|
|
string{ |
||
|
string |
PKCS12 file. Protected. Requires |
|
|
string |
Required by |
Passphrase to use to decrypt PKCS12 file. Protected. |
|
string |
Timestamp certificate. Read-only. |
|
|
string |
Timestamp certificate expiration datetime. Format RFC3339. Read-only. |
Retrieve Available Attributes of the TimestampModelยถ
Request
Method |
|
Path |
|
GET /api/v2/objspec/timestamping
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/timestamping'
Get Session Timestamping Detailsยถ
Request
Method |
|
Path |
|
GET /api/v2/session/<session_id>/timestamp
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/4665729213955833864/timestamp'
Response: Session without timestamp
{
"result": "failure",
"message": "The session does not have a trusted timestamp."
}
Response: Timestamped session
Timestamp Sessionยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/session/<session_id>/timestamp
Example Request
curl -s -k -X POST \
-H 'Authorization: proxycrypto' \
'https://10.31.92.108/api/v2/session/4665729213955833858/timestamp'
Response: Timestamping not configured
{
"result": "failure",
"message": "Sessions timestamping is disabled."
}
Response: Timestamping configured
{
"result": "failure",
"message": "Sessions timestamping is disabled."
}
Delete Session Timestampingยถ
Request
Method |
|
Path |
|
DELETE /api/v2/session/<session_id>/timestamp
Example Request
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.87.227/api/v2/session/4665729213955833858/timestamp'
Response
{
"result": "success"
}