Get itemized costs by deployments
开发环境
http://127.0.0.1
开发环境
http://127.0.0.1
GET
/billing/costs/{organization_id}/deployments/{deployment_id}/items
BillingCostsAnalysis
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1/billing/costs//deployments//items' \
--header 'Authorization: ApiKey {{EC_API_KEY}}'
响应示例响应示例
200 - 示例 1
{
"costs": {
"total": 0,
"resources": 0,
"data_transfer_and_storage": 0
},
"resources": [
{
"sku": "string",
"kind": "string",
"name": "string",
"price": 0,
"period": {
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z"
},
"instance_count": 0,
"hours": 0,
"price_per_hour": 0
}
],
"data_transfer_and_storage": [
{
"sku": "string",
"name": "string",
"rate": {
"formatted_value": "string",
"value": 0
},
"cost": 0,
"type": "string",
"quantity": {
"formatted_value": "string",
"value": 0
}
}
]
}
请求参数
Path 参数
organization_id
必需
deployment_id
必需
Query 参数
from
可选
to
可选
Header 参数
Authorization
string
可选
默认值:
ApiKey {{EC_API_KEY}}