Skip to main content
POST
/
v1
/
projects
/
{name}
/
disks
/
{dname}
/
ftp
Create ftp
curl --request POST \
  --url https://api.iran.liara.ir/v1/projects/{name}/disks/{dname}/ftp \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "readOnly": true
}
'
{
  "username": "<string>",
  "password": "<string>",
  "host": "<string>"
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

name
string
required

The name of your app

dname
string
required

The name of your disk

Body

application/json

The plan of your app

username
string
required
readOnly
boolean
required

Response

Successful operation

username
string
password
string
host
string