Create a New VM
Create a virtual machine with given parameters. If the creation process was started, the response will be sent as server events (SEE), where each event contains the following information :
- first event of type
progresswill contain progress info (percentage and message) about last performed action. these events will have - the last event will contain the actual response (successful or not), where the
event's type (string) is the status of the response (e.g.
200,400), and the event's data is the response payload.
Authorization
AuthorizationRequiredBearer <token>OAuth Authentication
OpenScaler API uses OAuth, a standard for secure authorization. To access the API, obtain a token via the OpenScaler Platform.
Use the access_token in the Authorization header for requests:
Always keep your token secure and do not share it with anyone.
In: header
Request Body
application/jsonOptionalbodypredefined size | custom sizeThe creation progress will return:
- a list of
progressevents containing progress information about the VM, these followed one of the events below 200event containing the VM information if the VM was created successfully400or500event containing the error message if the VM creation failed
Note that these events are in plain-text form, not JSON, but will contain the fields described below, for example: