Prisma Public Cloud (formerly Redlock) API: lastModifiedTs - What format is this in?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prisma Public Cloud (formerly Redlock) API: lastModifiedTs - What format is this in?

L1 Bithead

In the below JSON return on the /cloud API, lastModifiedTs and addedOn are dates. However, I can't find info on the format they're on.

 

{
        "name": xxxxx,
        "cloudType": xxxxx,
        "accountType": xxxxx,
        "enabled": true,
        "lastModifiedTs": 1551071384318,
        "lastModifiedBy": xxxxx,
        "ingestionMode": xxxxx,
        "groupIds": [
            "xxxxx"
        ],
        "groups": [
            {
                "id": "xxxxx",
                "name": "xxxxx"
            }
        ],
        "status": "xxxxx",
        "accountId": "xxxxx",
        "addedOn": 1550453562553
    },

 

Anyone have any idea what format the date/times are, or how to format them?

 

Thanks!

 

EDIT: after marking solved, I found mention of the TimeMode in the API docs at: https://api.docs.redlock.io/reference#time-range-model

1 accepted solution

Accepted Solutions

L4 Transporter

It's in UNIX milliseconds time.  Most scripting languages convert using seconds, so you will likely have to divide the timestamp by 1000 then convert.

View solution in original post

1 REPLY 1

L4 Transporter

It's in UNIX milliseconds time.  Most scripting languages convert using seconds, so you will likely have to divide the timestamp by 1000 then convert.

  • 1 accepted solution
  • 4634 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!