Get the Carrier Network as a hierarchical tree structure.
curl --request POST \
--url https://api-lg-k-h1.arms.cedarai.com/t/v1/network-hierarchy \
--header 'Carrier: <carrier>' \
--header 'Content-Type: application/json' \
--header 'x-arms-api-key: <api-key>' \
--header 'x-arms-assume-user: <api-key>' \
--data '
{
"scope": "main",
"sort_by_association": true
}
'{
"hierarchy": {
"roots": [
{
"children": [
{
"children": [
{
"children": [
{
"children": [],
"region": {
"attributes": {
"is_virtual": "Yes"
},
"groupingId": "1234",
"groupingType": "track",
"legacyGroupingId": "123",
"name": "Track 1",
"sortOrder": 0
}
}
],
"region": {
"attributes": {},
"groupingId": "789",
"groupingType": "station",
"legacyGroupingId": "789",
"name": "Station 1",
"sortOrder": 10
}
}
],
"region": {
"attributes": {},
"groupingId": "456",
"groupingType": "area",
"legacyGroupingId": "456",
"name": "Area 1",
"sortOrder": 10
}
}
],
"region": {
"attributes": {},
"groupingId": "12345",
"groupingType": "road",
"legacyGroupingId": "123",
"name": "ABC",
"sortOrder": 0
}
}
],
"scope": "main"
}
}Carrier ID
Request message for retrieving the carrier network hierarchy.
A successful response.
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api-lg-k-h1.arms.cedarai.com/t/v1/network-hierarchy \
--header 'Carrier: <carrier>' \
--header 'Content-Type: application/json' \
--header 'x-arms-api-key: <api-key>' \
--header 'x-arms-assume-user: <api-key>' \
--data '
{
"scope": "main",
"sort_by_association": true
}
'{
"hierarchy": {
"roots": [
{
"children": [
{
"children": [
{
"children": [
{
"children": [],
"region": {
"attributes": {
"is_virtual": "Yes"
},
"groupingId": "1234",
"groupingType": "track",
"legacyGroupingId": "123",
"name": "Track 1",
"sortOrder": 0
}
}
],
"region": {
"attributes": {},
"groupingId": "789",
"groupingType": "station",
"legacyGroupingId": "789",
"name": "Station 1",
"sortOrder": 10
}
}
],
"region": {
"attributes": {},
"groupingId": "456",
"groupingType": "area",
"legacyGroupingId": "456",
"name": "Area 1",
"sortOrder": 10
}
}
],
"region": {
"attributes": {},
"groupingId": "12345",
"groupingType": "road",
"legacyGroupingId": "123",
"name": "ABC",
"sortOrder": 0
}
}
],
"scope": "main"
}
}