import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.storage.post_storage_objects(data={
"type": latitudesh_python_sdk.PostStorageObjectsType.OBJECTS,
"attributes": {
"project": "proj_6059EqYkOQj8p",
"name": "my-bucket",
"region": "DAL",
},
})
# Handle response
print(res)Creates a new object storage bucket for a project.
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.storage.post_storage_objects(data={
"type": latitudesh_python_sdk.PostStorageObjectsType.OBJECTS,
"attributes": {
"project": "proj_6059EqYkOQj8p",
"name": "my-bucket",
"region": "DAL",
},
})
# Handle response
print(res)Was this page helpful?