Location
The user can logically divide the location based on the area of AP used. Every AP can be tagged to a location. There are calls like Get Location which fetches the location hierarchy like Root-US-India-Pune and so on. There are various calls which provide details like location id, location name, timezone and such factors.
JSON Table
Attribute | Data Type | Description |
---|---|---|
type | String | The location type. The applicable values are:
|
id | application/json | |
id/type | String | Its the type of location ID. The applicable values are:
The remotelocationid ID type is applicable only in cluster environments. |
id/id | int | System-generated unique ID of the location. |
id/childId | int | It is an unique identifier for child servers in server cluster environment. Applicable only when location id type is remotelocationid. |
name | String | Name of the location. |
accessibleToUser | boolean | A true or false value indicating whether the user has rights to access this location. |
defaultLocation | boolean | A true or false value indicating whether the location is an ‘unknown’ location. |
timezoneId | String | The JAVA timezone ID of the location. |
locationTag | String | A user-defined tag for the location. |
children | application/json | A list of IDs of the child locations. The ID is a JSON object. |
children/type | Its the type of Child location ID. The applicable values are:
The remotelocationid ID type is applicable only in cluster environments. |
|
children/id | System-generated unique ID of the Child location. | |
children/name | Name of the Child location. | |
children/accessibleToUser | A true or false value indicating whether the user has rights to access this Child location | |
children/defaultLocation | A true or false value indicating whether the Child location is an ‘unknown’ location. | |
children/timezoneId | The JAVA timezone ID of the Child location. | |
children/locationTag | A user-defined tag for the Child location. | |
children/children | A list of IDs of the child locations. The ID is a JSON object. |
Copy Sample JSON
Sample JSON
{ "type": "folderlocation", "id": { "type": "locallocationid", "id": 0 }, "name": "Locations", "accessibleToUser": true, "defaultLocation": false, "timezoneId": "Asia/Calcutta", "locationTag": null, "children": [ { "type": "folderlocation", "id": { "type": "locallocationid", "id": -1 }, "name": "Unknown", "accessibleToUser": true, "defaultLocation": true, "timezoneId": "Asia/Calcutta", "locationTag": null, "children": [] }, . . . . . . . . . { "type": "folderlocation", "id": { "type": "locallocationid", "id": 3 }, "name": "Test1", "accessibleToUser": true, "defaultLocation": false, "timezoneId": "Asia/Calcutta", "locationTag": null, "children": [ { "type": "folderlocation", "id": { "type": "locallocationid", "id": 4 }, "name": "Child1", "accessibleToUser": true, "defaultLocation": false, "timezoneId": "Asia/Calcutta", "locationTag": null, "children": [] } ] } ] }
API Calls
/V5/locations
/V5/locations
/V5/locations
/V5/locations/move
/V5/locations/tree/subtree
/V5/locations