cost-control
List Budgets
List cost budgets visible to the organization account.
GET
/
api
/
costs
/
budgets
List Budgets
curl --request GET \
--url https://api.aixy-gateway.com/api/costs/budgets \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/costs/budgets"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/costs/budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"scope": "<string>",
"target_id": "<string>",
"target_name": "<string>",
"interval": "<string>",
"limit_usd": "<string>",
"warning_threshold_percent": 123,
"enforcement": "<string>",
"allocation": "shared",
"created_at": "<string>",
"updated_at": "<string>",
"object": "cost.budget"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
List Budgets
curl --request GET \
--url https://api.aixy-gateway.com/api/costs/budgets \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/costs/budgets"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/costs/budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"scope": "<string>",
"target_id": "<string>",
"target_name": "<string>",
"interval": "<string>",
"limit_usd": "<string>",
"warning_threshold_percent": 123,
"enforcement": "<string>",
"allocation": "shared",
"created_at": "<string>",
"updated_at": "<string>",
"object": "cost.budget"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}