All URIs are relative to https://{username}:{password}@localhost:{port}/{basePath}
Method | HTTP request | Description |
---|---|---|
api_v2_storages_get | GET /api/v2/storages | Storage list |
api_v2_storages_show_get | GET /api/v2/storages/show | Show storages |
api_v2_storages_storageid_get | GET /api/v2/storages/{storageid} | Find storage by StorageId |
api_v2_storages_storageid_mount_get | GET /api/v2/storages/{storageid}/mount | Mount storage |
api_v2_storages_storageid_release_get | GET /api/v2/storages/{storageid}/release | Release storage |
api_v2_storages_storageid_show_get | GET /api/v2/storages/{storageid}/show | Show storage |
api_v2_storages_storageid_status_get | GET /api/v2/storages/{storageid}/status | Storage status |
api_v2_storages_storageid_umount_get | GET /api/v2/storages/{storageid}/umount | Umount storage |
InlineResponse20024 api_v2_storages_get(limit=limit)
Storage list
Get storage list.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
limit = 56 # int | Item limit (optional)
try:
# Storage list
api_response = api_instance.api_v2_storages_get(limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | Item limit | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20031 api_v2_storages_show_get(name=name, output=output)
Show storages
Get 'show storages' bconsole command output
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
name = 'name_example' # str | Storage name (optional)
output = 'output_example' # str | Output format (optional)
try:
# Show storages
api_response = api_instance.api_v2_storages_show_get(name=name, output=output)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_show_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Storage name | [optional] |
output | str | Output format | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20025 api_v2_storages_storageid_get(storageid)
Find storage by StorageId
Get storage by specific Storage identifier.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
try:
# Find storage by StorageId
api_response = api_instance.api_v2_storages_storageid_get(storageid)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20028 api_v2_storages_storageid_mount_get(storageid, drive, device, slot)
Mount storage
Mount storage
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
drive = 56 # int | Storage drive
device = 'device_example' # str | Storage device (can be used instead drive)
slot = 56 # int | Storage slot
try:
# Mount storage
api_response = api_instance.api_v2_storages_storageid_mount_get(storageid, drive, device, slot)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_mount_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier | |
drive | int | Storage drive | |
device | str | Storage device (can be used instead drive) | |
slot | int | Storage slot |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20030 api_v2_storages_storageid_release_get(storageid, drive, device)
Release storage
Release storage
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
drive = 56 # int | Storage drive
device = 'device_example' # str | Storage device (can be used instead drive)
try:
# Release storage
api_response = api_instance.api_v2_storages_storageid_release_get(storageid, drive, device)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_release_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier | |
drive | int | Storage drive | |
device | str | Storage device (can be used instead drive) |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20026 api_v2_storages_storageid_show_get(storageid, output=output)
Show storage
Get 'show storages' bconsole command output for specific storage
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
output = 'output_example' # str | Output format (optional)
try:
# Show storage
api_response = api_instance.api_v2_storages_storageid_show_get(storageid, output=output)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_show_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier | |
output | str | Output format | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20027 api_v2_storages_storageid_status_get(storageid, output=output, type=type)
Storage status
Get storage status for specific storage
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
output = 'output_example' # str | Output format (optional)
type = 'type_example' # str | Output type using together with output=json parameter. (optional)
try:
# Storage status
api_response = api_instance.api_v2_storages_storageid_status_get(storageid, output=output, type=type)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_status_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier | |
output | str | Output format | [optional] |
type | str | Output type using together with output=json parameter. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20029 api_v2_storages_storageid_umount_get(storageid, drive, device)
Umount storage
Umount storage
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoragesApi()
storageid = 56 # int | Storage identifier
drive = 56 # int | Storage drive
device = 'device_example' # str | Storage device (can be used instead drive)
try:
# Umount storage
api_response = api_instance.api_v2_storages_storageid_umount_get(storageid, drive, device)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoragesApi->api_v2_storages_storageid_umount_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
storageid | int | Storage identifier | |
drive | int | Storage drive | |
device | str | Storage device (can be used instead drive) |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]