Deploying a virtual machine in Cloud Raya is very simple. Please follow the steps below.
Once you are logged into the control panel https://cp.cloudraya.com, on the left of the dashboard there is a menu and you can click on the “Add VM” button
You will be presented with an installation wizard:
Step 1: Select the Location
Step 2: Enter the Hostname of your choice, only support alphanumeric and dash (“-“).
Step 3: Assign a Security Profile and by default there is a “Default” Security profile which allows management port such as 22 (ssh), 3389 (rdp) and some service ports such as 80 (http) and 443 (https).
Step 4: Please select the “Image” or the operating system of your choice. Then click on the blue button “Step 2” on the Add VM page.
Step 5: Select your desired package or a custom package. Then you may click on the blue button “Step 3” to review the summary
Step 6: Once you have reviewed the summary, you may choose to instantly build the VM or schedule a time for the VM to be built. Then just click on the blue button “Create VM”.
You will be directed to the VM detail page showing the status of the provisioning.
You may need to automate a build of a VM from your own platform. In this case, you may use our robust and simple API to build the VM.
Step 1: You need to create an API key, please follow this guideline: Generating API Key
Step 2: You will need the following items:
https://api.cloudraya.com/v1/api/gateway/user/location-group-by-country
https://api.cloudraya.com/v1/api/gateway/user/packages/list
https://api.cloudraya.com/v1/api/gateway/user/securityprofiles
https://api.cloudraya.com/v1/api/gateway/user/storagetype/list
https://api.cloudraya.com/v1/api/gateway/user/templates/list
Step 3: By compiling all of the above items into one raw JSON format body, example as followed:
{
"location": "Jakarta",
"package_id": 1,
"hostname": "test-web02",
"security_profile": 13,
"public_ip_id": "automatic",
"disk_id": 17,
"schedule_type": "instant",
"schedule_date": "25-07-2020",
"schedule_time": "",
"template_id": "d2efd681-ff1d-40d2-aa3d-90777225119b"
}
You will receive a response of your new VM id.
You may view additional API information found at https://cp.cloudraya.com/apidoc