检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Integer 配额上限。 type String 配额类型。 used Integer 已使用配额数。 user_domain_id String 域名所属用户的domain_id。 请求示例 GET https://cdn.myhuaweicloud.com/v1.0/cdn/quota
参数类型支持:flux(流量),req_num(请求数) service_area 否 String 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) enterprise_project_id 否 String
说明: 传参时区域名称,如“北京、上海、港澳台”等均需用汉语拼音(beijing、shanghai、gangaotai),“中国以外”请用“haiwai”传参。 “山西、陕西”传参时分别用:“shanxi、shaanxi”。 ALL表示查询全部区域。 carrier
dwidth-detail 请求消息 请求参数 请求参数如表1所示。 表1 请求参数 名称 是否必选 参数类型 描述 start_time 否 Long 查询起始时间戳(单位:毫秒)。 end_time 否 Long 查询结束时间戳(单位:毫秒)。 domain_name 是 String
操作权限:对CDN的所有只读权限。 作用范围:全局级服务 系统策略 不能单独配置CDN DomainConfiguration和CDN RefreshAndPreheatAccess权限,如果想配置这两个权限,请同时配置CDN DomainReadOnlyAccess权限,否则会造成所有域名不可见导致无法进行域名配置和刷新预热配置。
获取账号ID 在调用接口的时候,部分URL中需要填入账号ID(domain-id),所以需要先在管理控制台上获取到账号ID。账号ID获取步骤如下: 注册并登录管理控制台。 单击用户名,在下拉列表中单击“我的凭证”。 在“API凭证”页面的项目列表中查看账号ID。 图1 获取账号ID
"password": "********", "domain": { "name": "domainname" }
100000&domain_name=www.example.com&page_size=10&page_number=1&enterprise_project_id=0 响应示例 状态码: 200 OK { "logs" : [ { "domain_name" : "www
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
ING:预热任务。 status 否 String url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中。 file_type 否 String 文件类
er-detail-summary 请求消息 请求参数 请求参数如表1所示。 表1 请求参数 名称 是否必选 参数类型 描述 start_time 否 Long 查询起始时间戳(单位:毫秒)。 end_time 否 Long 查询结束时间戳(单位:毫秒)。 domain_name
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh service_area 否 String 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。 interval 否 Long 查询时间间隔,单位:秒,取值说明:
00:00:00) domain_name 是 String 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名 service_area 否 String 服务区域:mainland_china(默认)
策略名称:自定义策略(可修改) 效力:允许 被授权用户: 其他账号:domainId/userId,示例:0a0b0afb4************019806272e0/*。 委托账号:domainId/*,示例:0a0b0afb4************019806272e0/*。
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
"projects": [ { "domain_id": "65382450e8f64ac0870cd180d14e684b", "is_domain": false, "parent_id": "
https://cdn.myhuaweicloud.com/v1.0/cdn/logs?query_date=1502380500000&domain_name=www.example.com&page_size=10&page_number=1&enterprise_project_id=ALL