The following example publishes the Image where you execute the code. In published version it starts a default web-server on 8080 port, in original image shows information about the instance.
Represents an API client which allows you to work with your Ephemeric Cloud account. Client can fetch information about existing instances, create new instance and delete instances from the cloud.
Create an instance of EphemericCloudClient, authenticate with
Check if client is connected and authenticated.
Answer an array of EphemericInstances for current client.
Answer an EphemericInstance with a hostname or alias equals to
Publish Zip Image Archive file in Ephemeric Cloud. Answer created EphemericInstance object.
Backup current Image and publish it in Ephemeric Cloud.
archiveBlockis one argument block which accepts the archive been created to allow adding more files except
falsein original Image,
truein Image copy which is to be published in the Cloud.
Provides an object wrapper around an ephemeric instance. Allows you to manipulate information of an individual host in the cloud.
Answer hostname (string) of an ephemeric instance.
Answer alias hostname (string) of an ephemeric instance.
Get or set an integer array of ports that are exposed on start of the ephemeric. Ex.:
Get a map of custom ports into public addresses where they are exposed.
Set or change alias hostname for the instance.
nilto remove alias from the instance.
Reread information on the instance from the API server.
Delete ephemeric instance from the cloud.
imageNameof the instance.
imageNameproperty of the ephemeric instance.
Answer whether the instance is currently active.
Used to force-stop or force-activate the instance. To stop the instance set the value to
Answer DateAndTime string of last access time of the instance.
Answer DateAndTime string of instance creation.