curl --request POST \
--url https://api.gcore.com/storage/provisioning/v2/storage \
--header 'Authorization: <api-key>'
{
"address": "s-ed1.cloud.example.com",
"can_restore": true,
"client_id": 1,
"created_at": "2025-08-05 09:17:02.095832+00:00",
"credentials": {
"keys": [
{
"created_at": "2025-08-05 09:15:00+00:00",
"id": 123,
"name": "my-production-key"
}
],
"s3": {
"access_key": "AKIAIOSFODNN7EXAMPLE",
"secret_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
},
"sftp_password": "Xy9$mN2p!qR8"
},
"custom_config_file": false,
"deleted_at": "2025-08-05 10:30:15.123456+00:00",
"disable_http": false,
"expires": "2026-08-05 09:17:02.095832+00:00",
"id": 1,
"location": "s-ed1",
"name": "1-my-storage-prod",
"provisioning_status": "ok",
"reseller_id": 1,
"rewrite_rules": {},
"server_alias": "my-storage.example.com",
"type": "s3"
}
Creates a new storage instance (S3 or SFTP) in the specified location and returns the storage details including credentials.
curl --request POST \
--url https://api.gcore.com/storage/provisioning/v2/storage \
--header 'Authorization: <api-key>'
{
"address": "s-ed1.cloud.example.com",
"can_restore": true,
"client_id": 1,
"created_at": "2025-08-05 09:17:02.095832+00:00",
"credentials": {
"keys": [
{
"created_at": "2025-08-05 09:15:00+00:00",
"id": 123,
"name": "my-production-key"
}
],
"s3": {
"access_key": "AKIAIOSFODNN7EXAMPLE",
"secret_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
},
"sftp_password": "Xy9$mN2p!qR8"
},
"custom_config_file": false,
"deleted_at": "2025-08-05 10:30:15.123456+00:00",
"disable_http": false,
"expires": "2026-08-05 09:17:02.095832+00:00",
"id": 1,
"location": "s-ed1",
"name": "1-my-storage-prod",
"provisioning_status": "ok",
"reseller_id": 1,
"rewrite_rules": {},
"server_alias": "my-storage.example.com",
"type": "s3"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Storage
The response is of type object
.
Was this page helpful?