# 查询Flexus L 实例流量包剩余量 - ListFreeResourceUsages
#### 功能介绍
您可以使用API接口查询Flexus L 实例中流量包的剩余流量，所用接口为"查询资源包使用量"接口。本节列举了该接口使用过程中的关键信息，接口更多信息详见[查询资源包使用量](https://support.huaweicloud.com/api-oce/api_order_00028.html)接口。
#### 接口约束
该接口只允许使用客户AK/SK或者Token调用。
![](https://support.huaweicloud.com/api-flexusl/public_sys-resources/notice_3.0-zh-cn.png)
流量包失效时间超过18个月则无法查询其信息。
#### 调试
您可以在[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/BSS/doc?api=ListFreeResourceUsages)中调试该接口。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-oce/jac_000051.html)。
#### URI
POST /v2/payments/free-resources/usages/details/query
#### 请求消息
表1请求参数 
| 参数                | 是否必选 | 参数类型           | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|:---|:---|:---|:---|
| free_resource_ids | 是     | List\<string\> | **参数解释：** Flexus L实例的流量包ID列表。流量包ID可通过[查询已创建的Flexus L实例](https://support.huaweicloud.com/api-flexusl/renewal_instance_0001.html)接口，根据logical_resource_type为huaweicloudinternal_cbc_freeresource获取。 列表中每个String元素代表一个流量包ID，由数字、字母、"-"组成，最大64字节。 **约束限制：** 列表中流量包ID数量为1\~100个，每个流量包ID最大为64字节。 |
   
#### 请求示例
查询流量ID为828e2c7c-3c8c-45a2-bebc-98cb3e77d06e的流量包的剩余流量。
```
{
 "free_resource_ids": [
  "828e2c7c-3c8c-45a2-bebc-98cb3e77d06e"
 ]
}
```
#### 响应示例
```
{
 "free_resources": [
  {
   "free_resource_id": "828e2c7c-3c8c-45a2-bebc-98cb3e77d06e",
   "free_resource_type_name": "轻量BGP流量套餐包",
   "quota_reuse_cycle": 4,
   "quota_reuse_cycle_type": 2,
   "usage_type_name": "上行流量",
   "start_time": "2024-12-25T08:00:00Z",
   "end_time": "2025-01-25T16:00:00Z",
   "amount": 180,   //流量剩余额度
   "original_amount": 200, //流量原始额度
   "measure_id": 10
  }
 ]
}
```
