import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.storage.create_filesystem(data={
"type": latitudesh_python_sdk.PostStorageFilesystemsStorageType.FILESYSTEMS,
"attributes": {
"project": "proj_lkg1De6ROvZE5",
"name": "my-data",
},
})
# Handle response
print(res){
"data": {
"id": "fs_AW6Q2D9lqKLpr",
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"created_at": "2026-01-14T15:57:07.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Small Leather Plate",
"slug": "small-leather-plate",
"description": "Awesome Marble Table",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {
"subscription_id": null,
"type": "Normal",
"method": "Normal"
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 1,
"virtual_machines": 0,
"vlans": 0
}
},
"team": {
"id": "team_13ljzVvQY2c2YN4lnMexSm79WgA",
"name": "592 Team",
"slug": "592-team",
"description": "592 Team",
"address": "247 Russ Station, New Freddy, OK 97400-4162",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Allows you to add persistent storage to a project. These filesystems can be used to store data across your servers.
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.storage.create_filesystem(data={
"type": latitudesh_python_sdk.PostStorageFilesystemsStorageType.FILESYSTEMS,
"attributes": {
"project": "proj_lkg1De6ROvZE5",
"name": "my-data",
},
})
# Handle response
print(res){
"data": {
"id": "fs_AW6Q2D9lqKLpr",
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"created_at": "2026-01-14T15:57:07.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Small Leather Plate",
"slug": "small-leather-plate",
"description": "Awesome Marble Table",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {
"subscription_id": null,
"type": "Normal",
"method": "Normal"
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 1,
"virtual_machines": 0,
"vlans": 0
}
},
"team": {
"id": "team_13ljzVvQY2c2YN4lnMexSm79WgA",
"name": "592 Team",
"slug": "592-team",
"description": "592 Team",
"address": "247 Russ Station, New Freddy, OK 97400-4162",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Was this page helpful?