文档首页 > > 开发指南> API & SDK 对应关系> Python> CDN

CDN

分享
更新时间: 2019/11/15 GMT+08:00

基于CDN v1.0 API的SDK接口如下,调用方式举例:conn.cdn.domains()

Interface

Method

API

Domain Operations

domains(enterprise_project_id='ALL', page_size=100, page_number=1, **query)

GET /v1.0/cdn/domains

create_domain(**attrs)

POST /v1.0/cdn/domains

get_domain(domain)

GET /v1.0/cdn/domains/{domain_id}/detail

get_domain_detail_by_enterprise_project_id(domain_id, enterprise_project_id)

GET /v1.0/cdn/domains/{domain_id}/detail

set_domain_sources(domain, *sources)

PUT /v1.0/cdn/domains/{domain_id}/origin

set_domain_sources_by_enterprise_project_id(domain, enterprise_project_id, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/origin

delete_domain(domain, ignore_missing=True)

DELETE /v1.0/cdn/domains/{domain_id}

delete_domain_by_enterprise_project_id(domain, enterprise_project_id)

DELETE /v1.0/cdn/domains/{domain_id}

enable_domain(domain)

PUT /v1.0/cdn/domains/{domain_id}/enable

enable_domain_by_enterprise_project_id(domain, enterprise_project_id)

PUT /v1.0/cdn/domains/{domain_id}/enable

disable_domain(domain)

PUT /v1.0/cdn/domains/{domain_id}/disable

disable_domain_by_enterprise_project_id(domain_id, enterprise_project_id)

PUT /v1.0/cdn/domains/{domain_id}/disable

set_domain_origin_host(domain, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/originhost

set_domain_origin_host_by_enterprise_project_id(domain, enterprise_project_id, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/originhost

get_domain_origin_host(domain)

GET /v1.0/cdn/domains/{domain_id}/originhost

get_domain_origin_host_by_enterprise_project_id(domain, enterprise_project_id)

GET /v1.0/cdn/domains/{domain_id}/originhost

set_domain_referer(domain, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/referer

set_domain_referer_by_enterprise_project_id(domain, enterprise_project_id, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/referer

get_domain_referer(domain)

GET /v1.0/cdn/domains/{domain_id}/referer

get_domain_referer_by_enterprise_project_id(domain, enterprise_project_id)

GET /v1.0/cdn/domains/{domain_id}/referer

set_domain_cache_rules(domain, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/cache

set_domain_cache_rules_by_enterprise_project_id(domain, enterprise_project_id, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/cache

get_domain_cache_rules(domain)

GET /v1.0/cdn/domains/{domain_id}/cache

get_domain_cache_rules_by_enterprise_project_id(domain, enterprise_project_id)

GET /v1.0/cdn/domains/{domain_id}/cache

set_domain_https(domain, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/https-info

set_domain_https_by_enterprise_project_id(domain, enterprise_project_id, **attrs)

PUT /v1.0/cdn/domains/{domain_id}/https-info

get_domain_https(domain)

GET /v1.0/cdn/domains/{domain_id}/https-info

get_domain_https_by_enterprise_project_id(domain, enterprise_project_id)

GET /v1.0/cdn/domains/{domain_id}/https-info

create_refresh_task(**attrs)

POST /v1.0/cdn/refreshtasks

create_preheat_task(**attrs)

POST /v1.0/cdn/preheatingtasks

tasks(page_size=100, page_number=1, **query)

GET /v1.0/cdn/historytasks

get_task(task)

GET /v1.0/cdn/historytasks/{task_id}/detail

Statistic Operations

query_network_traffic(**query)

GET /v1.0/cdn/statistics/flux

query_network_traffic_detail(**query)

GET /v1.0/cdn/statistics/flux-detail

query_bandwidth_peak(**query)

GET /v1.0/cdn/statistics/bandwidth

query_bandwidth(**query)

GET /v1.0/cdn/statistics/bandwidth-detail

query_summary(**query)

GET /v1.0/cdn/statistics/domain-summary

query_summary_detail(**query)

GET /v1.0/cdn/statistics/domain-summary-detail

summaries(**query)

GET /v1.0/cdn/statistics/domain

Log Operations

logs(domain_name, query_date,

page_size=100, page_number=1, **query)

GET /v1.0/cdn/logs

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区