The following describes a typical Traverse Web Services API workflow:
Web Services Operations
Depending on login credentials, Traverse exposes a certain set of objects. Each web service operation has the same basic structure:
statusCode
and statusMessage
field. The statusCode
should always be checked when receiving a response. A value of 0
indicates success, and any other value is either a warning or error with the description in the statusMessage
field.User Types
The Session Manager service defines three types of users:
End user
- An end user has restricted access to the system. For example, the member of a department.Admin user
- An admin user has limited administrative access to the system.Superuser
- A superuser has full access to the system.Objects in Traverse
The following types of objects are available in Traverse:
Each object is uniquely identified by a serial number, which is a positive 64-bit integer value. While object names can change, the serial number should be used as a key to uniquely identify objects.
Object Severity & Status
The status of the different objects is represented by an integer value:
Status |
Integer Value |
Description |
UNCONFIGURED |
0x00000008 |
Device is provisioned, but no tests have been created. |
SUSPENDED |
0x00000080 |
Test is not being run. |
OK |
0x00000800 |
Object is in OK state. |
TRANSIENT |
0x00004000 |
Object is flapping between OK and non-OK state. |
UNKNOWN |
0x00000800 |
|
UNREACHABLE |
0x00080000 |
|
WARNING |
0x00800000 |
Object is in Warning (yellow) state. |
CRITICAL |
0x08000000 |
Object is in Critical (red) state. |
FAIL |
0x40000000 |
|