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"
}
Creates storage and returns it
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"
}
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?