文档首页 > > 开发指南> SDK简介(旧)> API与SDK 对应关系> Java> CDN

CDN

分享
更新时间:2020/09/29 GMT+08:00

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

Interface

Method

API

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

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

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

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

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

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

getOriginHost(domainId, **params)

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

setOriginRange(domainId, **attrs)

PUT /v1.0/cdn/domains/{domainId}/range-switch

setFollow302(domainId, **attrs)

PUT /v1.0/cdn/domains/{domainId}/follow302-switch

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

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

getReferer(domainId, **params)

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

getIpAcl(domainId)

GET /v1.0/cdn/domains/{domainId}/ip-acl

setIpAcl(domainId, **attrs)

PUT /v1.0/cdn/domains/{domainId}/ip-acl

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

queryCdnIPs(**attrs)

GET /v1.0/cdn/ip-info

setResponseHeader(domainId, **attrs)

PUT /v1.0/cdn/domains/{domainId}/response-header

getResponseHeader(domainId)

GET /v1.0/cdn/domains/{domainId}/response-header

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

StatisticService

queryTopUrl(**query)

GET /v1.0/cdn/statistics/top-url

queryDomainItemDetails(**query)

GET /v1.0/cdn/statistics/domain-item-details

queryDomainItemLocationDetails(**query)

GET /v1.0/cdn/statistics/domain-item-location-details

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

queryRegionDetailSummry(**query)

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

queryCarrierDetailSummry(**query)

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

queryRegionCarrierDomain(**query)

GET /v1.0/cdn/statistics/region-carrier-domain

queryRegionCarrierDetail(**query)

GET /v1.0/cdn/statistics/region-carrier-detail

LogService

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

GET /v1.0/cdn/logs

分享:

    相关文档

    相关产品

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

提交成功!非常感谢您的反馈,我们会继续努力做到更好!
反馈提交失败,请稍后再试!

*必选

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

字符长度不能超过200

提交反馈 取消

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

智能客服提问云社区提问