---
title: "List devices with location information"
method: GET
path: "/network-services/v1/sites/{site-id}/device-locations"
tags: ["Location"]
---

# List devices with location information

`GET /network-services/v1/sites/{site-id}/device-locations`

## Request

- Base URL: `https://sso.common.cloud.hpe.com`
- URL: `https://sso.common.cloud.hpe.com/network-services/v1/sites/{site-id}/device-locations`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://sso.common.cloud.hpe.com/as/token.oauth2`
- TypeScript: <https://skmtc.dev/arubanetworks/apis/authorization/docs/network-services/v1/sites/:site-id/device-locations/get.ts> (a function with typed inputs; its response is checked against the schema)

This API endpoint retrieves a list of network devices that have been assigned location information (e.g. after being placed on a floorplan and/or automatically determined by the system). Each device in the returned list includes details like serial number, MAC address, IP address, consolidated location, etc. The consolidated location of a device is the best known location of the device (x/y coordinates on the floorplan and/or latitude/longitude geographic coordinates) with the administrator-specified position always taking precedence.  The query parameters allow you to narrow down the results to devices that meet specific criteria, ensuring you receive only the relevant data. Device lists are restricted to a single site represented by the required site-id query parameter.

## Path parameters

- `site-id` string, uuid, required: Site ID associated with the device commonly in UUID format.

## Query parameters

- `filter` string, const: OData Version 4.0 filter string (limited functionality). Supports only 'eq' operations ('gt', 'ge', 'lt', 'le' and 'in' are NOT supported). Supports only 'and' conjunction ('or' and 'not' are NOT supported). Supported filter fields are: floorId and buildingId.
- `limit` integer: Denotes the maximum number of devices returned in the response. (Default: 100)
- `next` string: Specifies the pagination cursor for the next page of resources.
- `with-location` boolean

## Response `200`

Returned device list with their consolidated locations.

- ListDeviceLocationSummary: List of devices with their consolidated location.
  - `items` DeviceLocationSummary[], required
    - `id` string, const, required: Uniquely generated ID for a device location.
    - `serialNumber` string, const: The device serial number.
    - `type` 'ACCESS_POINT' | 'SWITCH' | 'GATEWAY', required: A string indicating the networking device type.
    - `createdAt` unknown, required
    - `siteId` string, uuid, required: Site ID associated with the device commonly in UUID format.
    - `buildingId` unknown
    - `floorId` unknown, required
    - `floorLevel` unknown
    - `tenantId` unknown
    - `ipv4` unknown
    - `ipv6` unknown
    - `macAddress` unknown
    - `model` unknown
    - `deployment` unknown
    - `status` 'ONLINE' | 'OFFLINE'
    - `consolidatedLocation` Location: Longitude, latitude, altitude and floor position. The system can return location uncertainty in two formats. The **LCIUncertainty** field is a similar ellipse but with a fixed orientation such that its axes are parallel to the north-south and east-west geographic directions. The system will return both uncertainty representations if they are available. Note that for a given data set the uncertaintyEllipse will always describe an area equal to or smaller than the LCIUncertainty.
      - `source` 'ADMIN_SPECIFIED' | 'SYSTEM_GENERATED', required: Source of the device coordinates. * 'ADMIN_SPECIFIED' - The device location was administratively entered. * 'SYSTEM_GENERATED' - The location automatically determined by the system.
      - `timestamp` unknown, required
      - `cartesianCoordinates` CartesianCoordinates: The x and y coordinates on the plane representing the associated floorplan for this device.
        - `unit` 'METERS' | 'FEET': The units of measure for xPosition and yPosition.
        - `xPosition` unknown, required
        - `yPosition` unknown, required
      - `center` Center, required: Contains the coordinates of the center of the area of location uncertainty for the device.
        - `longitude` unknown, required
        - `latitude` unknown, required
      - `lciUncertainty` LCIUncertainty: Uncertainty ellipse centered on the latitude and longitude of the "center" field of the parent object. The axes of this ellipse are parallel to north-south and east-west directions.
        - `longitudeUncertainty` unknown, required
        - `latitudeUncertainty` unknown, required
        - `confidenceLevel` unknown
      - `altitude` Altitude: Describes a vertical elevation.
        - `elevationType` 'ABOVE_MEAN_SEA_LEVEL' | 'ABOVE_GROUND_LEVEL' | 'UNKNOWN', required: Identifies the vertical datum used to measure the device elevation. * 'ABOVE_MEAN_SEA_LEVEL' - Above Mean Sea Level, the elevation in meters in relation to the zero set by the vertical WGS 84 datum * 'ABOVE_GROUND_LEVEL' - Above Ground Level, the elevation in meters above the local ground level * 'UNKNOWN' - The elevation type is unknown
        - `elevation` unknown, required
        - `elevationUncertainty` unknown
  - `count` integer, required: The number of objects returned in the current list (maximum will be the page size).
  - `total` integer, required: The total number of objects contained in the datastore.
  - `next` string, const: An opaque cursor which could be passed in the next query to fetch the next page. Set to null when no more pages remain.

## Other responses

- `400`: Invalid input received.
- `401`: Unauthorized. Authentication credentials are required or invalid.
- `403`: Forbidden: Access is denied.
- `429`: Too Many Requests. The user has sent too many requests in a given amount of time.
- `500`: Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.dev/arubanetworks/apis/authorization.md) - [All operations](https://skmtc.dev/arubanetworks/apis/authorization/llms.txt) - [OpenAPI document](https://skmtc.dev/arubanetworks/apis/authorization/revisions/74c95058b11f?raw)
