2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{h as e}from"./index-CwVkcMR-.js";const c={getAccounts:async()=>e.get("/cloud-accounts"),createAccount:async t=>e.post("/cloud-accounts",t),updateAccount:async(t,n)=>e.put(`/cloud-accounts/${t}`,n),deleteAccount:async t=>e.delete(`/cloud-accounts/${t}`),syncRegions:async t=>e.post(`/cloud-accounts/${t}/sync-regions`),getAccountRegions:async t=>e.get(`/cloud-accounts/${t}/regions`),discoverInstances:async(t,n)=>e.post(`/cloud-accounts/${t}/discover-instances`,{regions:n}),importInstances:async(t,n,s)=>e.post(`/cloud-accounts/${t}/import-instances`,{instances:n,...s}),getDomains:async t=>e.get("/domains",t),createDomain:async t=>e.post("/domains",t),updateDomain:async(t,n)=>e.put(`/domains/${t}`,n),deleteDomain:async t=>e.delete(`/domains/${t}`)},a={list:async()=>e.get("/platforms"),create:async t=>e.post("/platforms",t),update:async(t,n)=>e.put(`/platforms/${t}`,n),delete:async t=>e.delete(`/platforms/${t}`)},l={getStats:async()=>e.get("/cloud-billings/stats"),list:async t=>e.get("/cloud-billings",t),create:async t=>e.post("/cloud-billings",t),batchCreate:async t=>e.post("/cloud-billings/batch",{records:t}),remove:async t=>e.delete(`/cloud-billings/${t}`),getProviders:async()=>e.get("/cloud-billings/providers"),listAlertRules:async()=>e.get("/billing-alerts"),createAlertRule:async t=>e.post("/billing-alerts",t),updateAlertRule:async(t,n)=>e.put(`/billing-alerts/${t}`,n),deleteAlertRule:async t=>e.delete(`/billing-alerts/${t}`),toggleAlertRule:async t=>e.post(`/billing-alerts/${t}/toggle`)};export{l as b,c,a as p};
|