POST
/
storage
/
provisioning
/
v1
/
storage
/
{id}
/
credentials
curl --request POST \
  --url https://api.gcore.com/storage/provisioning/v1/storage/{id}/credentials \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "delete_sftp_password": true,
  "generate_s3_keys": true,
  "generate_sftp_password": true,
  "reset_sftp_keys": true,
  "sftp_password": "<string>"
}'
{
  "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

APIKey
string
header
required

API key for authentication.

Path Parameters

id
integer
required

Body

application/json

Response

200
application/json

Storage

The response is of type object.