apig__ListApisV2
Lists APIs in a Huawei Cloud API Gateway instance with filters and pagination, returning API details and publication info while excluding backend service and request parameter data.
Instructions
[APIG] 查看API列表,返回API详细信息、发布信息等,但不能查看到后端服务信息和API请求参数信息
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "apig__ListApisV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | API编号 | |
| name | No | API名称 | |
| tags | No | API标签,该参数可指定多个,多个不同的参数值为或关系;不指定或为空时,表示不筛选标签;指定为#no_tags#时,表示筛选无标签API。 | |
| type | No | API类型 | |
| limit | No | 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500 | |
| env_id | No | 发布的环境编号 | |
| offset | No | 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0 | |
| req_uri | No | 请求路径 | |
| group_id | No | API分组编号 | |
| auth_type | No | 授权类型 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| req_method | No | 请求方法 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| req_protocol | No | 请求协议 | |
| precise_search | No | 指定需要精确匹配查找的参数名称,目前仅支持name、req_uri | |
| return_data_mode | No | 指定API详情中需要包含的额外返回结果,多个参数之间使用“,”隔开,当brief和其他include参数共同使用时,brief不生效。 | brief |
| vpc_channel_name | No | 负载通道名称 |