---
title: Get the List of Locations
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/fetch-location-roster
---

# Get the List of Locations

Obtain a list of the locations the server manages.

## URL

POST https://mdmenrollment.apple.com/roster/class/location

## Response Codes

200 OK: The request was successful. The server returns a list of locations. 400 Bad Request: The server was unable to process the request.

## HTTP Body

The object containing the request information.

## Topics

### Response

- [RosterClassLocationResponse](devicemanagement/rosterclasslocationresponse.md)

## See Also

### Location management

- [BaseRosterLocation](devicemanagement/baserosterlocation.md)
- [RosterLocation](devicemanagement/rosterlocation.md)
- [Sync the Locations](devicemanagement/fetch-location-roster-sync.md)
