Skip to main content
POST
/
storage
/
filesystems
Python (SDK)
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_WeGoqAvYDP7nz",
            "name": "my-data",
        },
    })

    # Handle response
    print(res)
{
  "data": {
    "id": "fs_AW6Q2D9lqKLpr",
    "type": "filesystems",
    "attributes": {
      "name": "my-data",
      "size_in_gb": 1500,
      "created_at": "2025-07-16T18:37:09.000Z",
      "project": {
        "id": "proj_kjQwdE2bqYNVP",
        "name": "Heavy Duty Leather Clock",
        "slug": "heavy-duty-leather-clock",
        "description": "Incredible Concrete Lamp",
        "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_7YZVxK842zilY8kll6lVTWbX8j5m",
        "name": "552 Team",
        "slug": "552-team",
        "description": "552 Team",
        "address": "524 Samuel Square, Port Abramfurt, UT 07649-3772",
        "status": "verified",
        "currency": {
          "id": "cur_AW6Q2D9lqKLpr",
          "code": "BRL",
          "name": "Brazilian Real",
          "currency_id": null
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Body

data
object
required

Response

201 - application/vnd.api+json

Created

data
object
I