利用flavor_id取得商品價格
Path Parameters
- flavor_id string required
flavor_id代碼
Query Parameters
- prj_sys_code string
計畫系統代號
Responses
- 200
- 400
- 401
- 403
- 404
- application/json
- success
- /api/product/{flavor_id}?prj_sys_code={prj_sys_code}
- Schema
- Example (from schema)
Schema
- id string
流水號
- uuid string
UUID
- serial_number string
序號(product_item_code)
- name string
商品名稱
- desc string
說明
- spec string
商品規格
- max string
最大可購買數量
- min string
最小可購買數量
- start string
預設起始購買量
- increment string
每單位購買量增額
- unit_text string
選單顯示單位
- pay_period string
付款週期
- resource_day string
服務有效期間
- other_content string
資源記錄對應(JSON)
- is_open string
是否啟用
- display_order string
排序
- resource_package string
資源組合(JSON)
- default_pay_limit string
預設繳費期限
- service_type string
服務類型代碼(product_system_code)
- service_code string
服務內部代碼
- service_name string
服務名稱
- product_main_type string
商品母類別(product_type_code)
- product_sub_type string
商品子類別
- product_sub_code string
子類別內部代碼
- sub_type_name string
商品母類別名稱
price_result object[]
start_date string開始時間
end_date string結束時間
price string價格
price_order string方案權重
price_package string價格配置
desc string說明
short string計畫類別代碼
{
"id": "string",
"uuid": "string",
"serial_number": "string",
"name": "string",
"desc": "string",
"spec": "string",
"max": "string",
"min": "string",
"start": "string",
"increment": "string",
"unit_text": "string",
"pay_period": "string",
"resource_day": "string",
"other_content": "string",
"is_open": "string",
"display_order": "string",
"resource_package": "string",
"default_pay_limit": "string",
"service_type": "string",
"service_code": "string",
"service_name": "string",
"product_main_type": "string",
"product_sub_type": "string",
"product_sub_code": "string",
"sub_type_name": "string",
"price_result": [
{
"start_date": "string",
"end_date": "string",
"price": "string",
"price_order": "string",
"price_package": "string",
"desc": "string",
"short": "string"
}
]
}
- Response
{
"id": "69",
"uuid": "bff62100-962a-4750-b5eb-7bcd8cb2223c",
"serial_number": "flavor-119",
"name": "AI-K8S-Flavor-119",
"desc": "8GPU+32cores+640GB memory",
"spec": "8GPU+32cores+640GB memory",
"max": "1",
"min": "1",
"start": "1",
"increment": "1",
"unit_text": null,
"pay_period": "day",
"resource_day": "1 day",
"other_content": "{\"flavor_id\":\"119\"}",
"is_open": "1",
"display_order": "99",
"resource_package": "{\"GPU\\\":{\"amount\":\"8\",\"unit\":\"Core\"},\"CPU\":{\"amount\":\"32\",\"unit\":\"Core\"},\"RAM\":{\"amount\":\"640\",\"unit\":\"GB\"}}",
"default_pay_limit": "1 month",
"service_type": "AI",
"service_code": "AI",
"service_name": "人工智慧",
"product_main_type": "vm_k8s",
"product_sub_type": "AI K8s",
"product_sub_code": "AI K8s",
"sub_type_name": "作業系統K8S",
"price_result": [
{
"start_date": "0000-00-00 00:00:00",
"end_date": "2099-12-31 23:59:59",
"price": "120",
"price_order": "0",
"price_package": "{\\\"CPU\\\": 0,\\\"GPU\\\":5}",
"desc": "台灣杉二號-科技部",
"short": "MST"
}
]
}
- Response
{
"id": "69",
"uuid": "bff62100-962a-4750-b5eb-7bcd8cb2223c",
"serial_number": "flavor-119",
"name": "AI-K8S-Flavor-119",
"desc": "8GPU+32cores+640GB memory",
"spec": "8GPU+32cores+640GB memory",
"max": "1",
"min": "1",
"start": "1",
"increment": "1",
"unit_text": null,
"pay_period": "day",
"resource_day": "1 day",
"other_content": "{\"flavor_id\":\"119\"}",
"is_open": "1",
"display_order": "99",
"resource_package": "{\"GPU\\\":{\"amount\":\"8\",\"unit\":\"Core\"},\"CPU\":{\"amount\":\"32\",\"unit\":\"Core\"},\"RAM\":{\"amount\":\"640\",\"unit\":\"GB\"}}",
"default_pay_limit": "1 month",
"service_type": "AI",
"service_code": "AI",
"service_name": "人工智慧",
"product_main_type": "vm_k8s",
"product_sub_type": "AI K8s",
"product_sub_code": "AI K8s",
"sub_type_name": "作業系統K8S",
"price_result": [
{
"start_date": "0000-00-00 00:00:00",
"end_date": "2099-12-31 23:59:59",
"price": "120",
"price_order": "0",
"price_package": "{\\\"CPU\\\": 0,\\\"GPU\\\":5}",
"desc": "台灣杉二號-科技部",
"short": "MST"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
code integer錯誤碼
message string錯誤訊息
{
"errors": [
{
"code": 0,
"message": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
- Response
Schema
errors object[]
code integer錯誤碼
message string錯誤訊息
{
"errors": [
{
"code": 0,
"message": "string"
}
]
}
{
"errors": [
{
"code": 89,
"message": "Invalid or expired token. Try to get a new one."
}
]
}
- application/json
- Schema
- Example (from schema)
- Response
Schema
errors object[]
code integer錯誤碼
message string錯誤訊息
{
"errors": [
{
"code": 0,
"message": "string"
}
]
}
{
"errors": [
{
"code": 385,
"message": "Data is deleted or not visible to you."
}
]
}
- application/json
- Schema
- Example (from schema)
- Response
Schema
errors object[]
code integer錯誤碼
message string錯誤訊息
{
"errors": [
{
"code": 0,
"message": "string"
}
]
}
{
"errors": [
{
"code": 2001,
"message": "No data found."
}
]
}
Loading...