add

<< Click to Display Table of Contents >>

Navigation:  API > servers >

add

Description

Creates or clones a server.

Syntax

https://api.cameyo.com/servers/add?clientId=...&clientSecret=...&groupId=[servergroup-id]&snapshotId=[snapshot-id]

Required parameters

groupId: cluster ID which the server should be a part of.

Optional parameters

snapshotId: snapshot ID to clone. If this parameter is not specified, a brand new clean server is created.

regionId: region ID to create the server in. Hint: region IDs can be seen by clicking the "Cloud" button in the Company Settings under Advanced:

cloud-regions

Return

200: success. In this case, a JSON object is returned with the new server's ID within the 'message' field.

400: invalid parameters.

403: authentication failed or insufficient permissions.

404: specified groupId not found.

406: account privilege or licensing error.

417: unexpected failure.

500: creation failed.

Response example

{"success": true, "code": 200, "message": "e109a354-89f3-43d9-96ac-d9fd2dd55179"}