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

CDN

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

基于CDN v1 API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

StatisticService

queryTotalNetworkTraffic(**query)

GET /v1.0/cdn/statistics/flux

queryDetailsOfNetworkTraffic(**query)

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

queryPeakBandwidth(**query)

GET /v1.0/cdn/statistics/bandwidth

queryDetailsOfNetworkBandwidth(**query)

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

queryConsumptionSummary(**query)

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

queryConsumptionSummaryDetails(**query)

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

queryDomainConsumptions(**query)

GET /v1.0/cdn/statistics/domain

DomainService

list(**params)

GET /v1.0/cdn/domains

create(**attrs)

POST /v1.0/cdn/domains

getDetail(domainId, **params)

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

setOrigin(domainId, **attrs, **params)

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

delete(domainId, **params)

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

enable(domainId, **params)

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

disable(domainId, **params)

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

setOriginHost(domainId, **attrs, **params)

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

getOriginHost(domainId, **params)

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

setReferer(domainId, **attrs, **params)

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

getReferer(domainId, **params)

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

setCacheConfig(domainId, **attrs, **params)

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

getCacheConfig(domainId, **params)

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

setHttpsInfo(domainId, **attrs, **params)

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

getHttpsInfo(domainId, **params)

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

createRefreshTask(**attrs, **params)

POST /v1.0/cdn/refreshtasks

createPreheatingTask(**attrs, **params)

POST /v1.0/cdn/preheatingtasks

queryTasks(**params)

GET /v1.0/cdn/historytasks

getTaskDetail(taskId, **params)

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

LogService

queryLogs(domainName, queryDate, pageSize, pageNumber, enterpriseProjectId, **query)

GET /v1.0/cdn/logs

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区