2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get disk information
|
|
|
|
Gets information about the current disk
|
|
|
|
|
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
`Function GetDiskInformation(Val Token) Export`
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
|
2024-06-05 12:19:46 +02:00
|
|
|
|
2024-07-10 13:05:58 +02:00
|
|
|
<br/>
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-07-10 12:58:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
```bsl title="Code example"
|
2024-08-13 14:52:26 +02:00
|
|
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
|
|
|
Result = OPI_YandexDisk.GetDiskInformation(Token);
|
2024-06-05 12:19:46 +02:00
|
|
|
```
|
2024-08-13 14:52:26 +02:00
|
|
|
|
2024-07-10 10:59:55 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
oint yadisk GetDiskInformation --token "y0_AgAAAABdylaOAAs0QgAAAAD5i-a..."
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-07-10 13:11:17 +02:00
|
|
|
{
|
2024-08-13 14:52:26 +02:00
|
|
|
"user": {
|
|
|
|
"login": "bayselonarrend",
|
|
|
|
"country": "by",
|
|
|
|
"uid": "1573541111",
|
|
|
|
"display_name": "bayselonarrend",
|
|
|
|
"is_child": false,
|
|
|
|
"reg_time": "2024-02-01T22:13:41+00:00"
|
|
|
|
},
|
|
|
|
"revision": 1707416628219047,
|
|
|
|
"system_folders": {
|
|
|
|
"photostream": "disk:/Photos/",
|
|
|
|
"screenshots": "disk:/Screenshots/",
|
|
|
|
"scans": "disk:/Scans",
|
|
|
|
"messenger": "disk:/Messenger files",
|
|
|
|
"facebook": "disk:/Social networks/Facebook",
|
|
|
|
"applications": "disk:/Apps",
|
|
|
|
"downloads": "disk:/Downloads/",
|
|
|
|
"mailru": "disk:/Social networks/My World",
|
|
|
|
"attach": "disk:/Mail attachments",
|
|
|
|
"instagram": "disk:/Social networks/Instagram",
|
|
|
|
"calendar": "disk:/Meeting materials",
|
|
|
|
"social": "disk:/Social networks/",
|
|
|
|
"vkontakte": "disk:/Social networks/VKontakte",
|
|
|
|
"google": "disk:/Social networks/Google+",
|
|
|
|
"odnoklassniki": "disk:/Social networks/Classmates"
|
|
|
|
},
|
|
|
|
"unlimited_autoupload_enabled": false,
|
|
|
|
"used_space": 73372937,
|
|
|
|
"trash_size": 0,
|
|
|
|
"reg_time": "2024-02-01T12:13:41+00:00",
|
|
|
|
"total_space": 5368709120,
|
|
|
|
"is_paid": false,
|
|
|
|
"paid_max_file_size": 53687091200,
|
|
|
|
"max_file_size": 1073741824
|
|
|
|
}
|
2024-06-05 12:19:46 +02:00
|
|
|
```
|