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

Материал из WiKi - UserSide
(Normalize English API spelling to fiber)
(Fix Ukrainian API localization)
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
[[API_commutation_EN|en]] | [[API_commutation|ru]]
'''en''' | [[API_commutation_UK|uk]] | [[API commutation|ru]]


Section '''[[API_EN|API]]''' ERP "UserSide"
Section '''[[API_EN|API]]''' ERP "UserSide"
Строка 20: Строка 20:


  Description: Commutation of objects
  Description: Commutation of objects
  Obligatory parameters:
  Required parameters:
   object_type - object type [customer|switch|fiber|cross|splitter]
   object_type - object type [customer|switch|fiber|cross|splitter]
   object_id - object id
   object_id - object id
Строка 34: Строка 34:


  Description: Clearing commutation
  Description: Clearing commutation
  Obligatory parameters:
  Required parameters:
   object_type - Type of object [customer|device]
   object_type - Type of object [customer|device]
   object_id - object id
   object_id - object id
Строка 46: Строка 46:


  Description: Retrieve a commutation array
  Description: Retrieve a commutation array
  Obligatory parameters:
  Required parameters:
   object_type - The type of object to select [customer|switch|radio|cross|fiber|splitter]
   object_type - The type of object to select [customer|switch|radio|cross|fiber|splitter]
  Optional parameters:
  Optional parameters:

Текущая версия от 11:37, 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
Required 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
Required 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
Required 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
   )