You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[**get_storage_transfer_status**](S3Api.md#get_storage_transfer_status) | **GET** /api/v1/storages/buckets/{bucket_id}/transfer-status | Получение статуса переноса хранилища от стороннего S3 в Timeweb Cloud
@@ -438,6 +439,88 @@ Name | Type | Description | Notes
438
439
439
440
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
440
441
442
+
# **get_storage**
443
+
> CreateStorage201Response get_storage(bucket_id)
444
+
445
+
Получение хранилища по ID
446
+
447
+
Чтобы получить хранилище по ID, отправьте GET-запрос на `/api/v1/storages/buckets/{bucket_id}`.
448
+
449
+
### Example
450
+
451
+
* Bearer (JWT) Authentication (Bearer):
452
+
```python
453
+
import time
454
+
import os
455
+
import timeweb_cloud_api
456
+
from timeweb_cloud_api.models.create_storage201_response import CreateStorage201Response
457
+
from timeweb_cloud_api.rest import ApiException
458
+
from pprint import pprint
459
+
460
+
# Defining the host is optional and defaults to https://api.timeweb.cloud
461
+
# See configuration.py for a list of all supported configuration parameters.
462
+
configuration = timeweb_cloud_api.Configuration(
463
+
host="https://api.timeweb.cloud"
464
+
)
465
+
466
+
# The client must configure the authentication and authorization parameters
467
+
# in accordance with the API server security policy.
468
+
# Examples for each auth method are provided below, use the example that
469
+
# satisfies your auth use case.
470
+
471
+
# Configure Bearer authorization (JWT): Bearer
472
+
configuration = timeweb_cloud_api.Configuration(
473
+
access_token= os.environ["BEARER_TOKEN"]
474
+
)
475
+
476
+
# Enter a context with an instance of the API client
477
+
with timeweb_cloud_api.ApiClient(configuration) as api_client:
**200** | Объект JSON c ключом `bucket` | - |
515
+
**400** | | - |
516
+
**401** | | - |
517
+
**403** | | - |
518
+
**404** | | - |
519
+
**429** | | - |
520
+
**500** | | - |
521
+
522
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
0 commit comments