跳转到内容
搜索文档

最后更新 查看 MarkdownAgent 设置

Within Cloudflare, pools represent your endpoints and how they are organized. As such, a pool can be a group of several endpoints, or you could also have only one endpoint (an origin server, for example) per pool.

If you are familiar with DNS terminology, think of a pool as a “record set,” except Cloudflare only returns addresses that are considered healthy. You can attach health monitors to individual pools for customized monitoring. A pool can have either a single monitor or a monitor group attached — but not both.

有关端点和池如何变为不健康的更多详情,请参阅端点与池健康状态


属性

有关池属性的最新列表,请参阅 API 文档中的 Pool 属性


创建池

有关分步指南,请参阅创建池


按端点 Host 标头覆盖

当您的应用需要专门的路由(CNAME 设置或 Heroku 等自定义主机)时,更改健康监视器请求中使用的 Host 标头。有关更多详情,请参阅覆盖 HTTP Host 标头


API 命令

Cloudflare API 支持以下池(pool)命令。示例以用户级端点给出,但同样适用于账户级端点。

命令 (Command) 方法 (Method) 端点 (Endpoint)
创建池 (Create Pool) POST accounts/:account_id/load_balancers/pools
删除池 (Delete Pool) DELETE accounts/:account_id/load_balancers/pools/:id
列出池 (List Pools) GET accounts/:account_id/load_balancers/pools
池详细信息 (Pool Details) GET accounts/:account_id/load_balancers/pools/:id
池健康详细信息 (Pool Health Details) GET account/:account_id/load_balancers/pools/:id/health
编辑池 (Edit Pool) PATCH accounts/:account_id/load_balancers/pools/:id
更新池 (Update Pool) PUT accounts/:account_id/load_balancers/pools/:id
预览池 (Preview Pool) POST account/:account_id/load_balancers/pools/:id/preview
列出池引用 (List Pool References) GET accounts/:account_id/load_balancers/pools/:id/references

这篇文档对您有帮助吗?