curl --request GET \
--url https://iaas-api.liara.ir/vm/{id} \
--header 'Authorization: Bearer <token>'{
"_id": "<string>",
"plan": "<string>",
"OS": "<string>",
"state": "CREATED",
"config": {
"SSHKeys": [
"<string>"
],
"rootPassword": "<string>",
"hostname": "<string>"
},
"name": "<string>",
"createdAt": "<string>",
"guestState": "<string>",
"power": "POWERED_ON",
"IPs": [
{
"address": "<string>",
"version": "<string>"
}
],
"planDetails": {
"available": true,
"region": "<string>",
"monthlyPrice": 123,
"hourlyPrice": 123,
"volume": 123,
"RAM": {
"amount": 123
},
"CPU": {
"amount": 123
},
"IPv4MonthlyPrice": [
123
],
"IPv4HourlyPrice": [
123
]
}
}get a vm that user owns
curl --request GET \
--url https://iaas-api.liara.ir/vm/{id} \
--header 'Authorization: Bearer <token>'{
"_id": "<string>",
"plan": "<string>",
"OS": "<string>",
"state": "CREATED",
"config": {
"SSHKeys": [
"<string>"
],
"rootPassword": "<string>",
"hostname": "<string>"
},
"name": "<string>",
"createdAt": "<string>",
"guestState": "<string>",
"power": "POWERED_ON",
"IPs": [
{
"address": "<string>",
"version": "<string>"
}
],
"planDetails": {
"available": true,
"region": "<string>",
"monthlyPrice": 123,
"hourlyPrice": 123,
"volume": 123,
"RAM": {
"amount": 123
},
"CPU": {
"amount": 123
},
"IPv4MonthlyPrice": [
123
],
"IPv4HourlyPrice": [
123
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful operation
CREATED, RUNNING, STOPPED, DELETED Show child attributes
POWERED_ON, POWERED_OFF Show child attributes
Show child attributes