diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidresizedisk.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidresizedisk.rst new file mode 100644 index 00000000..806ba0d9 --- /dev/null +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidresizedisk.rst @@ -0,0 +1,29 @@ +/v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resize_disk +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/qemu/nodes/**{node_id}**/resize_disk +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Resize a Qemu VM disk image + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **201**: Instance updated +- **404**: Instance doesn't exist + +Input +******* +.. raw:: html + + + + + +
Name Mandatory Type Description
drive_name enum Possible values: hda, hdb, hdc, hdd
extend integer Number of Megabytes to extend the image
+ diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeidresizedisk.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeidresizedisk.rst new file mode 100644 index 00000000..cfb32c66 --- /dev/null +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeidresizedisk.rst @@ -0,0 +1,20 @@ +/v2/projects/{project_id}/nodes/{node_id}/resize_disk +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/projects/**{project_id}**/nodes/**{node_id}**/resize_disk +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Reload a node instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **400**: Invalid request +- **201**: Disk image resized +- **404**: Instance doesn't exist + diff --git a/docs/api/v2/controller/notification.rst b/docs/api/v2/controller/notification.rst new file mode 100644 index 00000000..04f43e18 --- /dev/null +++ b/docs/api/v2/controller/notification.rst @@ -0,0 +1,8 @@ +Notification +----------------------------- + +.. toctree:: + :glob: + :maxdepth: 2 + + notification/* diff --git a/docs/api/v2/controller/notification/notifications.rst b/docs/api/v2/controller/notification/notifications.rst new file mode 100644 index 00000000..067f28f3 --- /dev/null +++ b/docs/api/v2/controller/notification/notifications.rst @@ -0,0 +1,13 @@ +/v2/notifications +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +GET /v2/notifications +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Receive notifications about the controller + +Response status codes +********************** +- **200**: End of stream + diff --git a/docs/api/v2/controller/notification/notificationsws.rst b/docs/api/v2/controller/notification/notificationsws.rst new file mode 100644 index 00000000..074264e9 --- /dev/null +++ b/docs/api/v2/controller/notification/notificationsws.rst @@ -0,0 +1,13 @@ +/v2/notifications/ws +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +GET /v2/notifications/ws +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Receive notifications about controller from a Websocket + +Response status codes +********************** +- **200**: End of stream + diff --git a/docs/api/v2/controller/project/projectsprojectidstats.rst b/docs/api/v2/controller/project/projectsprojectidstats.rst new file mode 100644 index 00000000..783af39b --- /dev/null +++ b/docs/api/v2/controller/project/projectsprojectidstats.rst @@ -0,0 +1,18 @@ +/v2/projects/{project_id}/stats +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +GET /v2/projects/**{project_id}**/stats +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Get a project statistics + +Parameters +********** +- **project_id**: Project UUID + +Response status codes +********************** +- **200**: Project statistics returned +- **404**: The project doesn't exist +