功能介绍 设置用户计费模式。 服务区域仅支持mainland_china(国内) 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽) 加速类型仅支持base(基础加速) 单租户调用频率:10次/min。 调用方法 请参见如何调用API。 URI PUT /v1.0/c
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
份进行识别和过滤,实现限制访问来源的目的。 URI PUT /v1.0/cdn/domains/{domain_id}/referer 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 加速域名id。 您可以通过查询加速域名接口查询加速域名id。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
名,即http请求头中的host信息。 URI GET /v1.0/cdn/domains/{domain_id}/originhost 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 加速域名id。 您可以通过查询加速域名接口查询加速域名id。
Integer 配额上限。 type String 配额类型。 used Integer 已使用配额数。 user_domain_id String 域名所属用户的domain_id。 请求示例 GET https://cdn.myhuaweicloud.com/v1.0/cdn/quota
名,即http请求头中的host信息。 URI PUT /v1.0/cdn/domains/{domain_id}/originhost 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 加速域名id。 您可以通过查询加速域名接口查询加速域名id。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
--密码 "domain": { "name": "domainname" --用户所属的账号名称 } } } }, "scope": { "domain": { "name": "domainname" --用户所属的账号名称
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
址获取资源并缓存后再返回给用户。 URI PUT /v1.0/cdn/domains/{domain_id}/follow302-switch 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 加速域名id。 您可以通过查询加速域名接口查询加速域名id。
--密码 "domain": { "name": "domainname" --用户所属的账号名称 } } } }, "scope": { "domain": { "name": "domainname" --用户所属的账号名称
目前只支持flux(流量),req_num(请求数) service_area 否 String 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) enterprise_project_id 否 String
ING:预热任务。 status 否 String url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中。 file_type 否 String 文件类
启Range回源将导致资源无法缓存。 URI PUT /v1.0/cdn/domains/{domain_id}/range-switch 表1 路径参数 参数 是否必选 参数类型 描述 domain_id 是 String 加速域名id。 您可以通过查询加速域名接口查询加速域名id。
超过20次,API整体请求每秒不超过200,否则会被限流。 调用方法 请参见如何调用API。 URI GET /v1.0/cdn/logs 表1 Query参数 参数 是否必选 参数类型 描述 domain_name 是 String 只支持单个域名,如:www.test1.com。
名单防盗链,CDN的访问会按照OBS桶的Referer规则生效吗? 这种配置是不生效的,CDN无法预知OBS桶的配置,请前往防盗链配置了解如何配置CDN的Referer防盗链。 父主题: 安全相关
您即将访问非华为云网站,请注意账号财产安全