{"base_path":"/","components":null,"consumes":"","definitions":{"CadDomainSwitchRequest":{"properties":{"cc_switch":{"description":"是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关","example":0,"format":"int32","type":"integer"},"domain_id":{"description":"域名id","example":"81c8xxxxxxxxxxxxxxxx11c9","type":"string"},"waf_switch":{"description":"是否开启WEB基础防护开关。0 - 开启, 1 - 关闭","example":0,"format":"int32","type":"integer"}},"required":["domain_id","waf_switch","cc_switch"],"type":"object"}},"description":null,"group_id":"60e78af2b8134f21bd06174caa2ac2b1","host":"aad.myhuaweicloud.com","id":"bd31df0b45dc4cd9aeb07a6a5ac75de4","info_version":"v1","method":"post","name":"ModifyDomainWebSwitch","parameters":{},"paths":{"/v1/{project_id}/aad/external/domains/switch":{"post":{"description":"修改域名WEB基础防护开关/CC防护开关","operationId":"ModifyDomainWebSwitch","parameters":[{"description":"用户Token。 通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2097152,"minLength":32,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"default":"application/json;charset=utf8","description":"Content-Type","in":"header","maxLength":128,"minLength":1,"name":"Content-Type","required":true,"type":"string"},{"description":"项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"WEB防护开关信息","in":"body","name":"SwitchRequest","required":true,"schema":{"$ref":"#/definitions/CadDomainSwitchRequest"}}],"produces":["application/json"],"responses":{"200":{"description":"OK"},"400":{"description":"Error"}},"summary":"修改域名WEB基础防护开关/CC防护开关","tags":["DDoS高防-域名管理"],"x-is-registered":"Y","x-order":5,"x-support-sdk":"Y"}}},"product_short":"AAD","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改域名WEB基础防护开关/CC防护开关","tags":"DDoS高防-域名管理","uri":null,"version":"2.0"}