Get list of storages
Get list of available files storages
Function GetStoragesList(Val URL, Val Token = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
Token | --token | String | ✖ | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
tip
Method at API documentation: disk.storage.getlist
1C:Enterprise/OneScript code example
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
Result = OPI_Bitrix24.GetStoragesList(URL);
URL = "b24-ar17wx.bitrix24.by";
Token = "35c31667006e9f06006b12e400000001000...";
Result = OPI_Bitrix24.GetStoragesList(URL, Token);
- Bash
- CMD/Bat
oint bitrix24 GetStoragesList \
--url "b24-ar17wx.bitrix24.by" \
--token "***"
oint bitrix24 GetStoragesList ^
--url "b24-ar17wx.bitrix24.by" ^
--token "***"
Result
{
"result": [
{
"ID": "1",
"NAME": "Антон Титовец",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "1",
"ROOT_OBJECT_ID": "1"
},
{
"ID": "3",
"NAME": "Общий диск",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "common",
"ENTITY_ID": "shared_files_s1",
"ROOT_OBJECT_ID": "3"
},
{
"ID": "4",
"NAME": "Payment Processing Customer Support",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "2",
"ROOT_OBJECT_ID": "4"
},
{
"ID": "10",
"NAME": "CoPilot",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "4",
"ROOT_OBJECT_ID": "52"
},
{
"ID": "12",
"NAME": "Поддержка Битрикс24",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "6",
"ROOT_OBJECT_ID": "70"
},
{
"ID": "14",
"NAME": "Марта",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "8",
"ROOT_OBJECT_ID": "72"
},
{
"ID": "16",
"NAME": "iscript13@gmail.com",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "10",
"ROOT_OBJECT_ID": "270"
},
{
"ID": "20",
"NAME": "oarismos@gmail.com",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "12",
"ROOT_OBJECT_ID": "2810"
},
{
"ID": "26",
"NAME": "yo@exepmple.com",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "18",
"ROOT_OBJECT_ID": "4602"
},
{
"ID": "42",
"NAME": "f9535def-46c6-44af-950c-6f3f7767f5d2@exepmple.org",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "34",
"ROOT_OBJECT_ID": "4618"
},
{
"ID": "44",
"NAME": "Олег Лама",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "36",
"ROOT_OBJECT_ID": "4620"
},
{
"ID": "46",
"NAME": "d95a9fe7-48e3-406c-ae52-62c4f4a55a10@exepmple.org",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "38",
"ROOT_OBJECT_ID": "4622"
},
{
"ID": "48",
"NAME": "Олег Лама",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "40",
"ROOT_OBJECT_ID": "4624"
},
{
"ID": "50",
"NAME": "5565fd7a-6cbc-4e3b-ad9a-07ed12dc1c60@exepmple.org",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "42",
"ROOT_OBJECT_ID": "4626"
},
{
"ID": "52",
"NAME": "Олег Лама",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "44",
"ROOT_OBJECT_ID": "4628"
},
{
"ID": "54",
"NAME": "6f72690f-e2b8-4437-87e5-38c1411dd757@exepmple.org",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "user",
"ENTITY_ID": "46",
"ROOT_OBJECT_ID": "4630"
},
{
"ID": "56",
"NAME": "Олег Лама",
"CODE": null,
...