Get a company's month-to-date storage cost
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"period_start": "2023-12-25",
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1,
"peak_bytes": 1,
"pay_as_you_go": {
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1
}
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Usage
Get a company's month-to-date storage cost
Instance-admin view of GET /api/v3/storage/cost for a specific company: the storage charge accrued so far this month, the quantities behind it (peak_bytes, free_gib, billable_gib), and the same footprint priced at the pay-as-you-go allowance.
Authorization: the authenticated user must have instance-level company-view permission (SysAdmin, Account Manager, or DPO Admin).
GET
/
api
/
v3
/
instance
/
companies
/
{id}
/
storage
/
cost
Get a company's month-to-date storage cost
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/instance/companies/{id}/storage/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"period_start": "2023-12-25",
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1,
"peak_bytes": 1,
"pay_as_you_go": {
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1
}
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}