HostingRaja offers an API service that allows you to easily create cloud servers. However, before you can use our API service, you’ll need to pay a security deposit of Rs. 1000/- from your client area dashboard. Once you’ve completed the payment, you can start creating cloud servers through our API, making it quick and easy to manage your cloud infrastructure.
To generate API keys for accessing our API services, please follow these steps:
Log in to your client area using your HostingRaja credentials.
From the left-side menu, click on the “API” option.
Click on the button provided to generate a payment link for making a security deposit.
Once you click the button to pay the security deposit, a payment link will be generated. You can then proceed to complete the payment by clicking on the link provided.
To access our API, you need to whitelist your IP address by providing a comma-separated list of your IP addresses.
Once you generated the authorization token & secret key. You need to whitelist your IP address separated by comma to access our API
Note : Please note that if you do not whitelist your IP address using the above steps, you will not be able to connect to our API
API Access URL: https://www.hostingraja.in/apiAuthenticationYou have to pass your auth token & secret key to each API request. For that use the below post request method for all API.Post Request :
Create ServerThe Cloud deployment API streamlines the process of setting up and managing your Cloud infrastructure. It’s fast, flexible, and secure, with built-in scalability and redundancy features. Whether you’re deploying a small or large-scale Cloud environment, the Cloud deployment API makes it easy to get started and achieve your goals.Post Request :
Parameter
Type
Description
request
string
CreateVM
hostname
string
Hostname for server
configuration
array[]
Configuration Data in array, by passing below elements
ram
int
Maximum 128 GB RAM for passing configuration array elements
disk
int
Configuration array requires 40-1024 GB disk space.
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success", "count": "count in number"}
stopServerWith this API, you can initiate a server stop action to gracefully shut down your server. This API ensures that all processes are terminated and any pending data is saved before shutting down the server.Post Request :
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success"}
startServerThis API allows you to start your server after it has been stopped or shut down. The API initiates the boot process of the server, allowing it to become operational again.Post Request :
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success"}
rebootServerUse this API to initiate a server reboot. When you reboot your server, it shuts down and then automatically starts back up, allowing any pending updates or changes to take effect.Post Request :
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success"}
suspendServerThis API initiates a server suspension action, which saves the current state of the server and stops all processes, allowing you to temporarily halt your server. When you’re ready to resume operations, you can use the start API to boot the server backup and restore its state to the point of suspension.Post Request :
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success"}
unsuspendServerUse this API to unsuspend your server.When a server is suspended, it is in a halted state, and all processes are stopped. Using the unsuspend API initiates the process of resuming the server, allowing you to restore the state of the server to the point at which it was suspended.Post Request :
Parameter
Type
Description
Required
request
string
unsuspendServer
Required
product_id
int
Product id to be un suspend
Required
Example Request (CURL)Response Format: The API will respond with JSON data.Example response data:
{ "status": "success"}
terminateServerThis API allows you to initiate a server termination action, which permanently deletes the server and all associated data. It is an irreversible action, so be sure to take any necessary backups or data exports before proceeding with the termination.Post Request :
Response Format:The API will respond with JSON data.Example response data:
{ "status": "success"}
Recreate ServerThis API will be used to recreate your server. It will delete the current server and create a new server with the same configuration.So make sure that you have taken backup of the current server, before proceeding with the recreate server.Post Request :