Download the PHP package wapmorgan/onecloud-api without Composer
On this page you can find all versions of the php package wapmorgan/onecloud-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package onecloud-api
OneCloudApi.php
API client for OneCloud.
API
-
constructor OneCloudApi($secret_key[, $timeout = 1])
Adjust second parameter if script prints errors about socket timeout; by default there 1 sec;
Images
-
getImagesList(): array
Returns images list
-
createImage($imageName, $imageIdentificator, $serverId): boolean
Create Image from a server
-
deleteImage($imageIdentificator)
Delete image
Servers
-
getServersList(): array
Servers List
-
getServerInfo($serverId): array
Server info
-
createServer($serverName, $cpuCount, $ram, $hdd, $imageIdentificator, $diskType /*SAS or SSD*/, $isHighPerformance /* true or false */): array
Create server
-
changeServer($serverId, $cpuCount, $ram, $hdd, $diskType, $isHighPerformance): array
Change server configuration
-
deleteServer($serverId): boolean
Delete server
-
turnOnServer($serverId): boolean
,turnOffServer($serverId): boolean
,rebootServer($serverId): boolean
Turn on server, Turn off server, Reboot server
-
getServerOperations($serverId): array
Server operations history
-
getServerOperation($serverId, $operationId): array
Server operation info
-
createNetwork($networkName): array
Create network
-
addServerToNetwork($serverId, $networkId): boolean
Add server in network
-
removeServerFromNetwork($serverId, $networkId): boolean
Remove server from network
-
getNetworkInfo($networkId): array
Network info
-
deleteNetwork($networkId): boolean
Delete network
API changes
2015-04-16: 1.1
- new createImage(), deleteImage() actions
- new options $hddType and $isHighPerformance in createServer() and changeServer()
- new addServerToNetwork(), removeServerFromNetwork() methods