export_file

The export_file function is used to export the results of searching items as a XLSX file.

Copied!
svc=core/export_file&params={"spec":{
					"itemsType":"<text>",
					"propName":"<text>",
					"propValueMask":"<text>",
					"sortType":"<text>"
			    },
			    "force":<uint>,
			    "flags":<long> /* columns flags */ 
}

Flags:

ValueDescription
For the "user" itemsType

0x0001

Name.

0x0002

Creator.

0x0004

Account.

0x0008

Billing plan.

0x0010

Last visit.

0x0020Email.
0x0040Host.
0x0080Authentication type.
0x0100Phone number for two-factor authentication.
0x0200Status.
0x0400Permission to change the password.
0x0800Permission to create items.
0x1000Permission to change settings.
0x2000Permission to send SMS.
0x4000Time zone.
For the "avl_unit" itemsType

0x0001

Name.

0x0002

Creator.

0x0004

Account.

0x0008

Device type.

0x0010

Unique ID.

0x0020

Phone.

0x0040

Last message.

0x0080

Created.

0x0100

Custom fields.

0x0200

Groups.

0x0400

Deactivation.

For the "avl_unit_group" itemsType

0x0001

Name.

0x0002

Creator.

0x0004

Account.

0x0008

Units.

For the "avl_resource" itemsType

0x0001

Name.

0x0002

Creator.

0x0004

Parent account.

0x0008

Billing plan.

0x0010

Dealer rights.

0x0020

Units.

0x0040

Balance.

0x0080

Days.

0x0100

Status.

0x0200

Blocked.

0x0400Activated units.
For the "avl_retranslator" itemsType

0x0001

Name.

0x0002

Creator.

0x0004

Account.

0x0008

Protocol.

0x0010

Server.

0x0020

State.

0x0040

Units for retranslation.

0x0080

Unit unique ID.

Returned result

As a result, an XLSX file is returned.

Possible error codes:

CodeDescription
5Failed to fetch the current user.
4Wrong input parameters.
Download PDF file
Download Word document

See also