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
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 |
| ✔ | |
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 | ✘ |
Last updated