AnsweredAssumed Answered

Mobility Services API Response

Question asked by deepak.dhankhar on Sep 4, 2014
Latest reply on Sep 10, 2014 by pwalawal

Hi There,

 

I am new to the whole CISCO API's. After reading the online documentation I started calling our Contextaware api's but few things are not making any sense. May be I am doing something wrong.

 

The API I was calling is below. My understanding is that this API will return all the events related to the provided Mac Address.

 

https://<ipaddress>/api/contextaware/v1/location/history/clients/20:64:32:43:1w:4a?locatedAfterTime=2014-09-04T00%3A00%3A00.000%2B1000&page=1&pageSize=50

 

but the response doesn't have this mac address. there were other 15 records in this response but I only put first three here. Didn't want to dump the whole thing in this questions.

 

Is this normal behavior or something is wrong?

 

{

    "Locations": {

        "totalPages": 1,

        "currentPage": 1,

        "pageSize": 18,

        "entries": [

            {

                "macAddress": "f8:db:7f:81:bb:95",

                "currentlyTracked": true,

                "confidenceFactor": 184,

                "historyLogReason": "SIGNIFICANT_MOVEMENT",

                "band": "UNKNOWN",

                "isGuestUser": false,

                "dot11Status": "PROBING",

                "MapInfo": {

                    "mapHierarchyString": "System Campus>NW0839>Ground Floor",

                    "floorRefId": -6046596877913159816,

                    "Dimension": {

                        "length": 199.14699,

                        "width": 318.89764,

                        "height": 13.12336,

                        "offsetX": 0,

                        "offsetY": 0,

                        "unit": "FEET"

                    },

                    "Image": {

                        "imageName": "domain_0_1387234189645.png"

                    }

                },

                "MapCoordinate": {

                    "x": 183.22,

                    "y": 101.29,

                    "unit": "FEET"

                },

                "Statistics": {

                    "currentServerTime": "2014-09-04T13:41:04.619+1000",

                    "firstLocatedTime": "2014-09-04T10:54:15.987+1000",

                    "lastLocatedTime": "2014-09-04T10:57:06.479+1000"

                }

            },

            {

                "macAddress": "7c:c5:37:9c:9b:3b",

                "currentlyTracked": true,

                "confidenceFactor": 112,

                "historyLogReason": "SECURITY_POLICY_CHANGE",

                "band": "UNKNOWN",

                "isGuestUser": false,

                "dot11Status": "PROBING",

                "MapInfo": {

                    "mapHierarchyString": "System Campus>Location 1>Level 4",

                    "floorRefId": -6046596877913161142,

                    "Dimension": {

                        "length": 273.62204,

                        "width": 357.28348,

                        "height": 9.84252,

                        "offsetX": 0,

                        "offsetY": 0,

                        "unit": "FEET"

                    },

                    "Image": {

                        "imageName": "domain_0_1379557127284.png"

                    }

                },

                "MapCoordinate": {

                    "x": 235.9,

                    "y": 80.95,

                    "unit": "FEET"

                },

                "Statistics": {

                    "currentServerTime": "2014-09-04T13:41:04.620+1000",

                    "firstLocatedTime": "2014-09-04T10:54:16.090+1000",

                    "lastLocatedTime": "2014-09-04T10:55:59.072+1000"

                }

            },

            {

                "macAddress": "a8:8e:24:11:21:f6",

                "currentlyTracked": true,

                "confidenceFactor": 192,

                "historyLogReason": "NETWORK_STATUS_CHANGE",

                "band": "UNKNOWN",

                "isGuestUser": false,

                "dot11Status": "PROBING",

                "MapInfo": {

                    "mapHierarchyString": "System Campus>Location 1>Level 4",

                    "floorRefId": -6046596877913161142,

                    "Dimension": {

                        "length": 273.62204,

                        "width": 357.28348,

                        "height": 9.84252,

                        "offsetX": 0,

                        "offsetY": 0,

                        "unit": "FEET"

                    },

                    "Image": {

                        "imageName": "domain_0_1379557127284.png"

                    }

                },

                "MapCoordinate": {

                    "x": 210.63,

                    "y": 161.38,

                    "unit": "FEET"

                },

                "Statistics": {

                    "currentServerTime": "2014-09-04T13:41:04.620+1000",

                    "firstLocatedTime": "2014-09-04T10:54:16.232+1000",

                    "lastLocatedTime": "2014-09-04T10:54:56.099+1000"

                }

            }

        ]

    }

}

Outcomes