BudgetUsage

Package : spaceone.api.cost_analysis.v1

BudgetUsage

BudgetUsage Methods:

list

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" >}}

BudgetUsageQuery

  • 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" >}}

BudgetUsagesInfo

  • 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 >}}

analyze

POST /cost-analysis/v1/budget-usage/analyze

stat

POST /cost-analysis/v1/budget-usage/stat

Message

BudgetUsageAnalyzeQuery

  • query (TimeSeriesAnalyzeQuery) Required

  • budget_id (string)

  • data_source_id (string)

BudgetUsageInfo

  • 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

BudgetUsageProviderFilter

  • state (State) Required

  • providers (string) Repeated Required

BudgetUsageQuery

  • query (Query)

  • name (string)

  • date (string)

  • workspace_id (string)

  • project_id (string)

  • budget_id (string)

  • data_source_id (string)

BudgetUsageStatQuery

  • query (StatisticsQuery) Required

  • budget_id (string)

  • data_source_id (string)

BudgetUsagesInfo

  • results (BudgetUsageInfo) Repeated Required

  • total_count (int32) Required

Last updated