> For the complete documentation index, see [llms.txt](https://www.axisnow.io/zh/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.axisnow.io/zh/docs/multi-edge/integrations/axisnow.md). Agents can also search and read this documentation through its [MCP server](https://www.axisnow.io/zh/docs/~gitbook/mcp).

# 集成 AxisNow 边缘

用 API Token 授权聚合边缘管理您的 AxisNow 边缘

[AxisNow 边缘](https://www.axisnow.io/zh/docs/edge/overview.md)是用您自己的节点或订阅提供商节点组成的边缘，可以以配置同步（Provision）方式加入服务。

{% hint style="warning" %}
聚合边缘（AxisNow Multi-Edge）和 AxisNow 边缘（AxisNow Edge）是两个独立的租户。API Token 需要登录 **AxisNow 边缘租户**创建。
{% endhint %}

## 准备 <a href="#prepare" id="prepare"></a>

* 一个 AxisNow 边缘租户，边缘节点已部署或订阅，并能承载流量。
* AxisNow 边缘 的 **DNS 路由** 中有一个已配置或订阅来的调度域名，它将作为这家边缘的 CNAME，见[选择 CNAME](#select-cname)。

## 创建 API Token <a href="#create-api-token" id="create-api-token"></a>

在 AxisNow 边缘租户的 **设置 › API 令牌** 中创建令牌，然后在聚合边缘的租户中集成 **AxisNow** 时粘贴。

**角色** 请选择 **端点、调度和策略管理员**。它包含聚合边缘需要的全部权限：管理端点和证书、同步策略规则、缓存清除、读取调度域名和报表。超级管理员也可以使用，但权限超出所需；审计员和边缘管理员的权限不足，集成无法保存。

## 在服务中使用 <a href="#use-in-service" id="use-in-service"></a>

以配置同步（Provision）方式把 AxisNow 边缘 加入服务，向导的 **设置** 步骤需要先选择 CNAME。

### 选择 CNAME <a href="#select-cname" id="select-cname"></a>

聚合边缘作为最顶层的调度，把访客调度到 AxisNow 边缘 时返回所选的调度域名，再由它的路由规则决定访客到达哪些边缘节点。

所选调度域名需要已配置路由规则，否则它不会应答 DNS 查询，这家边缘无法承载流量。调度域名的创建方法见 [DNS 优选和故障切换](https://www.axisnow.io/zh/docs/guide/dns-routing-gtm.md)。

<figure><img src="https://3062891322-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKDgGNU6JXG7cqYCk2aCz%2Fuploads%2Fgit-blob-a22750e76ecabea7d91f825cf416990651779167%2Fguide-cloudflare-china-add-edge.png?alt=media" alt="添加 AxisNow 边缘的设置步骤：选择调度域名，域名检查通过"><figcaption></figcaption></figure>

### AxisNow Multi-Edge 创建的配置 <a href="#what-axisnow-creates" id="what-axisnow-creates"></a>

加入后，AxisNow Multi-Edge 会在 AxisNow 边缘租户中完成以下事情：

* **接入域名**。为每个域名创建一个端点（Endpoint），回源指向服务的源站。源站以源站对象的形式创建，由同一服务的域名共用。
* **同步证书**。上传服务的证书，边缘按证书覆盖的域名自动匹配。
* **同步策略**。把缓存控制、访问控制、限速和响应头规则写入对应插件的规则集，每条规则只作用于本服务的域名。
* **缓存清除和报表**。提交缓存清除任务，读取流量、地域以及访问控制和限速的规则命中数据，显示在仪表盘中。

域名在租户中已有端点时，部署时只接管它的回源配置，指向本服务的源站，其余配置保留。

从服务中移除 AxisNow 边缘 并选择同时删除配置时，AxisNow Multi-Edge 删除它创建的端点、源站对象、证书和规则；部署前已有的端点恢复原来的回源配置并保留。

## 注意事项 <a href="#notes" id="notes"></a>

除接管已有端点的回源配置外，聚合边缘只管理它自己创建的对象，租户中您手工维护的端点、证书和规则保持不变。两者共用同一个租户，请注意：

* **不要在 AxisNow 边缘控制台修改聚合边缘创建的规则**。这些规则的名称以 `axisnow:` 开头，手工改动会在下次同步时被覆盖。
* **聚合边缘的规则排在您自己的规则之前**。访问控制的允许动作会让请求跳过规则集中后面的规则，包括您自己设置的拦截规则。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.axisnow.io/zh/docs/multi-edge/integrations/axisnow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
