---
title: 'API - Operation Rebuild | Zomro'
description: 'In this instruction, it is described in detail how to perform rebuild and stop operations using the API'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/blog/a54%40server-panel.net/2024/06/04/screenshot-from-2024-06-04-15-01-02_q50.jpg'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [Useful articles](https://zomro.com/blog/articles/)
  * API - Operation Rebuild 



# API - Operation Rebuild

06-06-2024

To initiate the Rebuild operation via the API, you need to use a specific function and pass the necessary request parameters. Below are the request details, including the URL, method, and required parameters that need to be specified for the successful execution of the operation.  
  
To initiate the Rebuild operation, use the following function.

URL: 
    
    
    https://api.zomro.com/

Method: POST

Request Body (Form-data):

Parameter | Example Value | Required Parameter | Value Description  
---|---|---|---  
func | instances.fleio.rebuild | Yes | Function to initiate the server rebuild  
auth | 21fc199...c43f71 | No | Session token. This is one of the authorization options. More details on other options are described [here](https://ispsystem.com/docs/b6c/developer-section/working-with-api/guide-to-ispsystem-software-api)  
out | json | Yes | Expected response type  
sok | ok | Yes | Operation confirmation  
elid | 5113119 | Yes | ID of the service to perform the operation on  
zone | image | Yes | Section from which to use images for OS reinstallation  
select_rebuild | 18d0ee2e-4d57-4f40-9b56-03c1773b5831 | Yes | UID of the operating system to reinstall the instance. The UID of the operating system can be obtained from the function v2.instances.order.pricelist. More details on how to use it are described [here](https://zomro.com/blog/faq/464-api-obtaining-information-about-available-tariffs-and-their-parameters)  
enablessh | off | Yes | Whether to use an SSH key or not. Can take values off or on.  
password | Mypassword1 | No | Server access password. For Linux, the password for the root user. For Windows, the password for the Administrator user. Do not pass if the parameter enablessh=on.  
Also, the password must contain at least 1 uppercase English letter, 1 numeric character, and a minimum of 8 characters.   
ssh_keys | 490 | No |  ID of the SSH key to add to the server after OS installation. Do not pass if the parameter use_ssh_key=off.  
The ID of the SSH key can be obtained from the function v2.instances.order.pricelist. More details on how to use it are described [here](https://zomro.com/blog/faq/464-api-obtaining-information-about-available-tariffs-and-their-parameters)  
  
Example of executing rebuild

For example, we use a service with Ubuntu 20.04 and perform a rebuild to AlmaLinux 8, and set a password for the root user - Mypassword1.

![API - Rebuild Operation - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/blog/a54%40server-panel.net/2024/06/04/screenshot-from-2024-06-04-15-01-02_q50.jpg)

URL: 
    
    
    https://api.zomro.com/

Method: POST

Request Body (Form-data):

Parameter | Value  
---|---  
func | instances.fleio.rebuild  
auth | 21fc199...c43f71  
out | json  
sok | ok  
elid | 5113119  
zone | image  
select_rebuild | 18d0ee2e-4d57-4f40-9b56-03c1773b5831  
enablessh | off  
password | Mypassword1  
  
Here is an example request that can be executed from the console:
    
    
    curl --location 'https://api.zomro.com/' \
    --form 'func="instances.fleio.rebuild"' \
    --form 'auth="f1662dcabc6b96c85be3af64"' \
    --form 'elid="5113119"' \
    --form 'zone="image"' \
    --form 'select_rebuild="18d0ee2e-4d57-4f40-9b56-03c1773b5831"' \
    --form 'enablessh="off"' \
    --form 'password="Mypassword12"' \
    --form 'sok="ok"' \
    --form 'out="json"'

This operation takes some time as the operating system is reinstalled during the operation. Depending on the OS, the waiting time may vary.

After executing the request, we can verify that the operating system has been reinstalled in the personal account or via the API

  
![API - Rebuild Operation - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/blog/a54%40server-panel.net/2024/06/06/screenshot-from-2024-06-06-11-18-34_q50.jpg)

The result of the operation can also be seen in the operation history in the graphical interface.

![API - Rebuild Operation - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/blog/a54%40server-panel.net/2024/06/06/screenshot-from-2024-06-06-11-21-49_q50.jpg)

As we can see, the operation was successful.  
  


We also recommend studying articles that may be useful for interacting with [Cloud VPS](https://zomro.com/vps) products using the API:

  * [_API - Creating a Service_](https://zomro.com/blog/articles/462-api-creation-of-a-service)
  * [_API - Obtaining Information About Available Tariffs and Their Parameters_](https://zomro.com/blog/articles/464-api-obtaining-information-about-available-tariffs-and-their-parameters)
  * [_API - Operation Start & Stop_](https://zomro.com/blog/articles/468-api-operation-start-and-stop)
  * [_API - Operation Reboot_](https://zomro.com/blog/articles/465-api-operation-reboot)​​​​​​​
  * [_API - Operation Delete_](https://zomro.com/blog/articles/467-api-operation-delete)
  * [_API - Interaction with Backup Schedule_](https://zomro.com/blog/faq/486-api-interaction-with-backup-schedule)
  * [_API - Interacting with Rescue_](https://zomro.com/blog/faq/485-api-interacting-with-rescue)
  * [_API - Interaction with Backup_](https://zomro.com/blog/faq/482-api-interaction-with-backup)
  * [_API - Interacting with Snapshots_](https://zomro.com/blog/faq/483-api-interacting-with-snapshots)
  * [_API - Interacting with Boot From ISO_](https://zomro.com/blog/faq/484-api-interacting-with-boot-from-iso)
  * [_API - Interaction with Image_](https://zomro.com/blog/faq/487-api-interaction-with-image)



Similar articles:

[How to choose hosting for an adult website?](https://zomro.com/blog/articles/504-how-to-choose-hosting-for-an-adult-website) [Main steps to launch your legal online casino](https://zomro.com/blog/articles/692-main-steps-to-launch-your-legal-online-casino) [Reliable adult hosting for your project](https://zomro.com/blog/articles/506-reliable-adult-hosting-for-your-project) [Setting up file servers in local networks on Windows and Linux](https://zomro.com/blog/articles/527-setting-up-file-servers-in-local-networks-on-windows-and-linux) [Popular errors on the site. Meaning and how to solve them.](https://zomro.com/blog/articles/185-populjarnye-oshibki-na-sajte-znachenie-i-kak-reshit)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
