huaweicloud-bss
HuaweiCloud BSS (Business Support System) API guide. Covers pricing (pay-as-you-go via ListOnDemandResourceRatings, yearly/monthly via ListRateOnPeriodDetail), billing and costs (ListCosts, ListCustomerBillsMonthlyBreakDown, ShowCustomerMonthlySum, ListCustomerBillsFeeRecords), resource specs (flavor, size, region availability), orders, subscriptions, and enterprise project management. 91 BSS APIs with full swagger definitions under references/, pricing flow (ListServiceTypes → ListResourceTypes → ListResourceSpecs → rating query), and spec-to-price mapping.
- License 许可
- MIT
- 最近更新
- 2026-10-27
- Stars
- ★ 19
- Forks
- 6
01 前言 Front Matter
- name
- huaweicloud-bss
- description
- HuaweiCloud BSS (Business Support System) API guide. Covers pricing (pay-as-you-go via ListOnDemandResourceRatings, yearly/monthly via ListRateOnPeriodDetail), billing and costs (ListCosts, ListCustomerBillsMonthlyBreakDown, ShowCustomerMonthlySum, ListCustomerBillsFeeRecords), resource specs (flavor, size, region availability), orders, subscriptions, and enterprise project management. 91 BSS APIs with full swagger definitions under references/, pricing flow (ListServiceTypes → ListResourceTypes → ListResourceSpecs → rating query), and spec-to-price mapping.
02 资源文件 91
- 参考文档references/AutoRenewalResources.json5.1 KB
- 参考文档references/CancelAutoRenewalResources.json3.5 KB
- 参考文档references/CancelCustomerOrder.json2.9 KB
- 参考文档references/CancelResourcesSubscription.json7.4 KB
- 参考文档references/ChangeEnterpriseRealnameAuthentication.json9.9 KB
- 参考文档references/CheckUserIdentity.json4.8 KB
- 参考文档references/ClaimEnterpriseMultiAccountCoupon.json4.8 KB
- 参考文档references/CreateEnterpriseProjectAuth.json2.4 KB
- 参考文档references/CreateEnterpriseRealnameAuthentication.json9.4 KB
- 参考文档references/CreatePartnerCoupons.json10.1 KB
- 参考文档references/CreatePersonalRealnameAuth.json10.4 KB
- 参考文档references/CreateSubCustomer.json8.9 KB
- 参考文档references/CreateSubEnterpriseAccount.json6.6 KB
- 参考文档references/ListCities.json6.1 KB
- 参考文档references/ListConsumeSubCustomers.json5.7 KB
- 参考文档references/ListConversions.json5.2 KB
- 参考文档references/ListCosts.json12.5 KB
- 参考文档references/ListCounties.json6.4 KB
- 参考文档references/ListCouponQuotasRecords.json11.2 KB
- 参考文档references/ListCustomerAccountChangeRecords.json10.7 KB
- 参考文档references/ListCustomerBillsFeeRecords.json22.6 KB
- 参考文档references/ListCustomerBillsMonthlyBreakDown.json25.0 KB
- 参考文档references/ListCustomerCouponChangeRecords.json11.8 KB
- 参考文档references/ListCustomerOnDemandResources.json12.5 KB
- 参考文档references/ListCustomerOrders.json24.4 KB
- 参考文档references/ListCustomersBalancesDetail.json6.0 KB
- 参考文档references/ListCustomerselfResourceRecordDetails.json31.4 KB
- 参考文档references/ListCustomerselfResourceRecords.json34.8 KB
- 参考文档references/ListEnterpriseMultiAccount.json6.0 KB
- 参考文档references/ListEnterpriseOrganizations.json5.9 KB
- 参考文档references/ListEnterpriseSubCustomers.json7.5 KB
- 参考文档references/ListFreeResourceInfos.json12.9 KB
- 参考文档references/ListFreeResourcesUsageRecords.json9.4 KB
- 参考文档references/ListFreeResourceUsages.json7.2 KB
- 参考文档references/ListIncentiveDiscountPolicies.json6.3 KB
- 参考文档references/ListIndirectPartners.json7.7 KB
- 参考文档references/ListIssuedCouponQuotas.json15.6 KB
- 参考文档references/ListIssuedPartnerCoupons.json21.3 KB
- 参考文档references/ListMeasureUnits.json3.9 KB
- 参考文档references/ListMultiAccountRetrieveCoupons.json7.7 KB
- 参考文档references/ListMultiAccountTransferCoupons.json7.1 KB
- 参考文档references/ListOnDemandResourceRatings.json17.6 KB
- 参考文档references/ListOrderCouponsByOrderId.json10.8 KB
- 参考文档references/ListOrderDiscounts.json7.3 KB
- 参考文档references/ListPartnerAccountChangeRecords.json10.7 KB
- 参考文档references/ListPartnerAdjustRecords.json9.8 KB
- 参考文档references/ListPartnerBalances.json5.2 KB
- 参考文档references/ListPartnerCouponsRecord.json13.1 KB
- 参考文档references/ListPayPerUseCustomerResources.json15.4 KB
- 参考文档references/ListProvinces.json5.8 KB
- 参考文档references/ListQuotaCoupons.json18.7 KB
- 参考文档references/ListRateOnPeriodDetail.json26.8 KB
- 参考文档references/ListRenewRateOnPeriod.json11.1 KB
- 参考文档references/ListResourceSpecs.json9.9 KB
- 参考文档references/ListResourceTypes.json5.1 KB
- 参考文档references/ListResourceUsage.json10.1 KB
- 参考文档references/ListResourceUsageSummary.json9.4 KB
- 参考文档references/ListServiceResources.json7.6 KB
- 参考文档references/ListServiceTypes.json5.2 KB
- 参考文档references/ListStoredValueCards.json6.0 KB
- 参考文档references/ListSubCustomerBillDetail.json25.2 KB
- 参考文档references/ListSubCustomerCoupons.json17.2 KB
- 参考文档references/ListSubcustomerMonthlyBills.json12.8 KB
- 参考文档references/ListSubCustomerNewTag.json6.5 KB
- 参考文档references/ListSubCustomers.json12.4 KB
- 参考文档references/ListUsageTypes.json6.8 KB
- 参考文档references/PayOrders.json11.5 KB
- 参考文档references/ReclaimCouponQuotas.json6.0 KB
- 参考文档references/ReclaimEnterpriseMultiAccountCoupon.json4.8 KB
- 参考文档references/ReclaimIndirectPartnerAccount.json4.1 KB
- 参考文档references/ReclaimPartnerCoupons.json3.6 KB
- 参考文档references/ReclaimSubEnterpriseAmount.json5.6 KB
- 参考文档references/ReclaimToPartnerAccount.json4.5 KB
- 参考文档references/RenewalResources.json6.8 KB
- 参考文档references/SendSmsVerificationCode.json4.1 KB
- 参考文档references/SendVerificationMessageCode.json4.6 KB
- 参考文档references/SetResourcesRenewConfig.json4.6 KB
- 参考文档references/ShowCustomerAccountBalances.json5.4 KB
- 参考文档references/ShowCustomerMonthlySum.json16.5 KB
- 参考文档references/ShowCustomerOrderDetails.json25.9 KB
- 参考文档references/ShowMultiAccountTransferAmount.json5.7 KB
- 参考文档references/ShowRealnameAuthenticationReviewResult.json3.2 KB
- 参考文档references/ShowRealNameAuthQrCode.json2.6 KB
- 参考文档references/ShowRealNameAuthStatus.json2.8 KB
- 参考文档references/ShowRefundOrderDetails.json7.0 KB
- 参考文档references/UpdateCouponQuotas.json7.0 KB
- 参考文档references/UpdateCustomerAccountAmount.json4.4 KB
- 参考文档references/UpdateIndirectPartnerAccount.json3.8 KB
- 参考文档references/UpdatePeriodToOnDemand.json6.0 KB
- 参考文档references/UpdatePeriodToOnDemandInstantly.json5.7 KB
- 参考文档references/UpdateSubEnterpriseAmount.json4.8 KB
03 SKILL.md 正文
HuaweiCloud BSS API Guide
You are a HuaweiCloud pricing and billing expert. You can query resource prices, check billing/cost data, look up resource specs, and manage orders/subscriptions.
BSS API
HuaweiCloud billing and pricing is exposed through the BSS (Business Support System) API. The base URL is https://bss.myhuaweicloud.com.
Pricing-core APIs
These are the APIs you will most likely use for estimate_cost:
| API | Method | URI | Description |
|---|---|---|---|
ListServiceTypes |
GET | /v2/products/service-types |
List all cloud service types (ECS, RDS, OBS, ...) |
ListResourceTypes |
GET | /v2/products/resource-types |
List resource types for a service type |
ListResourceSpecs |
POST | /v2/products/resource-specs-query |
Query resource specs (flavor, size, etc.) |
ListOnDemandResourceRatings |
POST | /v2/bills/ratings/on-demand-resources |
Query pay-as-you-go (on-demand) prices |
ListRateOnPeriodDetail |
POST | /v2/bills/ratings/period-resources/subscribe-rate |
Query monthly/yearly subscription prices |
ListCosts |
POST | /v4/costs/cost-analysed-bills/query |
Query cost data |
ListCustomerBillsMonthlyBreakDown |
GET | /v2/costs/cost-analysed-bills/monthly-breakdown |
Query monthly cost breakdown |
ListCustomerBillsFeeRecords |
GET | /v2/bills/customer-bills/fee-records |
Query billing fee records |
ShowCustomerMonthlySum |
GET | /v2/bills/customer-bills/monthly-sum |
Query monthly billing summary |
Pricing flow
- Use
ListServiceTypesto find thecloud_service_typecode for the resource (e.g.hws.service.type.ec2for ECS) - Use
ListResourceTypesto find theresource_typecode (e.g.hws.resource.type.vm) - Use
ListResourceSpecsto confirm the resource spec (flavor_id, etc.) exists in the target region - Use
ListOnDemandResourceRatingsfor pay-as-you-go prices, orListRateOnPeriodDetailfor monthly/yearly subscription prices
Full API catalog
All 91 BSS APIs. APIs marked [pricing-core] are the most relevant for estimate_cost. For detailed request/response schemas, read the corresponding file in references/<APIName>.json.
| API | Method | URI | Description |
|---|---|---|---|
AutoRenewalResources |
POST | /v2/orders/subscriptions/resources/autorenew/{resource_id} |
设置包年/包月资源自动续费 |
CancelAutoRenewalResources |
DELETE | /v2/orders/subscriptions/resources/autorenew/{resource_id} |
取消包年/包月资源自动续费 |
CancelCustomerOrder |
PUT | /v2/orders/customer-orders/cancel |
取消待支付订单 |
CancelResourcesSubscription |
POST | /v2/orders/subscriptions/resources/unsubscribe |
退订包年/包月资源 |
ChangeEnterpriseRealnameAuthentication |
PUT | /v2/customers/realname-auths/enterprise |
申请实名认证变更 |
CheckUserIdentity |
POST | /v2/partners/sub-customers/users/check-identity |
校验客户注册信息 |
ClaimEnterpriseMultiAccountCoupon |
POST | /v2/enterprises/multi-accounts/transfer-coupon |
企业主账号向企业子账号拨款优惠券 |
CreateEnterpriseProjectAuth |
POST | /v2/enterprises/enterprise-projects/authority |
开通客户企业项目权限 |
CreateEnterpriseRealnameAuthentication |
POST | /v2/customers/realname-auths/enterprise |
申请企业实名认证 |
CreatePartnerCoupons |
POST | /v2/promotions/benefits/partner-coupons |
发放优惠券 |
CreatePersonalRealnameAuth |
POST | /v2/customers/realname-auths/individual |
申请个人实名认证 |
CreateSubCustomer |
POST | /v2/partners/sub-customers |
创建客户 |
CreateSubEnterpriseAccount |
POST | /v2/enterprises/multi-accounts/sub-customers |
创建企业子账号 |
ListCities |
GET | /v2/systems/configs/cities |
查询城市信息 |
ListConsumeSubCustomers |
POST | /v2/bills/subcustomer-bills/res-fee-records/sub-customers/query |
查询伙伴消费子客户列表 |
ListConversions |
GET | /v2/bases/conversions |
查询度量单位进制 |
ListCosts |
POST | /v4/costs/cost-analysed-bills/query |
查询成本数据 [pricing-core] |
ListCounties |
GET | /v2/systems/configs/counties |
查询区县信息 |
ListCouponQuotasRecords |
GET | /v2/partners/coupon-quotas/records |
查询代金券额度的发放回收记录 |
ListCustomerAccountChangeRecords |
GET | /v2/accounts/customer-accounts/account-change-records |
查询收支明细(客户) |
ListCustomerBillsFeeRecords |
GET | /v2/bills/customer-bills/fee-records |
查询流水账单 [pricing-core] |
ListCustomerBillsMonthlyBreakDown |
GET | /v2/costs/cost-analysed-bills/monthly-breakdown |
查询月度成本 [pricing-core] |
ListCustomerCouponChangeRecords |
GET | /v2/promotions/benefits/account-change-records |
查询优惠券收支明细 |
ListCustomerOnDemandResources |
POST | /v2/partners/sub-customers/on-demand-resources/query |
查询客户按需资源列表 |
ListCustomerOrders |
GET | /v2/orders/customer-orders |
查询订单列表 |
ListCustomersBalancesDetail |
POST | /v2/accounts/customer-accounts/balances/batch-query |
查询客户账户余额 |
ListCustomerselfResourceRecordDetails |
POST | /v2/bills/customer-bills/res-records/query |
查询资源详单 |
ListCustomerselfResourceRecords |
GET | /v2/bills/customer-bills/res-fee-records |
查询资源消费记录 |
ListEnterpriseMultiAccount |
GET | /v2/enterprises/multi-accounts/retrieve-amount |
查询企业子账号可回收余额 |
ListEnterpriseOrganizations |
GET | /v2/enterprises/multi-accounts/enterprise-organizations |
查询企业组织结构 |
ListEnterpriseSubCustomers |
GET | /v2/enterprises/multi-accounts/sub-customers |
查询企业子账号列表 |
ListFreeResourceInfos |
POST | /v3/payments/free-resources/query |
查询资源包列表 |
ListFreeResourcesUsageRecords |
GET | /v2/bills/customer-bills/free-resources-usage-records |
查询资源包使用明细 |
ListFreeResourceUsages |
POST | /v2/payments/free-resources/usages/details/query |
查询资源包使用量 |
ListIncentiveDiscountPolicies |
GET | /v2/products/incentive-discount-policies |
查询产品的折扣和激励策略 |
ListIndirectPartners |
POST | /v2/partners/indirect-partners/query |
查询云经销商列表 |
ListIssuedCouponQuotas |
GET | /v2/partners/issued-coupon-quotas |
查询已发放的代金券额度 |
ListIssuedPartnerCoupons |
GET | /v2/promotions/benefits/partner-coupons |
查询已发放的优惠券 |
ListMeasureUnits |
GET | /v2/bases/measurements |
查询度量单位列表 |
ListMultiAccountRetrieveCoupons |
GET | /v2/enterprises/multi-accounts/retrieve-coupons |
查询企业子账号可回收优惠券列表 |
ListMultiAccountTransferCoupons |
GET | /v2/enterprises/multi-accounts/transfer-coupons |
查询企业主账号可拨款优惠券列表 |
ListOnDemandResourceRatings |
POST | /v2/bills/ratings/on-demand-resources |
查询按需产品价格 [pricing-core] |
ListOrderCouponsByOrderId |
GET | /v2/orders/customer-orders/order-coupons |
查询订单可用优惠券 |
ListOrderDiscounts |
GET | /v2/orders/customer-orders/order-discounts |
查询订单可用折扣 |
ListPartnerAccountChangeRecords |
GET | /v2/accounts/partner-accounts/account-change-records |
查询收支明细 |
ListPartnerAdjustRecords |
GET | /v3/accounts/partner-accounts/adjust-records |
查询调账记录 |
ListPartnerBalances |
GET | /v2/accounts/partner-accounts/balances |
查询云经销商账户余额 |
ListPartnerCouponsRecord |
GET | /v2/promotions/benefits/partner-coupons/records/query |
查询优惠券的发放回收记录 |
ListPayPerUseCustomerResources |
POST | /v2/orders/suscriptions/resources/query |
查询客户包年/包月资源列表 |
ListProvinces |
GET | /v2/systems/configs/provinces |
查询省份信息 |
ListQuotaCoupons |
POST | /v2/partners/coupon-quotas/query |
查询优惠券额度 |
ListRateOnPeriodDetail |
POST | /v2/bills/ratings/period-resources/subscribe-rate |
查询包年/包月产品价格 [pricing-core] |
ListRenewRateOnPeriod |
POST | /v2/bills/ratings/period-resources/renew-rate |
查询待续订包年包月资源的续订金额 |
ListResourceSpecs |
POST | /v2/products/resource-specs-query |
查询云服务类型资源规格 [pricing-core] |
ListResourceTypes |
GET | /v2/products/resource-types |
查询资源类型列表 [pricing-core] |
ListResourceUsage |
GET | /v2/bills/customer-bills/resources/usage/details |
查询95计费资源用量明细 |
ListResourceUsageSummary |
GET | /v2/bills/customer-bills/resources/usage/summary |
查询95计费资源用量汇总 |
ListServiceResources |
GET | /v2/products/service-resources |
根据云服务类型查询资源类型列表 |
ListServiceTypes |
GET | /v2/products/service-types |
查询云服务类型列表 [pricing-core] |
ListStoredValueCards |
GET | /v2/promotions/benefits/stored-value-cards |
查询储值卡列表 |
ListSubCustomerBillDetail |
GET | /v2/bills/subcustomer-bills/res-fee-records |
查询伙伴子客户消费记录 |
ListSubCustomerCoupons |
GET | /v2/promotions/benefits/coupons |
查询优惠券列表 |
ListSubcustomerMonthlyBills |
GET | /v2/bills/partner-bills/subcustomer-bills/monthly-sum |
查询客户月度消费账单 |
ListSubCustomerNewTag |
POST | /v2/partners/sub-customers/new-customers-tags/batch-query |
查询客户新客标签 |
ListSubCustomers |
POST | /v2/partners/sub-customers/query |
查询客户列表 |
ListUsageTypes |
GET | /v2/products/usage-types |
查询使用量类型列表 |
PayOrders |
POST | /v3/orders/customer-orders/pay |
支付包年/包月产品订单 |
ReclaimCouponQuotas |
POST | /v2/partners/coupon-quotas/indirect-partner-reclaim |
回收云经销商的代金券额度 |
ReclaimEnterpriseMultiAccountCoupon |
POST | /v2/enterprises/multi-accounts/retrieve-coupon |
企业主账号从企业子账号回收优惠券 |
ReclaimIndirectPartnerAccount |
POST | /v2/accounts/partner-accounts/indirect-partner-reclaim |
回收云经销商账户拨款 |
ReclaimPartnerCoupons |
POST | /v2/promotions/benefits/partner-coupons/reclaim |
回收优惠券 |
ReclaimSubEnterpriseAmount |
POST | /v2/enterprises/multi-accounts/retrieve-amount |
企业主账号从企业子账号回收拨款 |
ReclaimToPartnerAccount |
POST | /v2/accounts/partner-accounts/reclaim |
回收客户账户余额 |
RenewalResources |
POST | /v2/orders/subscriptions/resources/renew |
续订包年/包月资源 |
SendSmsVerificationCode |
POST | /v2/enterprises/multi-accounts/sm-verification-code |
发送短信验证码 |
SendVerificationMessageCode |
POST | /v2/bases/verificationcode/send |
发送验证码 |
SetResourcesRenewConfig |
POST | /v2/orders/subscriptions/resources/renew/config |
设置包年/包月资源自动续费扣款日和续费后资源统一到期日 |
ShowCustomerAccountBalances |
GET | /v2/accounts/customer-accounts/balances |
查询账户余额 |
ShowCustomerMonthlySum |
GET | /v2/bills/customer-bills/monthly-sum |
查询汇总账单 [pricing-core] |
ShowCustomerOrderDetails |
GET | /v2/orders/customer-orders/details/{order_id} |
查询订单详情 |
ShowMultiAccountTransferAmount |
GET | /v2/enterprises/multi-accounts/transfer-amount |
查询企业主账号可拨款余额 |
ShowRealnameAuthenticationReviewResult |
GET | /v2/customers/realname-auths/result |
查询实名认证审核结果 |
ShowRealNameAuthQrCode |
GET | /v2/customers/real-name-auth-qrcode |
获取人脸实名认证二维码 |
ShowRealNameAuthStatus |
GET | /v2/customers/real-name-auth-status |
查询实名认证状态 |
ShowRefundOrderDetails |
GET | /v2/orders/customer-orders/refund-orders |
查询退款订单的金额详情 |
UpdateCouponQuotas |
POST | /v2/partners/coupon-quotas/indirect-partner-adjust |
向云经销商发放代金券额度 |
UpdateCustomerAccountAmount |
POST | /v2/accounts/partner-accounts/adjust-amount |
向客户账户拨款 |
UpdateIndirectPartnerAccount |
POST | /v2/accounts/partner-accounts/indirect-partner-adjust |
向云经销商账户拨款 |
UpdatePeriodToOnDemand |
POST | /v2/orders/subscriptions/resources/to-on-demand |
设置或取消包年/包月资源到期转按需 |
UpdatePeriodToOnDemandInstantly |
POST | /v2/orders/subscriptions/resources/to-on-demand/instantly |
设置包年/包月资源即时转按需 |
UpdateSubEnterpriseAmount |
POST | /v2/enterprises/multi-accounts/transfer-amount |
企业主账号向企业子账号拨款 |
Reference files
Detailed API definitions (swagger with parameters, responses, examples) are in references/<APIName>.json. Use read to load the specific API you need. Use grep to search across all definitions for a field name or resource type.
Query Methods
Use the http_request tool to call BSS APIs directly. Authentication (SDK-HMAC-SHA256 signing with your AK/SK) is handled automatically — do NOT pass any credentials.
Example: query on-demand resource price
http_request(
method: "POST",
url: "https://bss.myhuaweicloud.com/v2/bills/ratings/on-demand-resources",
headers: {"Content-Type": "application/json"},
body: "{\"cloud_service_type\": \"hws.service.type.ec2\", \"resource_type\": \"hws.resource.type.vm\", \"region_code\": \"cn-north-1\", \"charge_mode\": 3, ...}"
)
The tool returns:
{"status": 200, "headers": {...}, "body": "...API response JSON..."}
Fallback
Use WebSearch and WebFetch to query HuaweiCloud official pricing pages when the BSS API is unavailable or you need to look up a service type code.
Rules
- Mark prices that cannot be determined as
null, do not fabricate - Note the price source and query time
- Distinguish between pay-as-you-go and monthly billing
Return Format
{
"items": [
{"resource": "resource address", "spec": "spec description", "monthly": monthly price or null}
],
"total_monthly": total monthly cost or null,
"currency": "CNY",
"note": "price notes"
}
04 同仓库更多 Skills
skill-creator
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
powerpoint
Create designed, editable PowerPoint .pptx presentations with PptxGenJS-Plus. Use when the user asks to create, generate, update, or inspect a deck, slide deck, presentation, or .pptx file.
example-skill
这是一个测试 skill,用于验证 load_skill 加载流程
huaweicloud-workspaceapp
HuaweiCloud WorkspaceApp API guide. 174 APIs covering hotspotSession, 云存储, 产品套餐管理, 任务管理, 使用记录.
huaweicloud-workspace
HuaweiCloud Workspace API guide. 352 APIs covering ai功能, 云办公主机, 云办公服务, 产品套餐, 任务.
huaweicloud-waf
HuaweiCloud WAF API guide. 202 APIs covering Web防护规则查询, 事件管理, 云模式域名管理, 云模式防护网站管理, 可防护的资源管理.