API commutation EN: различия между версиями

Материал из WiKi - UserSide
(Normalize API language switcher)
(Add Ukrainian API docs and trilingual API links)
Строка 1: Строка 1:
[[API_commutation|ru]] | '''en'''
'''en''' | [[API_commutation_UK|uk]] | [[API commutation|ru]]


Section '''[[API_EN|API]]''' ERP "UserSide"
Section '''[[API_EN|API]]''' ERP "UserSide"

Версия от 08:27, 10 мая 2026

en | uk | ru

Section API ERP "UserSide"

Purpose: Commutation of objects

Additional parameters:
action - request subcategory (possible value: see below)

Subcategories

add

Modified in: 3.18.25 (added splitter variant to object_type, added splitter variant to object2_type)

Modified in: 3.14.71 (added cross variant to object_type, added cross variant to object2_type)

Modified in: 3.13.70 (added fiber variant to object_type, added fiber variant to object2_type, added object1_side and object2_side parameters)

Modified in: 3.12.59 (added object1_port parameter, added switch variant to object_type)

Description: Commutation of objects
Obligatory parameters:
 object_type - object type [customer|switch|fiber|cross|splitter]
 object_id - object id
 object1_side - side of object 1 (for cable lines)
 object1_port - port of object 1
 object2_type - type of object 2 [switch|fiber|cross|splitter]
 object2_id - object 2 id
 object2_side - side of object 2 (for cable lines)
 object2_port - object 2 port

delete

Modified in 3.14.56 (added device option to object_type, added object_port parameter)

Description: Clearing commutation
Obligatory parameters:
 object_type - Type of object [customer|device]
 object_id - object id
Optional parameters:
 object_port - Port number (for device)

get_data

Modified in 3.14.12 (added splitter variant to object_type)

Modified in 3.12.52 (radio option added to object_type)

Description: Retrieve a commutation array
Obligatory parameters:
 object_type - The type of object to select [customer|switch|radio|cross|fiber|splitter]
Optional parameters:
 object_id - id of the object to select
 is_finish_data - Flag - output the final commutation point
Optional returned data:
 array(
   [data] = array(
     [object_type] => Object type
     [object_id] => object id
     [direction] => Commutation side (e.g. for FOCL)
     [interface] => Interface number
     [comment] => Notes
     [connect_id] => switching record id
   )