Skip to main content
POST
/
storage
/
v4
/
object_storages
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
s3_storage_created = client.storage.object_storages.create(
    location_name="s-ed1",
    name="my-storage-prod",
)
print(s3_storage_created.id)
{
  "access_keys": [
    {
      "access_key": "AKIAIOSFODNN7EXAMPLE",
      "secret_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    }
  ],
  "address": "luxembourg-2.storage.example.com",
  "created_at": "2025-08-05T09:17:02Z",
  "id": 1,
  "location_name": "luxembourg-2",
  "name": "my-storage-prod",
  "provisioning_status": "active"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json
location_name
string
required

Location code where the storage should be created

Example:

"s-ed1"

name
string
required

User-defined name for the storage instance

Example:

"my-storage-prod"

Response

S3StorageResV4

access_keys
S3CredentialsV4 S3-compatible access key pair for authenticating requests to the storage endpoint. · object[]
required

S3 access keys

address
string
required

Full hostname/address for accessing the storage endpoint

Example:

"luxembourg-2.storage.example.com"

created_at
string<date-time>
required

ISO 8601 timestamp when the storage was created

Example:

"2025-08-05T09:17:02Z"

id
integer<int64>
required

Unique identifier for the storage instance

Example:

1

location_name
string
required

Geographic location code where the storage is provisioned

Example:

"luxembourg-2"

name
string
required

User-defined name for the storage instance

Example:

"my-storage-prod"

provisioning_status
enum<string>
required

Lifecycle status of the storage. Use this to check readiness before operations.

Available options:
creating,
active,
updating,
deleting,
deleted
Example:

"active"