工具接口
更新时间:2023-05-16
下列代码中对函数入参c即是CdnClient对象,详情参见CdnClient
IP检测
验证指定的IP是否属于百度开放云CDN服务节点
Python
1def test_ip_query(c):
2 """
3 test_ip_query
4 """
5 response = c.ip_query(action = 'describeIp', ip = '1.1.1.1')
6 print(response)
百度回源IP地址段查询
Python
1def test_list_nodes(c):
2 """
3 test_list_nodes
4 """
5 response = c.list_nodes()
6 print(response)