curl --request POST \
--url https://iaas-api.liara.ir/vm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"OS": "ubuntu-24.04",
"plan": "standard-base-g2",
"config": {
"SSHKeys": [
"<string>"
]
}
}
'{
"taskID": "<string>"
}create a vm that user owns
curl --request POST \
--url https://iaas-api.liara.ir/vm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"OS": "ubuntu-24.04",
"plan": "standard-base-g2",
"config": {
"SSHKeys": [
"<string>"
]
}
}
'{
"taskID": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Lowercase vm name
The os name
ubuntu-24.04, ubuntu-22.04, debian-12.9 The plan of app that you want to create
standard-base-g2, standard-plus-g2, pro-g2, pro-plus-g2, express-g2, express-plus-g2 The config of vm that you want to create
Show child attributes
Successful operation