文档

DescribeDdosOriginInstanceBill - 查询DDos防护包后付费账单信息

更新时间:

查询DDos防护包后付费账单信息。

调试

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

授权信息

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

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

请求参数

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

账单类型。取值:

  • flow_cn:表示干净流量-DDoS 防护增强版 EIP 中国内地账单。
  • flow_ov:表示干净流量-DDoS 防护增强版 EIP 国际和港澳台账单。
  • standard_assets_flow_cn:表示干净流量-标准云产品中国内地账单。
  • standard_assets_flow_ov:表示干净流量-标准云产品国际和港澳台账单。
  • function:表示功能开通账单。
  • ip_count:表示防护 IP 数账单。
function
StartTimelong

查询开始时间戳,单位为毫秒。

1711209600410
EndTimelong

查询结束时间戳,单位为毫秒。时间跨度不能超过 30 天。

1711382399410
IsShowListboolean

是否展示账单详情。 取值:

  • true:展示账单信息。
  • false:只展示全局实例信息不展示账单详情。
false

返回参数

名称类型描述示例值
object
RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

72155560-F343-55C8-82FE-ED4D7E4AA97E
Statuslong

开通状态。取值:

  • 1:正常。
  • 2:过期。
  • 3:释放。
1
DebtStatuslong

欠费状态。取值:

  • 0:未欠费。
  • 1:欠费。
0
InstanceIdstring

要查询的防护包后付费实例 ID。

ddosorigin_cn-u7c3lcr9r02
IpCountlong

防护 IP 数量。

15
IpInfostring

IP 分布详情。JSON 结构体包含以下字段::

  • eipCnIpCount:高防 EIP 中国内地 IP 数。
  • eipOvIpCount:高防 EIP 国际和港澳台 IP 数。
  • standardAssetsCnIpCount:标准云产品中国内地 IP 数。
  • standardAssetsOvIpCount:标准云产品国际和港澳台 IP 数。
{\"eipCnIpCount\":6,\"eipOvIpCount\":17,\"standardAssetsCnIpCount\":2,\"standardAssetsOvIpCount\":0}
TotalFlowCnlong

当月 DDoS 防护(增强版)EIP 中国内地总流量,单位:字节。

6302081067
TotalFlowOvlong

当月 DDoS 防护(增强版)EIP 国际和港澳台总流量,单位:字节。

6204918019
StandardAssetsTotalFlowCnlong

当月标准云产品中国内地总流量。

0
StandardAssetsTotalFlowOvlong

当月标准云产品国际和港澳台总流量。

0
IpCountOrFunctionListobject []

防护 IP 数和功能开通列表详情。

Coveragestring

防护资产区域。取值:

  • only_mainland_china:仅中国内地。
  • global:全球。
  • international_and_hmt:非中国内地,包含国际和中国香港、中国澳门、中国台湾。
global
IpCntCnlong

后付费防护中国内地 IP 数量。

5
IpCntOvlong

后付费防护国际和港澳台 IP 数量。

5
Timelong

账单时间,单位:毫秒。

1680278400000
MemberIpCntstring

账单分布的账号。JSON 字段结构如下:

  • eipCnIpCount:DDoS 防护增强版 EIP 中国内地 IP 数。
  • eipOvIpCount:DDoS 防护增强版 EIP 国际和港澳台 IP 数。
  • memberUid:所属账号。
  • standardAssetsCnIpCount:标准云产品中国内地 IP 数。
  • standardAssetsOvIpCount:标准云产品国际和港澳台 IP 数。
说明 JSON 中 memberUid 为空则表示当前账号信息。
[{\"eipCnIpCount\":3,\"eipOvIpCount\":18,\"memberUid\":\"\",\"standardAssetsCnIpCount\":2,\"standardAssetsOvIpCount\":0},{\"eipCnIpCount\":3,\"eipOvIpCount\":0,\"memberUid\":\"1776997906319249\",\"standardAssetsCnIpCount\":0,\"standardAssetsOvIpCount\":0}]
FlowListobject []

DDoS 防护增强版 EIP 流量详情。

TotalFlowlong

DDoS 防护增强版 EIP 流量,单位为 byte。

6302081067
RegionFlowstring

region 对应的流量分布。JSON 字段结构如下:

  • bytes:DDoS 防护增强版 EIP 对应 region 的流量大小,单位:byte。
  • instanceId:DDoS 防护增强版 EIP 对应的全局按量实例 ID。
  • ip:对应的高防 EIP。
  • region:区域。
{\"cn-hangzhou\":[{\"bytes\":0,\"instanceId\":\"ddosorigin_cn-u7c3lcr9r02\",\"ip\":\"47.118.168.124\",\"region\":\"cn-hangzhou\"}]}
Timelong

时间戳。单位:毫秒。

1620951900
MemberFlowstring

region 对应的流量分布。JSON 字段结构如下:

  • bytes:DDoS 防护增强版 EIP 对应 region 的流量大小,单位:byte。
  • memberUid 所属账号。
  • instanceId:DDoS 防护增强版 EIP 对应的全局按量实例 ID。
  • ip:对应的高防 EIP。
  • region:区域。
说明 JSON 中 memberUid 为空则表示当前账号信息。JSON 最外层 bytes 为总流量,内层 bytes 为账号对应的流量。
[{\"bytes\":79282719,\"memberUid\":\"\",\"regionFlows\":{\"cn-hangzhou\":[{\"bytes\":79282719,\"instanceId\":\"ddosorigin_cn-u7c3lcr9r02\",\"ip\":\"47.118.168.57\",\"region\":\"cn-hangzhou\"}]}}]
StandardAssetsFlowListobject []

标准云产品流量信息。

TotalFlowlong

标准云产品流量,单位为 byte。

6302081067
RegionFlowstring

region 对应的流量分布。JSON 字段结构如下:

  • bytes:标准云产品对应 region 的流量大小,单位:byte。
  • instanceId:标准云产品对应的全局按量实例 ID。
  • ip:防护包实例对应的实例 id。
  • region:区域。
{\"cn-hangzhou\":[{\"bytes\":0,\"instanceId\":\"ddosorigin_cn-u7c3lcr9r02\",\"ip\":\"47.118.168.124\",\"region\":\"cn-hangzhou\"}]}
Timelong

时间戳,单位毫秒。

1679846400000
MemberFlowstring

region 对应的流量分布。JSON 字段结构如下:

  • bytes:标准云产品对应 region 的流量大小,单位:byte。
  • memberUid 所属账号。
  • instanceId:标准云产品对应的全局按量实例 ID。
  • ip:标准云产品对应的实例 id。
  • region:区域。
说明 JSON 中 memberUid 为空则表示当前账号信息。JSON 最外层 bytes 为总流量,内层 bytes 为账号对应的流量。
[{\"bytes\":79282719,\"memberUid\":\"\",\"regionFlows\":{\"cn-hangzhou\":[{\"bytes\":79282719,\"instanceId\":\"ddosorigin_cn-u7c3lcr9r02\",\"ip\":\"47.118.168.57\",\"region\":\"cn-hangzhou\"}]}}]
FlowRegionobject

DDoS 防护(增强版)EIP 的 region 流量分布信息。

{'cn-hongkong': 166491566}
StandardAssetsFlowRegionobject

标准云产品的 region 流量分布信息。

{'cn-hongkong': 166491566}

示例

正常返回示例

JSON格式

{
  "RequestId": "72155560-F343-55C8-82FE-ED4D7E4AA97E",
  "Status": 1,
  "DebtStatus": 0,
  "InstanceId": "ddosorigin_cn-u7c3lcr9r02",
  "IpCount": 15,
  "IpInfo": "{\\\"eipCnIpCount\\\":6,\\\"eipOvIpCount\\\":17,\\\"standardAssetsCnIpCount\\\":2,\\\"standardAssetsOvIpCount\\\":0}",
  "TotalFlowCn": 6302081067,
  "TotalFlowOv": 6204918019,
  "StandardAssetsTotalFlowCn": 0,
  "StandardAssetsTotalFlowOv": 0,
  "IpCountOrFunctionList": [
    {
      "Coverage": "global",
      "IpCntCn": 5,
      "IpCntOv": 5,
      "Time": 1680278400000,
      "MemberIpCnt": "[{\\\"eipCnIpCount\\\":3,\\\"eipOvIpCount\\\":18,\\\"memberUid\\\":\\\"\\\",\\\"standardAssetsCnIpCount\\\":2,\\\"standardAssetsOvIpCount\\\":0},{\\\"eipCnIpCount\\\":3,\\\"eipOvIpCount\\\":0,\\\"memberUid\\\":\\\"1776997906319249\\\",\\\"standardAssetsCnIpCount\\\":0,\\\"standardAssetsOvIpCount\\\":0}]"
    }
  ],
  "FlowList": [
    {
      "TotalFlow": 6302081067,
      "RegionFlow": "{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":0,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.124\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}",
      "Time": 1620951900,
      "MemberFlow": "[{\\\"bytes\\\":79282719,\\\"memberUid\\\":\\\"\\\",\\\"regionFlows\\\":{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":79282719,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.57\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}}]"
    }
  ],
  "StandardAssetsFlowList": [
    {
      "TotalFlow": 6302081067,
      "RegionFlow": "{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":0,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.124\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}",
      "Time": 1679846400000,
      "MemberFlow": "[{\\\"bytes\\\":79282719,\\\"memberUid\\\":\\\"\\\",\\\"regionFlows\\\":{\\\"cn-hangzhou\\\":[{\\\"bytes\\\":79282719,\\\"instanceId\\\":\\\"ddosorigin_cn-u7c3lcr9r02\\\",\\\"ip\\\":\\\"47.118.168.57\\\",\\\"region\\\":\\\"cn-hangzhou\\\"}]}}]"
    }
  ],
  "FlowRegion": {
    "test": "test",
    "test2": 1
  },
  "StandardAssetsFlowRegion": {
    "test": "test",
    "test2": 1
  }
}

错误码

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

  • 本页导读 (1)
文档反馈