ucdn

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package ucdn include resources of ucloud ucdn product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAllConfig

type AccessAllConfig struct {

	// ip黑名单列表 ["1.1.1.1","2.2.2.2"]
	IpBlackList []string

	// Refer配置,参考ReferConf结构
	ReferConf []ReferConf
}

AccessAllConfig - 访问控制配置

type AdvancedConf

type AdvancedConf struct {

	// http转https回源 true是,false否
	Http2Https bool

	// 客户端响应http头列表
	HttpClientHeader []string

	// 源站http头列表
	HttpOriginHeader []string
}

AdvancedConf - 域名高级配置

type BandwidthInfo

type BandwidthInfo struct {

	// 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值)
	CdnBandwidth float64

	// 带宽获取的时间点。格式:时间戳
	Time int
}

BandwidthInfo - BandwidthInfo

type BandwidthInfoDetail

type BandwidthInfoDetail struct {

	// 返回值带宽值数据。
	Bandwidth float64

	// 宽获取的时间点。格式:时间戳
	Time int
}

BandwidthInfoDetail - 带宽值信息模型(时间-带宽)

type BatchRefreshNewUcdnDomainCacheRequest

type BatchRefreshNewUcdnDomainCacheRequest struct {
	request.CommonBase

	// 刷新类型,file代表文件刷新,dir 代表路径刷新
	Type *string `required:"true"`

	// 待刷新URL列表,以JSON格式描述。刷新多个URL列表时,一次最多提交1000个。每个域名必须以”http://域名/”开始。目录要以”/”结尾, 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面所有img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名
	UrlList *string `required:"true"`
}

BatchRefreshNewUcdnDomainCacheRequest is request schema for BatchRefreshNewUcdnDomainCache action

type BatchRefreshNewUcdnDomainCacheResponse

type BatchRefreshNewUcdnDomainCacheResponse struct {
	response.CommonBase

	// 本次提交url对应的任务id
	TaskId string
}

BatchRefreshNewUcdnDomainCacheResponse is response schema for BatchRefreshNewUcdnDomainCache action

type CacheAllConfig

type CacheAllConfig struct {

	// 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名
	CacheHost string

	// 忽略参数缓存配置列表,参见CacheKeyInfo
	CacheKeyList []CacheKeyInfo

	// 缓存配置列表,参见CacheConf
	CacheList []CacheConf

	// 状态码缓存配置列表,参见CacheConf
	HttpCodeCacheList []CacheConf
}

CacheAllConfig - 缓存相关的配置

type CacheConf

type CacheConf struct {

	// 是否缓存,true为缓存,flase为不缓存。为flase的情况下,CacheTTL和CacheUnit强制不生效
	CacheBehavior bool

	// 缓存时间
	CacheTTL int

	// 缓存时间的单位。sec(秒),min(分钟),hour(小时),day(天)。上限1年。
	CacheUnit string

	// 缓存规则描述
	Description string

	// 是否优先遵循源站头部缓存策略,false为不优先遵循源站,true为优先遵循源站缓存头部。默认为0
	FollowOriginRule bool

	// 状态码模式,非200,206状态码,多个状态码用竖线(|)分隔,该属性仅仅在状态码缓存配置列表中返回
	HttpCodePattern string

	// 路径模式,支持正则
	PathPattern string
}

CacheConf - 缓存配置

type CacheKeyInfo

type CacheKeyInfo struct {

	// 是否忽略
	Ignore bool

	// 路径模式,支持正则
	PathPattern string

	// 自定义变量,以$符号开头,多个变量用加号(+)连接,$querystring表示所有变量
	QueryString string
}

CacheKeyInfo - 忽略参数缓存配置

type DescribeNewUcdnPrefetchCacheTaskRequest

type DescribeNewUcdnPrefetchCacheTaskRequest struct {
	request.CommonBase

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值
	BeginTime *int `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 返回数据长度,默认全部,自然数
	Limit *int `required:"false"`

	// 数据偏移量,默认为0,自然数
	Offset *int `required:"false"`

	// 需要获取的内容预热的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态
	Status *string `required:"false"`

	// 提交任务时返回的任务ID
	TaskId []string `required:"false"`
}

DescribeNewUcdnPrefetchCacheTaskRequest is request schema for DescribeNewUcdnPrefetchCacheTask action

type DescribeNewUcdnPrefetchCacheTaskResponse

type DescribeNewUcdnPrefetchCacheTaskResponse struct {
	response.CommonBase

	// 预热任务信息,参考TaskInfo
	TaskList []TaskInfo

	// 预热任务的总数
	TotalCount int
}

DescribeNewUcdnPrefetchCacheTaskResponse is response schema for DescribeNewUcdnPrefetchCacheTask action

type DescribeNewUcdnRefreshCacheTaskRequest

type DescribeNewUcdnRefreshCacheTaskRequest struct {
	request.CommonBase

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值
	BeginTime *int `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 返回数据长度,默认全部,自然数
	Limit *int `required:"false"`

	// 数据偏移量,默认为0,自然数
	Offset *int `required:"false"`

	// 需要获取的内容刷新的状态,枚举值:success:成功;wait:等待处理;process:正在处理;failure:失败; unknow:未知,默认选择所有状态
	Status *string `required:"false"`

	// 提交任务时返回的任务ID
	TaskId []string `required:"false"`
}

DescribeNewUcdnRefreshCacheTaskRequest is request schema for DescribeNewUcdnRefreshCacheTask action

type DescribeNewUcdnRefreshCacheTaskResponse

type DescribeNewUcdnRefreshCacheTaskResponse struct {
	response.CommonBase

	// 刷新任务信息,参考TaskInfo
	TaskList []TaskInfo

	// 刷新任务的总数
	TotalCount int
}

DescribeNewUcdnRefreshCacheTaskResponse is response schema for DescribeNewUcdnRefreshCacheTask action

type DomainConfigInfo

type DomainConfigInfo struct {

	// 访问控制配置
	AccessAllConfig AccessAllConfig

	// 高级配置
	AdvancedConf AdvancedConf

	// 查询带宽区域 cn代表国内 abroad代表海外 all表示全部区域
	AreaCode string

	// 缓存配置
	CacheConf CacheAllConfig

	// 加速域名的业务类型,web代表网站,stream代表视频 ,download 代表下载
	CdnType string

	// 国外证书名称
	CertNameAbroad string

	// 国内证书名称
	CertNameCn string

	// cdn域名。创建加速域名生成的cdn域名,用于设置CNAME记录
	Cname string

	// 域名创建的时间。格式:时间戳
	CreateTime int

	// 域名
	Domain string

	// 域名Id
	DomainId string

	// 国外https状态 enableing-开启中  fail-开启失败 enable-启用 disable-未启用
	HttpsStatusAbroad string

	// 国内https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用
	HttpsStatusCn string

	// 源站配置
	OriginConf OriginConf

	// 创建的加速域名的当前的状态。check代表审核中,checkSuccess代表审核通过,checkFail代表审核失败,enable代表加速中,disable代表停止加速,delete代表删除加速enableing代表正在开启加速,disableing代表正在停止加速中,deleteing代表删除中
	Status string

	// 业务组:Default
	Tag string

	// 测试url。用于域名创建加速时的测试
	TestUrl string
}

DomainConfigInfo - 更新域名配置

type GetNewUcdnDomainBandwidthRequest

type GetNewUcdnDomainBandwidthRequest struct {
	request.CommonBase

	// 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。
	BeginTime *int `required:"false"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)
	Type *int `required:"true"`
}

GetNewUcdnDomainBandwidthRequest is request schema for GetNewUcdnDomainBandwidth action

type GetNewUcdnDomainBandwidthResponse

type GetNewUcdnDomainBandwidthResponse struct {
	response.CommonBase

	// 带宽信息列表,参见BandwidthInfo
	BandwidthList []BandwidthInfo

	// 从起始时间到结束时间内的所使用的CDN总流量,单位GB
	Traffic float64
}

GetNewUcdnDomainBandwidthResponse is response schema for GetNewUcdnDomainBandwidth action

type GetNewUcdnDomainHitRateRequest

type GetNewUcdnDomainHitRateRequest struct {
	request.CommonBase

	// 查询带宽区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。
	BeginTime *int `required:"false"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)
	Type *int `required:"true"`
}

GetNewUcdnDomainHitRateRequest is request schema for GetNewUcdnDomainHitRate action

type GetNewUcdnDomainHitRateResponse

type GetNewUcdnDomainHitRateResponse struct {
	response.CommonBase

	// 请求数实例表。
	HitRateList []HitRateInfo
}

GetNewUcdnDomainHitRateResponse is response schema for GetNewUcdnDomainHitRate action

type GetNewUcdnDomainHttpCodeRequest

type GetNewUcdnDomainHttpCodeRequest struct {
	request.CommonBase

	// 查询带宽区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。
	BeginTime *int `required:"false"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)
	Type *int `required:"true"`
}

GetNewUcdnDomainHttpCodeRequest is request schema for GetNewUcdnDomainHttpCode action

type GetNewUcdnDomainHttpCodeResponse

type GetNewUcdnDomainHttpCodeResponse struct {
	response.CommonBase

	// 状态码实例表。详细见HttpCodeInfo
	HttpCodeDetail []HttpCodeInfo
}

GetNewUcdnDomainHttpCodeResponse is response schema for GetNewUcdnDomainHttpCode action

type GetNewUcdnDomainHttpCodeV2Request

type GetNewUcdnDomainHttpCodeV2Request struct {
	request.CommonBase

	// 查询带宽区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。
	BeginTime *int `required:"true"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。
	EndTime *int `required:"true"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天粒度,3表示按照一分钟粒度)
	Type *int `required:"true"`
}

GetNewUcdnDomainHttpCodeV2Request is request schema for GetNewUcdnDomainHttpCodeV2 action

type GetNewUcdnDomainHttpCodeV2Response

type GetNewUcdnDomainHttpCodeV2Response struct {
	response.CommonBase

	// 状态码详情
	HttpCodeV2Detail []HttpCodeV2Detail
}

GetNewUcdnDomainHttpCodeV2Response is response schema for GetNewUcdnDomainHttpCodeV2 action

type GetNewUcdnDomainRequestNumRequest

type GetNewUcdnDomainRequestNumRequest struct {
	request.CommonBase

	// 查询区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。
	BeginTime *int `required:"false"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)
	Type *int `required:"true"`
}

GetNewUcdnDomainRequestNumRequest is request schema for GetNewUcdnDomainRequestNum action

type GetNewUcdnDomainRequestNumResponse

type GetNewUcdnDomainRequestNumResponse struct {
	response.CommonBase

	// 请求数实例表。
	RequestList []RequestInfo
}

GetNewUcdnDomainRequestNumResponse is response schema for GetNewUcdnDomainRequestNum action

type GetUcdnDomainConfigRequest

type GetUcdnDomainConfigRequest struct {
	request.CommonBase

	// 产品类型ucdn,可不填,默认为ucdn
	ChannelType *string `required:"false"`

	// 域名id,创建域名时生成的id。默认获取账号下的所有域名信息,n为自然数,从DomainId.0开始。
	DomainId []string `required:"false"`

	// 返回数据长度, 默认全部,非负整数
	Limit *int `required:"false"`

	// 数据偏移量,默认0,非负整数
	Offset *int `required:"false"`
}

GetUcdnDomainConfigRequest is request schema for GetUcdnDomainConfig action

type GetUcdnDomainConfigResponse

type GetUcdnDomainConfigResponse struct {
	response.CommonBase

	// 获取的域名信息,具体参考下面DomainConfig
	DomainList []DomainConfigInfo
}

GetUcdnDomainConfigResponse is response schema for GetUcdnDomainConfig action

type GetUcdnDomainLogRequest

type GetUcdnDomainLogRequest struct {
	request.CommonBase

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。
	BeginTime *int `required:"false"`

	// 域名ID,创建加速域名时生成。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 查询粒度  0=default(没有粒度) 1=按小时  2=按天
	Type *int `required:"false"`
}

GetUcdnDomainLogRequest is request schema for GetUcdnDomainLog action

type GetUcdnDomainLogResponse

type GetUcdnDomainLogResponse struct {
	response.CommonBase

	// 获取日志的连接地址。具体参考下面LogSetList
	LogSet []LogSetList
}

GetUcdnDomainLogResponse is response schema for GetUcdnDomainLog action

type GetUcdnDomainPrefetchEnableRequest

type GetUcdnDomainPrefetchEnableRequest struct {
	request.CommonBase

	// 域名ID,创建加速域名时生成。
	DomainId *string `required:"true"`
}

GetUcdnDomainPrefetchEnableRequest is request schema for GetUcdnDomainPrefetchEnable action

type GetUcdnDomainPrefetchEnableResponse

type GetUcdnDomainPrefetchEnableResponse struct {
	response.CommonBase

	// 0表示该域名未开启预取,1表示该域名已开启预取
	Enable int
}

GetUcdnDomainPrefetchEnableResponse is response schema for GetUcdnDomainPrefetchEnable action

type GetUcdnDomainRequestNumV2Request

type GetUcdnDomainRequestNumV2Request struct {
	request.CommonBase

	// 查询区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp
	BeginTime *int `required:"true"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp
	EndTime *int `required:"true"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟)
	Type *int `required:"true"`
}

GetUcdnDomainRequestNumV2Request is request schema for GetUcdnDomainRequestNumV2 action

type GetUcdnDomainRequestNumV2Response

type GetUcdnDomainRequestNumV2Response struct {
	response.CommonBase

	// 请求数实例表。
	RequestList []RequestInfo
}

GetUcdnDomainRequestNumV2Response is response schema for GetUcdnDomainRequestNumV2 action

type GetUcdnDomainTrafficRequest

type GetUcdnDomainTrafficRequest struct {
	request.CommonBase

	// 指定按项目查询,还是按整个账户查询  取值 top 表示按整个账户查询,取值org表示按项目查询
	AccountType *string `required:"false"`

	// 查询流量区域 cn代表国内 abroad代表海外,默认全部区域
	Areacode *string `required:"false"`

	// 查询的起始日期,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值
	BeginTime *int `required:"false"`

	// 域名ID,创建加速域名时生成,n从自然数0开始。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束日期,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天
	EndTime *int `required:"false"`
}

GetUcdnDomainTrafficRequest is request schema for GetUcdnDomainTraffic action

type GetUcdnDomainTrafficResponse

type GetUcdnDomainTrafficResponse struct {
	response.CommonBase

	// 流量实例表,具体结构见 UcdnDomainTrafficSet
	TrafficSet []UcdnDomainTrafficSet
}

GetUcdnDomainTrafficResponse is response schema for GetUcdnDomainTraffic action

type GetUcdnPassBandwidthRequest

type GetUcdnPassBandwidthRequest struct {
	request.CommonBase

	// 查询带宽区域 cn代表国内 abroad代表海外,只支持国内
	Areacode *string `required:"false"`

	// 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。
	BeginTime *int `required:"false"`

	// 域名id,创建域名时生成的id。默认全部域名
	DomainId []string `required:"false"`

	// 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。
	EndTime *int `required:"false"`

	// 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度)
	Type *int `required:"true"`
}

GetUcdnPassBandwidthRequest is request schema for GetUcdnPassBandwidth action

type GetUcdnPassBandwidthResponse

type GetUcdnPassBandwidthResponse struct {
	response.CommonBase

	// 回源带宽数据
	BandwidthDetail []BandwidthInfoDetail
}

GetUcdnPassBandwidthResponse is response schema for GetUcdnPassBandwidth action

type GetUcdnTrafficRequest

type GetUcdnTrafficRequest struct {
	request.CommonBase
}

GetUcdnTrafficRequest is request schema for GetUcdnTraffic action

type GetUcdnTrafficResponse

type GetUcdnTrafficResponse struct {
	response.CommonBase

	// 用户不同区域的流量信息, 具体结构参见TrafficSet部分
	TrafficSet []TrafficSet
}

GetUcdnTrafficResponse is response schema for GetUcdnTraffic action

type HitRateInfo

type HitRateInfo struct {

	// 流量命中率,单位%
	FlowHitRate float64

	// 请求数命中率,单位%
	RequestHitRate float64

	// 带宽获取的时间点。格式:时间戳
	Time int
}

HitRateInfo - HitRateInfo

type HttpCodeInfo

type HttpCodeInfo struct {

	// 5xx数量
	HttpFiveXX int

	// 4xx数量
	HttpFourXX int

	// 1xx数量
	HttpOneXX int

	// 3xx数量
	HttpThreeXX int

	// 2xx数量
	HttpTwoXX int

	// 带宽获取的时间点。格式:时间戳
	Time int
}

HttpCodeInfo - HttpCodeInfo

type HttpCodeV2Detail

type HttpCodeV2Detail struct {

	// http100数量
	Http100 int

	// http101数量
	Http101 int

	// http102数量
	Http102 int

	// http200数量
	Http200 int

	// http201数量
	Http201 int

	// http202数量
	Http202 int

	// http203数量
	Http203 int

	// http204数量
	Http204 int

	// http205数量
	Http205 int

	// http206数量
	Http206 int

	// http207数量
	Http207 int

	// http300数量
	Http300 int

	// http301数量
	Http301 int

	// http302数量
	Http302 int

	// http303数量
	Http303 int

	// http304数量
	Http304 int

	// http305数量
	Http305 int

	// http306数量
	Http306 int

	// http307数量
	Http307 int

	// http400数量
	Http400 int

	// http401数量
	Http401 int

	// http402数量
	Http402 int

	// http403数量
	Http403 int

	// http404数量
	Http404 int

	// http405数量
	Http405 int

	// http406数量
	Http406 int

	// http407数量
	Http407 int

	// http408数量
	Http408 int

	// http409数量
	Http409 int

	// http410数量
	Http410 int

	// http411数量
	Http411 int

	// http412数量
	Http412 int

	// http413数量
	Http413 int

	// http414数量
	Http414 int

	// http415数量
	Http415 int

	// http416数量
	Http416 int

	// http417数量
	Http417 int

	// http418数量
	Http418 int

	// http421数量
	Http421 int

	// http422数量
	Http422 int

	// http423数量
	Http423 int

	// http424数量
	Http424 int

	// http425数量
	Http425 int

	// http426数量
	Http426 int

	// http449数量
	Http449 int

	// http451数量
	Http451 int

	// http500数量
	Http500 int

	// http501数量
	Http501 int

	// http502数量
	Http502 int

	// http503数量
	Http503 int

	// http504数量
	Http504 int

	// http505数量
	Http505 int

	// http506数量
	Http506 int

	// http507数量
	Http507 int

	// http509数量
	Http509 int

	// http510数量
	Http510 int

	// 时间
	Time int
}

HttpCodeV2Detail - HTTP状态码详细信息

type LogSetInfo

type LogSetInfo struct {

	// 国外日志url列表
	AbroadLog []string

	// 国内日志url列表
	CnLog []string

	// 日志时间UnixTime
	Time int
}

LogSetInfo - 日志信息

type LogSetList

type LogSetList struct {

	// 域名
	Domain string

	// 域名信息列表,参考LogSetInfo
	Logs []LogSetInfo
}

LogSetList - 日志信息列表

type OriginConf

type OriginConf struct {

	// 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址
	BackupOriginEnable bool

	// 备份回源Http请求头部Host,默认是加速域名
	BackupOriginHost string

	// 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
	BackupOriginIpList []string

	// 主源响应的回源错误码(如:404|500),默认空字符串
	OriginErrorCode string

	// 回主源的回源失败数,默认1
	OriginErrorNum int

	// 跟随301跳转  0=不跟随 1=跟随
	OriginFollow301 int

	// 回源Http请求头部Host,默认是加速域名
	OriginHost string

	// 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
	OriginIpList []string

	// 回源端口
	OriginPort int

	// 源站协议http,http|https   默认http
	OriginProtocol string
}

OriginConf - 回源配置

type PrefetchNewUcdnDomainCacheRequest

type PrefetchNewUcdnDomainCacheRequest struct {
	request.CommonBase

	// 预热URL列表,n从自然数0开始。UrlList.n字段必须以”http://域名/”开始。目录要以”/”结尾, 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名
	UrlList []string `required:"true"`
}

PrefetchNewUcdnDomainCacheRequest is request schema for PrefetchNewUcdnDomainCache action

type PrefetchNewUcdnDomainCacheResponse

type PrefetchNewUcdnDomainCacheResponse struct {
	response.CommonBase

	// 本次提交url对应的任务id
	TaskId string
}

PrefetchNewUcdnDomainCacheResponse is response schema for PrefetchNewUcdnDomainCache action

type ReferConf

type ReferConf struct {

	// ReferType为白名单时,(删除)NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问
	NullRefer int

	// Refer列表,支持正则表达式
	ReferList []string

	// 0白名单,1黑名单
	ReferType int
}

ReferConf - Refer配置

type RefreshNewUcdnDomainCacheRequest

type RefreshNewUcdnDomainCacheRequest struct {
	request.CommonBase

	// 刷新类型,file代表文件刷新,dir 代表路径刷新
	Type *string `required:"true"`

	// 刷新多个URL列表时,一次最多提交30个。必须以”http://域名/”开始。目录要以”/”结尾, 如刷新目录a下所有文件,格式为:http://abc.ucloud.cn/a/;如刷新文件目录a下面img.png文件, 格式为http://abc.ucloud.cn/a/img.png。请正确提交需要刷新的域名
	UrlList []string `required:"true"`
}

RefreshNewUcdnDomainCacheRequest is request schema for RefreshNewUcdnDomainCache action

type RefreshNewUcdnDomainCacheResponse

type RefreshNewUcdnDomainCacheResponse struct {
	response.CommonBase

	// 本次提交url对应的任务id
	TaskId string
}

RefreshNewUcdnDomainCacheResponse is response schema for RefreshNewUcdnDomainCache action

type RequestInfo

type RequestInfo struct {

	// 返回值返回指定时间区间内的cdn收到的请求次数之和
	CdnRequest float64

	// 返回值返回指定时间区间内的cdn回源的请求次数之和
	OriginRequest float64

	// 带宽获取的时间点。格式:时间戳
	Time int
}

RequestInfo - RequestInfo

type SwitchUcdnChargeTypeRequest

type SwitchUcdnChargeTypeRequest struct {
	request.CommonBase

	// 计费方式。traffic代表按流量包计费,bandwidth按带宽付费
	ChargeType *string `required:"true"`
}

SwitchUcdnChargeTypeRequest is request schema for SwitchUcdnChargeType action

type SwitchUcdnChargeTypeResponse

type SwitchUcdnChargeTypeResponse struct {
	response.CommonBase
}

SwitchUcdnChargeTypeResponse is response schema for SwitchUcdnChargeType action

type TaskInfo

type TaskInfo struct {

	// 刷新任务创建的时间。格式为Unix Timestamp
	CreateTime int

	// 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知
	Status string

	// 提交任务时返回的任务ID
	TaskId string

	// file/dir  刷新任务会返回Type,预取任务没有
	Type string

	// 任务url的信息列表,参考UrlProgressInfo
	UrlLists []UrlProgressInfo
}

TaskInfo - 预取刷新的任务信息

type TrafficSet

type TrafficSet struct {

	// 购买流量的区域, cn: 国内; abroad: 国外
	Areacode string

	// Areacode区域内总剩余流量, 单位GB
	TrafficLeft float64

	// Areacode区域内总购买流量, 单位GB
	TrafficTotal float64

	// Areacode区域内总使用流量, 单位GB
	TrafficUsed float64
}

TrafficSet - GetUcdnTraffic

type UCDNClient

type UCDNClient struct {
	*ucloud.Client
}

UCDNClient is the client of UCDN

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UCDNClient

NewClient will return a instance of UCDNClient

func (*UCDNClient) BatchRefreshNewUcdnDomainCache

API: BatchRefreshNewUcdnDomainCache

批量刷新缓存

func (*UCDNClient) DescribeNewUcdnPrefetchCacheTask

API: DescribeNewUcdnPrefetchCacheTask

获取预取任务状态

func (*UCDNClient) DescribeNewUcdnRefreshCacheTask

API: DescribeNewUcdnRefreshCacheTask

获取域名刷新任务状态

func (*UCDNClient) GetNewUcdnDomainBandwidth

API: GetNewUcdnDomainBandwidth

获取域名带宽数据

func (*UCDNClient) GetNewUcdnDomainHitRate

API: GetNewUcdnDomainHitRate

获取域名命中率

func (*UCDNClient) GetNewUcdnDomainHttpCode

API: GetNewUcdnDomainHttpCode

获取域名状态码监控

func (*UCDNClient) GetNewUcdnDomainHttpCodeV2

API: GetNewUcdnDomainHttpCodeV2

获取域名详细状态码监控

func (*UCDNClient) GetNewUcdnDomainRequestNum

API: GetNewUcdnDomainRequestNum

获取域名请求数

func (*UCDNClient) GetUcdnDomainConfig

API: GetUcdnDomainConfig

批量获取加速域名配置

func (*UCDNClient) GetUcdnDomainLog

func (c *UCDNClient) GetUcdnDomainLog(req *GetUcdnDomainLogRequest) (*GetUcdnDomainLogResponse, error)

API: GetUcdnDomainLog

获取加速域名原始日志

func (*UCDNClient) GetUcdnDomainPrefetchEnable

API: GetUcdnDomainPrefetchEnable

获取域名预取开启状态

func (*UCDNClient) GetUcdnDomainRequestNumV2

API: GetUcdnDomainRequestNumV2

获取域名请求数

func (*UCDNClient) GetUcdnDomainTraffic

API: GetUcdnDomainTraffic

获取加速域名流量使用信息

func (*UCDNClient) GetUcdnPassBandwidth

API: GetUcdnPassBandwidth

获取回源带宽数据(cdn回客户源站部分)

func (*UCDNClient) GetUcdnTraffic

func (c *UCDNClient) GetUcdnTraffic(req *GetUcdnTrafficRequest) (*GetUcdnTrafficResponse, error)

API: GetUcdnTraffic

获取流量信息

func (*UCDNClient) NewBatchRefreshNewUcdnDomainCacheRequest

func (c *UCDNClient) NewBatchRefreshNewUcdnDomainCacheRequest() *BatchRefreshNewUcdnDomainCacheRequest

NewBatchRefreshNewUcdnDomainCacheRequest will create request of BatchRefreshNewUcdnDomainCache action.

func (*UCDNClient) NewDescribeNewUcdnPrefetchCacheTaskRequest

func (c *UCDNClient) NewDescribeNewUcdnPrefetchCacheTaskRequest() *DescribeNewUcdnPrefetchCacheTaskRequest

NewDescribeNewUcdnPrefetchCacheTaskRequest will create request of DescribeNewUcdnPrefetchCacheTask action.

func (*UCDNClient) NewDescribeNewUcdnRefreshCacheTaskRequest

func (c *UCDNClient) NewDescribeNewUcdnRefreshCacheTaskRequest() *DescribeNewUcdnRefreshCacheTaskRequest

NewDescribeNewUcdnRefreshCacheTaskRequest will create request of DescribeNewUcdnRefreshCacheTask action.

func (*UCDNClient) NewGetNewUcdnDomainBandwidthRequest

func (c *UCDNClient) NewGetNewUcdnDomainBandwidthRequest() *GetNewUcdnDomainBandwidthRequest

NewGetNewUcdnDomainBandwidthRequest will create request of GetNewUcdnDomainBandwidth action.

func (*UCDNClient) NewGetNewUcdnDomainHitRateRequest

func (c *UCDNClient) NewGetNewUcdnDomainHitRateRequest() *GetNewUcdnDomainHitRateRequest

NewGetNewUcdnDomainHitRateRequest will create request of GetNewUcdnDomainHitRate action.

func (*UCDNClient) NewGetNewUcdnDomainHttpCodeRequest

func (c *UCDNClient) NewGetNewUcdnDomainHttpCodeRequest() *GetNewUcdnDomainHttpCodeRequest

NewGetNewUcdnDomainHttpCodeRequest will create request of GetNewUcdnDomainHttpCode action.

func (*UCDNClient) NewGetNewUcdnDomainHttpCodeV2Request

func (c *UCDNClient) NewGetNewUcdnDomainHttpCodeV2Request() *GetNewUcdnDomainHttpCodeV2Request

NewGetNewUcdnDomainHttpCodeV2Request will create request of GetNewUcdnDomainHttpCodeV2 action.

func (*UCDNClient) NewGetNewUcdnDomainRequestNumRequest

func (c *UCDNClient) NewGetNewUcdnDomainRequestNumRequest() *GetNewUcdnDomainRequestNumRequest

NewGetNewUcdnDomainRequestNumRequest will create request of GetNewUcdnDomainRequestNum action.

func (*UCDNClient) NewGetUcdnDomainConfigRequest

func (c *UCDNClient) NewGetUcdnDomainConfigRequest() *GetUcdnDomainConfigRequest

NewGetUcdnDomainConfigRequest will create request of GetUcdnDomainConfig action.

func (*UCDNClient) NewGetUcdnDomainLogRequest

func (c *UCDNClient) NewGetUcdnDomainLogRequest() *GetUcdnDomainLogRequest

NewGetUcdnDomainLogRequest will create request of GetUcdnDomainLog action.

func (*UCDNClient) NewGetUcdnDomainPrefetchEnableRequest

func (c *UCDNClient) NewGetUcdnDomainPrefetchEnableRequest() *GetUcdnDomainPrefetchEnableRequest

NewGetUcdnDomainPrefetchEnableRequest will create request of GetUcdnDomainPrefetchEnable action.

func (*UCDNClient) NewGetUcdnDomainRequestNumV2Request

func (c *UCDNClient) NewGetUcdnDomainRequestNumV2Request() *GetUcdnDomainRequestNumV2Request

NewGetUcdnDomainRequestNumV2Request will create request of GetUcdnDomainRequestNumV2 action.

func (*UCDNClient) NewGetUcdnDomainTrafficRequest

func (c *UCDNClient) NewGetUcdnDomainTrafficRequest() *GetUcdnDomainTrafficRequest

NewGetUcdnDomainTrafficRequest will create request of GetUcdnDomainTraffic action.

func (*UCDNClient) NewGetUcdnPassBandwidthRequest

func (c *UCDNClient) NewGetUcdnPassBandwidthRequest() *GetUcdnPassBandwidthRequest

NewGetUcdnPassBandwidthRequest will create request of GetUcdnPassBandwidth action.

func (*UCDNClient) NewGetUcdnTrafficRequest

func (c *UCDNClient) NewGetUcdnTrafficRequest() *GetUcdnTrafficRequest

NewGetUcdnTrafficRequest will create request of GetUcdnTraffic action.

func (*UCDNClient) NewPrefetchNewUcdnDomainCacheRequest

func (c *UCDNClient) NewPrefetchNewUcdnDomainCacheRequest() *PrefetchNewUcdnDomainCacheRequest

NewPrefetchNewUcdnDomainCacheRequest will create request of PrefetchNewUcdnDomainCache action.

func (*UCDNClient) NewRefreshNewUcdnDomainCacheRequest

func (c *UCDNClient) NewRefreshNewUcdnDomainCacheRequest() *RefreshNewUcdnDomainCacheRequest

NewRefreshNewUcdnDomainCacheRequest will create request of RefreshNewUcdnDomainCache action.

func (*UCDNClient) NewSwitchUcdnChargeTypeRequest

func (c *UCDNClient) NewSwitchUcdnChargeTypeRequest() *SwitchUcdnChargeTypeRequest

NewSwitchUcdnChargeTypeRequest will create request of SwitchUcdnChargeType action.

func (*UCDNClient) PrefetchNewUcdnDomainCache

API: PrefetchNewUcdnDomainCache

提交预取任务

func (*UCDNClient) RefreshNewUcdnDomainCache

API: RefreshNewUcdnDomainCache

刷新缓存

func (*UCDNClient) SwitchUcdnChargeType

API: SwitchUcdnChargeType

切换账号计费方式

type UcdnDomainTrafficSet

type UcdnDomainTrafficSet struct {

	// 流量获取的时间点,格式为Unix Timestamp
	Time int

	// 查询每日流量总值,单位:GB
	Value float64
}

UcdnDomainTrafficSet - GetUcdnDomainTraffic

type UrlProgressInfo

type UrlProgressInfo struct {

	// 刷新任务创建的时间。格式为Unix Timestamp
	CreateTime int

	// 任务完成时间。格式为Unix Timestamp
	FinishTime int

	// 刷新进度,单位%
	Progress int

	// 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知
	Status string

	// 刷新的单条url
	Url string
}

UrlProgressInfo - UrlProgressInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL