输入示例
POST https://waf.volcengineapi.com/?Action=CreateDomain&Version=2023-12-25
{
"ProjectName": "default",
"LBAlgorithm": "wrr",
"AccessMode": 10,
"PublicRealServer": 1,
"VpcID": "vpc-2d6h8jexjwuf458ozfdjo****",
"EnableIPv6": 1,
"SSLProtocols": [
""
],
"Domain": "example.volcwaf001.com",
"EnableHTTP2": 1,
"TLSEnable": 1,
"ProxyRetry": 3,
"ProxyReadTimeOut": 60,
"Region": "cn-beijing",
"KeepAliveTimeOut": 75,
"KeepAliveRequest": 100,
"ClientMaxBodySize": 60,
"ProtocolFollow": 1,
"ProxyConfig": 1,
"ClientIPLocation": 1,
"ProxyKeepAliveTimeOut": 15,
"ProxyKeepAlive": 100,
"ProxyConnectTimeOut": 4,
"ProxyWriteTimeOut": 60,
"Protocols": [
"HTTP"
],
"ProtocolPorts": {
"HTTP": [
80
],
"HTTPS": [
443
]
},
"ProjectFollow": 1,
"BackendGroups": [
{
"Name": "default",
"Backends": [
{
"IP": "10.249.**.**",
"Port": 80,
"Weight": 100,
"Protocol": "HTTP"
}
],
"AccessPort": [
80
]
}
],
"SSLCiphers": [
"AES128-SHA",
"ECDHE-RSA-AES256-SHA",
"ECDHE-RSA-AES128-SHA",
"ECDHE-ECDSA-AES256-SHA"
],
"CloudAccessConfig": [
{
"Port": "80",
"Protocol": "HTTP",
"InstanceID": "clb-5fwg9tybr5s073inqkbl****",
"ListenerID": "lsn-3qdz125x0bfuo7prml113****"
}
],
"CustomHeader": [
"X-Custom-Header1",
"X-Custom-Header2"
],
"VolcCertificateID": "cert-42361e9491154d07b03b46be277d****",
"CertificatePlatform": "certificate_service",
"CustomSNI": "www.volcexample.com",
"EnableCustomRedirect": 0,
"EnableSNI": 1,
"TLSFieldsConfig": {
"HeadersConfig": {
"Enable": 1,
"ExcludedKeyList": [
"X-Sensitive-Data",
"Authorization"
],
"StatisticalKeyList": [
"User-Agent",
"Referer",
"X-Forwarded-For"
]
}
}
}输出示例
{
"ResponseMetadata": {
"RequestId": "20230604110420****100232280022D31",
"Action": "CreateDomain",
"Version": "2023-12-25",
"Service": "waf",
"Region": "cn-beijing"
},
"Result": {
"Cname": "5989e0402a424172f0601d53e11****.volcwaf.com",
"DefaultModuleQuickConf": {
"Enable": 1,
"ModuleQuickConf": {
"API": {
"ApiEnable": 0,
"EnableAutoLearning": 0
},
"Vul": {
"Action": "observe",
"RuleMode": "normal",
"WafEnable": 1
},
"SystemBot": {
"SystemBotEnable": 1
},
"BotSequence": {
"BotSequenceEnable": 0,
"BotSequenceDefaultAction": 2
}
}
},
"Domain": "example.volcwaf001.com",
"ServerIps": "33.33.**.**",
"SrcIps": "180.184.**.**/27,180.153.**.**/27"
}
}