跳至内容
景安API接口wiki
用户工具
注册
登录
站点工具
工具
显示页面
修订记录
最近更改
媒体管理器
网站地图
登录
注册
最近更改
媒体管理器
网站地图
您的足迹:
start:cloudsafe
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
======抗D接口====== =====1、购买抗D===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |pname|string|产品名称kd-20,kd-10,kd-5|产品类型| |tid|int|1(购买)|交易id| |yid|int|购买期限1-9,12,24,36| 注意: ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result> <result><code>0</code><info><did>123123</did></info></result> </result> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"did":123123}} </file> =====2、开通===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |did|int||订单号| |tid|int|2(开通)|交易id| |pname|string|openonestep|操作类型| |domain|string||根域名| |input_name|string|ns/cname|接入方式| 注意: 1、若要绑定多个域名,请用 , 分开 ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result> <result><code>0</code><info><domainId>5c4911f**4960c20d</domainId><bid>1</bid></info></result> </result> </file> ===JSON返回值格式=== <file> { {"code":0,"info":{"domainId":"5c4911ff7**4960c20d","bid":31}} } </file> =====3、开通(激活域名)===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |did|int||订单号| |tid|int|2|交易id| |pname|string|opentwostep|操作类型| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====4、开通(激活套餐)===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |did|int||订单号| |tid|int|2|交易id| |pname|string|openthreestep|操作类型| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result> <result><code>0</code></result> </result> </file> ===JSON返回值格式=== <file> { {"code":0} } </file> =====5、查询子域名列表 ===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|getsublist|操作类型| |domainname|string|添加域名时返回的唯一ID|域名ID| |input_name|string|添加子域名时返回的唯一ID 选填 |子域名ID| |tldomain|string|选填|主机名| |page|string|默认1 选填 |页码| |page_size|string|默认20 选填|主机名| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <total>2</total> <subdomains> <status>1</status> <host>ahe</host> <cname>**.cdn.jiashule.com</cname> <point>122.114.1.1</point> <use_cdn>1</use_cdn> <isp>0</isp> <type>A</type> <id>5cd91cbc7**8df8380f</id> <last_modify_time>2019-05-13 15:29:00</last_modify_time> </subdomains> <subdomains> <status>1</status> <host>hahe</host> <cname>8762**12ff.cdn.jiashule.com</cname> <point>122.114.1.1</point> <use_cdn>1</use_cdn> <isp>0</isp> <type>A</type> <id>5cd91c9e4**3a6e063b</id> <last_modify_time>2019-05-13 15:28:30</last_modify_time> </subdomains> <page>1</page> <perpage>20</perpage> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"total":2,"subdomains":[{"status":1,"host":"ahe","cname":"088eec**3bf.cdn.jiashule.com","point":"122.114.1.1","use_cdn":1,"isp":"0","type":"A","id":"5cd91cbc796**df8380f","last_modify_time":"2019-05-13 15:29:00"},{"status":1,"host":"hahe","cname":"8762c**76e12ff.cdn.jiashule.com","point":"122.114.1.1","use_cdn":1,"isp":"0","type":"A","id":"5cd91c9e45**a6e063b","last_modify_time":"2019-05-13 15:28:30"}],"page":1,"perpage":20}} </file> =====6、添加子域名===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|addsubdomain|操作类型| |domainname|string|添加域名时返回的唯一ID|域名ID| |tldomain|string|选填|主机名| |analytic_type|string|解析类型 |解析类型| |analytic_value|string|解析值|解析值| |usetype|string|线路类型 |线路类型| |use_cdn|string|为0或者1 |云端模式| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code><info><id>5cd91cb**8df8380f</id></info></result> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"id":"5cd91c76796d**8380c"}} </file> =====7、删除子域名===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|delsubdomain|操作类型| |domainname|string|添加域名时返回的唯一ID|域名ID| |input_name|string|添加子域名时返回的唯一ID|子域名ID| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====8、修改子域名===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|updatesubdomain|操作类型| |domainname|string|添加域名时返回的唯一ID|域名ID| |input_name|string|添加子域名时返回的唯一ID|子域名ID| |analytic_value|string|指向,A记录指向为IP地址,CNAME记录和MX记录为域名,TX记录为合法的字符串。非必选|解析值| |usetype|string|线路类型 非必选|线路类型| |use_cdn|string|为0或者1 非必选|云端模式| |size|int|MX记录需要填写,为1~50之间的整数 非必选|优先级| |operation_type|int|0为暂停,1为开启 非必选|解析状态| ===XML返回值格式=== <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====9、获取SSL证书===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|getSSLConfig|操作类型| |domain|string| |域名| <file> <? XML version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <expire_time>2020-04-19 20:00:00</expire_time> <id>5cba88c36***d30bbc</id> <subdomains_available>zzidc.com</subdomains_available> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":[{"expire_time":"2020-04-19 20:00:00","subdomains":[],"id":"5cba88c3***d30bbc","subdomains_available":["zzidc.com"]}]} </file> =====10、添加SSL证书===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|addssl|操作类型| |domain|string| |域名| |domainname|string||证书对应的子域名| |code|string| |证书内容| <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====11、修改SSL证书===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|updatessl|操作类型| |domain|string| |域名| |domainname|string||证书对应的子域名| |code|string| |证书内容| |input_name|string| |证书ID| <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====12、删除ssl证书===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|deldomain|操作类型| |input_name|string| |证书ID| <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====13、子域名检测接入===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|checkCnameSubdomain|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====14、子域名获取配置信息===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|getSubDomainConfig|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <new_ip_whitelist> <name>ip白名单</name> </new_ip_whitelist> <turbo> <name>二级缓存功能</name> <value>0</value> </turbo> <new_ip_blacklist> <name>ip黑名单</name> </new_ip_blacklist> <hotlink_403> <name>防盗链返回403</name> <value>0</value> </hotlink_403> <is_refresh> <name>Ctrl+F5智能刷新</name> <value>0</value> </is_refresh> <url_blacklist> <name>url黑名单</name> </url_blacklist> <ip_blacklist> <name>ip黑名单</name> </ip_blacklist> <cache_blacklist> <name>缓存黑名单</name> </cache_blacklist> <attack_forbidden> <name>网站防火墙</name> <value>1</value> </attack_forbidden> <cache> <name>访问加速</name> <value>1</value> </cache> <cache_whitelist> <name>缓存白名单</name> </cache_whitelist> <attack_whitelist> <name>url白名单</name> <value>##dfsdf.com</value> </attack_whitelist> <trim_arg> <name>缓存时去掉uri中的参数</name> <value>0</value> </trim_arg> <ip_whitelist> <name>ip白名单</name> </ip_whitelist> <hotlink> <name>防盗链</name> <value>0</value> </hotlink> <jsl_404> <name>404页面优化</name> <value>1</value> </jsl_404> <cache_set> <name>缓存项设置</name> <value> <img>180</img> </value> </cache_set> <waf_category_switch> <name>防火墙高级规则</name> <value> <webshell>1</webshell> <xss>1</xss> <code>1</code> <scanner>1</scanner> <post_sqli>1</post_sqli> <sec_level /> <sqli>1</sqli> <abnormal_http>1</abnormal_http> <post_xss>1</post_xss> <filei>1</filei> <special>1</special> </value> </waf_category_switch> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"new_ip_whitelist":{"name":"ip白名单","value":[]},"turbo":{"name":"二级缓存功能","value":0},"new_ip_blacklist":{"name":"ip黑名单","value":[]},"hotlink_403":{"name":"防盗链返回403","value":0},"is_refresh":{"name":"Ctrl+F5智能刷新","value":0},"url_blacklist":{"name":"url黑名单","value":[]},"ip_blacklist":{"name":"ip黑名单","value":[]},"cache_blacklist":{"name":"缓存黑名单","value":[]},"attack_forbidden":{"name":"网站防火墙","value":1},"cache":{"name":"访问加速","value":1},"cache_whitelist":{"name":"缓存白名单","value":[]},"attack_whitelist":{"name":"url白名单","value":["##dfsdf.com"]},"trim_arg":{"name":"缓存时去掉uri中的参数","value":0},"ip_whitelist":{"name":"ip白名单","value":[]},"hotlink":{"name":"防盗链","value":0},"jsl_404":{"name":"404页面优化","value":1},"cache_set":{"name":"缓存项设置","value":{"img":180}},"waf_category_switch":{"name":"防火墙高级规则","value":{"webshell":1,"xss":1,"code":1,"scanner":1,"post_sqli":1,"sec_level":{},"sqli":1,"abnormal_http":1,"post_xss":1,"filei":1,"special":1}}}} </file> =====15、CC防火墙===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainConfigCcChallenge|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| |size|int| 级别0(标准)/1(超级)|子域名Id| <file> <? XML version="1.0" encoding="UTF-8" ?> <result><code>0</code></result> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====16、永久在线查询功能===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainOnlineConfig|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <error_403 /> <error_503 /> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"error_403":null,"error_503":null}} </file> =====17、永久在线设置===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainOnlineSet|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| |code|在线设置参数例如"error_403":"value1","error_503":"value2"该参数为json字符串|必选| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====18、获取设置信息===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainUrlSpeedConfig|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <name>裤带锁</name> <value> <method>GET</method> <keyword>/ceshi/</keyword> <times>1</times> <urlId>0</urlId> </value> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{ "name": "裤带锁", "value": [ { "method": "GET", "keyword": "/ceshi/", "times": 1, "urlId": 0 }} </file> =====19、子域名智能限速--设置===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainUrlSpeed|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| |operation_type|int| 0添加/1修改|操作| |urlMethod|string| 需要限速的方法|操作| |urlTimes|string| 0添加/1修改|限速| |urlValue|string| 限速网址|限速网址| |urlid|string| 修改时使用|urlid| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====20、子域名智能限速--删除===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainDeleteUrlSpeed|操作类型| |urlid|string| 修改时使用|urlid| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====21、获取黑白名单设置===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainBlackAndWhiteConfig|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <url_blacklist> <name>url黑名单</name> </url_blacklist> <ip_blacklist> <name>ip黑名单</name> </ip_blacklist> <ip_whitelist> <name>ip白名单</name> </ip_whitelist> <attack_whitelist> <name>url白名单</name> <value>##dfsdf.com</value> </attack_whitelist> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"url_blacklist":{"name":"url黑名单","value":[]},"ip_blacklist":{"name":"ip黑名单","value":[]},"ip_whitelist":{"name":"ip白名单","value":[]},"attack_whitelist":{"name":"url白名单","value":["##dfsdf.com"]}}} </file> =====22、黑白名单设置===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainBlackAndWhiteSet|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| |ip_blacklist|string| |ip黑名单| |ip_whitelist|string| |ip白名单| |url_blacklist|string| |url黑名单| |attack_whitelist|string| |url白名单| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====23、404页面优化开关===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|subdomainErrorSwitch|操作类型| |domainname|string| |域名Id| |input_name|string| |子域名Id| |operation_type|int|0/1 0为关闭,1为开启 |操作| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file> =====24、今日汇总数据===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|websiteData|操作类型| |domainname|string| |域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <cc_times>0</cc_times> <attack_ips>0</attack_ips> <flow>0</flow> <req>0</req> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"cc_times":0,"attack_ips":0,"flow":0,"req":0}} </file> =====25、网站访问趋势(流量)报表===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|webVisiteTrend|操作类型| |domainname|string| |域名Id| |unit|string|hour,day,month |单位| |startDate|string|例如20190422102511 |起始时间| |endDate|string|例如20190422102511 |结束时间| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <flow_cache_total>0</flow_cache_total> <req_miss_total>0</req_miss_total> <flow_miss_total>0</flow_miss_total> <detail> <201904> <ip>0</ip> <req>0</req> <flow>0</flow> <flow_cache>0</flow_cache> <req_cache>0</req_cache> <spider>0</spider> </201904> </detail> <detail> <201905> <ip>0</ip> <req>0</req> <flow>0</flow> <flow_cache>0</flow_cache> <req_cache>0</req_cache> <spider>0</spider> </201905> </detail> <req_cache_total>0</req_cache_total> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"flow_cache_total":0,"req_miss_total":0,"flow_miss_total":0,"detail":[{"201904":{"ip":0,"req":0,"flow":0,"flow_cache":0,"req_cache":0,"spider":0}},{"201905":{"ip":0,"req":0,"flow":0,"flow_cache":0,"req_cache":0,"spider":0}}],"req_cache_total":0}} </file> =====26、清洗报表、攻击拦截趋势报表===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|webreport|操作类型| |domainname|string| |域名Id| |unit|string|hour,day,month |单位| |startDate|string|例如20190422102511 |起始时间| |endDate|string|例如20190422102511 |结束时间| |report_type|string|可选general或cc general-WAF攻击,cc-CC攻击|攻击类型| |operation_type|int|0清洗报表 1攻击拦击趋势报表|报表类型| <file> 清洗报表 <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <201904>0</201904> </info> <info> <201905>0</201905> </info> 攻击拦截趋势报表 <code>0</code> <info> <201904> <counts>0</counts> <details> <WEBSHELL>0</WEBSHELL> <XSS>0</XSS> <CODE>0</CODE> <SCANNER>0</SCANNER> <LRFI>0</LRFI> <OS_COMMAND>0</OS_COMMAND> <SQLI>0</SQLI> <OTHERS>0</OTHERS> <FILEI>0</FILEI> <COLLECTOR>0</COLLECTOR> <SPECIAL>0</SPECIAL> </details> </201904> </info> <info> <201905> <counts>0</counts> <details> <WEBSHELL>0</WEBSHELL> <XSS>0</XSS> <CODE>0</CODE> <SCANNER>0</SCANNER> <LRFI>0</LRFI> <OS_COMMAND>0</OS_COMMAND> <SQLI>0</SQLI> <OTHERS>0</OTHERS> <FILEI>0</FILEI> <COLLECTOR>0</COLLECTOR> <SPECIAL>0</SPECIAL> </details> </201905> </info> </file> ===JSON返回值格式=== <file> 清洗报表 {"code":0,"info":[{"201904":0},{"201905":0}]} 攻击拦截趋势报表 {"code":0,"info":[{"201904":{"counts":0,"details":{"WEBSHELL":0,"XSS":0,"CODE":0,"SCANNER":0,"LRFI":0,"OS_COMMAND":0,"SQLI":0,"OTHERS":0,"FILEI":0,"COLLECTOR":0,"SPECIAL":0}}},{"201905":{"counts":0,"details":{"WEBSHELL":0,"XSS":0,"CODE":0,"SCANNER":0,"LRFI":0,"OS_COMMAND":0,"SQLI":0,"OTHERS":0,"FILEI":0,"COLLECTOR":0,"SPECIAL":0}}}]} </file> =====27、实时CC攻击检测===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|webCcRealTime|操作类型| |domainname|string| |域名Id| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <cc_now>0</cc_now> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"cc_now":0}} </file> =====28、cc攻击详情===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|webCcAttackDetails|操作类型| |domainname|string| |域名Id| |startDate|string|例如20190422102511 不传递此参数,表示查询当天全天的数据最新的500条 |起始时间| |report_type|string|可输入被攻击的url或者攻击者ip|攻击类型| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> <info> <detail> <status>已屏蔽</status> <date>2017-04-14 16:45:30</date> <location>中国 浙江 温州 电信</location> <url>http://reg.hexun.com/reglck.aspx</url> <ip>122.238.236.67</ip> <size>8.00MB</size> <type>CC</type> <times>636</times> </detail> </info> </file> ===JSON返回值格式=== <file> {"code":0,"info":{"detail":[{"status":"已屏蔽","date":"2017-04-14 16:45:30","location":"中国 浙江 温州 电信","url":"http://reg.hexun.com/reglck.aspx","ip":"122.238.236.67","size":"8.00MB","type":"CC","times":636}]}} </file> =====29、CC解封===== ^参数^参数类型^参数值^参数描述^ |ptype|string|cloudsafe|产品类型| |tid|int|15|交易id| |pname|string|webCcUnlock|操作类型| |domainname|string| |域名Id| |bis_sign|string||解封ip| |domain|string||解封域名| <file> <?xml version="1.0" encoding="UTF-8" ?> <code>0</code> </file> ===JSON返回值格式=== <file> {"code":0} </file>
start/cloudsafe.txt
· 最后更改: 2019/05/14 07:14 (外部编辑)
页面工具
显示页面
修订记录
回到顶部