quote
Calculates USD costs for a Huawei Cloud bill of materials using the official rating engine, with on-demand, monthly, or yearly billing options.
Instructions
Price a bill of materials with Huawei Cloud's official rating engine (USD).
items: [{service, spec, quantity=1, size=None, usage_factor=None, usage_value=None}]
spec comes from search_skus; size is capacity in GB for disks/volumes.
usage_value for usage-billed items (OBS storage GB, traffic GB, requests). billing='ondemand' prices
hours(730 = one month); 'monthly'/'yearly' priceperiodsmonths/years and include the official yearly discount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| items | Yes | ||
| region | Yes | ||
| billing | No | ondemand | |
| periods | No |