Layer7 API Management

 View Only

Epoch Time Policy for Gateway 

Nov 03, 2017 07:35 PM

The attached 'epochtime' policy was created after a use case was presented to CA APIM Support. In its current standing this policy can determine epoch time however with slight modifications it can serve as the framework for comparing other time values.

 

As the Gateway does not offer the functionality to report the epoch time we had to get creative with policy logic. Using a combination of assertions, including variables, xpath and evaluate math expression*, we were able to determine the epoch time by comparing the January 1st, 1970 date against the current gateway time (in UTC). Please note the accuracy of this epoch time will depend on the accuracy of the Gateway time (set manually or via precise NTP servers).

 

 

*Evaluate Math Expression Assertion can be obtained upon request from CA Support. 

Statistics
0 Favorited
9 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
epochtime.xml.zip   1 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.