---
sidebar_position: 1
description: Get list of storages and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# 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 | &#x2714; | URL of webhook or a Bitrix24 domain, when token used |
  | Token | --token | String | &#x2716; | 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](https://dev.1c-bitrix.ru/rest_help/disk/storage/disk_storage_getlist.php)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
    Result = OPI_Bitrix24.GetStoragesList(URL);

    URL   = "b24-ar17wx.bitrix24.by";
    Token = "6ad03969006e9f06006b12e400000001000...";

    Result = OPI_Bitrix24.GetStoragesList(URL, Token);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint bitrix24 GetStoragesList \
             --url "b24-ar17wx.bitrix24.by" \
             --token "***"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint bitrix24 GetStoragesList ^
             --url "b24-ar17wx.bitrix24.by" ^
             --token "***"
        ```
    </TabItem>
</Tabs>


```json title="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": "Bitrix24 Sales team",
   "CODE": null,
   "MODULE_ID": "disk",
   "ENTITY_TYPE": "user",
   "ENTITY_ID": "2",
   "ROOT_OBJECT_ID": "4"
  },
  {
   "ID": "10",
   "NAME": "BitrixGPT",
   "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,
...
```
