Here are some of the utility APIs provided by NormShield.
Ticks Operations
Some of the APIs use a type of parameter which contain date time information, such as lastruninticks. Most of the time this parameter is used for getting relevant information that take place after a specific date time. Vulnerabilities and alarms produced by NormShield are the two important information in this category.
Important: NormShield uses .NET's DateTime ticks whose value represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001.
Convert Date to Ticks
The API endpoint below converts a DateTime (YYYMMddhhmmss) into .NET's ticks.
http://nsserver/api/util/convert2tick?date=20151228121100
Response:
635869014600000000
Convert Ticks to DateTime
The API endpoint below converts a NET's ticks value into DateTime (YYYMMddhhmmss).
http://nsserver/api/util/convert2date?tick=635869014600000000
2015-12-28T12:11:00
0 Comments