This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:format:unit [10/12/2019 06:38] chdi [Custom properties] |
en:sidebar:remoteapi:apiref:format:unit [10/02/2025 11:15] (current) zant [General properties] |
||
---|---|---|---|
Line 42: | Line 42: | ||
"cls":<uint>, /* superclass ID: "avl_unit" */ | "cls":<uint>, /* superclass ID: "avl_unit" */ | ||
"id":<uint>, /* unit ID */ | "id":<uint>, /* unit ID */ | ||
- | "uacl":<uint> /* current user access level for unit */ | + | "uacl":<long> /* current user access level for unit */ |
} | } | ||
</code> | </code> | ||
Line 62: | Line 62: | ||
/* used one of parameters to choose source of color for track */ | /* used one of parameters to choose source of color for track */ | ||
"sensors_colors":<text>, /* table of colors for track by sensor */ | "sensors_colors":<text>, /* table of colors for track by sensor */ | ||
+ | "label_color":<text>, /* unit label color */ | ||
"solid_colors":<text>, /* color for track */ | "solid_colors":<text>, /* color for track */ | ||
"speed_colors":<text>, /* table of colors for track by speed */ | "speed_colors":<text>, /* table of colors for track by speed */ | ||
Line 165: | Line 166: | ||
"ph2":<text>, /* second phone number */ | "ph2":<text>, /* second phone number */ | ||
"psw":<text> /* password */ | "psw":<text> /* password */ | ||
+ | "act":<bool> /* unit deactivated - 0, activated - 1 */ | ||
+ | "dactt":<long> /* deactivation time UNIX, 0 - unit is activated */ | ||
+ | "vp":{ /* video properties */ | ||
+ | "packets": <int>, /* number of purchased traffic packages */ | ||
+ | "bytes_in": <long>, /* consumed traffic */ | ||
+ | "bytes_limit": <long>, /* traffic limit */ | ||
+ | "hdd_used": <long>, /* total size of files in storage */ | ||
+ | "hdd_limit": <long>, /* storage limit */ | ||
+ | "autopay": <int>, /* set limit for auto-purchase of traffic packages */ | ||
+ | "status_flags": <int>, /* billing status in bits. 1 - active by the system, 2 - active by the user */ | ||
+ | "available_traffic": <long>, /* available traffic */ | ||
+ | "status_ch_ts": <long> /* last time the traffic count was updated */ | ||
+ | } | ||
+ | |||
} | } | ||
</code> | </code> | ||
Line 229: | Line 244: | ||
"vt":<uint>, /* validation type */ | "vt":<uint>, /* validation type */ | ||
"vs":<uint>, /* validation sensor ID */ | "vs":<uint>, /* validation sensor ID */ | ||
+ | "ct":<uint>, /* sensor creation time*/ | ||
+ | "mt":<uint>, /* sensor modification time*/ | ||
"tbl":[ /* calculation table */ | "tbl":[ /* calculation table */ | ||
{ /* parameters */ | { /* parameters */ |
|