SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • Cost
  • create
  • delete
  • get
  • list
  • analyze
  • stat
  • Message
  • CostAnalyzeQuery
  • CostInfo
  • CostQuery
  • CostRequest
  • CostStatQuery
  • CostsInfo
  • CreateCostRequest
  • GetCostRequest

Was this helpful?

  1. Cost Analysis
  2. V1

Cost

Package : spaceone.api.cost_analysis.v1

Cost

Cost Methods:

Method
Request
Response

create

POST /cost-analysis/v1/costs

Type
Message

Request

Response

delete

DELETE /cost-analysis/v1/cost/{cost_id}

Type
Message

Request

Response

get

GET /cost-analysis/v1/cost/{cost_id}

Type
Message

Request

Response

list

GET /cost-analysis/v1/costs

POST /cost-analysis/v1/costs/search

Type
Message

Request

Response

analyze

POST /cost-analysis/v1/costs/analyze

Type
Message

Request

Response

stat

POST /cost-analysis/v1/costs/stat

Type
Message

Request

Response

Message

CostAnalyzeQuery

Field
Type
Required
Description

granularity

  • UNIT_NONE

  • ACCUMULATED

  • DAILY

  • MONTHLY

  • YEARLY

✔

start

string

✔

end

string

✔

group_by

list of string

✘

filter

✘

limit

✘

page

spaceone.api.core.v1.Page

✘

sort

spaceone.api.core.v1.Sort

✘

include_usage_quantity

bool

✘

include_others

bool

✘

domain_id

string

✔

CostInfo

Field
Type
Description

cost_id

string

usd_cost

float

original_currency

string

original_cost

float

usage_quantity

float

provider

string

region_code

string

region_key

string

category

string

product

string

account

string

usage_type

string

resource_group

string

resource

string

tags

additional_info

service_account_id

string

project_id

string

data_source_id

string

domain_id

string

billed_at

string

created_at

string

CostQuery

Field
Type
Required
Description

query

✘

cost_id

string

✘

original_currency

string

✘

provider

string

✘

region_code

string

✘

region_key

string

✘

category

string

✘

product

string

✘

account

string

✘

usage_type

string

✘

resource_group

string

✘

resource

string

✘

service_account_id

string

✘

project_id

string

✘

data_source_id

string

✘

domain_id

string

✔

CostRequest

Field
Type
Required
Description

cost_id

string

✔

domain_id

string

✔

CostStatQuery

Field
Type
Required
Description

query

✔

domain_id

string

✔

CostsInfo

Field
Type
Description

results

total_count

CreateCostRequest

Field
Type
Required
Description

original_cost

float

✔

original_currency

string

✔

usd_cost

float

✘

usage_quantity

float

✘

provider

string

✘

region_code

string

✘

category

string

✘

product

string

✘

account

string

✘

usage_type

string

✘

resource_group

string

✘

resource

string

✘

tags

✘

additional_info

✘

service_account_id

string

✘

project_id

string

✘

data_source_id

string

✔

domain_id

string

✔

billed_at

string

✘

GetCostRequest

Field
Type
Required
Description

cost_id

string

✔

domain_id

string

✔

only

list of string

✘

PreviousBudget UsageNextCost Query Set

Last updated 3 years ago

Was this helpful?

google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.Empty
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.ListValue
int32
google.protobuf.Struct
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
google.protobuf.Struct
google.protobuf.Struct
create
CreateCostRequest
CostInfo
delete
CostRequest
get
GetCostRequest
CostInfo
list
CostQuery
CostsInfo
analyze
CostAnalyzeQuery
stat
CostStatQuery
CreateCostRequest
CostInfo
CostRequest
GetCostRequest
CostInfo
CostQuery
CostsInfo
CostAnalyzeQuery
CostStatQuery
list of CostInfo