Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.43 KB

FullServerCustomerQuickstart.md

File metadata and controls

34 lines (20 loc) · 1.43 KB

Quickstart for Customers owning a whole uwsgi.it server

Please read the CustomerQuickstart before this !!!

If your uwsgi.it supplier supports mapping customer to one (ore more) server, you are able to create containers on your dedicated machines.

The system constantly checks that you are not overselling.

You are not supposed to delete containers (you can remap, reconfigure and retag them easily) as a delete should be followed by a complete removal of the container's home from the server, so if you need to destroy a container (for a good reason), contact your supplier.

Getting the list of available servers

curl https://kratos:deimos@api.uwsgi.it/api/me

the 'servers' attribute is an array of the servers you have rights on (generally it is an empty array).

The servers are showed as a list of ipv4 addresses. You have to use this address to select on which server you want to create a container.

Creating a container

You need to specify the 'server' (obviously) a 'name' (it does not need to be unique) a 'memory' value (in MB) and a 'storage' one (again in MB).

To create the container 'hydra' on machine '1.2.3.4' with 1GB of memory and 20GB of storage you just send

curl -X POST -d '{"server":"1.2.3.4", "name":"hydra", "memory":1000, "storage":20000}' https://kratos:deimos@api.uwsgi.it/api/containers