@@ -182,9 +182,9 @@ def describe_ip_monitor_flow(self):
182182 (['--headers' ], dict (help = """(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""" , dest = 'headers' , required = False )),
183183 ],
184184 formatter_class = RawTextHelpFormatter ,
185- help = ''' 查询公网 IP 的安全信息列表. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外), 云物理服务器的公网 IP 和弹性公网 IP. (已废弃, 建议使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources">describeElasticIpResources</a>, <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources">describeCpsIpResources</a> 接口)"; ''' ,
185+ help = ''' 查询基础防护已防护的公网 IP 的安全信息列表. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外), 云物理服务器的公网 IP 和弹性公网 IP. (已废弃, 建议使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources">describeElasticIpResources</a>, <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources">describeCpsIpResources</a> 接口)"; ''' ,
186186 description = '''
187- 查询公网 IP 的安全信息列表. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外), 云物理服务器的公网 IP 和弹性公网 IP. (已废弃, 建议使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources">describeElasticIpResources</a>, <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources">describeCpsIpResources</a> 接口)"; 。
187+ 查询基础防护已防护的公网 IP 的安全信息列表. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外), 云物理服务器的公网 IP 和弹性公网 IP. (已废弃, 建议使用 <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describeelasticipresources">describeElasticIpResources</a>, <a href="http://docs.jdcloud.com/anti-ddos-basic/api/describecpsipresources">describeCpsIpResources</a> 接口)"; 。
188188
189189 示例: jdc baseanti describe-ip-resources
190190 ''' ,
@@ -216,9 +216,9 @@ def describe_ip_resources(self):
216216 (['--headers' ], dict (help = """(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""" , dest = 'headers' , required = False )),
217217 ],
218218 formatter_class = RawTextHelpFormatter ,
219- help = ''' 查询私有网络的弹性公网 IP 的安全信息. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外); ''' ,
219+ help = ''' 查询基础防护已防护的私有网络的弹性公网 IP 的安全信息. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外); ''' ,
220220 description = '''
221- 查询私有网络的弹性公网 IP 的安全信息. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外); 。
221+ 查询基础防护已防护的私有网络的弹性公网 IP 的安全信息. 包括私有网络的弹性公网 IP(运营商级 NAT 保留地址除外); 。
222222
223223 示例: jdc baseanti describe-elastic-ip-resources
224224 ''' ,
@@ -250,9 +250,9 @@ def describe_elastic_ip_resources(self):
250250 (['--headers' ], dict (help = """(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""" , dest = 'headers' , required = False )),
251251 ],
252252 formatter_class = RawTextHelpFormatter ,
253- help = ''' 查询云物理服务器公网 IP 的安全信息. 包括云物理服务器的公网 IP 和弹性公网 IP.; ''' ,
253+ help = ''' 查询基础防护已防护的云物理服务器公网 IP 的安全信息. 包括云物理服务器的公网 IP 和弹性公网 IP.; ''' ,
254254 description = '''
255- 查询云物理服务器公网 IP 的安全信息. 包括云物理服务器的公网 IP 和弹性公网 IP.; 。
255+ 查询基础防护已防护的云物理服务器公网 IP 的安全信息. 包括云物理服务器的公网 IP 和弹性公网 IP.; 。
256256
257257 示例: jdc baseanti describe-cps-ip-resources
258258 ''' ,
@@ -275,6 +275,40 @@ def describe_cps_ip_resources(self):
275275 except Exception as e :
276276 print (e )
277277
278+ @expose (
279+ arguments = [
280+ (['--region-id' ], dict (help = """(string) 地域编码. 基础防护已支持华北-北京, 华东-宿迁, 华东-上海, 华南-广州; """ , dest = 'regionId' , required = False )),
281+ (['--page-number' ], dict (help = """(int) 页码 """ , dest = 'pageNumber' , type = int , required = False )),
282+ (['--page-size' ], dict (help = """(int) 分页大小 """ , dest = 'pageSize' , type = int , required = False )),
283+ (['--input-json' ], dict (help = '(json) 以json字符串或文件绝对路径形式作为输入参数。\n 字符串方式举例:--input-json \' {"field":"value"}\' ;\n 文件格式举例:--input-json file:///xxxx.json' , dest = 'input_json' , required = False )),
284+ (['--headers' ], dict (help = """(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""" , dest = 'headers' , required = False )),
285+ ],
286+ formatter_class = RawTextHelpFormatter ,
287+ help = ''' 查询基础防护已防护的托管区 IP 的安全信息 ''' ,
288+ description = '''
289+ 查询基础防护已防护的托管区 IP 的安全信息。
290+
291+ 示例: jdc baseanti describe-ccs-ip-resources
292+ ''' ,
293+ )
294+ def describe_ccs_ip_resources (self ):
295+ client_factory = ClientFactory ('baseanti' )
296+ client = client_factory .get (self .app )
297+ if client is None :
298+ return
299+
300+ try :
301+ from jdcloud_sdk .services .baseanti .apis .DescribeCcsIpResourcesRequest import DescribeCcsIpResourcesRequest
302+ params_dict = collect_user_args (self .app )
303+ headers = collect_user_headers (self .app )
304+ req = DescribeCcsIpResourcesRequest (params_dict , headers )
305+ resp = client .send (req )
306+ Printer .print_result (resp )
307+ except ImportError :
308+ print ('{"error":"This api is not supported, please use the newer version"}' )
309+ except Exception as e :
310+ print (e )
311+
278312 @expose (
279313 arguments = [
280314 (['--region-id' ], dict (help = """(string) 地域编码. 基础防护已支持华北-北京, 华东-宿迁, 华东-上海, 华南-广州; """ , dest = 'regionId' , required = False )),
@@ -512,7 +546,7 @@ def describe_ip_resource_flow(self):
512546
513547 @expose (
514548 arguments = [
515- (['--api' ], dict (help = """(string) api name """ , choices = ['describe-attack-logs' ,'describe-attack-statistics' ,'describe-attack-type-count' ,'describe-ip-monitor-flow' ,'describe-ip-resources' ,'describe-elastic-ip-resources' ,'describe-cps-ip-resources' ,'describe-ip-resource-info' ,'describe-ip-safety-info' ,'set-clean-threshold' ,'set-ip-clean-threshold' ,'describe-ip-clean-threshold-range' ,'describe-ip-resource-protect-info' ,'describe-ip-resource-flow' ,], required = True )),
549+ (['--api' ], dict (help = """(string) api name """ , choices = ['describe-attack-logs' ,'describe-attack-statistics' ,'describe-attack-type-count' ,'describe-ip-monitor-flow' ,'describe-ip-resources' ,'describe-elastic-ip-resources' ,'describe-cps-ip-resources' ,'describe-ccs-ip-resources' , 'describe- ip-resource-info' ,'describe-ip-safety-info' ,'set-clean-threshold' ,'set-ip-clean-threshold' ,'describe-ip-clean-threshold-range' ,'describe-ip-resource-protect-info' ,'describe-ip-resource-flow' ,], required = True )),
516550 ],
517551 formatter_class = RawTextHelpFormatter ,
518552 help = ''' 生成单个API接口的json骨架空字符串 ''' ,
0 commit comments