跳转到内容

💳 账单与用量 API

计划过渡、发票管理和资源消耗。命名空间级别的配额限制与用量追踪。

  • 类别:平台
  • 复杂度:中等
  • 路径数:25 | Schema 数:101
  • 层级:标准
  • 相关域systemusers
  • 管理订阅计划和计划过渡
  • 配置支付方式和发票
  • 跨命名空间追踪资源配额用量
  • 监控使用限制和容量
  • subscription:服务权益的订阅
  • quota:使用限制的资源配额
  • usage_report:消耗追踪的用量报告
方法路径描述
POST/api/data/namespaces/system/billing/usage_summary账单用量汇总。
GET/api/web/namespaces/{namespace}/usage/invoice_pdf获取发票 PDF。
GET/api/web/namespaces/{namespace}/usage/invoices/custom_list列出发票。
POST/api/web/namespaces/{namespace}/billing/payment_method/{name}/primary将信用卡设为主要支付方式。
POST/api/web/namespaces/{namespace}/billing/payment_method/{name}/secondary将支付方式设为次要。
POST/api/web/namespaces/{namespace}/billing/payment_method/{name}/swap-primary将支付方式设为次要。
POST/api/web/namespaces/{namespace}/billing/payment_methods创建支付方式规范。
DELETE/api/web/namespaces/{namespace}/billing/payment_methods/{name}删除指定支付方式。
GET/no_auth/namespaces/system/billing/plan_transition获取计划过渡。
POST/api/web/namespaces/{namespace}/billing/plan_transition发起计划过渡。
POST/api/web/namespaces/{metadata.namespace}/quotas创建配额。
PUT/api/web/namespaces/{metadata.namespace}/quotas/{metadata.name}替换配额。
GET/api/web/namespaces/{namespace}/quota/limits自定义获取配额限制。
GET/api/web/namespaces/{namespace}/quota/usage获取配额用量。
GET/api/web/namespaces/{namespace}/quotas列出配额。
GET/api/web/namespaces/{namespace}/quotas/{name}获取配额
DELETE/api/web/namespaces/{namespace}/quotas/{name}删除配额。
GET/api/web/namespaces/{namespace}/subscriptions/custom_list列出订阅。
POST/api/web/namespaces/system/addon/subscribe订阅 XC 附加服务。
POST/api/web/namespaces/system/addon/unsubscribe取消订阅 XC 附加服务。
POST/api/web/namespaces/{namespace}/current_usage列出当前用量详情。
POST/api/web/namespaces/{namespace}/hourly_usage_details列出每小时用量详情。
POST/api/web/namespaces/{namespace}/monthly_usage列出每月用量详情。
POST/api/web/namespaces/{namespace}/usage_details列出用量详情。
GET/api/web/namespaces/system/usage_plans/current获取当前用量计划。
GET/api/web/namespaces/system/usage_plans/custom_list列出用量计划。