接口请求域名: teo.intl.tencentcloudapi.com 。
查询边缘函数触发规则列表,支持按照规则 ID、函数 ID、规则描述等条件进行过滤。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeFunctionRules。 |
| Version | 是 | String | 公共参数,本接口取值:2022-09-01。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ZoneId | 是 | String | 站点 ID。 |
| Filters.N | 否 | Array of Filter | 过滤条件列表,多个条件为且关系,Filters.Values 的上限为 20。详细的过滤条件如下: |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| FunctionRules | Array of FunctionRule | 规则详情列表。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询站点 zone-293e7s5jne1i 下的函数规则。
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeFunctionRules
<公共请求参数>
{
"ZoneId": "zone-293e7s5jne1i"
}
{
"Response": {
"RequestId": "d7213f7f-a67b-4602-b630-ed6740e1a124",
"FunctionRules": [
{
"RuleId": "rule-53qpdadi",
"FunctionRuleConditions": [
{
"RuleConditions": [
{
"Operator": "equal",
"Target": "url",
"Values": [
"/test3"
],
"IgnoreCase": false,
"Name": ""
}
]
}
],
"TriggerType": "region",
"RegionMappingSelections": [
{
"FunctionId": "ef-1pakhnuy",
"Regions": [
"CN"
]
},
{
"FunctionId": "ef-1wekxwnu",
"Regions": [
"Default"
]
}
],
"FunctionId": "",
"FunctionName": "",
"Priority": 2,
"Remark": "my function rule",
"CreateTime": "2023-04-19T07:32:09Z",
"UpdateTime": "2023-04-19T07:36:43Z"
}
]
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError.SystemError | 内部错误-系统错误。 |
| InvalidParameter.InvalidFilterName | 不合法的过滤字段。 |
| InvalidParameter.TooManyFilterValues | 过滤值过多。 |
| InvalidParameter.TooManyFilters | 过滤项过多。 |
| ResourceUnavailable.ZoneNotFound | 站点不存在或不属于该账号。 |
文档反馈