接口请求域名: teo.intl.tencentcloudapi.com 。
本接口用于查询站点级自定义变量配置,包括变量定义和变量运算。未配置时,变量定义和变量运算均返回空列表。
如需查询规则级自定义变量,请调用 DescribeL7AccRules 接口。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeZoneCustomVariables。 |
| Version | 是 | String | 公共参数,本接口取值:2022-09-01。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ZoneId | 是 | String | 站点 ID。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| CustomVariables | Array of CustomVariable | 站点级自定义变量列表。 |
| CustomVariableOperations | Array of CustomVariableOperation | 站点级自定义变量运算规则。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询站点 zone-3t7hlhw86o 的站点级自定义变量配置。
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeZoneCustomVariables
<公共请求参数>
{
"ZoneId": "zone-3t7hlhw8*6o*"
}
{
"Response": {
"CustomVariableOperations": [],
"CustomVariables": [
{
"Description": "",
"InitialValue": "124",
"Name": "user.zone.test2"
}
],
"RequestId": "dfaf688e-86f6-4b0d-8b76-ba6aa5b3d7bf"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError.RouteError | 后端服务路由地址错误。 |
| UnauthorizedOperation.CamUnauthorized | Cam 未授权。 |
| UnauthorizedOperation.Unknown | 后端服务器发生未知错误。 |
文档反馈