Create a volume
To create a standalone volume, you must provide a uniquename and specify its size in megabytes (MB). You can also specify optional labels. This volume exists independently of any resource it may later be attached to.
Set up authentication to Blaxel
Set up authentication to Blaxel
The Blaxel SDK authenticates with your workspace using credentials from these sources, in priority order:
- when running on Blaxel, authentication is handled automatically
- variables in your
.envfile (BL_WORKSPACEandBL_API_KEY, or see this page for other authentication options). - environment variables from your machine
- configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)
Delete a volume
Delete a volume by calling:-
the class-level
delete()method with the volumenameas argument, or -
by calling the instance-level
delete()method:
Resize a volume
Currently, it is only possible to increase the volume size (not decrease it).
-
the class-level
update()method with the volumenameand new size as argument, or -
by calling the instance-level
update()method with the new size as argument:
