Storage
Exposes FIO Storage data for users. All storage data requires a FIO API KEY. You will need to have access to the data the user has in FIO in order to access it.
Example:
Storage
Bases: AbstractStorage
, AbstractEndpoint
get
Gets users storage data from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoStorageData
|
Username has no storage data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Name | Type | Description |
---|---|---|
StorageList |
StorageList
|
List of storages |
Source code in fio_wrapper/endpoints/endpoints_v1/storage.py
get_specific
Gets users specific storage data from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
specific |
str
|
StorageId, PlanetId, PlanetNaturalId or PlanetName |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoStorageData
|
Username has no storage data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Name | Type | Description |
---|---|---|
StorageModel |
Storage
|
Storage data |
Source code in fio_wrapper/endpoints/endpoints_v1/storage.py
planets
Returns a list of storages from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoStorageData
|
Username has no storage data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Type | Description |
---|---|
List[str]
|
List[str]: List of StorageIds |