BudgetUsage
Last updated
Last updated
Package : spaceone.api.cost_analysis.v1
BudgetUsage Methods:
Gets a list of all BudgetUsages. You can use a query to get a filtered list of BudgetUsages.
POST /cost-analysis/v1/budget-usage/list
{{< tabs " list " >}}
{{< tab "Request Example" >}}
query (Query)
name (string)
date (string)
workspace_id (string)
project_id (string)
budget_id (string)
data_source_id (string)
{{< highlight json >}} { "query": {} } {{< /highlight >}} {{< /tab >}}
{{< tab "Response Example" >}}
results (BudgetUsageInfo) Repeated
Required
total_count (int32) Required
{{< highlight json >}} { "results": [ { "budget_id": "budget-abb377eb9e8b", "name": "Cloudforet-Budget3", "date": "2022-01", "cost": 7671.164, "limit": 10000.0, "currency": "USD", "provider_filter": { "state": "ENABLED", "providers": [ "aws", "google_cloud" ] }, "project_id": "project-1b2b3b4b5b6b", "data_source_id": "data-source-1b2b3b4b5b6b", "domain_id": "domain-58010aa2e451", "updated_at": "2022-07-19T04:26:08.099Z" }, { "budget_id": "budget-abb377eb9e8b", "name": "Cloudforet-Budget3", "date": "2022-02", "cost": 5931.771, "limit": 11000.0, "currency": "USD", "provider_filter": { "state": "DISABLED", "providers": [] }, "project_id": "project-1b2b3b4b5b6b", "data_source_id": "data-source-1b2b3b4b5b6b", "domain_id": "domain-58010aa2e451", "updated_at": "2022-07-19T04:26:08.105Z" } ], "total_count": 12 } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
POST /cost-analysis/v1/budget-usage/analyze
POST /cost-analysis/v1/budget-usage/stat
query (TimeSeriesAnalyzeQuery) Required
budget_id (string)
data_source_id (string)
budget_id (string) Required
name (string) Required
date (string) Required
cost (float) Required
limit (float) Required
currency (string) Required
provider_filter (BudgetUsageProviderFilter) Required
resource_group (ResourceGroup) Required
data_source_id (string) Required
project_id (string) Required
workspace_id (string) Required
domain_id (string) Required
updated_at (string) Required
state (State) Required
providers (string) Repeated
Required
query (Query)
name (string)
date (string)
workspace_id (string)
project_id (string)
budget_id (string)
data_source_id (string)
query (StatisticsQuery) Required
budget_id (string)
data_source_id (string)
results (BudgetUsageInfo) Repeated
Required
total_count (int32) Required