from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.traffic.get_quota()
# Handle response
print(res){
"data": {
"id": "traffic_quota",
"type": "traffic_quota",
"attributes": {
"quota_per_project": [
{
"project_id": "proj_lkg1DekRdvZE5",
"project_slug": "incredible-bronze-knife",
"billing_method": "Normal",
"quota_per_region": [
{
"region_id": "reg_9QDB5qag",
"price": 500,
"region_slug": "brazil",
"quota_in_tb": {
"granted": 20,
"additional": 0,
"total": 20
},
"quota_in_mbps": {
"granted": 0,
"additional": 0,
"total": 0
}
}
]
}
]
}
},
"meta": {}
}from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.traffic.get_quota()
# Handle response
print(res){
"data": {
"id": "traffic_quota",
"type": "traffic_quota",
"attributes": {
"quota_per_project": [
{
"project_id": "proj_lkg1DekRdvZE5",
"project_slug": "incredible-bronze-knife",
"billing_method": "Normal",
"quota_per_region": [
{
"region_id": "reg_9QDB5qag",
"price": 500,
"region_slug": "brazil",
"quota_in_tb": {
"granted": 20,
"additional": 0,
"total": 20
},
"quota_in_mbps": {
"granted": 0,
"additional": 0,
"total": 0
}
}
]
}
]
}
},
"meta": {}
}Was this page helpful?