import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.create( bucket_name="bucket_name", storage_id=0,)
Copy
Ask AI
This response has no body data.
Storage
Create S3 bucket
Creates a new bucket within an S3 storage. Only applicable to S3-compatible storages.
POST
/
storage
/
provisioning
/
v1
/
storage
/
{storage_id}
/
s3
/
bucket
/
{bucket_name}
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.create( bucket_name="bucket_name", storage_id=0,)