123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
{
"type": "object",
"description": "Live VPS status and resource usage",
"properties": {
"vm_info": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "running"
},
"uptime": {
"type": "string"
},
"uptime_seconds": {
"type": "integer"
},
"hostname": {
"type": "string"
},
"boot_devices": {
"type": "array",
"items": {
"type": "string"
}
},
"reinstalling": {
"type": "boolean"
}
}
},
"cpu": {
"type": "object",
"properties": {
"usage_ratio": {
"type": "number"
},
"percent": {
"type": "number"
},
"cores": {
"type": "number"
}
}
},
"memory": {
"$ref": "#/components/schemas/ResourceUsage"
},
"disk": {
"$ref": "#/components/schemas/ResourceUsage"
},
"bandwidth": {
"type": "object",
"properties": {
"usage_mb": {
"type": "number"
},
"limit_mb": {
"type": "number"
},
"unlimited": {
"type": "boolean"
},
"percent": {
"type": "number"
}
}
},
"network_rate": {
"type": "object",
"nullable": true,
"properties": {
"mb_per_sec": {
"type": "number"
},
"mbit_per_sec": {
"type": "number"
},
"human": {
"type": "string"
}
}
},
"ip_addresses": {
"type": "array",
"items": {
"type": "string"
}
},
"credentials": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string",
"description": "Login password for this VPS"
}
}
},
"os_info": {
"type": "object",
"description": "Guest agent OS info when VM is running; otherwise empty strings",
"properties": {
"name": {
"type": "string"
},
"pretty_name": {
"type": "string"
},
"version": {
"type": "string"
},
"machine": {
"type": "string"
},
"kernel_release": {
"type": "string"
},
"hostname": {
"type": "string"
}
}
},
"ssh_key_info": {
"type": "object",
"description": "Present when SSH features are enabled for the product",
"properties": {
"type": {
"type": "string",
"enum": [
"keypair",
"sshkeys"
]
},
"has_public_key": {
"type": "boolean"
},
"has_private_key": {
"type": "boolean"
},
"delete_private_key": {
"type": "boolean"
},
"sshkeys": {
"type": "string"
}
}
}
}
}