PUT
/
storage
/
provisioning
/
v1
/
storage
Create storage
curl --request PUT \
  --url https://api.gcore.com/storage/provisioning/v1/storage \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "generate_sftp_password": true,
  "location": "s-ed1",
  "name": "<string>",
  "sftp_password": "<string>",
  "type": "sftp"
}'
{
  "address": "<string>",
  "can_restore": true,
  "client_id": 123,
  "created_at": "<string>",
  "credentials": {
    "keys": [
      {
        "created_at": "<string>",
        "id": 123,
        "name": "<string>"
      }
    ],
    "s3": {
      "access_key": "<string>",
      "secret_key": "<string>"
    },
    "sftp_password": "<string>"
  },
  "custom_config_file": true,
  "deleted_at": "<string>",
  "disable_http": true,
  "expires": "<string>",
  "id": 123,
  "location": "s-ed1",
  "name": "<string>",
  "provisioning_status": "<string>",
  "reseller_id": 123,
  "rewrite_rules": {},
  "server_alias": "<string>",
  "type": "sftp"
}

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
generate_sftp_password
boolean
location
enum<string>
Available options:
s-ed1,
s-darz1,
s-ws1,
s-dt2,
ams,
sin,
fra,
mia
name
string
sftp_password
string
type
enum<string>
Available options:
sftp,
s3

Response

Storage

address
string
can_restore
boolean
client_id
integer
created_at
string
credentials
object
custom_config_file
boolean
deleted_at
string
disable_http
boolean
expires
string
id
integer
location
enum<string>
Available options:
s-ed1,
s-ws1,
ams,
sin,
fra,
mia
name
string
provisioning_status
string
reseller_id
integer
rewrite_rules
object
server_alias
string
type
enum<string>
Available options:
sftp,
s3