waf__CreateHost
Create a Huawei Cloud WAF protected domain in cloud mode by specifying the hostname, proxy setting, origin servers, and project ID.
Instructions
[WAF] 创建云模式防护域名
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostname": "<hostname>",
"project_id": "<project_id>",
"proxy": "<proxy>",
"server": "<server>"
},
"name": "waf__CreateHost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | Yes | 防护域名是否使用代理 | |
| server | Yes | 防护域名的源站服务器配置信息 | |
| web_tag | No | 网站名称,对应WAF控制台域名详情中的网站名称 | |
| hostname | Yes | 域名(域名只能由字母、数字、-、_和.组成,长度不能超过64个字符,如www.domain.com) | |
| policyid | No | 防护域名初始绑定的策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id | |
| paid_type | No | 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。 | |
| project_id | Yes | 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID | |
| description | No | 域名描述 | |
| exclusive_ip | No | 是否使用独享ip | |
| lb_algorithm | No | LB负载均衡,仅专业版和企业版支持配置负载均衡算法 | |
| certificateid | No | 证书id,通过查询证书列表接口(ListCertificates)接口获取证书id | |
| certificatename | No | 证书名 | |
| forward_header_map | No | 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括: | |
| enterprise_project_id | No | 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id |