Cloud: create
Request
HTTP request
POST /cloud/v1 HTTP/1.1
Parameters
This method does not supply path parameters.
Request Body
Property name | Value | Description |
---|---|---|
Required properties | ||
name | string | Name of the cloud |
Optional properties | ||
description | string | Description of the cloud |
settings | object | Cloud settings |
firewall | string | object | Firewall ID or existing firewall object |
Response
If successful, this method returns a Cloud resource in the response body.
Response HTTP status code
HTTP status code | Description |
---|---|
200 | Success, returns with cloud resource |
429 | Too many requests |
Rate limit
Detailed information for cloud rate limitation is available on Shardimage developers.
SDK
use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\models\cloud\Cloud;
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
]);
$cloud = new Cloud();
$cloud->name = 'myExampleCloud';
$cloud->description = 'My example cloud for SDK example.';
$result = $client->getCloudService()->create($cloud);