Skip to main content

Get storage

Get information about storage

Function GetStorage(Val URL, Val StorageID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
StorageID--storageidString, NumberStorage ID
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: disk.storage.get


1C:Enterprise/OneScript code example
    URL       = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";
StorageID = 3;

Result = OPI_Bitrix24.GetStorage(URL, StorageID);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";

Result = OPI_Bitrix24.GetStorage(URL, StorageID, Token);
    oint bitrix24 GetStorage \
--url "b24-ar17wx.bitrix24.by" \
--storageid 3 \
--token "***"
Result
{
"result": {
"ID": "3",
"NAME": "Общий диск",
"CODE": null,
"MODULE_ID": "disk",
"ENTITY_TYPE": "common",
"ENTITY_ID": "shared_files_s1",
"ROOT_OBJECT_ID": "3"
},
"time": {
"start": 1728454799.33094,
"finish": 1728454799.36621,
"duration": 0.0352659225463867,
"processing": 0.00424385070800781,
"date_start": "2024-10-09T09:19:59+03:00",
"date_finish": "2024-10-09T09:19:59+03:00",
"operating_reset_at": 1728455399,
"operating": 0
}
}