Cloud: list
Request
HTTP request
GET /cloud/v1 HTTP/1.1
Parameters
Parameter name | Value | Description |
---|---|---|
Optional query parameters | ||
maxResults | unsigned int | Maximum number of items in result |
projection | string | Projection settings; comma separated string see |
order | string | Order by list items; latest : latest uploaded first; publicId : order by public ID (UTF-16 bytecode) |
nextPageToken | bool/string | Token for listing page; If specified, then order parameter is skipped |
Request Body
This method does not support request body.
Response
If successful, this method returns a cloud resource list in the response body.
Response HTTP status code
HTTP status code | Description |
---|---|
200 | Success, list of clouds |
For more information about HTTP codes, click here.
Rate limit
Detailed information for cloud rate limitation is available on Shardimage developers.
Paging
SDK
use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\models\cloud\IndexParams;
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
]);
$indexParams = new IndexParams();
$indexParams->projection = [
IndexParams::PROJECTION_NO_FIREWALL,
IndexParams::PROJECTION_NO_BACKUP,
];
$cloudList = $client->getCloudService()->index([], $indexParams);