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

Announcements
Attention: The LIVEcommunity is experiencing an interruption with videos in some areas. We apologize for any inconvenience this may cause. Thank you for your patience as we work towards a solution to restore videos.
Reply
Highlighted
L1 Bithead

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

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


Accepted Solutions
Highlighted
L4 Transporter

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

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


All Replies
Highlighted
L4 Transporter

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

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

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 Live Community as a whole!

The Live Community thanks you for your participation!