ListInstanceQuotas - 查询实例的配额详情

根据配额名称查询当前实例或者站点对应的套餐的配额详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
esa:ListInstanceQuotaslist
*全部资源
*

请求参数

名称类型必填描述示例值
InstanceIdstring

套餐实例 ID,可通过调用 ListSites 接口获取。

sp-xcdn-96wblslz****
SiteIdlong

站点 ID,可通过调用 ListSites 接口获取。

2882900****
QuotaNamesstring

套餐配额名称,多个用(,)隔开。支持:

  • waf:phase:http_anti_scan:actions:WAF 扫描防护-动作枚举。
  • waf:phase:http_bot:actions:WAF BOT 管理-所有动作枚举。
  • waf:phase:http_bot:http_custom_cc_dev:characteristic:fields:WAF BOT 管理-自定义设备限速类型统计对象枚举。
  • waf:phase:http_bot:http_custom_cc_ip:characteristic:fields:WAF BOT 管理-自定义 IP 限速类型统计对象枚举。
  • waf:phase:http_bot:match:symbols:WAF BOT 管理-匹配符枚举。
  • waf:phase:http_bot:http_custom_cc:characteristic:fields:WAF BOT 管理--自定义会话限速类型统计对象枚举。
  • waf:phase:http_bot:match:fields:WAF BOT 管理阶-匹配字段枚举。
  • waf:phase:http_whitelist:match:symbols:WAF 白名单-匹配符枚举。
  • waf:phase:http_whitelist:match:fields:WAF 白名单-匹配字段枚举。
  • waf:phase:http_anti_scan:http_directory_traversal:characteristic:fields:WAF 扫描防护-目录遍历封禁类型统计对象枚举。
  • waf:phase:http_anti_scan:http_high_frequency:characteristic:fields:WAF 扫描防护-高频扫描封禁类型统计对象枚举。
  • waf:phase:http_anti_scan:match:symbols:WAF 扫描防护-匹配符枚举。
  • waf:phase:http_anti_scan:match:fields:WAF 扫描防护-匹配字段枚举。
  • waf:phase:http_managed:actions:WAF 托管规则-动作枚举。
  • waf:phase:http_managed:group:reference:ids:WAF 托管规则-引用规则组枚举。
  • waf:phase:http_ratelimit:actions:WAF 频次控制-动作枚举。
  • waf:phase:http_ratelimit:ttls:WAF 频次控制-持续时间枚举。
  • waf:phase:http_ratelimit:intervals:WAF 频次控制-统计时长。
  • waf:phase:http_ratelimit:http_ratelimit:characteristic:fields:WAF 频次控制-控制类型规则-匹配特征枚举。
  • waf:phase:http_ratelimit:match:symbols:WAF 频次控制规则阶段匹配符枚举。
  • waf:phase:http_ratelimit:match:fields:WAF 频次控制规则阶段匹配字段枚举。
  • waf:phase:http_custom:actions:WAF 自定义规则阶段动作枚举。
  • waf:phase:http_custom:match:symbols:WAF 自定义规则阶段匹配符枚举。
  • waf:phase:http_custom:match:fields:WAF 自定义规则阶段匹配字段。
  • waiting_room|queuing_method:等候室 - 排队方法。
  • origin_rules|origin_scheme:回源规则 - 回源协议。
  • origin_rules|origin_sni:回源规则 - 回源 SNI。
  • origin_rules|origin_host:回源规则 - 回源 host。
  • fourlayeracceleration:四层加速。
  • rtlog_service:实时日志功能开关。
  • dashboard_traffic:流量分析的增值能力。
  • custom_name_server:自定义 NS 名称。
  • waf:phase:http_bot:enable:WAF BOT 管理开关。
  • waf:phase:http_whitelist:enable:WAF 白名单开关。
  • instantlog:即时日志可用不可用。
  • waf:phase:http_anti_scan:enable:WAF 扫描防护开关。
  • waf:phase:http_managed:group:reference:enable:WAF 托管规则- 配置引用规则组开关。
  • waf:phase:http_managed:enable:WAF 托管规则开关。
  • waf:phase:http_ratelimit:on_hit:enable:WAF 频次控制 - 在命中缓存的请求上应用开关。
  • ddos:ddos 实例。
  • waf:phase:http_ratelimit:enable:WAF 频次控制规则阶段开关。
  • waf:phase:http_custom:enable:WAF 自定义规则阶段开关。
  • waf:phase:all:page:reference:enable:WAF 自定义响应页面开关。
  • rules_support_regex:规则引擎支持正则运算与否。
  • waiting_room_event:waitingroom - 计划事件。
  • waiting_room_rule:waitingroom - 绕过等候室。
  • waiting_room|json_response:waitingroom - 开启 JSON 响应。
  • waiting_room|disable_session_renewal:waitingroom- 禁用会话续订。
  • origin_rules|dns_record:回源规则 - dns 记录。
  • managed_transforms|add_client_geolocation_headers:转换规则中是否可用真实客户端 IP 头。
  • tiered_cache|regional_enable:区域缓存。
  • real_client_ip_header:客户端 IP 头部。
  • data_timerange:数据查询时间-分钟。
  • cache_rules|edge_cache_ttl:缓存 - 节点 TTL。
  • cache_rules|browser_cache_ttl:缓存 - 浏览器 TTL。
  • fourLayerRecordCount:四层加速的记录数限制。
  • waitingroomRuleCount:一个 waitingRoomId 可以对应几个 rule。
  • waitingroomEventCount:一个 waitingRoomId 可以对应几个 event。
  • waitingroom_custom_pathhost:等候室 - 主机名和路径。
  • er_routers:函数路由。
  • cache_rules|rule_quota:缓存规则。
  • configuration_rules|rule_quota:配置规则。
  • redirect_rules|rule_quota:重定向规则。
  • compression_rules|rule_quota:压缩规则。
  • origin_rules|rule_quota:回源规则。
  • waf:phase:http_bot:rulesets_per_instance:less_than_or_equal:WAF BOT 管理-每个实例中规则组最大数量。
  • waf:phase:http_whitelist:rules_per_instance:less_than_or_equal:WAF 白名单-每个实例中规则最大数量。
  • rtlog_quota:实时日志的推送任务数 quota。
  • waf:phase:http_anti_scan:rulesets_per_instance:less_than_or_equal:WAF 扫描防护-每个实例中规则组最大数量。
  • ddos_instance:ddos 实例数。
  • waf:phase:http_ratelimit:rules_per_instance:less_than_or_equal:WAF 频次控制规则最大数量。
  • waf:phase:http_custom:rules_per_instance:less_than_or_equal:WAF 自定义规则阶段每个实例中规则最大数量。
  • ruleNestedConditionalCount:规则的层级数。
  • waiting_room:等候室 waitingroom。
  • transition_rule:转换规则。
  • customHttpCert:自定义证书个数。
  • free_cert:免费证书个数。
  • preload:预热。
  • refresh_cache_tag:刷新 - cache tag。
  • refresh_ignore_param:刷新 - 去参数刷新。
  • refresh_directory:刷新-按目录刷新。
  • refresh_hostname:刷新-按主机名。
  • refresh_all:刷新 - 清除所有缓存。
  • refresh_file:URL 刷新。
  • wildcard:泛域名个数。
  • recordCount:七层记录数量。
  • siteCount:站点数量。
  • https|rule_quota:SSL/TLS 规则数。
preload, free_cert

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

15C66C7B-671A-4297-9187-2C4477247B78
InstanceIdstring

套餐实例 ID。

sp-xcdn-96wblslz****
Statusstring

套餐实例状态。支持:

  • online:正常服务状态。
  • offline:到期但未超期,处于不可用的状态。
  • disable:已释放状态。
online
Quotasarray<object>

套餐实例配额列表。

Itemobject

套餐实例配额详情。

QuotaNamestring

配额名称。

customHttpCert
QuotaValuestring

配额值。

10
QuotaValueTypestring

配额的阈值类型。取值:

  • value:枚举类型。配额的取值枚举范围。
  • bool:布尔类型。配额是否可用。
  • num:数值类型。配额使用数量上限。
  • range:范围类型。配额的取值大小范围。
  • custom:自定义类型。除以上四种配额阈值类型的其他类型。
bool

示例

正常返回示例

JSON格式

{
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247B78",
  "InstanceId": "sp-xcdn-96wblslz****",
  "Status": "online",
  "Quotas": [
    {
      "QuotaName": "customHttpCert",
      "QuotaValue": "10",
      "QuotaValueType": "bool"
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterThe specified parameter is invalid.输入参数规范校验失败。
400QuotaNotExistThe quota item does not exist or the purchased plan has not taken effect. Confirm and try again.套餐配额项不存在或购买套餐未生效,请确认后重试。
400InstanceNotExistThe instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account.实例不存在,请检查提供的实例ID是否正确或该实例是否属于您的账户。
400ErService.HasOpenedYou have already activated Edge Routine.您已开通边缘函数服务,无需重复开通。
403Site.NotExistThe specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system.指定的站点不存在或当前未被系统识别。请检查站点标识符是否准确,并确保它与一个已定义、当前活跃且在系统公认的站点网络中可访问的站点相匹配。如果该站点是预定新增的,请确保已完成适当的创建或注册流程,以将其整合到系统中。
404SiteNotFoundThe website does not exist or does not belong to you.站点不存在,或者不属于你。
404UnsupportQuotaUnsupported quota is specified. Check and try again.当前操作不支持该配额,请检查传入的配额是否有效。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2024-10-15OpenAPI 错误码发生变更查看变更详情