Download the PHP package sandwave-io/cloud-sdk-php without Composer
On this page you can find all versions of the php package sandwave-io/cloud-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sandwave-io/cloud-sdk-php
More information about sandwave-io/cloud-sdk-php
Files in sandwave-io/cloud-sdk-php
Package cloud-sdk-php
Short Description PCextreme API Cloud SDK
License proprietary
Informations about the package cloud-sdk-php
PCextreme Cloud API - PHP SDK
How to contribute
Feel free to create a PR if you have any ideas for improvements. Or create an issue.
- When adding code, make sure to add tests for it (phpunit).
- Make sure the code adheres to our coding standards (use php-cs-fixer to check/fix).
- Also make sure PHPStan does not find any bugs.
These tools will also run in GitHub actions on PR's and pushes on master.
Usage
Available methods
The endpoints that are currently implemented are not all existing endpoints. If you need an other endpoint to be implemented, create an issue or open a PR. 🙂
- Deploy server
- List servers
- Show server
- Server details
- Upgrade server
- Upgrade server
- Detach rescue ISO server
- Attach rescue ISO server
- Reboot server
- Start server
- Stop server
- Delete server
- Get current RAM usage for account
Deploy server
This will return the ID of the created server:
List servers
This will return an array having all servers attached to your account.
Show server
You can also check out a specific server.
Server details
You could use this call to fetch data from the underlying Cloudstack system.
Check out the cloudstack docs to see all the available information.
Upgrade server
In the case that you want to upgrade an existing server, you can use upgradeServer.
Note that the VM must be stopped when you run this.
Reset server
Detach rescue ISO server
Rescue ISO's can be used to salvage a broken server.
Attach rescue ISO server
Rescue ISO's can be used to salvage a broken server.
Edit display name server
Reboot server
Start server
Stop server
Delete server
Note: there is a grace period within Cloudstack. So the data will not be immediately lost.
Get current RAM usage for account
Accounts are limited on resources by default. You can retrieve your current resource usage using this method.
If you wish to broaden your limits, contact PCextreme.
Get offers for account
Before you deploy or upgrade a server, you must retrieve the offer ID that you want to use.
Get datacenters for account
For a deployment, you also need to know what datacenter to deploy in.
The response also contains the availability of standard and HA VM's. These are two different types of storage, the difference between the two VM's can also be identified based on the offer data.
Get templates for account
The templates used for VM deployments are predefined and can be seen using listTemplates.
Get private networks for account
The templates used for VM deployments are predefined and can be seen using listTemplates.
Get console url for current sever
If you wish to open a browser based console, you can use this method to generate a URL.
All versions of cloud-sdk-php with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.3.0
guzzlehttp/psr7 Version ^1.4.1
ramsey/uuid Version ^4.2.3
symfony/yaml Version ^4.4