Documentation ¶
Overview ¶
Package ucdn include resources of ucloud ucdn product
See also
- API: https://docs.ucloud.cn/api/ucdn-api/index
- Product: https://www.ucloud.cn/site/product/ucdn.html
for detail.
Index ¶
- type AccessConf
- type AccessControlConf
- type AddCertificateRequest
- type AddCertificateResponse
- type AdvancedConf
- type BandwidthInfo
- type BandwidthInfoDetail
- type BandwidthTrafficInfo
- type BatchDescribeNewUcdnDomainRequest
- type BatchDescribeNewUcdnDomainResponse
- type BatchRefreshNewUcdnDomainCacheRequest
- type BatchRefreshNewUcdnDomainCacheResponse
- type CacheAllConfig
- type CacheConf
- type CacheKeyInfo
- type CertList
- type ControlUcdnDomainCacheAccessRequest
- type ControlUcdnDomainCacheAccessResponse
- type DeleteCertificateRequest
- type DeleteCertificateResponse
- type DescribeNewUcdnPrefetchCacheTaskRequest
- type DescribeNewUcdnPrefetchCacheTaskResponse
- type DescribeNewUcdnRefreshCacheTaskRequest
- type DescribeNewUcdnRefreshCacheTaskResponse
- type DomainBaseInfo
- type DomainConfigInfo
- type DomainInfo
- type DomanLogList
- type DownloadStatisticInfo
- type GetAuthConfigRequest
- type GetAuthConfigResponse
- type GetCertificateV2Request
- type GetCertificateV2Response
- type GetNewUcdnDomainBandwidthRequest
- type GetNewUcdnDomainBandwidthResponse
- type GetNewUcdnDomainHitRateRequest
- type GetNewUcdnDomainHitRateResponse
- type GetNewUcdnDomainHttpCodeRequest
- type GetNewUcdnDomainHttpCodeResponse
- type GetNewUcdnDomainHttpCodeV2Request
- type GetNewUcdnDomainHttpCodeV2Response
- type GetNewUcdnDomainRequestNumRequest
- type GetNewUcdnDomainRequestNumResponse
- type GetNewUcdnLogRefererStatisticsRequest
- type GetNewUcdnLogRefererStatisticsResponse
- type GetNewUcdnLogUrlStatisticsRequest
- type GetNewUcdnLogUrlStatisticsResponse
- type GetUcdnDomain95BandwidthV2Request
- type GetUcdnDomain95BandwidthV2Response
- type GetUcdnDomainBandwidthByIpProtocolRequest
- type GetUcdnDomainBandwidthByIpProtocolResponse
- type GetUcdnDomainBandwidthV2Request
- type GetUcdnDomainBandwidthV2Response
- type GetUcdnDomainConfigRequest
- type GetUcdnDomainConfigResponse
- type GetUcdnDomainHitRateRequest
- type GetUcdnDomainHitRateResponse
- type GetUcdnDomainHttpCodeV2Request
- type GetUcdnDomainHttpCodeV2Response
- type GetUcdnDomainInfoListRequest
- type GetUcdnDomainInfoListResponse
- type GetUcdnDomainLogRequest
- type GetUcdnDomainLogResponse
- type GetUcdnDomainLogV2Request
- type GetUcdnDomainLogV2Response
- type GetUcdnDomainOriginHttpCodeDetailRequest
- type GetUcdnDomainOriginHttpCodeDetailResponse
- type GetUcdnDomainOriginHttpCodeRequest
- type GetUcdnDomainOriginHttpCodeResponse
- type GetUcdnDomainOriginRequestNumRequest
- type GetUcdnDomainOriginRequestNumResponse
- type GetUcdnDomainPrefetchEnableRequest
- type GetUcdnDomainPrefetchEnableResponse
- type GetUcdnDomainPrefetchRefreshStateRequest
- type GetUcdnDomainPrefetchRefreshStateResponse
- type GetUcdnDomainRequestNumV2Request
- type GetUcdnDomainRequestNumV2Response
- type GetUcdnDomainRequestNumV3Request
- type GetUcdnDomainRequestNumV3Response
- type GetUcdnDomainTrafficRequest
- type GetUcdnDomainTrafficResponse
- type GetUcdnPassBandwidthRequest
- type GetUcdnPassBandwidthResponse
- type GetUcdnPassBandwidthV2Request
- type GetUcdnPassBandwidthV2Response
- type GetUcdnProIspBandwidthV2Request
- type GetUcdnProIspBandwidthV2Response
- type GetUcdnProIspRequestNumV2Request
- type GetUcdnProIspRequestNumV2Response
- type GetUcdnTrafficRequest
- type GetUcdnTrafficResponse
- type GetUcdnTrafficV2Request
- type GetUcdnTrafficV2Response
- type HitRateInfo
- type HitRateInfoV2
- type HttpCodeInfo
- type HttpCodeInfoV2
- type HttpCodeV2Detail
- type IpLocationInfo
- type KwaiAuthConfig
- type KwaiAuthKv
- type KwaiDomainAuthConfig
- type LogInfo
- type LogSetInfo
- type LogSetList
- type OriginConf
- type PrefetchNewUcdnDomainCacheRequest
- type PrefetchNewUcdnDomainCacheResponse
- type ProIspBandwidthList
- type ProIspBandwidthSet
- type ProIspRequestListV2
- type ProIspRequestNumSetV2
- type QueryIpLocationRequest
- type QueryIpLocationResponse
- type ReferConf
- type RefererList
- type RefererStatistics
- type RefreshNewUcdnDomainCacheRequest
- type RefreshNewUcdnDomainCacheResponse
- type RequestInfo
- type RequestInfoV2
- type SwitchUcdnChargeTypeRequest
- type SwitchUcdnChargeTypeResponse
- type TaskInfo
- type TrafficSet
- type UCDNClient
- func (c *UCDNClient) AddCertificate(req *AddCertificateRequest) (*AddCertificateResponse, error)
- func (c *UCDNClient) BatchDescribeNewUcdnDomain(req *BatchDescribeNewUcdnDomainRequest) (*BatchDescribeNewUcdnDomainResponse, error)
- func (c *UCDNClient) BatchRefreshNewUcdnDomainCache(req *BatchRefreshNewUcdnDomainCacheRequest) (*BatchRefreshNewUcdnDomainCacheResponse, error)
- func (c *UCDNClient) ControlUcdnDomainCacheAccess(req *ControlUcdnDomainCacheAccessRequest) (*ControlUcdnDomainCacheAccessResponse, error)
- func (c *UCDNClient) DeleteCertificate(req *DeleteCertificateRequest) (*DeleteCertificateResponse, error)
- func (c *UCDNClient) DescribeNewUcdnPrefetchCacheTask(req *DescribeNewUcdnPrefetchCacheTaskRequest) (*DescribeNewUcdnPrefetchCacheTaskResponse, error)
- func (c *UCDNClient) DescribeNewUcdnRefreshCacheTask(req *DescribeNewUcdnRefreshCacheTaskRequest) (*DescribeNewUcdnRefreshCacheTaskResponse, error)
- func (c *UCDNClient) GetAuthConfig(req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
- func (c *UCDNClient) GetCertificateV2(req *GetCertificateV2Request) (*GetCertificateV2Response, error)
- func (c *UCDNClient) GetNewUcdnDomainBandwidth(req *GetNewUcdnDomainBandwidthRequest) (*GetNewUcdnDomainBandwidthResponse, error)
- func (c *UCDNClient) GetNewUcdnDomainHitRate(req *GetNewUcdnDomainHitRateRequest) (*GetNewUcdnDomainHitRateResponse, error)
- func (c *UCDNClient) GetNewUcdnDomainHttpCode(req *GetNewUcdnDomainHttpCodeRequest) (*GetNewUcdnDomainHttpCodeResponse, error)
- func (c *UCDNClient) GetNewUcdnDomainHttpCodeV2(req *GetNewUcdnDomainHttpCodeV2Request) (*GetNewUcdnDomainHttpCodeV2Response, error)
- func (c *UCDNClient) GetNewUcdnDomainRequestNum(req *GetNewUcdnDomainRequestNumRequest) (*GetNewUcdnDomainRequestNumResponse, error)
- func (c *UCDNClient) GetNewUcdnLogRefererStatistics(req *GetNewUcdnLogRefererStatisticsRequest) (*GetNewUcdnLogRefererStatisticsResponse, error)
- func (c *UCDNClient) GetNewUcdnLogUrlStatistics(req *GetNewUcdnLogUrlStatisticsRequest) (*GetNewUcdnLogUrlStatisticsResponse, error)
- func (c *UCDNClient) GetUcdnDomain95BandwidthV2(req *GetUcdnDomain95BandwidthV2Request) (*GetUcdnDomain95BandwidthV2Response, error)
- func (c *UCDNClient) GetUcdnDomainBandwidthByIpProtocol(req *GetUcdnDomainBandwidthByIpProtocolRequest) (*GetUcdnDomainBandwidthByIpProtocolResponse, error)
- func (c *UCDNClient) GetUcdnDomainBandwidthV2(req *GetUcdnDomainBandwidthV2Request) (*GetUcdnDomainBandwidthV2Response, error)
- func (c *UCDNClient) GetUcdnDomainConfig(req *GetUcdnDomainConfigRequest) (*GetUcdnDomainConfigResponse, error)
- func (c *UCDNClient) GetUcdnDomainHitRate(req *GetUcdnDomainHitRateRequest) (*GetUcdnDomainHitRateResponse, error)
- func (c *UCDNClient) GetUcdnDomainHttpCodeV2(req *GetUcdnDomainHttpCodeV2Request) (*GetUcdnDomainHttpCodeV2Response, error)
- func (c *UCDNClient) GetUcdnDomainInfoList(req *GetUcdnDomainInfoListRequest) (*GetUcdnDomainInfoListResponse, error)
- func (c *UCDNClient) GetUcdnDomainLog(req *GetUcdnDomainLogRequest) (*GetUcdnDomainLogResponse, error)
- func (c *UCDNClient) GetUcdnDomainLogV2(req *GetUcdnDomainLogV2Request) (*GetUcdnDomainLogV2Response, error)
- func (c *UCDNClient) GetUcdnDomainOriginHttpCode(req *GetUcdnDomainOriginHttpCodeRequest) (*GetUcdnDomainOriginHttpCodeResponse, error)
- func (c *UCDNClient) GetUcdnDomainOriginHttpCodeDetail(req *GetUcdnDomainOriginHttpCodeDetailRequest) (*GetUcdnDomainOriginHttpCodeDetailResponse, error)
- func (c *UCDNClient) GetUcdnDomainOriginRequestNum(req *GetUcdnDomainOriginRequestNumRequest) (*GetUcdnDomainOriginRequestNumResponse, error)
- func (c *UCDNClient) GetUcdnDomainPrefetchEnable(req *GetUcdnDomainPrefetchEnableRequest) (*GetUcdnDomainPrefetchEnableResponse, error)
- func (c *UCDNClient) GetUcdnDomainPrefetchRefreshState(req *GetUcdnDomainPrefetchRefreshStateRequest) (*GetUcdnDomainPrefetchRefreshStateResponse, error)
- func (c *UCDNClient) GetUcdnDomainRequestNumV2(req *GetUcdnDomainRequestNumV2Request) (*GetUcdnDomainRequestNumV2Response, error)
- func (c *UCDNClient) GetUcdnDomainRequestNumV3(req *GetUcdnDomainRequestNumV3Request) (*GetUcdnDomainRequestNumV3Response, error)
- func (c *UCDNClient) GetUcdnDomainTraffic(req *GetUcdnDomainTrafficRequest) (*GetUcdnDomainTrafficResponse, error)
- func (c *UCDNClient) GetUcdnPassBandwidth(req *GetUcdnPassBandwidthRequest) (*GetUcdnPassBandwidthResponse, error)
- func (c *UCDNClient) GetUcdnPassBandwidthV2(req *GetUcdnPassBandwidthV2Request) (*GetUcdnPassBandwidthV2Response, error)
- func (c *UCDNClient) GetUcdnProIspBandwidthV2(req *GetUcdnProIspBandwidthV2Request) (*GetUcdnProIspBandwidthV2Response, error)
- func (c *UCDNClient) GetUcdnProIspRequestNumV2(req *GetUcdnProIspRequestNumV2Request) (*GetUcdnProIspRequestNumV2Response, error)
- func (c *UCDNClient) GetUcdnTraffic(req *GetUcdnTrafficRequest) (*GetUcdnTrafficResponse, error)
- func (c *UCDNClient) GetUcdnTrafficV2(req *GetUcdnTrafficV2Request) (*GetUcdnTrafficV2Response, error)
- func (c *UCDNClient) NewAddCertificateRequest() *AddCertificateRequest
- func (c *UCDNClient) NewBatchDescribeNewUcdnDomainRequest() *BatchDescribeNewUcdnDomainRequest
- func (c *UCDNClient) NewBatchRefreshNewUcdnDomainCacheRequest() *BatchRefreshNewUcdnDomainCacheRequest
- func (c *UCDNClient) NewControlUcdnDomainCacheAccessRequest() *ControlUcdnDomainCacheAccessRequest
- func (c *UCDNClient) NewDeleteCertificateRequest() *DeleteCertificateRequest
- func (c *UCDNClient) NewDescribeNewUcdnPrefetchCacheTaskRequest() *DescribeNewUcdnPrefetchCacheTaskRequest
- func (c *UCDNClient) NewDescribeNewUcdnRefreshCacheTaskRequest() *DescribeNewUcdnRefreshCacheTaskRequest
- func (c *UCDNClient) NewGetAuthConfigRequest() *GetAuthConfigRequest
- func (c *UCDNClient) NewGetCertificateV2Request() *GetCertificateV2Request
- func (c *UCDNClient) NewGetNewUcdnDomainBandwidthRequest() *GetNewUcdnDomainBandwidthRequest
- func (c *UCDNClient) NewGetNewUcdnDomainHitRateRequest() *GetNewUcdnDomainHitRateRequest
- func (c *UCDNClient) NewGetNewUcdnDomainHttpCodeRequest() *GetNewUcdnDomainHttpCodeRequest
- func (c *UCDNClient) NewGetNewUcdnDomainHttpCodeV2Request() *GetNewUcdnDomainHttpCodeV2Request
- func (c *UCDNClient) NewGetNewUcdnDomainRequestNumRequest() *GetNewUcdnDomainRequestNumRequest
- func (c *UCDNClient) NewGetNewUcdnLogRefererStatisticsRequest() *GetNewUcdnLogRefererStatisticsRequest
- func (c *UCDNClient) NewGetNewUcdnLogUrlStatisticsRequest() *GetNewUcdnLogUrlStatisticsRequest
- func (c *UCDNClient) NewGetUcdnDomain95BandwidthV2Request() *GetUcdnDomain95BandwidthV2Request
- func (c *UCDNClient) NewGetUcdnDomainBandwidthByIpProtocolRequest() *GetUcdnDomainBandwidthByIpProtocolRequest
- func (c *UCDNClient) NewGetUcdnDomainBandwidthV2Request() *GetUcdnDomainBandwidthV2Request
- func (c *UCDNClient) NewGetUcdnDomainConfigRequest() *GetUcdnDomainConfigRequest
- func (c *UCDNClient) NewGetUcdnDomainHitRateRequest() *GetUcdnDomainHitRateRequest
- func (c *UCDNClient) NewGetUcdnDomainHttpCodeV2Request() *GetUcdnDomainHttpCodeV2Request
- func (c *UCDNClient) NewGetUcdnDomainInfoListRequest() *GetUcdnDomainInfoListRequest
- func (c *UCDNClient) NewGetUcdnDomainLogRequest() *GetUcdnDomainLogRequest
- func (c *UCDNClient) NewGetUcdnDomainLogV2Request() *GetUcdnDomainLogV2Request
- func (c *UCDNClient) NewGetUcdnDomainOriginHttpCodeDetailRequest() *GetUcdnDomainOriginHttpCodeDetailRequest
- func (c *UCDNClient) NewGetUcdnDomainOriginHttpCodeRequest() *GetUcdnDomainOriginHttpCodeRequest
- func (c *UCDNClient) NewGetUcdnDomainOriginRequestNumRequest() *GetUcdnDomainOriginRequestNumRequest
- func (c *UCDNClient) NewGetUcdnDomainPrefetchEnableRequest() *GetUcdnDomainPrefetchEnableRequest
- func (c *UCDNClient) NewGetUcdnDomainPrefetchRefreshStateRequest() *GetUcdnDomainPrefetchRefreshStateRequest
- func (c *UCDNClient) NewGetUcdnDomainRequestNumV2Request() *GetUcdnDomainRequestNumV2Request
- func (c *UCDNClient) NewGetUcdnDomainRequestNumV3Request() *GetUcdnDomainRequestNumV3Request
- func (c *UCDNClient) NewGetUcdnDomainTrafficRequest() *GetUcdnDomainTrafficRequest
- func (c *UCDNClient) NewGetUcdnPassBandwidthRequest() *GetUcdnPassBandwidthRequest
- func (c *UCDNClient) NewGetUcdnPassBandwidthV2Request() *GetUcdnPassBandwidthV2Request
- func (c *UCDNClient) NewGetUcdnProIspBandwidthV2Request() *GetUcdnProIspBandwidthV2Request
- func (c *UCDNClient) NewGetUcdnProIspRequestNumV2Request() *GetUcdnProIspRequestNumV2Request
- func (c *UCDNClient) NewGetUcdnTrafficRequest() *GetUcdnTrafficRequest
- func (c *UCDNClient) NewGetUcdnTrafficV2Request() *GetUcdnTrafficV2Request
- func (c *UCDNClient) NewPrefetchNewUcdnDomainCacheRequest() *PrefetchNewUcdnDomainCacheRequest
- func (c *UCDNClient) NewQueryIpLocationRequest() *QueryIpLocationRequest
- func (c *UCDNClient) NewRefreshNewUcdnDomainCacheRequest() *RefreshNewUcdnDomainCacheRequest
- func (c *UCDNClient) NewSwitchUcdnChargeTypeRequest() *SwitchUcdnChargeTypeRequest
- func (c *UCDNClient) NewUpdateUcdnDomainStatusRequest() *UpdateUcdnDomainStatusRequest
- func (c *UCDNClient) PrefetchNewUcdnDomainCache(req *PrefetchNewUcdnDomainCacheRequest) (*PrefetchNewUcdnDomainCacheResponse, error)
- func (c *UCDNClient) QueryIpLocation(req *QueryIpLocationRequest) (*QueryIpLocationResponse, error)
- func (c *UCDNClient) RefreshNewUcdnDomainCache(req *RefreshNewUcdnDomainCacheRequest) (*RefreshNewUcdnDomainCacheResponse, error)
- func (c *UCDNClient) SwitchUcdnChargeType(req *SwitchUcdnChargeTypeRequest) (*SwitchUcdnChargeTypeResponse, error)
- func (c *UCDNClient) UpdateUcdnDomainStatus(req *UpdateUcdnDomainStatusRequest) (*UpdateUcdnDomainStatusResponse, error)
- type UcdnDomainTrafficSet
- type UpdateUcdnDomainStatusRequest
- type UpdateUcdnDomainStatusResponse
- type UrlProgressInfo
- type UrlStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessConf ¶ added in v0.19.2
type AccessConf struct { // 多个ip用逗号隔开 IpBlacklist string }
AccessConf - 访问控制
type AccessControlConf ¶ added in v0.19.2
type AccessControlConf struct { // ip黑名单,多个ip,可表示为:IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 IpBlackList []string // refer配置 ReferConf ReferConf }
AccessControlConf - 访问控制配置参数
type AddCertificateRequest ¶ added in v0.21.16
type AddCertificateRequest struct { request.CommonBase // Ca证书,默认为空 CaCert *string `required:"false"` // 证书名称 CertName *string `required:"true"` // 用户私钥 PrivateKey *string `required:"true"` // 用户证书 UserCert *string `required:"true"` }
AddCertificateRequest is request schema for AddCertificate action
type AddCertificateResponse ¶ added in v0.21.16
type AddCertificateResponse struct {
response.CommonBase
}
AddCertificateResponse is response schema for AddCertificate action
type AdvancedConf ¶
type AdvancedConf struct { // http转https回源 true是,false否 Http2Https bool // 客户端响应http头列表 HttpClientHeader []string // 源站http头列表 HttpOriginHeader []string // 是否开启quic QuicEnable bool // 是否开启websocket WebSocketEnable bool }
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 ¶
BandwidthInfoDetail - 带宽值信息模型(时间-带宽)
type BandwidthTrafficInfo ¶ added in v0.19.2
type BandwidthTrafficInfo struct { // 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps(如果请求参数Type为0,则Value是五分钟粒度的带宽值,如果Type为1,则Value是1小时的带宽峰值,如果Type为2,则Value是一天内的带宽峰值) CdnBandwidth float64 // 带宽获取的时间点。格式:时间戳 Time int // 对应时间粒度的流量,单位字节 Traffic float64 }
BandwidthTrafficInfo - BandwidthTrafficInfo
type BatchDescribeNewUcdnDomainRequest ¶ added in v0.19.2
type BatchDescribeNewUcdnDomainRequest struct { request.CommonBase // 渠道ucdn、ufile、uvideo ChannelType *string `required:"false"` // 域名id,创建域名时生成的资源id,默认获取账号下的所有域名信息,n为自然数 DomainId []string `required:"false"` // 返回数据长度,如果制定了Offset,则默认20,否则默认全部,非负整数 Limit *int `required:"false"` // 数据偏移量,默认0,非负整数 Offset *int `required:"false"` }
BatchDescribeNewUcdnDomainRequest is request schema for BatchDescribeNewUcdnDomain action
type BatchDescribeNewUcdnDomainResponse ¶ added in v0.19.2
type BatchDescribeNewUcdnDomainResponse struct { response.CommonBase // 标识欠费的数组,数组含有下列元素值, 1=国内流量有欠费 2=国外流量有欠费 3=国内带宽有欠费 4=国外带宽有欠费 Arrearage []string // 当前计费方式,10-流量付费 20-带宽日峰值 30-月95计费,31-月日均峰值, 32-月第四峰值 33-日均峰值之和 34- 日95再取平均 40-未选择计费方式 ChargeType int // 域名信息列表,参见DomainInfo DomainSet []DomainInfo // 表示最后一次切换的计费方式,10=流量付费 20=带宽日峰值 30=按月后付费 40=未选择计费方式 LastChargeType int // 最大域名数量,默认20 MaxDomainNum int // 满足条件的域名个数 TotalCount int // vip标示,yes-是 no-否 Vip string }
BatchDescribeNewUcdnDomainResponse is response schema for BatchDescribeNewUcdnDomain action
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 CertList ¶ added in v0.21.16
type CertList struct { // 证书开始时间 BeginTime int // ca证内容 CaCert string // 证书名 CertName string // 通用名 CommonName string // dns名称 DnsName string // 已配置域名个数 DomainCount int // 已配置的域名列表 Domains []string // 证书获取时间 EndTime int // 证书内容 UserCert string }
CertList - 证书信息
type ControlUcdnDomainCacheAccessRequest ¶ added in v0.21.30
type ControlUcdnDomainCacheAccessRequest struct { request.CommonBase // forbid=封禁 unforbid=解封 其他值非法 Type *string `required:"true"` // 待封禁的Url,一次封禁多个Url时最多一次30条,只能对表示文件的Url进行操作 UrlList []string `required:"true"` }
ControlUcdnDomainCacheAccessRequest is request schema for ControlUcdnDomainCacheAccess action
type ControlUcdnDomainCacheAccessResponse ¶ added in v0.21.30
type ControlUcdnDomainCacheAccessResponse struct {
response.CommonBase
}
ControlUcdnDomainCacheAccessResponse is response schema for ControlUcdnDomainCacheAccess action
type DeleteCertificateRequest ¶ added in v0.21.16
type DeleteCertificateRequest struct { request.CommonBase // 证书名称 CertName *string `required:"true"` }
DeleteCertificateRequest is request schema for DeleteCertificate action
type DeleteCertificateResponse ¶ added in v0.21.16
type DeleteCertificateResponse struct {
response.CommonBase
}
DeleteCertificateResponse is response schema for DeleteCertificate action
type DescribeNewUcdnPrefetchCacheTaskRequest ¶
type DescribeNewUcdnPrefetchCacheTaskRequest struct { request.CommonBase // 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值 BeginTime *int `required:"false"` // 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 EndTime *int `required:"false"` // 是否全站加速 默认false IsDcdn *bool `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"` // 是否全站加速 默认false IsDcdn *bool `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 DomainBaseInfo ¶ added in v0.21.1
DomainBaseInfo - 域名基本信息
type DomainConfigInfo ¶
type DomainConfigInfo struct { // 访问控制配置 参考AccessControlConf AccessControlConf AccessControlConf // 高级配置 参考AdvancedConf AdvancedConf AdvancedConf // 查询带宽区域 cn代表国内 abroad代表海外 all表示全部区域 AreaCode string // 缓存配置 参考CacheAllConfig 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 OriginConf // 创建的加速域名的当前的状态。check代表审核中;checkSuccess代表审核通过;checkFail代表审核失败;enable代表加速中;disable代表停止加速;delete代表删除加速;enableing代表正在开启加速;disableing代表正在停止加速中;deleteing代表删除中;deploying代表部署中 Status string // 业务组:Default Tag string // 测试url。用于域名创建加速时的测试 TestUrl string }
DomainConfigInfo - 更新域名配置
type DomainInfo ¶ added in v0.19.2
type DomainInfo struct { // 访问控制 AccessConf AccessConf // 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 AreaCode string // 缓存配置规则列表 CacheConf []CacheConf // 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名 CacheHost string // 加速类型http,http|https CdnProtocol string // 加速域名的业务类型,web代表网站,stream代表视频,download代表下载。 CdnType string // 证书名称 CertName string // cdn域名。创建加速域名生成的cdn域名,用于设置CNAME记录 Cname string // 域名创建的时间。格式:时间戳 CreateTime int // 域名,用户创建加速的域名 Domain string // 域名id,创建域名时生成的id DomainId string // 国外https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 HttpsStatusAbroad string // 国内https状态 enableing-开启中 fail-开启失败 enable-启用 disable-未启用 HttpsStatusCn string // ReferType为白名单时,NullRefer为false代表不允许NULL refer访问,为true代表允许Null refer访问 NullRefer bool // 回源Http请求头部Host,默认是加速域名 OriginHost string // 源站ip即cdn服务器回源访问的ip地址。支持多个源站ip,多个源站ip,可表述为如:[1.1.1.1,2.2.2.2] OriginIp []string // 回源端口 OriginPort int // 源站协议http,http|https 默认http OriginProtocol string // Refer列表,支持正则表达式 ReferList []string // refer配置开关,true打开,false关闭 ReferStatus bool // 0白名单,1黑名单 ReferType int // 创建的加速域名的当前的状态。check代表审核中,checkSuccess代表审核通过,checkFail代表审核失败,enable代表加速中,disable代表停止加速,delete代表删除加速 enableing代表正在开启加速,disableing代表正在停止加速中,deleteing代表删除中 Status string // 业务组,默认为Default Tag string // 测试url,用于域名创建加速时的测试 TestUrl string // 开始分配Cname时间。格式:时间戳 ValidTime int }
DomainInfo - 域名配置
type DomanLogList ¶ added in v0.21.38
DomanLogList - 域名日志列表
type DownloadStatisticInfo ¶ added in v0.21.30
type DownloadStatisticInfo struct { // 下载次数 DownloadTimes int // 流量占比,单位% Percent float64 // 流量(单位为G) Traffic float64 // 下载链接的url Url string }
DownloadStatisticInfo - DownloadStatisticInfo
type GetAuthConfigRequest ¶ added in v0.21.45
type GetAuthConfigRequest struct { request.CommonBase // 希望获取的域名,不传则获取所有 Domain *string `required:"false"` }
GetAuthConfigRequest is request schema for GetAuthConfig action
type GetAuthConfigResponse ¶ added in v0.21.45
type GetAuthConfigResponse struct { response.CommonBase // 鉴权配置列表 AuthConfigs []KwaiDomainAuthConfig }
GetAuthConfigResponse is response schema for GetAuthConfig action
type GetCertificateV2Request ¶ added in v0.21.16
type GetCertificateV2Request struct { request.CommonBase // 长度,默认为全部,非负整数 Limit *int `required:"false"` // 偏移,默认为0,非负整数 Offset *int `required:"false"` }
GetCertificateV2Request is request schema for GetCertificateV2 action
type GetCertificateV2Response ¶ added in v0.21.16
type GetCertificateV2Response struct { response.CommonBase // 证书信息列表 CertList []CertList // 证书数量 TotalCount int }
GetCertificateV2Response is response schema for GetCertificateV2 action
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表示按照一天的粒度)默认5分钟 Type *int `required:"false"` }
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 GetNewUcdnLogRefererStatisticsRequest ¶ added in v0.21.30
type GetNewUcdnLogRefererStatisticsRequest struct { request.CommonBase // 查询带宽区域 cn代表国内 abroad代表海外 ;目前只支持国内 Areacode *string `required:"false"` // 查询带宽的起始时间,格式:时间戳 BeginTime *int `required:"false"` // 域名id,创建域名时生成的id DomainId *string `required:"false"` // 查询统计日志的结束时间,格式:时间戳。最大时间间隔30天 EndTime *int `required:"false"` // 返回的结果数量限制,默认1000 Limit *int `required:"false"` // 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 OrderBy *int `required:"false"` }
GetNewUcdnLogRefererStatisticsRequest is request schema for GetNewUcdnLogRefererStatistics action
type GetNewUcdnLogRefererStatisticsResponse ¶ added in v0.21.30
type GetNewUcdnLogRefererStatisticsResponse struct { response.CommonBase // 按天统计实例 RefererStatistics []RefererStatistics }
GetNewUcdnLogRefererStatisticsResponse is response schema for GetNewUcdnLogRefererStatistics action
type GetNewUcdnLogUrlStatisticsRequest ¶ added in v0.21.30
type GetNewUcdnLogUrlStatisticsRequest struct { request.CommonBase // 查询带宽区域 cn代表国内 abroad代表海外 只支持国内 Areacode *string `required:"false"` // 查询带宽的起始时间,格式:时间戳 BeginTime *int `required:"false"` // 域名Id DomainId *string `required:"true"` // 查询统计日志的结束时间,格式:时间戳,只能支持查询1天。可不填 EndTime *int `required:"false"` // 返回的结果数量限制,默认1000 Limit *int `required:"false"` // 0表示按流量降序排列,1表示按照下载次数降序排列,默认为0 OrderBy *int `required:"false"` }
GetNewUcdnLogUrlStatisticsRequest is request schema for GetNewUcdnLogUrlStatistics action
type GetNewUcdnLogUrlStatisticsResponse ¶ added in v0.21.30
type GetNewUcdnLogUrlStatisticsResponse struct { response.CommonBase // 按天统计实例。 UrlStatisticsList []UrlStatistics }
GetNewUcdnLogUrlStatisticsResponse is response schema for GetNewUcdnLogUrlStatistics action
type GetUcdnDomain95BandwidthV2Request ¶ added in v0.19.2
type GetUcdnDomain95BandwidthV2Request 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"` // 是否是动态加速 默认是false IsDcdn *bool `required:"false"` }
GetUcdnDomain95BandwidthV2Request is request schema for GetUcdnDomain95BandwidthV2 action
type GetUcdnDomain95BandwidthV2Response ¶ added in v0.19.2
type GetUcdnDomain95BandwidthV2Response struct { response.CommonBase // 查询期间的CDN的95带宽值,单位Mbps CdnBandwidth float64 // 查询时间期间的95带宽时间点 Unix时间戳 Time int }
GetUcdnDomain95BandwidthV2Response is response schema for GetUcdnDomain95BandwidthV2 action
type GetUcdnDomainBandwidthByIpProtocolRequest ¶ added in v0.21.52
type GetUcdnDomainBandwidthByIpProtocolRequest 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"` // 协议,ipv4、ipv6 IpProtocol *string `required:"true"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) Type *int `required:"true"` }
GetUcdnDomainBandwidthByIpProtocolRequest is request schema for GetUcdnDomainBandwidthByIpProtocol action
type GetUcdnDomainBandwidthByIpProtocolResponse ¶ added in v0.21.52
type GetUcdnDomainBandwidthByIpProtocolResponse struct { response.CommonBase // 带宽信息列表,参见BandwidthTrafficInfo BandwidthTrafficList []BandwidthTrafficInfo }
GetUcdnDomainBandwidthByIpProtocolResponse is response schema for GetUcdnDomainBandwidthByIpProtocol action
type GetUcdnDomainBandwidthV2Request ¶ added in v0.19.2
type GetUcdnDomainBandwidthV2Request struct { request.CommonBase // 查询带宽区域 cn代表国内 abroad代表海外 不填默认为全部区域 Areacode *string `required:"false"` // 查询的起始时间,格式为Unix Timestamp。如果有EndTime,BeginTime必须赋值。如没有赋值,则返回缺少参 数错误,如果没有EndTime,BeginTime也可以不赋值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 BeginTime *int `required:"false"` // 域名id,创建域名时生成的id。默认全部域名;例(DomainId.0=ucdn-xxxxxx;DomainId.1=ucdn-xxxxxx) DomainId []string `required:"false"` // 查询的结束时间,格式为Unix Timestamp。EndTime默认为当前时间,BeginTime默认为当前时间前一天时间。 EndTime *int `required:"false"` // 是否全站加速,默认false IsDcdn *bool `required:"false"` // 原始带宽,不为0则获取原始带宽,默认为0 Primeval *int `required:"false"` // 协议,http、https、websocket、quic 不传则查所有协议的带宽,可以查多个协议,用逗号分隔 Protocol *string `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) Type *int `required:"false"` }
GetUcdnDomainBandwidthV2Request is request schema for GetUcdnDomainBandwidthV2 action
type GetUcdnDomainBandwidthV2Response ¶ added in v0.19.2
type GetUcdnDomainBandwidthV2Response struct { response.CommonBase // 带宽信息列表,参见BandwidthTrafficInfo BandwidthTrafficList []BandwidthTrafficInfo }
GetUcdnDomainBandwidthV2Response is response schema for GetUcdnDomainBandwidthV2 action
type GetUcdnDomainConfigRequest ¶
type GetUcdnDomainConfigRequest struct { request.CommonBase // 产品类型ucdn,可不填,默认为ucdn ChannelType *string `required:"false"` // 域名 Domain []string `required:"false"` // 域名id,创建域名时生成的id。默认获取账号下的所有域名信息,n为自然数,从DomainId.0开始。 DomainId []string `required:"false"` // 是否是动态加速 默认是false IsDcdn *bool `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 GetUcdnDomainHitRateRequest ¶ added in v0.21.1
type GetUcdnDomainHitRateRequest 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 HitType *int `required:"false"` // 是否全站加速,默认false IsDcdn *bool `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照一分钟的粒度)默认5分钟 Type *int `required:"true"` }
GetUcdnDomainHitRateRequest is request schema for GetUcdnDomainHitRate action
type GetUcdnDomainHitRateResponse ¶ added in v0.21.1
type GetUcdnDomainHitRateResponse struct { response.CommonBase // 请求数实例表。 HitRateList []HitRateInfoV2 }
GetUcdnDomainHitRateResponse is response schema for GetUcdnDomainHitRate action
type GetUcdnDomainHttpCodeV2Request ¶ added in v0.19.2
type GetUcdnDomainHttpCodeV2Request 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"` // 是否全站加速 默认false IsDcdn *bool `required:"false"` // edge 表示边缘 Layer *string `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示1分钟粒度) Type *int `required:"true"` }
GetUcdnDomainHttpCodeV2Request is request schema for GetUcdnDomainHttpCodeV2 action
type GetUcdnDomainHttpCodeV2Response ¶ added in v0.19.2
type GetUcdnDomainHttpCodeV2Response struct { response.CommonBase // 状态码实例表。详细见HttpCodeInfoV2 HttpCodeDetail []HttpCodeInfoV2 }
GetUcdnDomainHttpCodeV2Response is response schema for GetUcdnDomainHttpCodeV2 action
type GetUcdnDomainInfoListRequest ¶ added in v0.21.1
type GetUcdnDomainInfoListRequest struct { request.CommonBase // 返回第几页,不填默认是第1页 PageIndex *int `required:"false"` // 分页的大小,不填默认每页20个 PageSize *int `required:"false"` }
GetUcdnDomainInfoListRequest is request schema for GetUcdnDomainInfoList action
type GetUcdnDomainInfoListResponse ¶ added in v0.21.1
type GetUcdnDomainInfoListResponse struct { response.CommonBase // 域名基本信息 DomainInfoList []DomainBaseInfo // 账户下域名总个数 TotalCount int }
GetUcdnDomainInfoListResponse is response schema for GetUcdnDomainInfoList 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 GetUcdnDomainLogV2Request ¶ added in v0.21.38
type GetUcdnDomainLogV2Request struct { request.CommonBase // 查询的起始时间,格式为Unix Timestamp BeginTime *int `required:"true"` // 域名id,创建域名时生成的id。默认全部域名 DomainId []string `required:"false"` // 查询的结束时间,格式为Unix Timestamp EndTime *int `required:"true"` // 是否全站加速 默认false IsDcdn *bool `required:"false"` }
GetUcdnDomainLogV2Request is request schema for GetUcdnDomainLogV2 action
type GetUcdnDomainLogV2Response ¶ added in v0.21.38
type GetUcdnDomainLogV2Response struct { response.CommonBase // DomainLogSet []DomanLogList }
GetUcdnDomainLogV2Response is response schema for GetUcdnDomainLogV2 action
type GetUcdnDomainOriginHttpCodeDetailRequest ¶ added in v0.21.7
type GetUcdnDomainOriginHttpCodeDetailRequest 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"` }
GetUcdnDomainOriginHttpCodeDetailRequest is request schema for GetUcdnDomainOriginHttpCodeDetail action
type GetUcdnDomainOriginHttpCodeDetailResponse ¶ added in v0.21.7
type GetUcdnDomainOriginHttpCodeDetailResponse struct { response.CommonBase // 状态码详情 HttpCodeV2Detail []HttpCodeV2Detail }
GetUcdnDomainOriginHttpCodeDetailResponse is response schema for GetUcdnDomainOriginHttpCodeDetail action
type GetUcdnDomainOriginHttpCodeRequest ¶ added in v0.21.7
type GetUcdnDomainOriginHttpCodeRequest 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表示按照一天的粒度,3表示按照1分钟粒度) Type *int `required:"true"` }
GetUcdnDomainOriginHttpCodeRequest is request schema for GetUcdnDomainOriginHttpCode action
type GetUcdnDomainOriginHttpCodeResponse ¶ added in v0.21.7
type GetUcdnDomainOriginHttpCodeResponse struct { response.CommonBase // 状态码实例表。详细见HttpCodeInfo HttpCodeDetail []HttpCodeInfo }
GetUcdnDomainOriginHttpCodeResponse is response schema for GetUcdnDomainOriginHttpCode action
type GetUcdnDomainOriginRequestNumRequest ¶ added in v0.19.2
type GetUcdnDomainOriginRequestNumRequest 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"` // 是否全站加速 默认false IsDcdn *bool `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) Type *int `required:"true"` }
GetUcdnDomainOriginRequestNumRequest is request schema for GetUcdnDomainOriginRequestNum action
type GetUcdnDomainOriginRequestNumResponse ¶ added in v0.19.2
type GetUcdnDomainOriginRequestNumResponse struct { response.CommonBase // 请求数实例表。 RequestList []RequestInfoV2 }
GetUcdnDomainOriginRequestNumResponse is response schema for GetUcdnDomainOriginRequestNum 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 GetUcdnDomainPrefetchRefreshStateRequest ¶ added in v0.22.3
type GetUcdnDomainPrefetchRefreshStateRequest struct { request.CommonBase // 域名ID,创建加速域名时生成。 DomainId *string `required:"true"` }
GetUcdnDomainPrefetchRefreshStateRequest is request schema for GetUcdnDomainPrefetchRefreshState action
type GetUcdnDomainPrefetchRefreshStateResponse ¶ added in v0.22.3
type GetUcdnDomainPrefetchRefreshStateResponse struct { response.CommonBase // 预热配额 PrefetchQuota int // 目录刷新配额 RefreshDirQuota int // 文件刷新配额 RefreshFileQuota int // 已提交预热个数 SubmitPrefetchCount int // 已提交的目录刷新个数 SubmitRefreshDir int // 已提交的文件刷新个数 SubmitRefreshFile int }
GetUcdnDomainPrefetchRefreshStateResponse is response schema for GetUcdnDomainPrefetchRefreshState 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 GetUcdnDomainRequestNumV3Request ¶ added in v0.19.2
type GetUcdnDomainRequestNumV3Request 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"` // 是否全站加速,默认false IsDcdn *bool `required:"false"` // 协议,IsDcdn=false时,可传http、https不传则查所有协议的带宽。如果IsDcdn=true,这里可传http_dynamic、http_static、https_dynamic、https_static、quic_dynamic、quic_static、websocket 并支持同时查询多个协议用逗号隔开 Protocol *string `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度, 3=按1分钟) Type *int `required:"true"` }
GetUcdnDomainRequestNumV3Request is request schema for GetUcdnDomainRequestNumV3 action
type GetUcdnDomainRequestNumV3Response ¶ added in v0.19.2
type GetUcdnDomainRequestNumV3Response struct { response.CommonBase // 请求数实例表。 RequestList []RequestInfoV2 }
GetUcdnDomainRequestNumV3Response is response schema for GetUcdnDomainRequestNumV3 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 GetUcdnPassBandwidthV2Request ¶ added in v0.19.2
type GetUcdnPassBandwidthV2Request 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"` // 是否全站加速 默认false IsDcdn *bool `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天的粒度,3表示按照1分钟粒度) Type *int `required:"true"` }
GetUcdnPassBandwidthV2Request is request schema for GetUcdnPassBandwidthV2 action
type GetUcdnPassBandwidthV2Response ¶ added in v0.19.2
type GetUcdnPassBandwidthV2Response struct { response.CommonBase // 回源带宽数据 BandwidthList []BandwidthInfoDetail }
GetUcdnPassBandwidthV2Response is response schema for GetUcdnPassBandwidthV2 action
type GetUcdnProIspBandwidthV2Request ¶ added in v0.19.2
type GetUcdnProIspBandwidthV2Request struct { request.CommonBase // 查询的起始日期,格式为Unix Timestamp BeginTime *int `required:"true"` // 域名id,创建域名时生成的id。默认全部域名 DomainId []string `required:"false"` // 查询的结束日期,格式为Unix Timestamp EndTime *int `required:"true"` // 运营商代码(运营商拼音),一次只能查询一个运营商,不传递默认取所有运营商 Isp *string `required:"false"` // 省份代码(省份拼音),可以传多个,不传则查询所有省份 Province []string `required:"false"` // 时间粒度0 (按5分钟粒度)1 (按小时粒度)2(按天粒度)3(按分钟粒度) Type *int `required:"true"` }
GetUcdnProIspBandwidthV2Request is request schema for GetUcdnProIspBandwidthV2 action
type GetUcdnProIspBandwidthV2Response ¶ added in v0.19.2
type GetUcdnProIspBandwidthV2Response struct { response.CommonBase // 按省份的带宽流量实例表。具体参考下面BandwidthSet BandwidthSet []ProIspBandwidthSet }
GetUcdnProIspBandwidthV2Response is response schema for GetUcdnProIspBandwidthV2 action
type GetUcdnProIspRequestNumV2Request ¶ added in v0.19.2
type GetUcdnProIspRequestNumV2Request struct { request.CommonBase // 查询的起始日期,格式为Unix Timestamp 忽略时间部分 BeginTime *int `required:"true"` // 域名id,创建域名时生成的id。默认全部域名 DomainId []string `required:"false"` // 查询的结束日期,格式为Unix Timestamp 忽略时间部分 EndTime *int `required:"true"` // 运营商代码,一次只能查询一个运营商,不传递默认取所有运营商 Isp *string `required:"false"` // 省份代码,可以传多个,不传则查询所有省份 Province []string `required:"false"` // 时间粒度(0表示按照5分钟粒度,1表示按照1小时粒度,2表示按照一天粒度,3表示按照一分钟粒度) Type *int `required:"false"` }
GetUcdnProIspRequestNumV2Request is request schema for GetUcdnProIspRequestNumV2 action
type GetUcdnProIspRequestNumV2Response ¶ added in v0.19.2
type GetUcdnProIspRequestNumV2Response struct { response.CommonBase // 按省份的请求数实例表。具体参考下面RequestList RequestNumSet []ProIspRequestNumSetV2 }
GetUcdnProIspRequestNumV2Response is response schema for GetUcdnProIspRequestNumV2 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 GetUcdnTrafficV2Request ¶ added in v0.19.2
type GetUcdnTrafficV2Request struct { request.CommonBase // 是否dcdn域名 IsDcdn *bool `required:"false"` }
GetUcdnTrafficV2Request is request schema for GetUcdnTrafficV2 action
type GetUcdnTrafficV2Response ¶ added in v0.19.2
type GetUcdnTrafficV2Response struct { response.CommonBase // 用户不同区域的流量信息, 具体结构参见TrafficSet部分 TrafficSet []TrafficSet }
GetUcdnTrafficV2Response is response schema for GetUcdnTrafficV2 action
type HitRateInfo ¶
type HitRateInfo struct { // 总流量命中率,单位% FlowHitRate float64 // 请求数命中率,单位% RequestHitRate float64 // 带宽获取的时间点。格式:时间戳 Time int }
HitRateInfo - HitRateInfo
type HitRateInfoV2 ¶ added in v0.21.1
type HitRateInfoV2 struct { // 总流量命中率,单位% FlowHitRate float64 // 请求数命中率,单位% RequestHitRate float64 // 带宽获取的时间点。格式:时间戳 Time int }
HitRateInfoV2 - HitRateInfoV2
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 HttpCodeInfoV2 ¶ added in v0.19.2
type HttpCodeInfoV2 struct { // 1xx信息,参考HttpCodeV2Detail结构 Http1XX HttpCodeV2Detail // 2xx信息,参考HttpCodeV2Detail结构 Http2XX HttpCodeV2Detail // 3xx信息,参考HttpCodeV2Detail结构 Http3XX HttpCodeV2Detail // 4xx信息,参考HttpCodeV2Detail结构 Http4XX HttpCodeV2Detail // 5xx信息,参考HttpCodeV2Detail结构 Http5XX HttpCodeV2Detail // 6xx信息,参考HttpCodeV2Detail结构 Http6XX HttpCodeV2Detail // 带宽获取的时间点。格式:时间戳 Time int }
HttpCodeInfoV2 - HttpCodeInfoV2
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 // 当前分组的总状态码数 Total int }
HttpCodeV2Detail - HTTP状态码详细信息
type IpLocationInfo ¶ added in v0.21.9
type IpLocationInfo struct { // 地区 Area string // 城市 City string // ip是否存在 Exist bool // 客户端请求的ip Ip string // 运营商 Isp string }
IpLocationInfo - ip详细信息
type KwaiAuthConfig ¶ added in v0.21.45
type KwaiAuthConfig struct { // Keys []KwaiAuthKv // 类型 pkey / ksc / typeA Type string }
KwaiAuthConfig - 鉴权信息
type KwaiAuthKv ¶ added in v0.21.45
KwaiAuthKv - 快手鉴权键值信息
type KwaiDomainAuthConfig ¶ added in v0.21.45
type KwaiDomainAuthConfig struct { // Config []KwaiAuthConfig // 域名 Domain string }
KwaiDomainAuthConfig - 快手域名鉴权信息
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下面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 ProIspBandwidthList ¶ added in v0.19.2
type ProIspBandwidthList struct { // 返回值返回指定时间区间内CDN的带宽峰值,单位Mbps CdnBandwidth float64 // 带宽获取的时间点。格式:时间戳 Time int // 对应时间粒度的流量,单位字节 Traffic float64 }
ProIspBandwidthList - 省份带宽流量实例表
type ProIspBandwidthSet ¶ added in v0.19.2
type ProIspBandwidthSet struct { // 省份带宽流量实例表 BandwidthTrafficList []ProIspBandwidthList // 省份代码 Province string }
ProIspBandwidthSet - 按省份的带宽流量实例表
type ProIspRequestListV2 ¶ added in v0.19.2
type ProIspRequestListV2 struct { // 返回值返回指定时间区间内的请求数 CdnRequest float64 // 带宽获取的时间点。格式:时间戳 Time int }
ProIspRequestListV2 - 省份请求数实例表
type ProIspRequestNumSetV2 ¶ added in v0.19.2
type ProIspRequestNumSetV2 struct { // 省份代码 Province string // 省份请求数实例表 ProIspRequestListV2 RequestList []ProIspRequestListV2 }
ProIspRequestNumSetV2 - 按省份的请求数实例表
type QueryIpLocationRequest ¶ added in v0.21.9
type QueryIpLocationRequest struct { request.CommonBase // ip列表 Ip []string `required:"true"` }
QueryIpLocationRequest is request schema for QueryIpLocation action
type QueryIpLocationResponse ¶ added in v0.21.9
type QueryIpLocationResponse struct { response.CommonBase // IP信息列表 Data []IpLocationInfo }
QueryIpLocationResponse is response schema for QueryIpLocation action
type ReferConf ¶
type ReferConf struct { // ReferType为白名单时(删除),NullRefer为0代表不允许NULL refer访问,为1代表允许Null refer访问 NullRefer int // Refer防盗链规则列表,支持正则表达式 ReferList []string // Refer防盗链配置 0白名单,1黑名单 ReferType int }
ReferConf - refer配置
type RefererList ¶ added in v0.21.30
type RefererList struct { // 次数占比,单位% Percent float64 // 客户端请求的referer Referer string // 次数 RequestTimes int }
RefererList - RefererList
type RefererStatistics ¶ added in v0.21.30
type RefererStatistics struct { // 日期 Date string // Referer实例表 RefererList []RefererList }
RefererStatistics - RefererStatistics
type RefreshNewUcdnDomainCacheRequest ¶
type RefreshNewUcdnDomainCacheRequest struct { request.CommonBase // 刷新类型,file代表文件刷新,dir 代表路径刷新,m3u8带表m3u8刷新 Type *string `required:"true"` // 需要刷新的URL,n 从自然数0开始,刷新多个URL列表时,一次最多提交100个。必须以”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 RequestInfoV2 ¶ added in v0.19.2
type RequestInfoV2 struct { // 返回值返回指定时间区间内的cdn收到的请求次数之和 CdnRequest float64 // 带宽获取的时间点。格式:时间戳 Time int }
RequestInfoV2 - RequestInfoV2
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 `deprecated:"true"` // 任务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 ¶
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) AddCertificate ¶ added in v0.21.16
func (c *UCDNClient) AddCertificate(req *AddCertificateRequest) (*AddCertificateResponse, error)
API: AddCertificate
添加证书
func (*UCDNClient) BatchDescribeNewUcdnDomain ¶ added in v0.19.2
func (c *UCDNClient) BatchDescribeNewUcdnDomain(req *BatchDescribeNewUcdnDomainRequest) (*BatchDescribeNewUcdnDomainResponse, error)
API: BatchDescribeNewUcdnDomain
批量获取加速域名配置
func (*UCDNClient) BatchRefreshNewUcdnDomainCache ¶
func (c *UCDNClient) BatchRefreshNewUcdnDomainCache(req *BatchRefreshNewUcdnDomainCacheRequest) (*BatchRefreshNewUcdnDomainCacheResponse, error)
API: BatchRefreshNewUcdnDomainCache
批量刷新缓存
func (*UCDNClient) ControlUcdnDomainCacheAccess ¶ added in v0.21.30
func (c *UCDNClient) ControlUcdnDomainCacheAccess(req *ControlUcdnDomainCacheAccessRequest) (*ControlUcdnDomainCacheAccessResponse, error)
API: ControlUcdnDomainCacheAccess
封禁解封缓存访问
func (*UCDNClient) DeleteCertificate ¶ added in v0.21.16
func (c *UCDNClient) DeleteCertificate(req *DeleteCertificateRequest) (*DeleteCertificateResponse, error)
API: DeleteCertificate
删除证书
func (*UCDNClient) DescribeNewUcdnPrefetchCacheTask ¶
func (c *UCDNClient) DescribeNewUcdnPrefetchCacheTask(req *DescribeNewUcdnPrefetchCacheTaskRequest) (*DescribeNewUcdnPrefetchCacheTaskResponse, error)
API: DescribeNewUcdnPrefetchCacheTask
获取预取任务状态
func (*UCDNClient) DescribeNewUcdnRefreshCacheTask ¶
func (c *UCDNClient) DescribeNewUcdnRefreshCacheTask(req *DescribeNewUcdnRefreshCacheTaskRequest) (*DescribeNewUcdnRefreshCacheTaskResponse, error)
API: DescribeNewUcdnRefreshCacheTask
获取域名刷新任务状态
func (*UCDNClient) GetAuthConfig ¶ added in v0.21.45
func (c *UCDNClient) GetAuthConfig(req *GetAuthConfigRequest) (*GetAuthConfigResponse, error)
API: GetAuthConfig
接口获取鉴权信息(非标使用)
func (*UCDNClient) GetCertificateV2 ¶ added in v0.21.16
func (c *UCDNClient) GetCertificateV2(req *GetCertificateV2Request) (*GetCertificateV2Response, error)
API: GetCertificateV2
获取证书列表(新)
func (*UCDNClient) GetNewUcdnDomainBandwidth ¶
func (c *UCDNClient) GetNewUcdnDomainBandwidth(req *GetNewUcdnDomainBandwidthRequest) (*GetNewUcdnDomainBandwidthResponse, error)
API: GetNewUcdnDomainBandwidth
获取域名带宽数据
func (*UCDNClient) GetNewUcdnDomainHitRate ¶
func (c *UCDNClient) GetNewUcdnDomainHitRate(req *GetNewUcdnDomainHitRateRequest) (*GetNewUcdnDomainHitRateResponse, error)
API: GetNewUcdnDomainHitRate
获取域名命中率
func (*UCDNClient) GetNewUcdnDomainHttpCode ¶
func (c *UCDNClient) GetNewUcdnDomainHttpCode(req *GetNewUcdnDomainHttpCodeRequest) (*GetNewUcdnDomainHttpCodeResponse, error)
API: GetNewUcdnDomainHttpCode
获取域名状态码监控
func (*UCDNClient) GetNewUcdnDomainHttpCodeV2 ¶
func (c *UCDNClient) GetNewUcdnDomainHttpCodeV2(req *GetNewUcdnDomainHttpCodeV2Request) (*GetNewUcdnDomainHttpCodeV2Response, error)
API: GetNewUcdnDomainHttpCodeV2
获取域名详细状态码监控
func (*UCDNClient) GetNewUcdnDomainRequestNum ¶
func (c *UCDNClient) GetNewUcdnDomainRequestNum(req *GetNewUcdnDomainRequestNumRequest) (*GetNewUcdnDomainRequestNumResponse, error)
API: GetNewUcdnDomainRequestNum
获取域名请求数
func (*UCDNClient) GetNewUcdnLogRefererStatistics ¶ added in v0.21.30
func (c *UCDNClient) GetNewUcdnLogRefererStatistics(req *GetNewUcdnLogRefererStatisticsRequest) (*GetNewUcdnLogRefererStatisticsResponse, error)
API: GetNewUcdnLogRefererStatistics
获取热点referer统计
func (*UCDNClient) GetNewUcdnLogUrlStatistics ¶ added in v0.21.30
func (c *UCDNClient) GetNewUcdnLogUrlStatistics(req *GetNewUcdnLogUrlStatisticsRequest) (*GetNewUcdnLogUrlStatisticsResponse, error)
API: GetNewUcdnLogUrlStatistics
获取日志url统计
func (*UCDNClient) GetUcdnDomain95BandwidthV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnDomain95BandwidthV2(req *GetUcdnDomain95BandwidthV2Request) (*GetUcdnDomain95BandwidthV2Response, error)
API: GetUcdnDomain95BandwidthV2
获取域名九五峰值带宽数据
func (*UCDNClient) GetUcdnDomainBandwidthByIpProtocol ¶ added in v0.21.52
func (c *UCDNClient) GetUcdnDomainBandwidthByIpProtocol(req *GetUcdnDomainBandwidthByIpProtocolRequest) (*GetUcdnDomainBandwidthByIpProtocolResponse, error)
API: GetUcdnDomainBandwidthByIpProtocol
获取域名带宽数据按ip协议(新)
func (*UCDNClient) GetUcdnDomainBandwidthV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnDomainBandwidthV2(req *GetUcdnDomainBandwidthV2Request) (*GetUcdnDomainBandwidthV2Response, error)
API: GetUcdnDomainBandwidthV2
获取域名带宽数据(新)
func (*UCDNClient) GetUcdnDomainConfig ¶
func (c *UCDNClient) GetUcdnDomainConfig(req *GetUcdnDomainConfigRequest) (*GetUcdnDomainConfigResponse, error)
API: GetUcdnDomainConfig
批量获取加速域名配置
func (*UCDNClient) GetUcdnDomainHitRate ¶ added in v0.21.1
func (c *UCDNClient) GetUcdnDomainHitRate(req *GetUcdnDomainHitRateRequest) (*GetUcdnDomainHitRateResponse, error)
API: GetUcdnDomainHitRate
获取域名命中率
func (*UCDNClient) GetUcdnDomainHttpCodeV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnDomainHttpCodeV2(req *GetUcdnDomainHttpCodeV2Request) (*GetUcdnDomainHttpCodeV2Response, error)
API: GetUcdnDomainHttpCodeV2
获取域名状态码信息
func (*UCDNClient) GetUcdnDomainInfoList ¶ added in v0.21.1
func (c *UCDNClient) GetUcdnDomainInfoList(req *GetUcdnDomainInfoListRequest) (*GetUcdnDomainInfoListResponse, error)
API: GetUcdnDomainInfoList
获取域名基本信息
func (*UCDNClient) GetUcdnDomainLog ¶
func (c *UCDNClient) GetUcdnDomainLog(req *GetUcdnDomainLogRequest) (*GetUcdnDomainLogResponse, error)
API: GetUcdnDomainLog
获取加速域名原始日志
func (*UCDNClient) GetUcdnDomainLogV2 ¶ added in v0.21.38
func (c *UCDNClient) GetUcdnDomainLogV2(req *GetUcdnDomainLogV2Request) (*GetUcdnDomainLogV2Response, error)
API: GetUcdnDomainLogV2
获取域名5分钟日志
func (*UCDNClient) GetUcdnDomainOriginHttpCode ¶ added in v0.21.7
func (c *UCDNClient) GetUcdnDomainOriginHttpCode(req *GetUcdnDomainOriginHttpCodeRequest) (*GetUcdnDomainOriginHttpCodeResponse, error)
API: GetUcdnDomainOriginHttpCode
获取域名源站状态码监控
func (*UCDNClient) GetUcdnDomainOriginHttpCodeDetail ¶ added in v0.21.7
func (c *UCDNClient) GetUcdnDomainOriginHttpCodeDetail(req *GetUcdnDomainOriginHttpCodeDetailRequest) (*GetUcdnDomainOriginHttpCodeDetailResponse, error)
API: GetUcdnDomainOriginHttpCodeDetail
获取域名源站详细状态码监控
func (*UCDNClient) GetUcdnDomainOriginRequestNum ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnDomainOriginRequestNum(req *GetUcdnDomainOriginRequestNumRequest) (*GetUcdnDomainOriginRequestNumResponse, error)
API: GetUcdnDomainOriginRequestNum
获取域名回源请求数
func (*UCDNClient) GetUcdnDomainPrefetchEnable ¶
func (c *UCDNClient) GetUcdnDomainPrefetchEnable(req *GetUcdnDomainPrefetchEnableRequest) (*GetUcdnDomainPrefetchEnableResponse, error)
API: GetUcdnDomainPrefetchEnable
获取域名预取开启状态
func (*UCDNClient) GetUcdnDomainPrefetchRefreshState ¶ added in v0.22.3
func (c *UCDNClient) GetUcdnDomainPrefetchRefreshState(req *GetUcdnDomainPrefetchRefreshStateRequest) (*GetUcdnDomainPrefetchRefreshStateResponse, error)
API: GetUcdnDomainPrefetchRefreshState
获取域名预取刷新配额信息
func (*UCDNClient) GetUcdnDomainRequestNumV2 ¶
func (c *UCDNClient) GetUcdnDomainRequestNumV2(req *GetUcdnDomainRequestNumV2Request) (*GetUcdnDomainRequestNumV2Response, error)
API: GetUcdnDomainRequestNumV2
获取域名请求数
func (*UCDNClient) GetUcdnDomainRequestNumV3 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnDomainRequestNumV3(req *GetUcdnDomainRequestNumV3Request) (*GetUcdnDomainRequestNumV3Response, error)
API: GetUcdnDomainRequestNumV3
获取域名请求数
func (*UCDNClient) GetUcdnDomainTraffic ¶
func (c *UCDNClient) GetUcdnDomainTraffic(req *GetUcdnDomainTrafficRequest) (*GetUcdnDomainTrafficResponse, error)
API: GetUcdnDomainTraffic
获取加速域名流量使用信息
func (*UCDNClient) GetUcdnPassBandwidth ¶
func (c *UCDNClient) GetUcdnPassBandwidth(req *GetUcdnPassBandwidthRequest) (*GetUcdnPassBandwidthResponse, error)
API: GetUcdnPassBandwidth
获取回源带宽数据(cdn回客户源站部分)
func (*UCDNClient) GetUcdnPassBandwidthV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnPassBandwidthV2(req *GetUcdnPassBandwidthV2Request) (*GetUcdnPassBandwidthV2Response, error)
API: GetUcdnPassBandwidthV2
获取回源带宽数据(cdn回客户源站部分)
func (*UCDNClient) GetUcdnProIspBandwidthV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnProIspBandwidthV2(req *GetUcdnProIspBandwidthV2Request) (*GetUcdnProIspBandwidthV2Response, error)
API: GetUcdnProIspBandwidthV2
按省份运营商获取域名带宽数据
func (*UCDNClient) GetUcdnProIspRequestNumV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnProIspRequestNumV2(req *GetUcdnProIspRequestNumV2Request) (*GetUcdnProIspRequestNumV2Response, error)
API: GetUcdnProIspRequestNumV2
按省份运营商获取域名请求数
func (*UCDNClient) GetUcdnTraffic ¶
func (c *UCDNClient) GetUcdnTraffic(req *GetUcdnTrafficRequest) (*GetUcdnTrafficResponse, error)
API: GetUcdnTraffic
获取流量信息
func (*UCDNClient) GetUcdnTrafficV2 ¶ added in v0.19.2
func (c *UCDNClient) GetUcdnTrafficV2(req *GetUcdnTrafficV2Request) (*GetUcdnTrafficV2Response, error)
API: GetUcdnTrafficV2
获取流量信息
func (*UCDNClient) NewAddCertificateRequest ¶ added in v0.21.16
func (c *UCDNClient) NewAddCertificateRequest() *AddCertificateRequest
NewAddCertificateRequest will create request of AddCertificate action.
func (*UCDNClient) NewBatchDescribeNewUcdnDomainRequest ¶ added in v0.19.2
func (c *UCDNClient) NewBatchDescribeNewUcdnDomainRequest() *BatchDescribeNewUcdnDomainRequest
NewBatchDescribeNewUcdnDomainRequest will create request of BatchDescribeNewUcdnDomain action.
func (*UCDNClient) NewBatchRefreshNewUcdnDomainCacheRequest ¶
func (c *UCDNClient) NewBatchRefreshNewUcdnDomainCacheRequest() *BatchRefreshNewUcdnDomainCacheRequest
NewBatchRefreshNewUcdnDomainCacheRequest will create request of BatchRefreshNewUcdnDomainCache action.
func (*UCDNClient) NewControlUcdnDomainCacheAccessRequest ¶ added in v0.21.30
func (c *UCDNClient) NewControlUcdnDomainCacheAccessRequest() *ControlUcdnDomainCacheAccessRequest
NewControlUcdnDomainCacheAccessRequest will create request of ControlUcdnDomainCacheAccess action.
func (*UCDNClient) NewDeleteCertificateRequest ¶ added in v0.21.16
func (c *UCDNClient) NewDeleteCertificateRequest() *DeleteCertificateRequest
NewDeleteCertificateRequest will create request of DeleteCertificate 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) NewGetAuthConfigRequest ¶ added in v0.21.45
func (c *UCDNClient) NewGetAuthConfigRequest() *GetAuthConfigRequest
NewGetAuthConfigRequest will create request of GetAuthConfig action.
func (*UCDNClient) NewGetCertificateV2Request ¶ added in v0.21.16
func (c *UCDNClient) NewGetCertificateV2Request() *GetCertificateV2Request
NewGetCertificateV2Request will create request of GetCertificateV2 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) NewGetNewUcdnLogRefererStatisticsRequest ¶ added in v0.21.30
func (c *UCDNClient) NewGetNewUcdnLogRefererStatisticsRequest() *GetNewUcdnLogRefererStatisticsRequest
NewGetNewUcdnLogRefererStatisticsRequest will create request of GetNewUcdnLogRefererStatistics action.
func (*UCDNClient) NewGetNewUcdnLogUrlStatisticsRequest ¶ added in v0.21.30
func (c *UCDNClient) NewGetNewUcdnLogUrlStatisticsRequest() *GetNewUcdnLogUrlStatisticsRequest
NewGetNewUcdnLogUrlStatisticsRequest will create request of GetNewUcdnLogUrlStatistics action.
func (*UCDNClient) NewGetUcdnDomain95BandwidthV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnDomain95BandwidthV2Request() *GetUcdnDomain95BandwidthV2Request
NewGetUcdnDomain95BandwidthV2Request will create request of GetUcdnDomain95BandwidthV2 action.
func (*UCDNClient) NewGetUcdnDomainBandwidthByIpProtocolRequest ¶ added in v0.21.52
func (c *UCDNClient) NewGetUcdnDomainBandwidthByIpProtocolRequest() *GetUcdnDomainBandwidthByIpProtocolRequest
NewGetUcdnDomainBandwidthByIpProtocolRequest will create request of GetUcdnDomainBandwidthByIpProtocol action.
func (*UCDNClient) NewGetUcdnDomainBandwidthV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnDomainBandwidthV2Request() *GetUcdnDomainBandwidthV2Request
NewGetUcdnDomainBandwidthV2Request will create request of GetUcdnDomainBandwidthV2 action.
func (*UCDNClient) NewGetUcdnDomainConfigRequest ¶
func (c *UCDNClient) NewGetUcdnDomainConfigRequest() *GetUcdnDomainConfigRequest
NewGetUcdnDomainConfigRequest will create request of GetUcdnDomainConfig action.
func (*UCDNClient) NewGetUcdnDomainHitRateRequest ¶ added in v0.21.1
func (c *UCDNClient) NewGetUcdnDomainHitRateRequest() *GetUcdnDomainHitRateRequest
NewGetUcdnDomainHitRateRequest will create request of GetUcdnDomainHitRate action.
func (*UCDNClient) NewGetUcdnDomainHttpCodeV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnDomainHttpCodeV2Request() *GetUcdnDomainHttpCodeV2Request
NewGetUcdnDomainHttpCodeV2Request will create request of GetUcdnDomainHttpCodeV2 action.
func (*UCDNClient) NewGetUcdnDomainInfoListRequest ¶ added in v0.21.1
func (c *UCDNClient) NewGetUcdnDomainInfoListRequest() *GetUcdnDomainInfoListRequest
NewGetUcdnDomainInfoListRequest will create request of GetUcdnDomainInfoList action.
func (*UCDNClient) NewGetUcdnDomainLogRequest ¶
func (c *UCDNClient) NewGetUcdnDomainLogRequest() *GetUcdnDomainLogRequest
NewGetUcdnDomainLogRequest will create request of GetUcdnDomainLog action.
func (*UCDNClient) NewGetUcdnDomainLogV2Request ¶ added in v0.21.38
func (c *UCDNClient) NewGetUcdnDomainLogV2Request() *GetUcdnDomainLogV2Request
NewGetUcdnDomainLogV2Request will create request of GetUcdnDomainLogV2 action.
func (*UCDNClient) NewGetUcdnDomainOriginHttpCodeDetailRequest ¶ added in v0.21.7
func (c *UCDNClient) NewGetUcdnDomainOriginHttpCodeDetailRequest() *GetUcdnDomainOriginHttpCodeDetailRequest
NewGetUcdnDomainOriginHttpCodeDetailRequest will create request of GetUcdnDomainOriginHttpCodeDetail action.
func (*UCDNClient) NewGetUcdnDomainOriginHttpCodeRequest ¶ added in v0.21.7
func (c *UCDNClient) NewGetUcdnDomainOriginHttpCodeRequest() *GetUcdnDomainOriginHttpCodeRequest
NewGetUcdnDomainOriginHttpCodeRequest will create request of GetUcdnDomainOriginHttpCode action.
func (*UCDNClient) NewGetUcdnDomainOriginRequestNumRequest ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnDomainOriginRequestNumRequest() *GetUcdnDomainOriginRequestNumRequest
NewGetUcdnDomainOriginRequestNumRequest will create request of GetUcdnDomainOriginRequestNum action.
func (*UCDNClient) NewGetUcdnDomainPrefetchEnableRequest ¶
func (c *UCDNClient) NewGetUcdnDomainPrefetchEnableRequest() *GetUcdnDomainPrefetchEnableRequest
NewGetUcdnDomainPrefetchEnableRequest will create request of GetUcdnDomainPrefetchEnable action.
func (*UCDNClient) NewGetUcdnDomainPrefetchRefreshStateRequest ¶ added in v0.22.3
func (c *UCDNClient) NewGetUcdnDomainPrefetchRefreshStateRequest() *GetUcdnDomainPrefetchRefreshStateRequest
NewGetUcdnDomainPrefetchRefreshStateRequest will create request of GetUcdnDomainPrefetchRefreshState action.
func (*UCDNClient) NewGetUcdnDomainRequestNumV2Request ¶
func (c *UCDNClient) NewGetUcdnDomainRequestNumV2Request() *GetUcdnDomainRequestNumV2Request
NewGetUcdnDomainRequestNumV2Request will create request of GetUcdnDomainRequestNumV2 action.
func (*UCDNClient) NewGetUcdnDomainRequestNumV3Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnDomainRequestNumV3Request() *GetUcdnDomainRequestNumV3Request
NewGetUcdnDomainRequestNumV3Request will create request of GetUcdnDomainRequestNumV3 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) NewGetUcdnPassBandwidthV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnPassBandwidthV2Request() *GetUcdnPassBandwidthV2Request
NewGetUcdnPassBandwidthV2Request will create request of GetUcdnPassBandwidthV2 action.
func (*UCDNClient) NewGetUcdnProIspBandwidthV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnProIspBandwidthV2Request() *GetUcdnProIspBandwidthV2Request
NewGetUcdnProIspBandwidthV2Request will create request of GetUcdnProIspBandwidthV2 action.
func (*UCDNClient) NewGetUcdnProIspRequestNumV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnProIspRequestNumV2Request() *GetUcdnProIspRequestNumV2Request
NewGetUcdnProIspRequestNumV2Request will create request of GetUcdnProIspRequestNumV2 action.
func (*UCDNClient) NewGetUcdnTrafficRequest ¶
func (c *UCDNClient) NewGetUcdnTrafficRequest() *GetUcdnTrafficRequest
NewGetUcdnTrafficRequest will create request of GetUcdnTraffic action.
func (*UCDNClient) NewGetUcdnTrafficV2Request ¶ added in v0.19.2
func (c *UCDNClient) NewGetUcdnTrafficV2Request() *GetUcdnTrafficV2Request
NewGetUcdnTrafficV2Request will create request of GetUcdnTrafficV2 action.
func (*UCDNClient) NewPrefetchNewUcdnDomainCacheRequest ¶
func (c *UCDNClient) NewPrefetchNewUcdnDomainCacheRequest() *PrefetchNewUcdnDomainCacheRequest
NewPrefetchNewUcdnDomainCacheRequest will create request of PrefetchNewUcdnDomainCache action.
func (*UCDNClient) NewQueryIpLocationRequest ¶ added in v0.21.9
func (c *UCDNClient) NewQueryIpLocationRequest() *QueryIpLocationRequest
NewQueryIpLocationRequest will create request of QueryIpLocation 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) NewUpdateUcdnDomainStatusRequest ¶ added in v0.21.39
func (c *UCDNClient) NewUpdateUcdnDomainStatusRequest() *UpdateUcdnDomainStatusRequest
NewUpdateUcdnDomainStatusRequest will create request of UpdateUcdnDomainStatus action.
func (*UCDNClient) PrefetchNewUcdnDomainCache ¶
func (c *UCDNClient) PrefetchNewUcdnDomainCache(req *PrefetchNewUcdnDomainCacheRequest) (*PrefetchNewUcdnDomainCacheResponse, error)
API: PrefetchNewUcdnDomainCache
提交预取任务
func (*UCDNClient) QueryIpLocation ¶ added in v0.21.9
func (c *UCDNClient) QueryIpLocation(req *QueryIpLocationRequest) (*QueryIpLocationResponse, error)
API: QueryIpLocation
查询IP信息
func (*UCDNClient) RefreshNewUcdnDomainCache ¶
func (c *UCDNClient) RefreshNewUcdnDomainCache(req *RefreshNewUcdnDomainCacheRequest) (*RefreshNewUcdnDomainCacheResponse, error)
API: RefreshNewUcdnDomainCache
刷新缓存
func (*UCDNClient) SwitchUcdnChargeType ¶
func (c *UCDNClient) SwitchUcdnChargeType(req *SwitchUcdnChargeTypeRequest) (*SwitchUcdnChargeTypeResponse, error)
API: SwitchUcdnChargeType
切换账号计费方式
func (*UCDNClient) UpdateUcdnDomainStatus ¶ added in v0.21.39
func (c *UCDNClient) UpdateUcdnDomainStatus(req *UpdateUcdnDomainStatusRequest) (*UpdateUcdnDomainStatusResponse, error)
API: UpdateUcdnDomainStatus
更新加速域名状态
type UcdnDomainTrafficSet ¶
type UcdnDomainTrafficSet struct { // 流量获取的时间点,格式为Unix Timestamp Time int // 查询每日流量总值,单位:GB Value float64 }
UcdnDomainTrafficSet - GetUcdnDomainTraffic
type UpdateUcdnDomainStatusRequest ¶ added in v0.21.39
type UpdateUcdnDomainStatusRequest struct { request.CommonBase // 域名ID,创建加速域名时生成。 DomainId *string `required:"true"` // 是否全站加速,默认false IsDcdn *bool `required:"false"` // 域名状态,enable代表加速中,disable代表停止加速,delete代表删除。 Status *string `required:"true"` }
UpdateUcdnDomainStatusRequest is request schema for UpdateUcdnDomainStatus action
type UpdateUcdnDomainStatusResponse ¶ added in v0.21.39
type UpdateUcdnDomainStatusResponse struct {
response.CommonBase
}
UpdateUcdnDomainStatusResponse is response schema for UpdateUcdnDomainStatus action
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
type UrlStatistics ¶ added in v0.21.30
type UrlStatistics struct { // 日期 Date string // UrlList []DownloadStatisticInfo }
UrlStatistics - UrlStatistics