Billing: detail
Request
HTTP request
GET /billing/v1/detail HTTP/1.1
Parameters
Parameter name | Value | Description |
---|---|---|
dateFrom | unsigned int | Start date for filtering |
group | string | Group filtering |
Optional query parameters | ||
dateTo | unsigned int | End date for filtering, if not set then it’s the actual time |
datePartition | string | Response partition type |
cloudId | string | Filter for cloud |
projection | string | Projection settings; comma separated string see |
Request Body
This method does not support request body.
Response
If successful, this method returns a detail in the response body.
Response HTTP status code
HTTP status code | Description |
---|---|
200 | Success |
For more information about HTTP codes, click here.
Rate limit
Detailed information for cloud rate limitation is available on Shardimage developers.
SDK
use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\models\billing\DetailParams;
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
]);
$params = new DetailParams();
$params->dateFrom = time() - 86400;
$params->group = DetailParams::GROUP_CU;
$params->datePartition = DetailParams::DATE_PARTITION_DAY;
$response = $client->getBillingService()->detail([], $params);