{
  "tags": [
    "配置模板"
  ],
  "description": "读取全局 OpenResty 配置中供站点使用的默认临时白名单时长和封禁时长。接口要求登录，不区分普通用户与管理员。",
  "operationId": "user_get_v1_site_sys_config",
  "security": [
    {
      "AccessToken": []
    },
    {
      "ApiKey": [],
      "ApiSecret": []
    }
  ],
  "responses": {
    "200": {
      "description": "成功或未登录均返回 HTTP 200。成功时 `msg` 为 null。",
      "content": {
        "application/json": {
          "schema": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "code",
                  "msg",
                  "data"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "enum": [
                      0
                    ],
                    "description": "业务状态码；0 表示成功。"
                  },
                  "msg": {
                    "type": "string",
                    "nullable": true,
                    "description": "成功时固定为 null。"
                  },
                  "data": {
                    "type": "object",
                    "description": "网站 CC 防护的默认白名单与封禁时间配置。",
                    "required": [
                      "white_time",
                      "block_time"
                    ],
                    "properties": {
                      "white_time": {
                        "type": "integer",
                        "description": "默认临时白名单时长，单位为秒。",
                        "example": 21600
                      },
                      "block_time": {
                        "type": "integer",
                        "description": "默认封禁时长，单位为秒。",
                        "example": 3600
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "code",
                  "msg",
                  "data"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "login_required"
                    ],
                    "description": "未登录时的业务错误码。"
                  },
                  "msg": {
                    "type": "string",
                    "description": "认证失败原因。"
                  },
                  "data": {
                    "type": "string",
                    "enum": [
                      ""
                    ],
                    "description": "错误响应中的固定空字符串。"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "examples": {
            "success": {
              "summary": "查询成功",
              "value": {
                "code": 0,
                "msg": null,
                "data": {
                  "white_time": 21600,
                  "block_time": 3600
                }
              }
            }
          },
          "example": {
            "code": 0,
            "msg": null,
            "data": {
              "white_time": 21600,
              "block_time": 3600
            }
          }
        }
      }
    }
  },
  "x-python-handler": "config.SiteSysConfigAPI",
  "x-python-route-line": 603,
  "x-audience": "user",
  "x-auth": "user",
  "x-reviewed": true,
  "parameters": [],
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "config.SiteSysConfigAPI"
    },
    {
      "key": "x-python-route-line",
      "value": 603
    },
    {
      "key": "x-audience",
      "value": "user"
    },
    {
      "key": "x-auth",
      "value": "user"
    },
    {
      "key": "x-reviewed",
      "value": true
    },
    {
      "key": "x-itecdn-source-reviewed",
      "value": true
    }
  ],
  "method": "get",
  "path": "/v1/site-sys-config",
  "servers": [
    {
      "url": "https://master.example.invalid",
      "description": "不可调用的示例地址；复制示例后替换为自己的主控域名。"
    }
  ],
  "securitySchemes": {
    "AccessToken": {
      "type": "apiKey",
      "in": "header",
      "name": "access-token",
      "description": "通过登录接口获得的短期访问令牌。"
    },
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "api-key",
      "description": "API Key；必须和 api-secret 同时发送。"
    },
    "ApiSecret": {
      "type": "apiKey",
      "in": "header",
      "name": "api-secret",
      "description": "API Secret；必须和 api-key 同时发送。"
    }
  },
  "info": {
    "title": "itecdn v5 用户 API",
    "version": "5.x",
    "description": "itecdn v5.x Python 主控用户 API。本文档不适用于 v6 或其它实现。"
  },
  "postman": {
    "name": "获取站点系统配置",
    "description": {
      "content": "读取全局 OpenResty 配置中供站点使用的默认临时白名单时长和封禁时长。接口要求登录，不区分普通用户与管理员。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "site-sys-config"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": []
    },
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "method": "GET",
    "auth": {
      "type": "apikey",
      "apikey": [
        {
          "type": "any",
          "value": "access-token",
          "key": "key"
        },
        {
          "type": "any",
          "value": "{{apiKey}}",
          "key": "value"
        },
        {
          "type": "any",
          "value": "header",
          "key": "in"
        }
      ]
    }
  }
}