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