Get disk information
Gets information about the current disk
- Parameters
- Advanced call ?
Function GetDiskInformation(Val Token) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
Returns
Map Of KeyAndValue - serialized JSON response from Yandex
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Result = OPI_YandexDisk.GetDiskInformation(Token);
- Bash
- CMD/Bat
oint yadisk GetDiskInformation \
--token "***"
oint yadisk GetDiskInformation ^
--token "***"
Result
{
"total_space": 220117073920,
"used_space": 57821484862,
"trash_size": 50935142903,
"max_file_size": 53687091200,
"paid_max_file_size": 53687091200,
"photounlim_size": 0,
"system_folders": {
"downloads": "disk:/Загрузки/",
"applications": "disk:/Приложения",
"screenshots": "disk:/Скриншоты/",
"photostream": "disk:/Фотокамера/",
"social": "disk:/Социальные сети/",
"facebook": "disk:/Социальные сети/Facebook",
"google": "disk:/Социальные сети/Google+",
"instagram": "disk:/Социальные сети/Instagram",
"vkontakte": "disk:/Социальные сети/ВКонтакте",
"mailru": "disk:/Социальные сети/Мой Мир",
"odnoklassniki": "disk:/Социальные сети/Одноклассники",
"scans": "disk:/Сканы",
"attach": "disk:/Почтовые вложения",
"messenger": "disk:/Файлы Мессенджера",
"calendar": "disk:/Материалы встреч"
},
"is_paid": true,
"revision": 1779803038756684,
"user": {
"uid": "1573541518",
"login": "bayselonarrend",
"display_name": "bayselonarrend",
"country": "by",
"is_child": false,
"reg_time": "2024-02-01T12:13:41+00:00"
},
"unlimited_autoupload_enabled": false,
"reg_time": "2024-02-01T12:13:41+00:00",
"is_idm_managed_public_access": false,
"is_idm_managed_folder_address_access": false,
"is_sync_shared_folder_desktop": false,
"is_sync_vd_desktop": false,
"payment_flow": true,
"hide_screenshots_in_photoslice": false,
"is_legal_entity": false,
"monthly_traffic_limit": 2,
"monthly_traffic_limit_upgrades": {
"pro": 3
},
"file_size_limit_upgrades": {
"paid": 53687091200,
"pro": 107374182400
}
}