Documentation
¶
Index ¶
- Constants
- type AccessControl
- type AccessControlRule
- type AddCdnDomainRequest
- type AddCdnDomainResponse
- type AdvanceCacheRule
- type AdvanceConfig
- type AdvancedAuthentication
- type AdvancedAuthenticationTypeA
- type AdvancedAuthenticationTypeB
- type AdvancedAuthenticationTypeC
- type AdvancedAuthenticationTypeD
- type AdvancedAuthenticationTypeE
- type AdvancedAuthenticationTypeF
- type AdvancedCache
- type Authentication
- type AuthenticationTypeA
- type AuthenticationTypeB
- type AuthenticationTypeC
- type AuthenticationTypeD
- type AwsPrivateAccess
- type BandwidthAlert
- type BotCookie
- type BotJavaScript
- type BriefDomain
- type Cache
- type CacheConfigCache
- type CacheConfigFollowOrigin
- type CacheConfigNoCache
- type CacheKey
- type CacheOptResult
- type CacheTagKey
- type CappingRule
- type CdnData
- type CdnIp
- type CdnIpHistory
- type Client
- func (c *Client) AddCdnDomain(request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error)
- func (c *Client) CreateClsLogTopic(request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
- func (c *Client) CreateDiagnoseUrl(request *CreateDiagnoseUrlRequest) (response *CreateDiagnoseUrlResponse, err error)
- func (c *Client) CreateEdgePackTask(request *CreateEdgePackTaskRequest) (response *CreateEdgePackTaskResponse, err error)
- func (c *Client) CreateScdnFailedLogTask(request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
- func (c *Client) CreateScdnLogTask(request *CreateScdnLogTaskRequest) (response *CreateScdnLogTaskResponse, err error)
- func (c *Client) CreateVerifyRecord(request *CreateVerifyRecordRequest) (response *CreateVerifyRecordResponse, err error)
- func (c *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
- func (c *Client) DeleteClsLogTopic(request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
- func (c *Client) DeleteScdnDomain(request *DeleteScdnDomainRequest) (response *DeleteScdnDomainResponse, err error)
- func (c *Client) DescribeBillingData(request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
- func (c *Client) DescribeCdnData(request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
- func (c *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
- func (c *Client) DescribeCdnIp(request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
- func (c *Client) DescribeCdnOriginIp(request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
- func (c *Client) DescribeCertDomains(request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error)
- func (c *Client) DescribeDiagnoseReport(request *DescribeDiagnoseReportRequest) (response *DescribeDiagnoseReportResponse, err error)
- func (c *Client) DescribeDistrictIspData(request *DescribeDistrictIspDataRequest) (response *DescribeDistrictIspDataResponse, err error)
- func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
- func (c *Client) DescribeImageConfig(request *DescribeImageConfigRequest) (response *DescribeImageConfigResponse, err error)
- func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
- func (c *Client) DescribeIpVisit(request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
- func (c *Client) DescribeMapInfo(request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
- func (c *Client) DescribeOriginData(request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
- func (c *Client) DescribePayType(request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
- func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
- func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
- func (c *Client) DescribePushQuota(request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
- func (c *Client) DescribePushTasks(request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
- func (c *Client) DescribeReportData(request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
- func (c *Client) DescribeScdnConfig(request *DescribeScdnConfigRequest) (response *DescribeScdnConfigResponse, err error)
- func (c *Client) DescribeScdnTopData(request *DescribeScdnTopDataRequest) (response *DescribeScdnTopDataResponse, err error)
- func (c *Client) DescribeTrafficPackages(request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error)
- func (c *Client) DescribeUrlViolations(request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
- func (c *Client) DisableCaches(request *DisableCachesRequest) (response *DisableCachesResponse, err error)
- func (c *Client) DisableClsLogTopic(request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
- func (c *Client) DuplicateDomainConfig(request *DuplicateDomainConfigRequest) (response *DuplicateDomainConfigResponse, err error)
- func (c *Client) EnableCaches(request *EnableCachesRequest) (response *EnableCachesResponse, err error)
- func (c *Client) EnableClsLogTopic(request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
- func (c *Client) GetDisableRecords(request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
- func (c *Client) ListClsLogTopics(request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
- func (c *Client) ListClsTopicDomains(request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
- func (c *Client) ListDiagnoseReport(request *ListDiagnoseReportRequest) (response *ListDiagnoseReportResponse, err error)
- func (c *Client) ListScdnDomains(request *ListScdnDomainsRequest) (response *ListScdnDomainsResponse, err error)
- func (c *Client) ListScdnLogTasks(request *ListScdnLogTasksRequest) (response *ListScdnLogTasksResponse, err error)
- func (c *Client) ListTopData(request *ListTopDataRequest) (response *ListTopDataResponse, err error)
- func (c *Client) ManageClsTopicDomains(request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
- func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
- func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
- func (c *Client) PushUrlsCache(request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
- func (c *Client) SearchClsLog(request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
- func (c *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
- func (c *Client) StartScdnDomain(request *StartScdnDomainRequest) (response *StartScdnDomainResponse, err error)
- func (c *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
- func (c *Client) StopScdnDomain(request *StopScdnDomainRequest) (response *StopScdnDomainResponse, err error)
- func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
- func (c *Client) UpdateImageConfig(request *UpdateImageConfigRequest) (response *UpdateImageConfigResponse, err error)
- func (c *Client) UpdatePayType(request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
- func (c *Client) UpdateScdnDomain(request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
- func (c *Client) VerifyDomainRecord(request *VerifyDomainRecordRequest) (response *VerifyDomainRecordResponse, err error)
- type ClientCert
- type ClientInfo
- type ClsLogObject
- type ClsSearchLogs
- type Compatibility
- type Compression
- type CompressionRule
- type CookieKey
- type CreateClsLogTopicRequest
- type CreateClsLogTopicResponse
- type CreateDiagnoseUrlRequest
- type CreateDiagnoseUrlResponse
- type CreateEdgePackTaskRequest
- type CreateEdgePackTaskResponse
- type CreateScdnFailedLogTaskRequest
- type CreateScdnFailedLogTaskResponse
- type CreateScdnLogTaskRequest
- type CreateScdnLogTaskResponse
- type CreateVerifyRecordRequest
- type CreateVerifyRecordResponse
- type DeleteCdnDomainRequest
- type DeleteCdnDomainResponse
- type DeleteClsLogTopicRequest
- type DeleteClsLogTopicResponse
- type DeleteScdnDomainRequest
- type DeleteScdnDomainResponse
- type DescribeBillingDataRequest
- type DescribeBillingDataResponse
- type DescribeCdnDataRequest
- type DescribeCdnDataResponse
- type DescribeCdnDomainLogsRequest
- type DescribeCdnDomainLogsResponse
- type DescribeCdnIpRequest
- type DescribeCdnIpResponse
- type DescribeCdnOriginIpRequest
- type DescribeCdnOriginIpResponse
- type DescribeCertDomainsRequest
- type DescribeCertDomainsResponse
- type DescribeDiagnoseReportRequest
- type DescribeDiagnoseReportResponse
- type DescribeDistrictIspDataRequest
- type DescribeDistrictIspDataResponse
- type DescribeDomainsConfigRequest
- type DescribeDomainsConfigResponse
- type DescribeDomainsRequest
- type DescribeDomainsResponse
- type DescribeImageConfigRequest
- type DescribeImageConfigResponse
- type DescribeIpStatusRequest
- type DescribeIpStatusResponse
- type DescribeIpVisitRequest
- type DescribeIpVisitResponse
- type DescribeMapInfoRequest
- type DescribeMapInfoResponse
- type DescribeOriginDataRequest
- type DescribeOriginDataResponse
- type DescribePayTypeRequest
- type DescribePayTypeResponse
- type DescribePurgeQuotaRequest
- type DescribePurgeQuotaResponse
- type DescribePurgeTasksRequest
- type DescribePurgeTasksResponse
- type DescribePushQuotaRequest
- type DescribePushQuotaResponse
- type DescribePushTasksRequest
- type DescribePushTasksResponse
- type DescribeReportDataRequest
- type DescribeReportDataResponse
- type DescribeScdnConfigRequest
- type DescribeScdnConfigResponse
- type DescribeScdnTopDataRequest
- type DescribeScdnTopDataResponse
- type DescribeTrafficPackagesRequest
- type DescribeTrafficPackagesResponse
- type DescribeUrlViolationsRequest
- type DescribeUrlViolationsResponse
- type DetailDomain
- type DiagnoseData
- type DiagnoseInfo
- type DiagnoseList
- type DiagnoseUnit
- type DisableCachesRequest
- type DisableCachesResponse
- type DisableClsLogTopicRequest
- type DisableClsLogTopicResponse
- type DistrictIspInfo
- type DomainAreaConfig
- type DomainFilter
- type DomainLog
- type DownstreamCapping
- type DuplicateDomainConfigRequest
- type DuplicateDomainConfigResponse
- type EnableCachesRequest
- type EnableCachesResponse
- type EnableClsLogTopicRequest
- type EnableClsLogTopicResponse
- type ErrorPage
- type ErrorPageRule
- type FollowRedirect
- type ForceRedirect
- type GetDisableRecordsRequest
- type GetDisableRecordsResponse
- type GuetzliAdapter
- type HeaderKey
- type Hsts
- type HttpHeaderPathRule
- type HttpHeaderRule
- type Https
- type ImageOptimization
- type IpFilter
- type IpFilterPathRule
- type IpFreqLimit
- type IpStatus
- type Ipv6
- type Ipv6Access
- type KeyRule
- type ListClsLogTopicsRequest
- type ListClsLogTopicsResponse
- type ListClsTopicDomainsRequest
- type ListClsTopicDomainsResponse
- type ListDiagnoseReportRequest
- type ListDiagnoseReportResponse
- type ListScdnDomainsRequest
- type ListScdnDomainsResponse
- type ListScdnLogTasksRequest
- type ListScdnLogTasksResponse
- type ListTopDataRequest
- type ListTopDataResponse
- type LogSetInfo
- type MainlandConfig
- type ManageClsTopicDomainsRequest
- type ManageClsTopicDomainsResponse
- type MapInfo
- type MaxAge
- type MaxAgeRule
- type OfflineCache
- type Origin
- type OriginAuthentication
- type OriginAuthenticationTypeA
- type OriginCombine
- type OriginIp
- type OriginPullOptimization
- type OriginPullTimeout
- type OverseaConfig
- type PathBasedOriginRule
- type PathRule
- type PostSize
- type PurgePathCacheRequest
- type PurgePathCacheResponse
- type PurgeTask
- type PurgeUrlsCacheRequest
- type PurgeUrlsCacheResponse
- type PushTask
- type PushUrlsCacheRequest
- type PushUrlsCacheResponse
- type QueryStringKey
- type Quic
- type Quota
- type RangeOriginPull
- type Referer
- type RefererRule
- type RegionMapRelation
- type ReportData
- type RequestHeader
- type ResourceBillingData
- type ResourceData
- type ResourceOriginData
- type ResponseHeader
- type ResponseHeaderCache
- type Revalidate
- type RuleCache
- type RuleCacheConfig
- type RuleQueryString
- type ScdnAclConfig
- type ScdnAclGroup
- type ScdnAclRule
- type ScdnBotConfig
- type ScdnCCRules
- type ScdnConfig
- type ScdnDdosConfig
- type ScdnDomain
- type ScdnErrorPage
- type ScdnEventLogConditions
- type ScdnLogTaskDetail
- type ScdnTopData
- type ScdnTopUrlData
- type ScdnTypeData
- type ScdnWafConfig
- type ScdnWafRule
- type SchemeKey
- type SearchClsLogRequest
- type SearchClsLogResponse
- type SecurityConfig
- type Seo
- type ServerCert
- type SimpleCache
- type SimpleCacheRule
- type Sort
- type SpecificConfig
- type StartCdnDomainRequest
- type StartCdnDomainResponse
- type StartScdnDomainRequest
- type StartScdnDomainResponse
- type StatusCodeCache
- type StatusCodeCacheRule
- type StopCdnDomainRequest
- type StopCdnDomainResponse
- type StopScdnDomainRequest
- type StopScdnDomainResponse
- type SummarizedData
- type Tag
- type TimestampData
- type TopData
- type TopDetailData
- type TopicInfo
- type TpgAdapter
- type TrafficPackage
- type UpdateDomainConfigRequest
- type UpdateDomainConfigResponse
- type UpdateImageConfigRequest
- type UpdateImageConfigResponse
- type UpdatePayTypeRequest
- type UpdatePayTypeResponse
- type UpdateScdnDomainRequest
- type UpdateScdnDomainResponse
- type UrlRecord
- type UrlRedirect
- type UrlRedirectRule
- type UserAgentFilter
- type UserAgentFilterRule
- type VerifyDomainRecordRequest
- type VerifyDomainRecordResponse
- type VideoSeek
- type ViolationUrl
- type WafSubRuleStatus
- type WebpAdapter
Constants ¶
const APIVersion = "2018-06-06"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶
type AccessControl struct {
// on | off 是否启用请求头部及请求url访问控制
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 请求头部及请求url访问规则
// 注意:此字段可能返回 null,表示取不到有效值。
AccessControlRules []*AccessControlRule `json:"AccessControlRules,omitempty" name:"AccessControlRules" list`
// 返回状态码
// 注意:此字段可能返回 null,表示取不到有效值。
ReturnCode *int64 `json:"ReturnCode,omitempty" name:"ReturnCode"`
}
type AccessControlRule ¶
type AccessControlRule struct {
// requestHeader :对请求头部进行访问控制
// url : 对访问url进行访问控制
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 封禁内容
// 注意:此字段可能返回 null,表示取不到有效值。
RuleContent *string `json:"RuleContent,omitempty" name:"RuleContent"`
// on :正则匹配
// off :字面匹配
// 注意:此字段可能返回 null,表示取不到有效值。
Regex *string `json:"Regex,omitempty" name:"Regex"`
// RuleType为requestHeader时必填,否则不需要填
// 注意:此字段可能返回 null,表示取不到有效值。
RuleHeader *string `json:"RuleHeader,omitempty" name:"RuleHeader"`
}
type AddCdnDomainRequest ¶
type AddCdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 加速域名业务类型
// web:静态加速
// download:下载加速
// media:流媒体点播加速
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 源站配置
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// 项目 ID,默认为 0,代表【默认项目】
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// IP 黑白名单配置
IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"`
// IP 限频配置
IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"`
// 状态码缓存配置
StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"`
// 智能压缩配置
Compression *Compression `json:"Compression,omitempty" name:"Compression"`
// 带宽封顶配置
BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"`
// Range 回源配置
RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"`
// 301/302 回源跟随配置。
FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"`
// 错误码重定向配置(功能灰度中,尚未全量)
ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// 请求头部配置
RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"`
// 响应头部配置
ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"`
// 下载速度配置
DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"`
// 节点缓存键配置
CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"`
// 头部缓存配置
ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"`
// 视频拖拽配置
VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"`
// 缓存过期时间配置
Cache *Cache `json:"Cache,omitempty" name:"Cache"`
// 跨国链路优化配置
OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"`
// Https 加速配置
Https *Https `json:"Https,omitempty" name:"Https"`
// 时间戳防盗链配置
Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"`
// SEO 优化配置
Seo *Seo `json:"Seo,omitempty" name:"Seo"`
// 访问协议强制跳转配置
ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"`
// Referer 防盗链配置
Referer *Referer `json:"Referer,omitempty" name:"Referer"`
// 浏览器缓存配置(功能灰度中,尚未全量)
MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"`
// Ipv6 配置(功能灰度中,尚未全量)
Ipv6 *Ipv6 `json:"Ipv6,omitempty" name:"Ipv6"`
// 地域属性特殊配置
// 适用于域名境内加速、境外加速配置不一致场景
SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"`
// 域名加速区域
// mainland:中国境内加速
// overseas:中国境外加速
// global:全球加速
// 使用中国境外加速、全球加速时,需要先开通中国境外加速服务
Area *string `json:"Area,omitempty" name:"Area"`
// 回源超时配置
OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"`
// 标签配置
Tag []*Tag `json:"Tag,omitempty" name:"Tag" list`
// Ipv6 访问配置
Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"`
// 离线缓存
OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"`
// QUIC正在内测中,请先提交内测申请,详情请前往QUIC产品文档。
Quic *Quic `json:"Quic,omitempty" name:"Quic"`
}
func NewAddCdnDomainRequest ¶
func NewAddCdnDomainRequest() (request *AddCdnDomainRequest)
func (*AddCdnDomainRequest) FromJsonString ¶
func (r *AddCdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCdnDomainRequest) ToJsonString ¶
func (r *AddCdnDomainRequest) ToJsonString() string
type AddCdnDomainResponse ¶
type AddCdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewAddCdnDomainResponse ¶
func NewAddCdnDomainResponse() (response *AddCdnDomainResponse)
func (*AddCdnDomainResponse) FromJsonString ¶
func (r *AddCdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddCdnDomainResponse) ToJsonString ¶
func (r *AddCdnDomainResponse) ToJsonString() string
type AdvanceCacheRule ¶
type AdvanceCacheRule struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// default:源站未返回 max-age 情况下的缓存规则
// 注意:此字段可能返回 null,表示取不到有效值。
CacheType *string `json:"CacheType,omitempty" name:"CacheType"`
// 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
// default 时填充 "no max-age"
// 注意:此字段可能返回 null,表示取不到有效值。
CacheContents []*string `json:"CacheContents,omitempty" name:"CacheContents" list`
// 缓存过期时间
// 单位为秒,最大可设置为 365 天
// 注意:此字段可能返回 null,表示取不到有效值。
CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"`
}
type AdvanceConfig ¶
type AdvancedAuthentication ¶
type AdvancedAuthentication struct {
// 防盗链配置开关,on或off,开启时必须且只能配置一种模式,其余模式为null。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 时间戳防盗链高级版模式A配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeA *AdvancedAuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"`
// 时间戳防盗链高级版模式B配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeB *AdvancedAuthenticationTypeB `json:"TypeB,omitempty" name:"TypeB"`
// 时间戳防盗链高级版模式C配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeC *AdvancedAuthenticationTypeC `json:"TypeC,omitempty" name:"TypeC"`
// 时间戳防盗链高级版模式D配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeD *AdvancedAuthenticationTypeD `json:"TypeD,omitempty" name:"TypeD"`
// 时间戳防盗链高级版模式E配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeE *AdvancedAuthenticationTypeE `json:"TypeE,omitempty" name:"TypeE"`
// 时间戳防盗链高级版模式F配置。
// 注意:此字段可能返回 null,表示取不到有效值。
TypeF *AdvancedAuthenticationTypeF `json:"TypeF,omitempty" name:"TypeF"`
}
type AdvancedAuthenticationTypeA ¶
type AdvancedAuthenticationTypeA struct {
// 用于计算签名的密钥,只允许字母和数字,长度6-32字节。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// uri串中签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// uri串中时间的字段名,字母,数字或下划线构成,同时必须以字母开头。
TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"`
// 过期时间,单位秒。
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 是否必须提供过期时间参数。
ExpireTimeRequired *bool `json:"ExpireTimeRequired,omitempty" name:"ExpireTimeRequired"`
// Url组成格式,如:${private_key}${schema}${host}${full_uri。
Format *string `json:"Format,omitempty" name:"Format"`
// 时间格式,dec,hex分别表示十进制,十六进制。
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
// 鉴权失败时返回的状态码。
FailCode *int64 `json:"FailCode,omitempty" name:"FailCode"`
// 链接过期时返回的状态码。
ExpireCode *int64 `json:"ExpireCode,omitempty" name:"ExpireCode"`
// 需要鉴权的url路径列表。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// 保留字段。
Transformation *int64 `json:"Transformation,omitempty" name:"Transformation"`
}
type AdvancedAuthenticationTypeB ¶
type AdvancedAuthenticationTypeB struct {
// alpha键名。
KeyAlpha *string `json:"KeyAlpha,omitempty" name:"KeyAlpha"`
// beta键名。
KeyBeta *string `json:"KeyBeta,omitempty" name:"KeyBeta"`
// gamma键名。
KeyGamma *string `json:"KeyGamma,omitempty" name:"KeyGamma"`
// uri串中签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// uri串中时间的字段名,字母,数字或下划线构成,同时必须以字母开头。
TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"`
// 过期时间,单位秒。
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 时间格式,dec,hex分别表示十进制,十六进制。
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
// 鉴权失败时返回的状态码。
FailCode *int64 `json:"FailCode,omitempty" name:"FailCode"`
// 链接过期时返回的状态码。
ExpireCode *int64 `json:"ExpireCode,omitempty" name:"ExpireCode"`
// 需要鉴权的url路径列表。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
}
type AdvancedAuthenticationTypeD ¶
type AdvancedAuthenticationTypeD struct {
// 用于计算签名的密钥,只允许字母和数字,长度6-32字节。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 备份密钥,当使用SecretKey鉴权失败时会使用该密钥重新鉴权。
BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"`
// uri串中签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// uri串中时间的字段名,字母,数字或下划线构成,同时必须以字母开头。
TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"`
// 过期时间,单位秒。
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 时间格式,dec,hex分别表示十进制,十六进制。
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
}
type AdvancedAuthenticationTypeE ¶
type AdvancedAuthenticationTypeE struct {
// 用于计算签名的密钥,只允许字母和数字,长度6-32字节。
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// uri串中签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// uri串中Acl签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
AclSignParam *string `json:"AclSignParam,omitempty" name:"AclSignParam"`
// uri串中开始时间字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
StartTimeParam *string `json:"StartTimeParam,omitempty" name:"StartTimeParam"`
// uri串中过期时间字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
ExpireTimeParam *string `json:"ExpireTimeParam,omitempty" name:"ExpireTimeParam"`
// 时间格式,dec
// 注意:此字段可能返回 null,表示取不到有效值。
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
}
type AdvancedAuthenticationTypeF ¶
type AdvancedAuthenticationTypeF struct {
// uri串中签名的字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// uri串中时间的字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"`
// uri串中Transaction字段名,字母,数字或下划线构成,同时必须以字母开头。
// 注意:此字段可能返回 null,表示取不到有效值。
TransactionParam *string `json:"TransactionParam,omitempty" name:"TransactionParam"`
// 用于计算签名的主密钥,只允许字母和数字,长度6-32字节。
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 用于计算签名的备选密钥,主密钥校验失败后再次尝试备选密钥,只允许字母和数字,长度6-32字节。
// 注意:此字段可能返回 null,表示取不到有效值。
BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"`
}
type AdvancedCache ¶
type AdvancedCache struct {
// 缓存过期规则
// 注意:此字段可能返回 null,表示取不到有效值。
CacheRules []*AdvanceCacheRule `json:"CacheRules,omitempty" name:"CacheRules" list`
// 强制缓存配置
// on:开启
// off:关闭
// 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"`
// 当源站返回Set-Cookie头部时,节点是否缓存该头部及body
// on:开启,不缓存该头部及body
// off:关闭,遵循用户自定义的节点缓存规则
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"`
}
type Authentication ¶
type Authentication struct {
// 防盗链配置开关
// on:开启
// off:关闭
// 开启时必须且只配置一种模式,其余模式需要设置为 null
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 时间戳防盗链模式 A 配置
// 注意:此字段可能返回 null,表示取不到有效值。
TypeA *AuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"`
// 时间戳防盗链模式 B 配置(模式 B 后台升级中,暂时不支持配置)
// 注意:此字段可能返回 null,表示取不到有效值。
TypeB *AuthenticationTypeB `json:"TypeB,omitempty" name:"TypeB"`
// 时间戳防盗链模式 C 配置
// 注意:此字段可能返回 null,表示取不到有效值。
TypeC *AuthenticationTypeC `json:"TypeC,omitempty" name:"TypeC"`
// 时间戳防盗链模式 D 配置
// 注意:此字段可能返回 null,表示取不到有效值。
TypeD *AuthenticationTypeD `json:"TypeD,omitempty" name:"TypeD"`
}
type AuthenticationTypeA ¶
type AuthenticationTypeA struct {
// 计算签名的密钥
// 仅允许大小写字母与数字,长度 6~32 位
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 签名参数名设置
// 仅允许大小写字母、数字或下划线,长度 1~100 位,不能以数字开头
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// 签名过期时间设置
// 单位为秒,最大可设置为 31536000
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 鉴权/不做鉴权的文件扩展名列表设置
// 如果包含字符 * 则表示所有文件
FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions" list`
// whitelist:白名单,表示对除了 FileExtensions 列表之外的所有类型进行鉴权
// blacklist:黑名单,表示仅对 FileExtensions 中的类型进行鉴权
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
}
type AuthenticationTypeB ¶
type AuthenticationTypeB struct {
// 计算签名的密钥
// 仅允许大小写字母与数字,长度 6~32 位
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 签名过期时间设置
// 单位为秒,最大可设置为 31536000
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 鉴权/不做鉴权的文件扩展名列表设置
// 如果包含字符 * 则表示所有文件
FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions" list`
// whitelist:白名单,表示对除了 FileExtensions 列表之外的所有类型进行鉴权
// blacklist:黑名单,表示仅对 FileExtensions 中的类型进行鉴权
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
}
type AuthenticationTypeC ¶
type AuthenticationTypeC struct {
// 计算签名的密钥
// 仅允许大小写字母与数字,长度 6~32 位
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 签名过期时间设置
// 单位为秒,最大可设置为 31536000
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 鉴权/不做鉴权的文件扩展名列表设置
// 如果包含字符 * 则表示所有文件
FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions" list`
// whitelist:白名单,表示对除了 FileExtensions 列表之外的所有类型进行鉴权
// blacklist:黑名单,表示仅对 FileExtensions 中的类型进行鉴权
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
// 时间戳进制设置
// dec:十进制
// hex:十六进制
// 注意:此字段可能返回 null,表示取不到有效值。
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
}
type AuthenticationTypeD ¶
type AuthenticationTypeD struct {
// 计算签名的密钥
// 仅允许大小写字母与数字,长度 6~32 位
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// 签名过期时间设置
// 单位为秒,最大可设置为 31536000
ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 鉴权/不做鉴权的文件扩展名列表设置
// 如果包含字符 * 则表示所有文件
FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions" list`
// whitelist:白名单,表示对除了 FileExtensions 列表之外的所有类型进行鉴权
// blacklist:黑名单,表示仅对 FileExtensions 中的类型进行鉴权
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
// 签名参数名设置
// 仅允许大小写字母、数字或下划线,长度 1~100 位,不能以数字开头
SignParam *string `json:"SignParam,omitempty" name:"SignParam"`
// 时间戳参数名设置
// 仅允许大小写字母、数字或下划线,长度 1~100 位,不能以数字开头
TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"`
// 时间戳进制设置
// dec:十进制
// hex:十六进制
TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"`
}
type AwsPrivateAccess ¶
type AwsPrivateAccess struct {
// 开关,on/off。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 访问ID。
// 注意:此字段可能返回 null,表示取不到有效值。
AccessKey *string `json:"AccessKey,omitempty" name:"AccessKey"`
// 密钥。
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
}
type BandwidthAlert ¶
type BandwidthAlert struct {
// 带宽封顶配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 带宽封顶阈值,单位为bps
// 注意:此字段可能返回 null,表示取不到有效值。
BpsThreshold *int64 `json:"BpsThreshold,omitempty" name:"BpsThreshold"`
// 达到阈值后的操作
// RESOLVE_DNS_TO_ORIGIN:直接回源,仅自有源站域名支持
// RETURN_404:全部请求返回 404
// 注意:此字段可能返回 null,表示取不到有效值。
CounterMeasure *string `json:"CounterMeasure,omitempty" name:"CounterMeasure"`
// 上次触发带宽封顶阈值的时间
// 注意:此字段可能返回 null,表示取不到有效值。
LastTriggerTime *string `json:"LastTriggerTime,omitempty" name:"LastTriggerTime"`
}
type BotCookie ¶
type BotCookie struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 规则类型,当前只有all
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 规则值,['*']
RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue" list`
// 执行动作,monitor|intercept|redirect|captcha
Action *string `json:"Action,omitempty" name:"Action"`
// 重定向时设置的重定向页面
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type BotJavaScript ¶
type BotJavaScript struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 规则类型,当前只有file
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 规则值,['html', 'htm']
RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue" list`
// 执行动作,monitor|intercept|redirect|captcha
Action *string `json:"Action,omitempty" name:"Action"`
// 重定向时设置的重定向页面
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type BriefDomain ¶
type BriefDomain struct {
// 域名 ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 腾讯云账号 ID
AppId *int64 `json:"AppId,omitempty" name:"AppId"`
// 加速域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 域名对应的 CNAME 地址
Cname *string `json:"Cname,omitempty" name:"Cname"`
// 加速服务状态
// rejected:域名审核未通过,域名备案过期/被注销导致
// processing:部署中
// online:已启动
// offline:已关闭
Status *string `json:"Status,omitempty" name:"Status"`
// 项目 ID,可前往腾讯云项目管理页面查看
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 域名业务类型
// web:静态加速
// download:下载加速
// media:流媒体点播加速
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 域名创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 域名更新时间
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// 源站配置详情
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// 域名封禁状态
// normal:正常状态
// overdue:账号欠费导致域名关闭,充值完成后可自行启动加速服务
// malicious:域名出现恶意行为,强制关闭加速服务
// ddos:域名被大规模 DDoS 攻击,关闭加速服务
// idle:域名超过 90 天内无任何操作、数据产生,判定为不活跃域名自动关闭加速服务,可自行启动加速服务
// unlicensed:域名未备案/备案注销,自动关闭加速服务,备案完成后可自行启动加速服务
// capping:触发配置的带宽阈值上限
// readonly:域名存在特殊配置,被锁定
Disable *string `json:"Disable,omitempty" name:"Disable"`
// 加速区域
// mainland:中国境内加速
// overseas:中国境外加速
// global:全球加速
Area *string `json:"Area,omitempty" name:"Area"`
// 域名锁定状态
// normal:未锁定
// mainland:中国境内锁定
// overseas:中国境外锁定
// global:全球锁定
Readonly *string `json:"Readonly,omitempty" name:"Readonly"`
}
type Cache ¶
type Cache struct {
// 基础缓存过期时间配置
// 注意:此字段可能返回 null,表示取不到有效值。
SimpleCache *SimpleCache `json:"SimpleCache,omitempty" name:"SimpleCache"`
// 高级缓存过期时间配置(功能灰度中,尚未全量)
// 注意:此字段可能返回 null,表示取不到有效值。
AdvancedCache *AdvancedCache `json:"AdvancedCache,omitempty" name:"AdvancedCache"`
// 高级路径缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
RuleCache []*RuleCache `json:"RuleCache,omitempty" name:"RuleCache" list`
}
type CacheConfigCache ¶
type CacheConfigCache struct {
// 缓存配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 缓存过期时间设置
// 单位为秒,最大可设置为 365 天
// 注意:此字段可能返回 null,表示取不到有效值。
CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"`
// 高级缓存过期配置,开启时会对比源站返回的 max-age 值与 CacheRules 中设置的缓存过期时间,取最小值在节点进行缓存
// on:开启
// off:关闭
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
CompareMaxAge *string `json:"CompareMaxAge,omitempty" name:"CompareMaxAge"`
// 强制缓存
// on:开启
// off:关闭
// 默认为关闭状态,开启后,源站返回的 no-store、no-cache 资源,也将按照 CacheRules 规则进行缓存
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"`
// 当源站返回Set-Cookie头部时,节点是否缓存该头部及body
// on:开启,不缓存该头部及body
// off:关闭,遵循用户自定义的节点缓存规则
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"`
}
type CacheConfigFollowOrigin ¶
type CacheConfigFollowOrigin struct {
// 遵循源站配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type CacheConfigNoCache ¶
type CacheKey ¶
type CacheKey struct {
// 是否开启全路径缓存
// on:开启全路径缓存(即关闭参数过滤)
// off:关闭全路径缓存(即开启参数过滤)
FullUrlCache *string `json:"FullUrlCache,omitempty" name:"FullUrlCache"`
// 是否忽略大小写缓存
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreCase *string `json:"IgnoreCase,omitempty" name:"IgnoreCase"`
// CacheKey中包含请求参数
// 注意:此字段可能返回 null,表示取不到有效值。
QueryString *QueryStringKey `json:"QueryString,omitempty" name:"QueryString"`
// CacheKey中包含Cookie
// 注意:此字段可能返回 null,表示取不到有效值。
Cookie *CookieKey `json:"Cookie,omitempty" name:"Cookie"`
// CacheKey中包含请求头部
// 注意:此字段可能返回 null,表示取不到有效值。
Header *HeaderKey `json:"Header,omitempty" name:"Header"`
// CacheKey中包含自定义字符串
// 注意:此字段可能返回 null,表示取不到有效值。
CacheTag *CacheTagKey `json:"CacheTag,omitempty" name:"CacheTag"`
// CacheKey中包含请求协议
// 注意:此字段可能返回 null,表示取不到有效值。
Scheme *SchemeKey `json:"Scheme,omitempty" name:"Scheme"`
// 分路径缓存键配置
// 注意:此字段可能返回 null,表示取不到有效值。
KeyRules []*KeyRule `json:"KeyRules,omitempty" name:"KeyRules" list`
}
type CacheOptResult ¶
type CacheTagKey ¶
type CappingRule ¶
type CappingRule struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// RuleType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// 下行速度值设置,单位为 KB/s
KBpsThreshold *int64 `json:"KBpsThreshold,omitempty" name:"KBpsThreshold"`
}
type CdnData ¶
type CdnData struct {
// 查询指定的指标名称:
// flux:流量,单位为 byte
// bandwidth:带宽,单位为 bps
// request:请求数,单位为 次
// fluxHitRate:流量命中率,单位为 %
// statusCode:状态码,返回 2XX、3XX、4XX、5XX 汇总数据,单位为 个
// 2XX:返回 2XX 状态码汇总及各 2 开头状态码数据,单位为 个
// 3XX:返回 3XX 状态码汇总及各 3 开头状态码数据,单位为 个
// 4XX:返回 4XX 状态码汇总及各 4 开头状态码数据,单位为 个
// 5XX:返回 5XX 状态码汇总及各 5 开头状态码数据,单位为 个
// 或指定查询的某一具体状态码
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 明细数据组合
DetailData []*TimestampData `json:"DetailData,omitempty" name:"DetailData" list`
// 汇总数据组合
SummarizedData *SummarizedData `json:"SummarizedData,omitempty" name:"SummarizedData"`
}
type CdnIp ¶
type CdnIp struct {
// 指定查询的 IP
Ip *string `json:"Ip,omitempty" name:"Ip"`
// IP 归属:
// yes:节点归属于腾讯云 CDN
// no:节点不属于腾讯云 CDN
Platform *string `json:"Platform,omitempty" name:"Platform"`
// 节点所处的省份/国家
// unknown 表示节点位置未知
Location *string `json:"Location,omitempty" name:"Location"`
// 节点上下线历史记录
History []*CdnIpHistory `json:"History,omitempty" name:"History" list`
// 节点的所在区域
// mainland:中国境内加速节点
// overseas:中国境外加速节点
// unknown:服务地域无法获取
Area *string `json:"Area,omitempty" name:"Area"`
// 节点的所在城市
// 注意:此字段可能返回 null,表示取不到有效值。
City *string `json:"City,omitempty" name:"City"`
}
type CdnIpHistory ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddCdnDomain ¶
func (c *Client) AddCdnDomain(request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error)
AddCdnDomain 用于新增内容分发网络加速域名。
func (*Client) CreateClsLogTopic ¶
func (c *Client) CreateClsLogTopic(request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
CreateClsLogTopic 用于创建日志主题。注意:一个日志集下至多可创建10个日志主题。
func (*Client) CreateDiagnoseUrl ¶
func (c *Client) CreateDiagnoseUrl(request *CreateDiagnoseUrlRequest) (response *CreateDiagnoseUrlResponse, err error)
CreateDiagnoseUrl 用于添加域名诊断任务URL
func (*Client) CreateEdgePackTask ¶
func (c *Client) CreateEdgePackTask(request *CreateEdgePackTaskRequest) (response *CreateEdgePackTaskResponse, err error)
动态打包任务提交接口
func (*Client) CreateScdnFailedLogTask ¶
func (c *Client) CreateScdnFailedLogTask(request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
CreateScdnFailedLogTask 用于重试创建失败的事件日志任务
func (*Client) CreateScdnLogTask ¶
func (c *Client) CreateScdnLogTask(request *CreateScdnLogTaskRequest) (response *CreateScdnLogTaskResponse, err error)
CreateScdnLogTask 用于创建事件日志任务
func (*Client) CreateVerifyRecord ¶
func (c *Client) CreateVerifyRecord(request *CreateVerifyRecordRequest) (response *CreateVerifyRecordResponse, err error)
生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权
func (*Client) DeleteCdnDomain ¶
func (c *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
DeleteCdnDomain 用于删除指定加速域名
func (*Client) DeleteClsLogTopic ¶
func (c *Client) DeleteClsLogTopic(request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
func (*Client) DeleteScdnDomain ¶
func (c *Client) DeleteScdnDomain(request *DeleteScdnDomainRequest) (response *DeleteScdnDomainResponse, err error)
删除SCDN域名
func (*Client) DescribeBillingData ¶
func (c *Client) DescribeBillingData(request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
DescribeBillingData 用于查询实际计费数据明细。
func (*Client) DescribeCdnData ¶
func (c *Client) DescribeCdnData(request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
+ 流量(单位为 byte) + 带宽(单位为 bps) + 请求数(单位为 次) + 命中请求数(单位为 次) + 请求命中率(单位为 %) + 命中流量(单位为 byte) + 流量命中率(单位为 %) + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个) + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个) + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个) + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
func (*Client) DescribeCdnDomainLogs ¶
func (c *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
DescribeCdnDomainLogs 用于查询访问日志下载地址,仅支持 30 天以内的境内、境外访问日志下载链接查询。
func (*Client) DescribeCdnIp ¶
func (c *Client) DescribeCdnIp(request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
DescribeCdnIp 用于查询 CDN IP 归属。 (注意:此接口请求频率限制以 CDN 侧限制为准:200次/10分钟)
func (*Client) DescribeCdnOriginIp ¶
func (c *Client) DescribeCdnOriginIp(request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
本接口(DescribeCdnOriginIp)用于查询 CDN 回源节点的IP信息。(注:此接口即将下线,不再进行维护,请通过DescribeIpStatus 接口进行查询)
func (*Client) DescribeCertDomains ¶
func (c *Client) DescribeCertDomains(request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error)
DescribeCertDomains 用于校验SSL证书并提取证书中包含的域名。
func (*Client) DescribeDiagnoseReport ¶
func (c *Client) DescribeDiagnoseReport(request *DescribeDiagnoseReportRequest) (response *DescribeDiagnoseReportResponse, err error)
DescribeDiagnoseReport 用于获取指定报告id的内容
func (*Client) DescribeDistrictIspData ¶
func (c *Client) DescribeDistrictIspData(request *DescribeDistrictIspDataRequest) (response *DescribeDistrictIspDataResponse, err error)
查询指定域名的区域、运营商明细数据 注意事项:接口尚未全量开放,未在内测名单中的账号不支持调用
func (*Client) DescribeDomains ¶
func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains 用于查询内容分发网络加速域名(含境内、境外)基本配置信息,包括项目ID、服务状态,业务类型、创建时间、更新时间等信息。
func (*Client) DescribeDomainsConfig ¶
func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
func (*Client) DescribeImageConfig ¶
func (c *Client) DescribeImageConfig(request *DescribeImageConfigRequest) (response *DescribeImageConfigResponse, err error)
DescribeImageConfig 用于获取域名图片优化的当前配置,支持Webp、TPG 和 Guetzli。
func (*Client) DescribeIpStatus ¶
func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
DescribeIpStatus 用于查询域名所在加速平台的边缘节点、回源节点明细。注意事项:边缘节点(edge)尚未全量开放,未在内测名单中的账号不支持调用
func (*Client) DescribeIpVisit ¶
func (c *Client) DescribeIpVisit(request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
DescribeIpVisit 用于查询 5 分钟活跃用户数,及日活跃用户数明细
+ 5 分钟活跃用户数:根据日志中客户端 IP,5 分钟粒度去重统计 + 日活跃用户数:根据日志中客户端 IP,按天粒度去重统计
func (*Client) DescribeMapInfo ¶
func (c *Client) DescribeMapInfo(request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
DescribeMapInfo 用于查询省份对应的 ID,运营商对应的 ID 信息。
func (*Client) DescribeOriginData ¶
func (c *Client) DescribeOriginData(request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
DescribeOriginData 用于查询 CDN 实时回源监控数据,支持以下指标查询:
+ 回源流量(单位为 byte) + 回源带宽(单位为 bps) + 回源请求数(单位为 次) + 回源失败请求数(单位为 次) + 回源失败率(单位为 %,小数点后保留两位) + 回源状态码 2xx 汇总及各 2 开头回源状态码明细(单位为 个) + 回源状态码 3xx 汇总及各 3 开头回源状态码明细(单位为 个) + 回源状态码 4xx 汇总及各 4 开头回源状态码明细(单位为 个) + 回源状态码 5xx 汇总及各 5 开头回源状态码明细(单位为 个)
func (*Client) DescribePayType ¶
func (c *Client) DescribePayType(request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
DescribePayType 用于查询用户的计费类型,计费周期等信息。
func (*Client) DescribePurgeQuota ¶
func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
DescribePurgeQuota 用于查询账户刷新配额和每日可用量。
func (*Client) DescribePurgeTasks ¶
func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
DescribePurgeTasks 用于查询提交的 URL 刷新、目录刷新记录及执行进度,通过 PurgePathCache 与 PurgeUrlsCache 接口提交的任务均可通过此接口进行查询。
func (*Client) DescribePushQuota ¶
func (c *Client) DescribePushQuota(request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
DescribePushQuota 用于查询预热配额和每日可用量。
func (*Client) DescribePushTasks ¶
func (c *Client) DescribePushTasks(request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
DescribePushTasks 用于查询预热任务提交历史记录及执行进度。 接口灰度中,暂未全量开放,敬请期待。
func (*Client) DescribeReportData ¶
func (c *Client) DescribeReportData(request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
DescribeReportData 用于查询域名/项目维度的日/周/月报表数据。
func (*Client) DescribeScdnConfig ¶
func (c *Client) DescribeScdnConfig(request *DescribeScdnConfigRequest) (response *DescribeScdnConfigResponse, err error)
DescribeScdnConfig 用于查询指定 SCDN 加速域名的安全相关配置
func (*Client) DescribeScdnTopData ¶
func (c *Client) DescribeScdnTopData(request *DescribeScdnTopDataRequest) (response *DescribeScdnTopDataResponse, err error)
获取SCDN的Top数据
func (*Client) DescribeTrafficPackages ¶
func (c *Client) DescribeTrafficPackages(request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error)
DescribeTrafficPackages 用于查询中国境内 CDN 流量包详情。
func (*Client) DescribeUrlViolations ¶
func (c *Client) DescribeUrlViolations(request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
DescribeUrlViolations 用于查询被 CDN 系统扫描到的域名违规 URL 列表及当前状态。 对应内容分发网络控制台【图片鉴黄】页面。
func (*Client) DisableCaches ¶
func (c *Client) DisableCaches(request *DisableCachesRequest) (response *DisableCachesResponse, err error)
DisableCaches 用于禁用 CDN 上指定 URL 的访问,禁用完成后,中国境内访问会直接返回 403。(接口尚在内测中,暂未全量开放使用)
func (*Client) DisableClsLogTopic ¶
func (c *Client) DisableClsLogTopic(request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
DisableClsLogTopic 用于停止日志主题投递。注意:停止后,所有绑定该日志主题域名的日志将不再继续投递至该主题,已经投递的日志将会继续保留。生效时间约为 5~15 分钟。
func (*Client) DuplicateDomainConfig ¶
func (c *Client) DuplicateDomainConfig(request *DuplicateDomainConfigRequest) (response *DuplicateDomainConfigResponse, err error)
拷贝参考域名的配置至新域名。暂不支持自有证书以及定制化配置
func (*Client) EnableCaches ¶
func (c *Client) EnableCaches(request *EnableCachesRequest) (response *EnableCachesResponse, err error)
EnableCaches 用于解禁手工封禁的 URL,解禁成功后,全网生效时间约 5~10 分钟。(接口尚在内测中,暂未全量开放使用)
func (*Client) EnableClsLogTopic ¶
func (c *Client) EnableClsLogTopic(request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
EnableClsLogTopic 用于启动日志主题投递。注意:启动后,所有绑定该日志主题域名的日志将继续投递至该主题。生效时间约为 5~15 分钟。
func (*Client) GetDisableRecords ¶
func (c *Client) GetDisableRecords(request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。(接口尚在内测中,暂未全量开放使用)
func (*Client) ListClsLogTopics ¶
func (c *Client) ListClsLogTopics(request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
func (*Client) ListClsTopicDomains ¶
func (c *Client) ListClsTopicDomains(request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
ListClsTopicDomains 用于获取某日志主题下绑定的域名列表。
func (*Client) ListDiagnoseReport ¶
func (c *Client) ListDiagnoseReport(request *ListDiagnoseReportRequest) (response *ListDiagnoseReportResponse, err error)
ListDiagnoseReport 用于获取用户诊断URL访问后各个子任务的简要详情。
func (*Client) ListScdnDomains ¶
func (c *Client) ListScdnDomains(request *ListScdnDomainsRequest) (response *ListScdnDomainsResponse, err error)
ListScdnDomains 用于查询 SCDN 安全加速域名列表,及域名基本配置信息
func (*Client) ListScdnLogTasks ¶
func (c *Client) ListScdnLogTasks(request *ListScdnLogTasksRequest) (response *ListScdnLogTasksResponse, err error)
ListScdnLogTasks 用于查询SCDN日志下载任务列表,以及展示下载任务基本信息
func (*Client) ListTopData ¶
func (c *Client) ListTopData(request *ListTopDataRequest) (response *ListTopDataResponse, err error)
ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
+ 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL + 依据总流量、总请求数对客户端省份排序,从大至小返回省份列表 + 依据总流量、总请求数对客户端运营商排序,从大至小返回运营商列表 + 依据总流量、峰值带宽、总请求数、平均命中率、2XX/3XX/4XX/5XX 状态码对域名排序,从大至小返回域名列表 + 依据总回源流量、回源峰值带宽、总回源请求数、平均回源失败率、2XX/3XX/4XX/5XX 回源状态码对域名排序,从大至小返回域名列表
注意:仅支持 90 天内数据查询
func (*Client) ManageClsTopicDomains ¶
func (c *Client) ManageClsTopicDomains(request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
func (*Client) PurgePathCache ¶
func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
PurgePathCache 用于批量提交目录刷新,根据域名的加速区域进行对应区域的刷新。 默认情况下境内、境外加速区域每日目录刷新额度为各 100 条,每次最多可提交 20 条。
func (*Client) PurgeUrlsCache ¶
func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
PurgeUrlsCache 用于批量提交 URL 进行刷新,根据 URL 中域名的当前加速区域进行对应区域的刷新。 默认情况下境内、境外加速区域每日 URL 刷新额度各为 10000 条,每次最多可提交 1000 条。
func (*Client) PushUrlsCache ¶
func (c *Client) PushUrlsCache(request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
PushUrlsCache 用于将指定 URL 资源列表加载至 CDN 节点,支持指定加速区域预热。 默认情况下境内、境外每日预热 URL 限额为各 1000 条,每次最多可提交 20 条。
func (*Client) SearchClsLog ¶
func (c *Client) SearchClsLog(request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
SearchClsLog 用于 CLS 日志检索。支持检索今天,24小时(可选近7中的某一天),近7天的日志数据。
func (*Client) StartCdnDomain ¶
func (c *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
StartCdnDomain 用于启用已停用域名的加速服务
func (*Client) StartScdnDomain ¶
func (c *Client) StartScdnDomain(request *StartScdnDomainRequest) (response *StartScdnDomainResponse, err error)
StartScdnDomain 用于开启域名的安全防护配置
func (*Client) StopCdnDomain ¶
func (c *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
StopCdnDomain 用于停止域名的加速服务。 注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
func (*Client) StopScdnDomain ¶
func (c *Client) StopScdnDomain(request *StopScdnDomainRequest) (response *StopScdnDomainResponse, err error)
StopScdnDomain 用于关闭域名的安全防护配置
func (*Client) UpdateDomainConfig ¶
func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
UpdateDomainConfig 用于修改内容分发网络加速域名配置信息 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口。Https配置由于证书的特殊性,更新时不用传递证书和密钥字段。
func (*Client) UpdateImageConfig ¶
func (c *Client) UpdateImageConfig(request *UpdateImageConfigRequest) (response *UpdateImageConfigResponse, err error)
UpdateImageConfig 用于更新控制台图片优化的相关配置,支持Webp、TPG 和 Guetzli。
func (*Client) UpdatePayType ¶
func (c *Client) UpdatePayType(request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
func (*Client) UpdateScdnDomain ¶
func (c *Client) UpdateScdnDomain(request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
UpdateScdnDomain 用于修改 SCDN 加速域名安全相关配置
func (*Client) VerifyDomainRecord ¶
func (c *Client) VerifyDomainRecord(request *VerifyDomainRecordRequest) (response *VerifyDomainRecordResponse, err error)
验证域名解析值
type ClientCert ¶
type ClientCert struct {
// 客户端证书
// PEM 格式,需要进行 Base 64 编码
// 注意:此字段可能返回 null,表示取不到有效值。
Certificate *string `json:"Certificate,omitempty" name:"Certificate"`
// 客户端证书名称
// 注意:此字段可能返回 null,表示取不到有效值。
CertName *string `json:"CertName,omitempty" name:"CertName"`
// 证书过期时间
// 作为入参时无需填充
// 注意:此字段可能返回 null,表示取不到有效值。
ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 证书颁发时间
// 作为入参时无需填充
// 注意:此字段可能返回 null,表示取不到有效值。
DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"`
}
type ClientInfo ¶
type ClientInfo struct {
// 省份。
// 注意:此字段可能返回 null,表示取不到有效值。
ProvName *string `json:"ProvName,omitempty" name:"ProvName"`
// 国家。
// 注意:此字段可能返回 null,表示取不到有效值。
Country *string `json:"Country,omitempty" name:"Country"`
// 运营商。
// 注意:此字段可能返回 null,表示取不到有效值。
IspName *string `json:"IspName,omitempty" name:"IspName"`
// 客户端IP
// 注意:此字段可能返回 null,表示取不到有效值。
Ip *string `json:"Ip,omitempty" name:"Ip"`
}
type ClsLogObject ¶
type ClsLogObject struct {
// 主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 主题名字
TopicName *string `json:"TopicName,omitempty" name:"TopicName"`
// 日志时间
Timestamp *string `json:"Timestamp,omitempty" name:"Timestamp"`
// 日志内容
Content *string `json:"Content,omitempty" name:"Content"`
// 采集路径
Filename *string `json:"Filename,omitempty" name:"Filename"`
// 日志来源设备
Source *string `json:"Source,omitempty" name:"Source"`
}
type ClsSearchLogs ¶
type ClsSearchLogs struct {
// 获取更多检索结果的游标
Context *string `json:"Context,omitempty" name:"Context"`
// 搜索结果是否已经全部返回
Listover *bool `json:"Listover,omitempty" name:"Listover"`
// 日志内容信息
Results []*ClsLogObject `json:"Results,omitempty" name:"Results" list`
}
type Compatibility ¶
type Compatibility struct {
// 兼容标志状态码。
// 注意:此字段可能返回 null,表示取不到有效值。
Code *int64 `json:"Code,omitempty" name:"Code"`
}
type Compression ¶
type Compression struct {
// 智能压缩配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 压缩规则数组
// 注意:此字段可能返回 null,表示取不到有效值。
CompressionRules []*CompressionRule `json:"CompressionRules,omitempty" name:"CompressionRules" list`
}
type CompressionRule ¶
type CompressionRule struct {
// true:需要设置为 ture,启用压缩
// 注意:此字段可能返回 null,表示取不到有效值。
Compress *bool `json:"Compress,omitempty" name:"Compress"`
// 根据文件后缀类型压缩
// 例如 jpg、txt
// 注意:此字段可能返回 null,表示取不到有效值。
FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions" list`
// 触发压缩的文件长度最小值,单位为字节数
// 注意:此字段可能返回 null,表示取不到有效值。
MinLength *int64 `json:"MinLength,omitempty" name:"MinLength"`
// 触发压缩的文件长度最大值,单位为字节数
// 最大可设置为 30MB
// 注意:此字段可能返回 null,表示取不到有效值。
MaxLength *int64 `json:"MaxLength,omitempty" name:"MaxLength"`
// 文件压缩算法
// gzip:指定 GZIP 压缩
// brotli:指定Brotli压缩
// 注意:此字段可能返回 null,表示取不到有效值。
Algorithms []*string `json:"Algorithms,omitempty" name:"Algorithms" list`
}
type CreateClsLogTopicRequest ¶
type CreateClsLogTopicRequest struct {
*tchttp.BaseRequest
// 日志主题名称
TopicName *string `json:"TopicName,omitempty" name:"TopicName"`
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 域名区域信息
DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs" list`
}
func NewCreateClsLogTopicRequest ¶
func NewCreateClsLogTopicRequest() (request *CreateClsLogTopicRequest)
func (*CreateClsLogTopicRequest) FromJsonString ¶
func (r *CreateClsLogTopicRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClsLogTopicRequest) ToJsonString ¶
func (r *CreateClsLogTopicRequest) ToJsonString() string
type CreateClsLogTopicResponse ¶
type CreateClsLogTopicResponse struct {
*tchttp.BaseResponse
Response *struct {
// 主题ID
// 注意:此字段可能返回 null,表示取不到有效值。
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateClsLogTopicResponse ¶
func NewCreateClsLogTopicResponse() (response *CreateClsLogTopicResponse)
func (*CreateClsLogTopicResponse) FromJsonString ¶
func (r *CreateClsLogTopicResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClsLogTopicResponse) ToJsonString ¶
func (r *CreateClsLogTopicResponse) ToJsonString() string
type CreateDiagnoseUrlRequest ¶
type CreateDiagnoseUrlRequest struct {
*tchttp.BaseRequest
// 需诊断的url,形如:http://www.test.com/test.txt。
Url *string `json:"Url,omitempty" name:"Url"`
}
func NewCreateDiagnoseUrlRequest ¶
func NewCreateDiagnoseUrlRequest() (request *CreateDiagnoseUrlRequest)
func (*CreateDiagnoseUrlRequest) FromJsonString ¶
func (r *CreateDiagnoseUrlRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDiagnoseUrlRequest) ToJsonString ¶
func (r *CreateDiagnoseUrlRequest) ToJsonString() string
type CreateDiagnoseUrlResponse ¶
type CreateDiagnoseUrlResponse struct {
*tchttp.BaseResponse
Response *struct {
// 系统生成的诊断链接,一个诊断链接最多可访问10次,有效期为24h。
DiagnoseLink *string `json:"DiagnoseLink,omitempty" name:"DiagnoseLink"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateDiagnoseUrlResponse ¶
func NewCreateDiagnoseUrlResponse() (response *CreateDiagnoseUrlResponse)
func (*CreateDiagnoseUrlResponse) FromJsonString ¶
func (r *CreateDiagnoseUrlResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDiagnoseUrlResponse) ToJsonString ¶
func (r *CreateDiagnoseUrlResponse) ToJsonString() string
type CreateEdgePackTaskRequest ¶
type CreateEdgePackTaskRequest struct {
*tchttp.BaseRequest
// apk 所在的 cos 存储桶, 如 edgepack-xxxxxxxx
CosBucket *string `json:"CosBucket,omitempty" name:"CosBucket"`
// apk 源文件的存储路径, 如 /apk/xxxx.apk
CosUriFrom *string `json:"CosUriFrom,omitempty" name:"CosUriFrom"`
// BlockID 的值, WALLE为1903654775(0x71777777),VasDolly为2282837503(0x881155ff),传0或不传时默认为 WALLE 方案
BlockID *uint64 `json:"BlockID,omitempty" name:"BlockID"`
// 拓展之后的 apk 目标存储路径,如 /out/xxxx.apk
CosUriTo *string `json:"CosUriTo,omitempty" name:"CosUriTo"`
}
func NewCreateEdgePackTaskRequest ¶
func NewCreateEdgePackTaskRequest() (request *CreateEdgePackTaskRequest)
func (*CreateEdgePackTaskRequest) FromJsonString ¶
func (r *CreateEdgePackTaskRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEdgePackTaskRequest) ToJsonString ¶
func (r *CreateEdgePackTaskRequest) ToJsonString() string
type CreateEdgePackTaskResponse ¶
type CreateEdgePackTaskResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateEdgePackTaskResponse ¶
func NewCreateEdgePackTaskResponse() (response *CreateEdgePackTaskResponse)
func (*CreateEdgePackTaskResponse) FromJsonString ¶
func (r *CreateEdgePackTaskResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateEdgePackTaskResponse) ToJsonString ¶
func (r *CreateEdgePackTaskResponse) ToJsonString() string
type CreateScdnFailedLogTaskRequest ¶
type CreateScdnFailedLogTaskRequest struct {
*tchttp.BaseRequest
// 重试失败任务的taskID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 地域:mainland或overseas
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewCreateScdnFailedLogTaskRequest ¶
func NewCreateScdnFailedLogTaskRequest() (request *CreateScdnFailedLogTaskRequest)
func (*CreateScdnFailedLogTaskRequest) FromJsonString ¶
func (r *CreateScdnFailedLogTaskRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScdnFailedLogTaskRequest) ToJsonString ¶
func (r *CreateScdnFailedLogTaskRequest) ToJsonString() string
type CreateScdnFailedLogTaskResponse ¶
type CreateScdnFailedLogTaskResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建结果,
// "0" -> 创建成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateScdnFailedLogTaskResponse ¶
func NewCreateScdnFailedLogTaskResponse() (response *CreateScdnFailedLogTaskResponse)
func (*CreateScdnFailedLogTaskResponse) FromJsonString ¶
func (r *CreateScdnFailedLogTaskResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScdnFailedLogTaskResponse) ToJsonString ¶
func (r *CreateScdnFailedLogTaskResponse) ToJsonString() string
type CreateScdnLogTaskRequest ¶
type CreateScdnLogTaskRequest struct {
*tchttp.BaseRequest
// 防护类型
// Mode 映射如下:
// waf = "Web攻击"
// cc = "CC攻击"
// bot = "Bot攻击"
Mode *string `json:"Mode,omitempty" name:"Mode"`
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定域名查询, 不填默认查询全部域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 指定攻击类型, 不填默认查询全部攻击类型
// AttackType 映射如下:
// other = '未知类型'
// malicious_scan = "恶意扫描"
// sql_inject = "SQL注入攻击"
// xss = "XSS攻击"
// cmd_inject = "命令注入攻击"
// ldap_inject = "LDAP注入攻击"
// ssi_inject = "SSI注入攻击"
// xml_inject = "XML注入攻击"
// web_service = "WEB服务漏洞攻击"
// web_app = "WEB应用漏洞攻击"
// path_traversal = "路径跨越攻击"
// illegal_access_core_file = "核心文件非法访问"
// trojan_horse = "木马后门攻击"
// csrf = "CSRF攻击"
// malicious_file_upload= '恶意文件上传'
// js = "JS主动探测"
// cookie = "Cookie指纹"
AttackType *string `json:"AttackType,omitempty" name:"AttackType"`
// 指定执行动作, 不填默认查询全部执行动作
// DefenceMode 映射如下:
// observe = '观察模式'
// intercept = '拦截模式'
// captcha = "验证码"
// redirect = "重定向"
DefenceMode *string `json:"DefenceMode,omitempty" name:"DefenceMode"`
// 不填为全部ip
Ip *string `json:"Ip,omitempty" name:"Ip"`
// 指定域名查询, 与 Domain 参数同时有值时使用 Domains 参数,不填默认查询全部域名,指定域名查询时最多支持同时选择 5 个域名查询
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 指定攻击类型查询, 与 AttackType 参数同时有值时使用 AttackTypes 参数,不填默认查询全部攻击类型
AttackTypes []*string `json:"AttackTypes,omitempty" name:"AttackTypes" list`
// 查询条件
Conditions []*ScdnEventLogConditions `json:"Conditions,omitempty" name:"Conditions" list`
// 来源产品 cdn ecdn
Source *string `json:"Source,omitempty" name:"Source"`
// 地域:mainland 或 overseas
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewCreateScdnLogTaskRequest ¶
func NewCreateScdnLogTaskRequest() (request *CreateScdnLogTaskRequest)
func (*CreateScdnLogTaskRequest) FromJsonString ¶
func (r *CreateScdnLogTaskRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScdnLogTaskRequest) ToJsonString ¶
func (r *CreateScdnLogTaskRequest) ToJsonString() string
type CreateScdnLogTaskResponse ¶
type CreateScdnLogTaskResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建结果,
// "0" -> 创建成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateScdnLogTaskResponse ¶
func NewCreateScdnLogTaskResponse() (response *CreateScdnLogTaskResponse)
func (*CreateScdnLogTaskResponse) FromJsonString ¶
func (r *CreateScdnLogTaskResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScdnLogTaskResponse) ToJsonString ¶
func (r *CreateScdnLogTaskResponse) ToJsonString() string
type CreateVerifyRecordRequest ¶
type CreateVerifyRecordRequest struct {
*tchttp.BaseRequest
// 要取回的域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewCreateVerifyRecordRequest ¶
func NewCreateVerifyRecordRequest() (request *CreateVerifyRecordRequest)
func (*CreateVerifyRecordRequest) FromJsonString ¶
func (r *CreateVerifyRecordRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateVerifyRecordRequest) ToJsonString ¶
func (r *CreateVerifyRecordRequest) ToJsonString() string
type CreateVerifyRecordResponse ¶
type CreateVerifyRecordResponse struct {
*tchttp.BaseResponse
Response *struct {
// 子解析
SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`
// 解析值
Record *string `json:"Record,omitempty" name:"Record"`
// 解析类型
RecordType *string `json:"RecordType,omitempty" name:"RecordType"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateVerifyRecordResponse ¶
func NewCreateVerifyRecordResponse() (response *CreateVerifyRecordResponse)
func (*CreateVerifyRecordResponse) FromJsonString ¶
func (r *CreateVerifyRecordResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateVerifyRecordResponse) ToJsonString ¶
func (r *CreateVerifyRecordResponse) ToJsonString() string
type DeleteCdnDomainRequest ¶
type DeleteCdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
// 域名状态需要为【已停用】
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewDeleteCdnDomainRequest ¶
func NewDeleteCdnDomainRequest() (request *DeleteCdnDomainRequest)
func (*DeleteCdnDomainRequest) FromJsonString ¶
func (r *DeleteCdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCdnDomainRequest) ToJsonString ¶
func (r *DeleteCdnDomainRequest) ToJsonString() string
type DeleteCdnDomainResponse ¶
type DeleteCdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteCdnDomainResponse ¶
func NewDeleteCdnDomainResponse() (response *DeleteCdnDomainResponse)
func (*DeleteCdnDomainResponse) FromJsonString ¶
func (r *DeleteCdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteCdnDomainResponse) ToJsonString ¶
func (r *DeleteCdnDomainResponse) ToJsonString() string
type DeleteClsLogTopicRequest ¶
type DeleteClsLogTopicRequest struct {
*tchttp.BaseRequest
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
}
func NewDeleteClsLogTopicRequest ¶
func NewDeleteClsLogTopicRequest() (request *DeleteClsLogTopicRequest)
func (*DeleteClsLogTopicRequest) FromJsonString ¶
func (r *DeleteClsLogTopicRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClsLogTopicRequest) ToJsonString ¶
func (r *DeleteClsLogTopicRequest) ToJsonString() string
type DeleteClsLogTopicResponse ¶
type DeleteClsLogTopicResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteClsLogTopicResponse ¶
func NewDeleteClsLogTopicResponse() (response *DeleteClsLogTopicResponse)
func (*DeleteClsLogTopicResponse) FromJsonString ¶
func (r *DeleteClsLogTopicResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteClsLogTopicResponse) ToJsonString ¶
func (r *DeleteClsLogTopicResponse) ToJsonString() string
type DeleteScdnDomainRequest ¶
type DeleteScdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewDeleteScdnDomainRequest ¶
func NewDeleteScdnDomainRequest() (request *DeleteScdnDomainRequest)
func (*DeleteScdnDomainRequest) FromJsonString ¶
func (r *DeleteScdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScdnDomainRequest) ToJsonString ¶
func (r *DeleteScdnDomainRequest) ToJsonString() string
type DeleteScdnDomainResponse ¶
type DeleteScdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建结果,Success表示成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteScdnDomainResponse ¶
func NewDeleteScdnDomainResponse() (response *DeleteScdnDomainResponse)
func (*DeleteScdnDomainResponse) FromJsonString ¶
func (r *DeleteScdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScdnDomainResponse) ToJsonString ¶
func (r *DeleteScdnDomainResponse) ToJsonString() string
type DescribeBillingDataRequest ¶
type DescribeBillingDataRequest struct {
*tchttp.BaseRequest
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
// 根据指定时间粒度参数不同,会进行向前取整,如指定起始时间为 2018-09-04 10:40:00 按小时粒度查询,返回的第一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
// 根据指定时间粒度参数不同,会进行向前取整,如指定结束时间为 2018-09-04 10:40:00 按小时粒度查询时,返回的最后一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 时间粒度,支持模式如下:
// min:1 分钟粒度,查询区间需要小于等于 24 小时
// 5min:5 分钟粒度,查询区间需要小于等于 31 天
// hour:1 小时粒度,查询区间需要小于等于 31 天内
// day:天粒度,查询区间需要大于 31 天
//
// Area 字段为 overseas 时暂不支持1分钟粒度数据查询
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 指定域名查询计费数据
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 指定项目 ID 查询,[前往查看项目 ID](https://console.cloud.tencent.com/project)
// 若 Domain 参数填充了具体域名信息,则返回该域名的计费数据,而非指定项目计费数据
Project *int64 `json:"Project,omitempty" name:"Project"`
// 指定加速区域查询计费数据:
// mainland:中国境内
// overseas:中国境外
// 不填充时,默认为 mainland
Area *string `json:"Area,omitempty" name:"Area"`
// Area 为 overseas 时,指定国家/地区查询
// 省份、国家/地区编码可以查看 [省份编码映射](https://cloud.tencent.com/document/product/228/6316#.E7.9C.81.E4.BB.BD.E6.98.A0.E5.B0.84)
// 不填充时,查询所有国家/地区
District *int64 `json:"District,omitempty" name:"District"`
// 计费统计类型
// flux:计费流量
// bandwidth:计费带宽
// 默认为 bandwidth
Metric *string `json:"Metric,omitempty" name:"Metric"`
}
func NewDescribeBillingDataRequest ¶
func NewDescribeBillingDataRequest() (request *DescribeBillingDataRequest)
func (*DescribeBillingDataRequest) FromJsonString ¶
func (r *DescribeBillingDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillingDataRequest) ToJsonString ¶
func (r *DescribeBillingDataRequest) ToJsonString() string
type DescribeBillingDataResponse ¶
type DescribeBillingDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 时间粒度,根据查询时传递参数指定:
// min:1 分钟粒度
// 5min:5 分钟粒度
// hour:1 小时粒度
// day:天粒度
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 数据明细
Data []*ResourceBillingData `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeBillingDataResponse ¶
func NewDescribeBillingDataResponse() (response *DescribeBillingDataResponse)
func (*DescribeBillingDataResponse) FromJsonString ¶
func (r *DescribeBillingDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillingDataResponse) ToJsonString ¶
func (r *DescribeBillingDataResponse) ToJsonString() string
type DescribeCdnDataRequest ¶
type DescribeCdnDataRequest struct {
*tchttp.BaseRequest
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:00 在按 1 小时的时间粒度查询时,返回的第一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:00 在按 1 小时的时间粒度查询时,返回的最后一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定查询指标,支持的类型有:
// flux:流量,单位为 byte
// bandwidth:带宽,单位为 bps
// request:请求数,单位为 次
// hitRequest:命中请求数,单位为 次
// requestHitRate:请求命中率,单位为 %,保留小数点后两位
// hitFlux:命中流量,单位为byte
// fluxHitRate:流量命中率,单位为 %,保留小数点后两位
// statusCode:状态码,返回 2xx、3xx、4xx、5xx 汇总数据,单位为 个
// 2xx:返回 2xx 状态码汇总及各 2 开头状态码数据,单位为 个
// 3xx:返回 3xx 状态码汇总及各 3 开头状态码数据,单位为 个
// 4xx:返回 4xx 状态码汇总及各 4 开头状态码数据,单位为 个
// 5xx:返回 5xx 状态码汇总及各 5 开头状态码数据,单位为 个
// 支持指定具体状态码查询,若未产生过,则返回为空
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 指定查询域名列表
// 最多可一次性查询 30 个加速域名明细
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
Project *int64 `json:"Project,omitempty" name:"Project"`
// 时间粒度,支持以下几种模式:
// min:1 分钟粒度,指定查询区间 24 小时内(含 24 小时),可返回 1 分钟粒度明细数据(指定查询服务地域为中国境外时不支持 1 分钟粒度)
// 5min:5 分钟粒度,指定查询区间 31 天内(含 31 天),可返回 5 分钟粒度明细数据
// hour:1 小时粒度,指定查询区间 31 天内(含 31 天),可返回 1 小时粒度明细数据
// day:天粒度,指定查询区间大于 31 天,可返回天粒度明细数据
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 多域名查询时,默认(false)返回多个域名的汇总数据
// 可按需指定为 true,返回每一个 Domain 的明细数据(statusCode 指标暂不支持)
Detail *bool `json:"Detail,omitempty" name:"Detail"`
// 查询中国境内CDN数据时,指定运营商查询,不填充表示查询所有运营商
// 运营商编码可以查看 [运营商编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)
// 指定运营商查询时,不可同时指定省份、IP协议查询
Isp *int64 `json:"Isp,omitempty" name:"Isp"`
// 查询中国境内CDN数据时,指定省份查询,不填充表示查询所有省份
// 查询中国境外CDN数据时,指定国家/地区查询,不填充表示查询所有国家/地区
// 省份、国家/地区编码可以查看 [省份编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)
// 指定(中国境内)省份查询时,不可同时指定运营商、IP协议查询
District *int64 `json:"District,omitempty" name:"District"`
// 指定协议查询,不填充表示查询所有协议
// all:所有协议
// http:指定查询 HTTP 对应指标
// https:指定查询 HTTPS 对应指标
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 指定数据源查询,白名单功能
DataSource *string `json:"DataSource,omitempty" name:"DataSource"`
// 指定IP协议查询,不填充表示查询所有协议
// all:所有协议
// ipv4:指定查询 ipv4 对应指标
// ipv6:指定查询 ipv6 对应指标
// 指定IP协议查询时,不可同时指定省份、运营商查询
// 注意:非IPv6白名单用户不可指定ipv4、ipv6进行查询
IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
// 指定服务地域查询,不填充表示查询中国境内CDN数据
// mainland:指定查询中国境内 CDN 数据
// overseas:指定查询中国境外 CDN 数据
Area *string `json:"Area,omitempty" name:"Area"`
// 查询中国境外CDN数据时,可指定地区类型查询,不填充表示查询服务地区数据(仅在 Area 为 overseas 时可用)
// server:指定查询服务地区(腾讯云 CDN 节点服务器所在地区)数据
// client:指定查询客户端地区(用户请求终端所在地区)数据
AreaType *string `json:"AreaType,omitempty" name:"AreaType"`
}
func NewDescribeCdnDataRequest ¶
func NewDescribeCdnDataRequest() (request *DescribeCdnDataRequest)
func (*DescribeCdnDataRequest) FromJsonString ¶
func (r *DescribeCdnDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnDataRequest) ToJsonString ¶
func (r *DescribeCdnDataRequest) ToJsonString() string
type DescribeCdnDataResponse ¶
type DescribeCdnDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 返回数据的时间粒度,查询时指定:
// min:1 分钟粒度
// 5min:5 分钟粒度
// hour:1 小时粒度
// day:天粒度
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 指定条件查询得到的数据明细
Data []*ResourceData `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCdnDataResponse ¶
func NewDescribeCdnDataResponse() (response *DescribeCdnDataResponse)
func (*DescribeCdnDataResponse) FromJsonString ¶
func (r *DescribeCdnDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnDataResponse) ToJsonString ¶
func (r *DescribeCdnDataResponse) ToJsonString() string
type DescribeCdnDomainLogsRequest ¶
type DescribeCdnDomainLogsRequest struct {
*tchttp.BaseRequest
// 指定域名查询
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 开始时间,如 2019-09-04 00:00:00
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间,如 2019-09-04 12:00:00
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 100,最大为 1000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 指定区域下载日志
// mainland:获取境内加速日志包下载链接
// overseas:获取境外加速日志包下载链接
// global:同时获取境内、境外加速日志包下载链接(分开打包)
// 不指定时默认为 mainland
Area *string `json:"Area,omitempty" name:"Area"`
// 指定下载日志的类型。
// access:获取访问日志
LogType *string `json:"LogType,omitempty" name:"LogType"`
}
func NewDescribeCdnDomainLogsRequest ¶
func NewDescribeCdnDomainLogsRequest() (request *DescribeCdnDomainLogsRequest)
func (*DescribeCdnDomainLogsRequest) FromJsonString ¶
func (r *DescribeCdnDomainLogsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnDomainLogsRequest) ToJsonString ¶
func (r *DescribeCdnDomainLogsRequest) ToJsonString() string
type DescribeCdnDomainLogsResponse ¶
type DescribeCdnDomainLogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 日志包下载链接
DomainLogs []*DomainLog `json:"DomainLogs,omitempty" name:"DomainLogs" list`
// 查询到的总条数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCdnDomainLogsResponse ¶
func NewDescribeCdnDomainLogsResponse() (response *DescribeCdnDomainLogsResponse)
func (*DescribeCdnDomainLogsResponse) FromJsonString ¶
func (r *DescribeCdnDomainLogsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnDomainLogsResponse) ToJsonString ¶
func (r *DescribeCdnDomainLogsResponse) ToJsonString() string
type DescribeCdnIpRequest ¶
type DescribeCdnIpRequest struct {
*tchttp.BaseRequest
// 需要查询的 IP 列表
Ips []*string `json:"Ips,omitempty" name:"Ips" list`
}
func NewDescribeCdnIpRequest ¶
func NewDescribeCdnIpRequest() (request *DescribeCdnIpRequest)
func (*DescribeCdnIpRequest) FromJsonString ¶
func (r *DescribeCdnIpRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnIpRequest) ToJsonString ¶
func (r *DescribeCdnIpRequest) ToJsonString() string
type DescribeCdnIpResponse ¶
type DescribeCdnIpResponse struct {
*tchttp.BaseResponse
Response *struct {
// 查询的节点归属详情。
Ips []*CdnIp `json:"Ips,omitempty" name:"Ips" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCdnIpResponse ¶
func NewDescribeCdnIpResponse() (response *DescribeCdnIpResponse)
func (*DescribeCdnIpResponse) FromJsonString ¶
func (r *DescribeCdnIpResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnIpResponse) ToJsonString ¶
func (r *DescribeCdnIpResponse) ToJsonString() string
type DescribeCdnOriginIpRequest ¶
type DescribeCdnOriginIpRequest struct {
*tchttp.BaseRequest
}
func NewDescribeCdnOriginIpRequest ¶
func NewDescribeCdnOriginIpRequest() (request *DescribeCdnOriginIpRequest)
func (*DescribeCdnOriginIpRequest) FromJsonString ¶
func (r *DescribeCdnOriginIpRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnOriginIpRequest) ToJsonString ¶
func (r *DescribeCdnOriginIpRequest) ToJsonString() string
type DescribeCdnOriginIpResponse ¶
type DescribeCdnOriginIpResponse struct {
*tchttp.BaseResponse
Response *struct {
// 回源节点IP详情。
Ips []*OriginIp `json:"Ips,omitempty" name:"Ips" list`
// 回源节点IP总个数。
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCdnOriginIpResponse ¶
func NewDescribeCdnOriginIpResponse() (response *DescribeCdnOriginIpResponse)
func (*DescribeCdnOriginIpResponse) FromJsonString ¶
func (r *DescribeCdnOriginIpResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCdnOriginIpResponse) ToJsonString ¶
func (r *DescribeCdnOriginIpResponse) ToJsonString() string
type DescribeCertDomainsRequest ¶
type DescribeCertDomainsRequest struct {
*tchttp.BaseRequest
// PEM格式证书Base64编码后的字符串
Cert *string `json:"Cert,omitempty" name:"Cert"`
}
func NewDescribeCertDomainsRequest ¶
func NewDescribeCertDomainsRequest() (request *DescribeCertDomainsRequest)
func (*DescribeCertDomainsRequest) FromJsonString ¶
func (r *DescribeCertDomainsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCertDomainsRequest) ToJsonString ¶
func (r *DescribeCertDomainsRequest) ToJsonString() string
type DescribeCertDomainsResponse ¶
type DescribeCertDomainsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 已接入CDN的域名列表
// 注意:此字段可能返回 null,表示取不到有效值。
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 已配置证书的CDN域名列表
// 注意:此字段可能返回 null,表示取不到有效值。
CertifiedDomains []*string `json:"CertifiedDomains,omitempty" name:"CertifiedDomains" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCertDomainsResponse ¶
func NewDescribeCertDomainsResponse() (response *DescribeCertDomainsResponse)
func (*DescribeCertDomainsResponse) FromJsonString ¶
func (r *DescribeCertDomainsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeCertDomainsResponse) ToJsonString ¶
func (r *DescribeCertDomainsResponse) ToJsonString() string
type DescribeDiagnoseReportRequest ¶
type DescribeDiagnoseReportRequest struct {
*tchttp.BaseRequest
// 报告ID
ReportId *string `json:"ReportId,omitempty" name:"ReportId"`
}
func NewDescribeDiagnoseReportRequest ¶
func NewDescribeDiagnoseReportRequest() (request *DescribeDiagnoseReportRequest)
func (*DescribeDiagnoseReportRequest) FromJsonString ¶
func (r *DescribeDiagnoseReportRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiagnoseReportRequest) ToJsonString ¶
func (r *DescribeDiagnoseReportRequest) ToJsonString() string
type DescribeDiagnoseReportResponse ¶
type DescribeDiagnoseReportResponse struct {
*tchttp.BaseResponse
Response *struct {
// 诊断报告基础信息
BaskInfo *DiagnoseData `json:"BaskInfo,omitempty" name:"BaskInfo"`
// CNAME检测信息
CnameInfo *DiagnoseData `json:"CnameInfo,omitempty" name:"CnameInfo"`
// 客户端检测信息
ClientInfo *DiagnoseData `json:"ClientInfo,omitempty" name:"ClientInfo"`
// DNS检测信息
DnsInfo *DiagnoseData `json:"DnsInfo,omitempty" name:"DnsInfo"`
// 网络检测信息
NetworkInfo *DiagnoseData `json:"NetworkInfo,omitempty" name:"NetworkInfo"`
// 边缘节点检测信息
OcNodeInfo *DiagnoseData `json:"OcNodeInfo,omitempty" name:"OcNodeInfo"`
// 中间源节点检测信息
MidNodeInfo *DiagnoseData `json:"MidNodeInfo,omitempty" name:"MidNodeInfo"`
// 源站检测信息
OriginInfo *DiagnoseData `json:"OriginInfo,omitempty" name:"OriginInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeDiagnoseReportResponse ¶
func NewDescribeDiagnoseReportResponse() (response *DescribeDiagnoseReportResponse)
func (*DescribeDiagnoseReportResponse) FromJsonString ¶
func (r *DescribeDiagnoseReportResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDiagnoseReportResponse) ToJsonString ¶
func (r *DescribeDiagnoseReportResponse) ToJsonString() string
type DescribeDistrictIspDataRequest ¶
type DescribeDistrictIspDataRequest struct {
*tchttp.BaseRequest
// 域名列表,最多支持20个域名
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
// 支持近 60 天内的数据查询,每次查询时间区间为 3 小时
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
// 结束时间与起始时间区间最大为 3 小时
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定查询指标,支持:
// bandwidth:带宽,单位为 bps
// request:请求数,单位为 次
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 指定省份查询,不填充表示查询所有省份
// 省份、国家/地区编码可以查看 [省份编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)
Districts []*int64 `json:"Districts,omitempty" name:"Districts" list`
// 指定运营商查询,不填充表示查询所有运营商
// 运营商编码可以查看 [运营商编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)
Isps []*int64 `json:"Isps,omitempty" name:"Isps" list`
// 指定协议查询,不填充表示查询所有协议
// all:所有协议
// http:指定查询 HTTP 对应指标
// https:指定查询 HTTPS 对应指标
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// 指定IP协议查询,不填充表示查询所有协议
// all:所有协议
// ipv4:指定查询 ipv4 对应指标
// ipv6:指定查询 ipv6 对应指标
// 指定IP协议查询时,不可同时指定省份、运营商查询
IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
// 时间粒度,支持以下几种模式(默认5min):
// min:1 分钟粒度,支持近 60 天内的数据查询,每次查询时间区间不超过10分钟,可返回 1 分钟粒度明细数据
// 5min:5 分钟粒度,支持近 60 天内的数据查询,每次查询时间区间不超过3 小时,可返回 5 分钟粒度明细数据
Interval *string `json:"Interval,omitempty" name:"Interval"`
}
func NewDescribeDistrictIspDataRequest ¶
func NewDescribeDistrictIspDataRequest() (request *DescribeDistrictIspDataRequest)
func (*DescribeDistrictIspDataRequest) FromJsonString ¶
func (r *DescribeDistrictIspDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDistrictIspDataRequest) ToJsonString ¶
func (r *DescribeDistrictIspDataRequest) ToJsonString() string
type DescribeDistrictIspDataResponse ¶
type DescribeDistrictIspDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 地区运营商数据明细
// 注意:此字段可能返回 null,表示取不到有效值。
Data []*DistrictIspInfo `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeDistrictIspDataResponse ¶
func NewDescribeDistrictIspDataResponse() (response *DescribeDistrictIspDataResponse)
func (*DescribeDistrictIspDataResponse) FromJsonString ¶
func (r *DescribeDistrictIspDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDistrictIspDataResponse) ToJsonString ¶
func (r *DescribeDistrictIspDataResponse) ToJsonString() string
type DescribeDomainsConfigRequest ¶
type DescribeDomainsConfigRequest struct {
*tchttp.BaseRequest
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 100,最大可设置为 1000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 查询条件过滤器,复杂类型
Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters" list`
// 排序规则
Sort *Sort `json:"Sort,omitempty" name:"Sort"`
}
func NewDescribeDomainsConfigRequest ¶
func NewDescribeDomainsConfigRequest() (request *DescribeDomainsConfigRequest)
func (*DescribeDomainsConfigRequest) FromJsonString ¶
func (r *DescribeDomainsConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsConfigRequest) ToJsonString ¶
func (r *DescribeDomainsConfigRequest) ToJsonString() string
type DescribeDomainsConfigResponse ¶
type DescribeDomainsConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 域名列表
Domains []*DetailDomain `json:"Domains,omitempty" name:"Domains" list`
// 符合查询条件的域名总数
// 用于分页查询
TotalNumber *int64 `json:"TotalNumber,omitempty" name:"TotalNumber"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeDomainsConfigResponse ¶
func NewDescribeDomainsConfigResponse() (response *DescribeDomainsConfigResponse)
func (*DescribeDomainsConfigResponse) FromJsonString ¶
func (r *DescribeDomainsConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsConfigResponse) ToJsonString ¶
func (r *DescribeDomainsConfigResponse) ToJsonString() string
type DescribeDomainsRequest ¶
type DescribeDomainsRequest struct {
*tchttp.BaseRequest
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 100,最大可设置为 1000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 查询条件过滤器,复杂类型
Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters" list`
}
func NewDescribeDomainsRequest ¶
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest)
func (*DescribeDomainsRequest) FromJsonString ¶
func (r *DescribeDomainsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsRequest) ToJsonString ¶
func (r *DescribeDomainsRequest) ToJsonString() string
type DescribeDomainsResponse ¶
type DescribeDomainsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 域名列表
Domains []*BriefDomain `json:"Domains,omitempty" name:"Domains" list`
// 符合查询条件的域名总数
// 用于分页查询
TotalNumber *int64 `json:"TotalNumber,omitempty" name:"TotalNumber"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeDomainsResponse ¶
func NewDescribeDomainsResponse() (response *DescribeDomainsResponse)
func (*DescribeDomainsResponse) FromJsonString ¶
func (r *DescribeDomainsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsResponse) ToJsonString ¶
func (r *DescribeDomainsResponse) ToJsonString() string
type DescribeImageConfigRequest ¶
type DescribeImageConfigRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewDescribeImageConfigRequest ¶
func NewDescribeImageConfigRequest() (request *DescribeImageConfigRequest)
func (*DescribeImageConfigRequest) FromJsonString ¶
func (r *DescribeImageConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeImageConfigRequest) ToJsonString ¶
func (r *DescribeImageConfigRequest) ToJsonString() string
type DescribeImageConfigResponse ¶
type DescribeImageConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// WebpAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
WebpAdapter *WebpAdapter `json:"WebpAdapter,omitempty" name:"WebpAdapter"`
// TpgAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
TpgAdapter *TpgAdapter `json:"TpgAdapter,omitempty" name:"TpgAdapter"`
// GuetzliAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
GuetzliAdapter *GuetzliAdapter `json:"GuetzliAdapter,omitempty" name:"GuetzliAdapter"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeImageConfigResponse ¶
func NewDescribeImageConfigResponse() (response *DescribeImageConfigResponse)
func (*DescribeImageConfigResponse) FromJsonString ¶
func (r *DescribeImageConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeImageConfigResponse) ToJsonString ¶
func (r *DescribeImageConfigResponse) ToJsonString() string
type DescribeIpStatusRequest ¶
type DescribeIpStatusRequest struct {
*tchttp.BaseRequest
// 加速域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 节点类型:
// edge:表示边缘节点
// last:表示回源层节点
// 不填充情况下,默认返回边缘节点信息
Layer *string `json:"Layer,omitempty" name:"Layer"`
// 查询区域:
// mainland: 国内节点
// overseas: 海外节点
// global: 全球节点
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDescribeIpStatusRequest ¶
func NewDescribeIpStatusRequest() (request *DescribeIpStatusRequest)
func (*DescribeIpStatusRequest) FromJsonString ¶
func (r *DescribeIpStatusRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpStatusRequest) ToJsonString ¶
func (r *DescribeIpStatusRequest) ToJsonString() string
type DescribeIpStatusResponse ¶
type DescribeIpStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 节点列表
Ips []*IpStatus `json:"Ips,omitempty" name:"Ips" list`
// 节点总个数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeIpStatusResponse ¶
func NewDescribeIpStatusResponse() (response *DescribeIpStatusResponse)
func (*DescribeIpStatusResponse) FromJsonString ¶
func (r *DescribeIpStatusResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpStatusResponse) ToJsonString ¶
func (r *DescribeIpStatusResponse) ToJsonString() string
type DescribeIpVisitRequest ¶
type DescribeIpVisitRequest struct {
*tchttp.BaseRequest
// 查询起始时间,如:2018-09-04 10:40:10,返回结果大于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:10 在按 5 分钟的时间粒度查询时,返回的第一个数据对应时间点为 2018-09-04 10:40:00
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:10,返回结果小于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:10 在按 5 分钟的时间粒度查询时,返回的最后一个数据对应时间点为 2018-09-04 10:40:00
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定查询域名列表,最多可一次性查询 30 个加速域名明细
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
Project *int64 `json:"Project,omitempty" name:"Project"`
// 时间粒度,支持以下几种模式:
// 5min:5 分钟粒度,查询时间区间 24 小时内,默认返回 5 分钟粒度活跃用户数
// day:天粒度,查询时间区间大于 1 天时,默认返回天粒度活跃用户数
Interval *string `json:"Interval,omitempty" name:"Interval"`
}
func NewDescribeIpVisitRequest ¶
func NewDescribeIpVisitRequest() (request *DescribeIpVisitRequest)
func (*DescribeIpVisitRequest) FromJsonString ¶
func (r *DescribeIpVisitRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpVisitRequest) ToJsonString ¶
func (r *DescribeIpVisitRequest) ToJsonString() string
type DescribeIpVisitResponse ¶
type DescribeIpVisitResponse struct {
*tchttp.BaseResponse
Response *struct {
// 数据统计的时间粒度,支持5min, day,分别表示5分钟,1天的时间粒度。
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 各个资源的回源数据详情。
Data []*ResourceData `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeIpVisitResponse ¶
func NewDescribeIpVisitResponse() (response *DescribeIpVisitResponse)
func (*DescribeIpVisitResponse) FromJsonString ¶
func (r *DescribeIpVisitResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpVisitResponse) ToJsonString ¶
func (r *DescribeIpVisitResponse) ToJsonString() string
type DescribeMapInfoRequest ¶
type DescribeMapInfoRequest struct {
*tchttp.BaseRequest
// 映射查询类别:
// isp:运营商映射查询
// district:省份(中国境内)、国家/地区(中国境外)映射查询
Name *string `json:"Name,omitempty" name:"Name"`
}
func NewDescribeMapInfoRequest ¶
func NewDescribeMapInfoRequest() (request *DescribeMapInfoRequest)
func (*DescribeMapInfoRequest) FromJsonString ¶
func (r *DescribeMapInfoRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMapInfoRequest) ToJsonString ¶
func (r *DescribeMapInfoRequest) ToJsonString() string
type DescribeMapInfoResponse ¶
type DescribeMapInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// 映射关系数组。
MapInfoList []*MapInfo `json:"MapInfoList,omitempty" name:"MapInfoList" list`
// 服务端区域id和子区域id的映射关系。
// 注意:此字段可能返回 null,表示取不到有效值。
ServerRegionRelation []*RegionMapRelation `json:"ServerRegionRelation,omitempty" name:"ServerRegionRelation" list`
// 客户端区域id和子区域id的映射关系。
// 注意:此字段可能返回 null,表示取不到有效值。
ClientRegionRelation []*RegionMapRelation `json:"ClientRegionRelation,omitempty" name:"ClientRegionRelation" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeMapInfoResponse ¶
func NewDescribeMapInfoResponse() (response *DescribeMapInfoResponse)
func (*DescribeMapInfoResponse) FromJsonString ¶
func (r *DescribeMapInfoResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeMapInfoResponse) ToJsonString ¶
func (r *DescribeMapInfoResponse) ToJsonString() string
type DescribeOriginDataRequest ¶
type DescribeOriginDataRequest struct {
*tchttp.BaseRequest
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:00 在按 1 小时的时间粒度查询时,返回的第一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
// 根据指定时间粒度不同,会进行向前归整,如 2018-09-04 10:40:00 在按 1 小时的时间粒度查询时,返回的最后一个数据对应时间点为 2018-09-04 10:00:00
// 起始时间与结束时间间隔小于等于 90 天
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定查询指标,支持的类型有:
// flux:回源流量,单位为 byte
// bandwidth:回源带宽,单位为 bps
// request:回源请求数,单位为 次
// failRequest:回源失败请求数,单位为 次
// failRate:回源失败率,单位为 %
// statusCode:回源状态码,返回 2xx、3xx、4xx、5xx 汇总数据,单位为 个
// 2xx:返回 2xx 回源状态码汇总及各 2 开头回源状态码数据,单位为 个
// 3xx:返回 3xx 回源状态码汇总及各 3 开头回源状态码数据,单位为 个
// 4xx:返回 4xx 回源状态码汇总及各 4 开头回源状态码数据,单位为 个
// 5xx:返回 5xx 回源状态码汇总及各 5 开头回源状态码数据,单位为 个
// 支持指定具体状态码查询,若未产生过,则返回为空
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 指定查询域名列表,最多可一次性查询 30 个加速域名明细
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
// 未填充域名情况下,指定项目查询,最多可一次性查询 30 个加速域名明细
// 若填充了具体域名信息,以域名为主
Project *int64 `json:"Project,omitempty" name:"Project"`
// 时间粒度,支持以下几种模式:
// min:1 分钟粒度,指定查询区间 24 小时内(含 24 小时),可返回 1 分钟粒度明细数据(指定查询服务地域为中国境外时不支持 1 分钟粒度)
// 5min:5 分钟粒度,指定查询区间 31 天内(含 31 天),可返回 5 分钟粒度明细数据
// hour:1 小时粒度,指定查询区间 31 天内(含 31 天),可返回 1 小时粒度明细数据
// day:天粒度,指定查询区间大于 31 天,可返回天粒度明细数据
Interval *string `json:"Interval,omitempty" name:"Interval"`
// Domains 传入多个时,默认(false)返回多个域名的汇总数据
// 可按需指定为 true,返回每一个 Domain 的明细数据(statusCode 指标暂不支持)
Detail *bool `json:"Detail,omitempty" name:"Detail"`
// 指定服务地域查询,不填充表示查询中国境内 CDN 数据
// mainland:指定查询中国境内 CDN 数据
// overseas:指定查询中国境外 CDN 数据
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDescribeOriginDataRequest ¶
func NewDescribeOriginDataRequest() (request *DescribeOriginDataRequest)
func (*DescribeOriginDataRequest) FromJsonString ¶
func (r *DescribeOriginDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOriginDataRequest) ToJsonString ¶
func (r *DescribeOriginDataRequest) ToJsonString() string
type DescribeOriginDataResponse ¶
type DescribeOriginDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 数据统计的时间粒度,支持min, 5min, hour, day,分别表示1分钟,5分钟,1小时和1天的时间粒度。
Interval *string `json:"Interval,omitempty" name:"Interval"`
// 各个资源的回源数据详情。
Data []*ResourceOriginData `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeOriginDataResponse ¶
func NewDescribeOriginDataResponse() (response *DescribeOriginDataResponse)
func (*DescribeOriginDataResponse) FromJsonString ¶
func (r *DescribeOriginDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOriginDataResponse) ToJsonString ¶
func (r *DescribeOriginDataResponse) ToJsonString() string
type DescribePayTypeRequest ¶
type DescribePayTypeRequest struct {
*tchttp.BaseRequest
// 指定服务地域查询
// mainland:境内计费方式查询
// overseas:境外计费方式查询
// 未填充时默认为 mainland
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDescribePayTypeRequest ¶
func NewDescribePayTypeRequest() (request *DescribePayTypeRequest)
func (*DescribePayTypeRequest) FromJsonString ¶
func (r *DescribePayTypeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePayTypeRequest) ToJsonString ¶
func (r *DescribePayTypeRequest) ToJsonString() string
type DescribePayTypeResponse ¶
type DescribePayTypeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 计费类型:
// flux:流量计费
// bandwidth:带宽计费
// 日结计费方式切换时,若当日产生消耗,则此字段表示第二天即将生效的计费方式,若未产生消耗,则表示已经生效的计费方式。
PayType *string `json:"PayType,omitempty" name:"PayType"`
// 计费周期:
// day:日结计费
// month:月结计费
BillingCycle *string `json:"BillingCycle,omitempty" name:"BillingCycle"`
// 计费方式:
// monthMax:日峰值月平均计费,月结模式
// day95:日 95 带宽计费,月结模式
// month95:月95带宽计费,月结模式
// sum:总流量计费,日结与月结均有流量计费模式
// max:峰值带宽计费,日结模式
StatType *string `json:"StatType,omitempty" name:"StatType"`
// 境外计费类型:
// all:全地区统一计费
// multiple:分地区计费
RegionType *string `json:"RegionType,omitempty" name:"RegionType"`
// 当前生效计费类型:
// flux:流量计费
// bandwidth:带宽计费
CurrentPayType *string `json:"CurrentPayType,omitempty" name:"CurrentPayType"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePayTypeResponse ¶
func NewDescribePayTypeResponse() (response *DescribePayTypeResponse)
func (*DescribePayTypeResponse) FromJsonString ¶
func (r *DescribePayTypeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePayTypeResponse) ToJsonString ¶
func (r *DescribePayTypeResponse) ToJsonString() string
type DescribePurgeQuotaRequest ¶
type DescribePurgeQuotaRequest struct {
*tchttp.BaseRequest
}
func NewDescribePurgeQuotaRequest ¶
func NewDescribePurgeQuotaRequest() (request *DescribePurgeQuotaRequest)
func (*DescribePurgeQuotaRequest) FromJsonString ¶
func (r *DescribePurgeQuotaRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeQuotaRequest) ToJsonString ¶
func (r *DescribePurgeQuotaRequest) ToJsonString() string
type DescribePurgeQuotaResponse ¶
type DescribePurgeQuotaResponse struct {
*tchttp.BaseResponse
Response *struct {
// URL刷新用量及配额。
UrlPurge []*Quota `json:"UrlPurge,omitempty" name:"UrlPurge" list`
// 目录刷新用量及配额。
PathPurge []*Quota `json:"PathPurge,omitempty" name:"PathPurge" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePurgeQuotaResponse ¶
func NewDescribePurgeQuotaResponse() (response *DescribePurgeQuotaResponse)
func (*DescribePurgeQuotaResponse) FromJsonString ¶
func (r *DescribePurgeQuotaResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeQuotaResponse) ToJsonString ¶
func (r *DescribePurgeQuotaResponse) ToJsonString() string
type DescribePurgeTasksRequest ¶
type DescribePurgeTasksRequest struct {
*tchttp.BaseRequest
// 指定刷新类型查询
// url:url 刷新记录
// path:目录刷新记录
PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"`
// 根据时间区间查询时,填充开始时间,如 2018-08-08 00:00:00
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 根据时间区间查询时,填充结束时间,如 2018-08-08 23:59:59
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 根据任务 ID 查询时,填充任务 ID
// 查询时任务 ID 与起始时间必须填充一项
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 支持域名过滤,或 http(s):// 开头完整 URL 过滤
Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
// 指定任务状态查询
// fail:刷新失败
// done:刷新成功
// process:刷新中
Status *string `json:"Status,omitempty" name:"Status"`
// 指定刷新地域查询
// mainland:境内
// overseas:境外
// global:全球
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewDescribePurgeTasksRequest ¶
func NewDescribePurgeTasksRequest() (request *DescribePurgeTasksRequest)
func (*DescribePurgeTasksRequest) FromJsonString ¶
func (r *DescribePurgeTasksRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeTasksRequest) ToJsonString ¶
func (r *DescribePurgeTasksRequest) ToJsonString() string
type DescribePurgeTasksResponse ¶
type DescribePurgeTasksResponse struct {
*tchttp.BaseResponse
Response *struct {
// 详细刷新记录
// 注意:此字段可能返回 null,表示取不到有效值。
PurgeLogs []*PurgeTask `json:"PurgeLogs,omitempty" name:"PurgeLogs" list`
// 任务总数,用于分页
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePurgeTasksResponse ¶
func NewDescribePurgeTasksResponse() (response *DescribePurgeTasksResponse)
func (*DescribePurgeTasksResponse) FromJsonString ¶
func (r *DescribePurgeTasksResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeTasksResponse) ToJsonString ¶
func (r *DescribePurgeTasksResponse) ToJsonString() string
type DescribePushQuotaRequest ¶
type DescribePushQuotaRequest struct {
*tchttp.BaseRequest
}
func NewDescribePushQuotaRequest ¶
func NewDescribePushQuotaRequest() (request *DescribePushQuotaRequest)
func (*DescribePushQuotaRequest) FromJsonString ¶
func (r *DescribePushQuotaRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePushQuotaRequest) ToJsonString ¶
func (r *DescribePushQuotaRequest) ToJsonString() string
type DescribePushQuotaResponse ¶
type DescribePushQuotaResponse struct {
*tchttp.BaseResponse
Response *struct {
// Url预热用量及配额。
UrlPush []*Quota `json:"UrlPush,omitempty" name:"UrlPush" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePushQuotaResponse ¶
func NewDescribePushQuotaResponse() (response *DescribePushQuotaResponse)
func (*DescribePushQuotaResponse) FromJsonString ¶
func (r *DescribePushQuotaResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePushQuotaResponse) ToJsonString ¶
func (r *DescribePushQuotaResponse) ToJsonString() string
type DescribePushTasksRequest ¶
type DescribePushTasksRequest struct {
*tchttp.BaseRequest
// 开始时间,如2018-08-08 00:00:00。
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间,如2018-08-08 23:59:59。
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定任务 ID 查询
// TaskId 和起始时间必须指定一项
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 查询关键字,请输入域名或 http(s):// 开头完整 URL
Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 指定地区查询预热纪录
// mainland:境内
// overseas:境外
// global:全球
Area *string `json:"Area,omitempty" name:"Area"`
// 指定任务状态查询
// fail:预热失败
// done:预热成功
// process:预热中
Status *string `json:"Status,omitempty" name:"Status"`
}
func NewDescribePushTasksRequest ¶
func NewDescribePushTasksRequest() (request *DescribePushTasksRequest)
func (*DescribePushTasksRequest) FromJsonString ¶
func (r *DescribePushTasksRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePushTasksRequest) ToJsonString ¶
func (r *DescribePushTasksRequest) ToJsonString() string
type DescribePushTasksResponse ¶
type DescribePushTasksResponse struct {
*tchttp.BaseResponse
Response *struct {
// 预热历史记录
// 注意:此字段可能返回 null,表示取不到有效值。
PushLogs []*PushTask `json:"PushLogs,omitempty" name:"PushLogs" list`
// 任务总数,用于分页
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePushTasksResponse ¶
func NewDescribePushTasksResponse() (response *DescribePushTasksResponse)
func (*DescribePushTasksResponse) FromJsonString ¶
func (r *DescribePushTasksResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePushTasksResponse) ToJsonString ¶
func (r *DescribePushTasksResponse) ToJsonString() string
type DescribeReportDataRequest ¶
type DescribeReportDataRequest struct {
*tchttp.BaseRequest
// 查询起始时间:yyyy-MM-dd
// 当报表类型为daily,起始时间和结束时间必须为同一天
// 当报表类型为weekly,起始时间须为周一,结束时间须为同一周的周日
// 当报表类型为monthly,起始时间须为自然月第一天,即1号,结束时间须为该自然月最后一天
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间:yyyy-MM-dd
// 当报表类型为daily,起始时间和结束时间必须为同一天
// 当报表类型为weekly,起始时间须为周一,结束时间须为同一周的周日
// 当报表类型为monthly,起始时间须为自然月第一天,即1号,结束时间须为该自然月最后一天
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 报表类型
// daily:日报表
// weekly:周报表(周一至周日)
// monthly:月报表(自然月)
ReportType *string `json:"ReportType,omitempty" name:"ReportType"`
// 域名加速区域
// mainland:中国境内
// overseas:中国境外
Area *string `json:"Area,omitempty" name:"Area"`
// 偏移量,默认0。
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 数据个数,默认1000。
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 按项目ID筛选
Project *int64 `json:"Project,omitempty" name:"Project"`
}
func NewDescribeReportDataRequest ¶
func NewDescribeReportDataRequest() (request *DescribeReportDataRequest)
func (*DescribeReportDataRequest) FromJsonString ¶
func (r *DescribeReportDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeReportDataRequest) ToJsonString ¶
func (r *DescribeReportDataRequest) ToJsonString() string
type DescribeReportDataResponse ¶
type DescribeReportDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 域名维度数据详情
DomainReport []*ReportData `json:"DomainReport,omitempty" name:"DomainReport" list`
// 项目维度数据详情
ProjectReport []*ReportData `json:"ProjectReport,omitempty" name:"ProjectReport" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeReportDataResponse ¶
func NewDescribeReportDataResponse() (response *DescribeReportDataResponse)
func (*DescribeReportDataResponse) FromJsonString ¶
func (r *DescribeReportDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeReportDataResponse) ToJsonString ¶
func (r *DescribeReportDataResponse) ToJsonString() string
type DescribeScdnConfigRequest ¶
type DescribeScdnConfigRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewDescribeScdnConfigRequest ¶
func NewDescribeScdnConfigRequest() (request *DescribeScdnConfigRequest)
func (*DescribeScdnConfigRequest) FromJsonString ¶
func (r *DescribeScdnConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScdnConfigRequest) ToJsonString ¶
func (r *DescribeScdnConfigRequest) ToJsonString() string
type DescribeScdnConfigResponse ¶
type DescribeScdnConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 自定义防护策略配置
Acl *ScdnAclConfig `json:"Acl,omitempty" name:"Acl"`
// Web 攻击防护(WAF)配置
Waf *ScdnWafConfig `json:"Waf,omitempty" name:"Waf"`
// CC 防护配置
CC *ScdnConfig `json:"CC,omitempty" name:"CC"`
// DDOS 防护配置
Ddos *ScdnDdosConfig `json:"Ddos,omitempty" name:"Ddos"`
// BOT 防护配置
Bot *ScdnBotConfig `json:"Bot,omitempty" name:"Bot"`
// 当前状态,取值online | offline
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeScdnConfigResponse ¶
func NewDescribeScdnConfigResponse() (response *DescribeScdnConfigResponse)
func (*DescribeScdnConfigResponse) FromJsonString ¶
func (r *DescribeScdnConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScdnConfigResponse) ToJsonString ¶
func (r *DescribeScdnConfigResponse) ToJsonString() string
type DescribeScdnTopDataRequest ¶
type DescribeScdnTopDataRequest struct {
*tchttp.BaseRequest
// 查询起始时间,如:2018-09-04 10:40:00,返回结果大于等于指定时间
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束时间,如:2018-09-04 10:40:00,返回结果小于等于指定时间
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 查询的SCDN TOP攻击数据类型:
// waf:Web 攻击防护TOP数据
Mode *string `json:"Mode,omitempty" name:"Mode"`
// 排序对象,支持以下几种形式:
// url:攻击目标 url 排序
// ip:攻击源 IP 排序
// attackType:攻击类型排序
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 排序使用的指标名称:
// request:请求次数
Filter *string `json:"Filter,omitempty" name:"Filter"`
// 指定域名查询
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 指定攻击类型, 仅 Mode=waf 时有效
// 不填则查询所有攻击类型的数据总和
// AttackType 映射如下:
// other = '未知类型'
// malicious_scan = "恶意扫描"
// sql_inject = "SQL注入攻击"
// xss = "XSS攻击"
// cmd_inject = "命令注入攻击"
// ldap_inject = "LDAP注入攻击"
// ssi_inject = "SSI注入攻击"
// xml_inject = "XML注入攻击"
// web_service = "WEB服务漏洞攻击"
// web_app = "WEB应用漏洞攻击"
// path_traversal = "路径跨越攻击"
// illegal_access_core_file = "核心文件非法访问"
// trojan_horse = "木马后门攻击"
// csrf = "CSRF攻击"
// malicious_file_upload= '恶意文件上传'
AttackType *string `json:"AttackType,omitempty" name:"AttackType"`
// 指定防御模式,仅 Mode=waf 时有效
// 不填则查询所有防御模式的数据总和
// DefenceMode 映射如下:
// observe = '观察模式'
// intercept = '拦截模式'
DefenceMode *string `json:"DefenceMode,omitempty" name:"DefenceMode"`
}
func NewDescribeScdnTopDataRequest ¶
func NewDescribeScdnTopDataRequest() (request *DescribeScdnTopDataRequest)
func (*DescribeScdnTopDataRequest) FromJsonString ¶
func (r *DescribeScdnTopDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScdnTopDataRequest) ToJsonString ¶
func (r *DescribeScdnTopDataRequest) ToJsonString() string
type DescribeScdnTopDataResponse ¶
type DescribeScdnTopDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// WAF 攻击类型统计
// 注意:此字段可能返回 null,表示取不到有效值。
TopTypeData []*ScdnTypeData `json:"TopTypeData,omitempty" name:"TopTypeData" list`
// TOP 攻击源 IP 统计
// 注意:此字段可能返回 null,表示取不到有效值。
TopIpData []*ScdnTopData `json:"TopIpData,omitempty" name:"TopIpData" list`
// 查询的SCDN类型,当前仅支持 waf
Mode *string `json:"Mode,omitempty" name:"Mode"`
// TOP URL 统计
// 注意:此字段可能返回 null,表示取不到有效值。
TopUrlData []*ScdnTopUrlData `json:"TopUrlData,omitempty" name:"TopUrlData" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeScdnTopDataResponse ¶
func NewDescribeScdnTopDataResponse() (response *DescribeScdnTopDataResponse)
func (*DescribeScdnTopDataResponse) FromJsonString ¶
func (r *DescribeScdnTopDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScdnTopDataResponse) ToJsonString ¶
func (r *DescribeScdnTopDataResponse) ToJsonString() string
type DescribeTrafficPackagesRequest ¶
type DescribeTrafficPackagesRequest struct {
*tchttp.BaseRequest
// 分页查询起始地址,默认 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询记录个数,默认100,最大1000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}
func NewDescribeTrafficPackagesRequest ¶
func NewDescribeTrafficPackagesRequest() (request *DescribeTrafficPackagesRequest)
func (*DescribeTrafficPackagesRequest) FromJsonString ¶
func (r *DescribeTrafficPackagesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTrafficPackagesRequest) ToJsonString ¶
func (r *DescribeTrafficPackagesRequest) ToJsonString() string
type DescribeTrafficPackagesResponse ¶
type DescribeTrafficPackagesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 流量包总个数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 流量包详情
TrafficPackages []*TrafficPackage `json:"TrafficPackages,omitempty" name:"TrafficPackages" list`
// 即将过期的流量包个数(7天内)
ExpiringCount *int64 `json:"ExpiringCount,omitempty" name:"ExpiringCount"`
// 有效流量包个数
EnabledCount *int64 `json:"EnabledCount,omitempty" name:"EnabledCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeTrafficPackagesResponse ¶
func NewDescribeTrafficPackagesResponse() (response *DescribeTrafficPackagesResponse)
func (*DescribeTrafficPackagesResponse) FromJsonString ¶
func (r *DescribeTrafficPackagesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTrafficPackagesResponse) ToJsonString ¶
func (r *DescribeTrafficPackagesResponse) ToJsonString() string
type DescribeUrlViolationsRequest ¶
type DescribeUrlViolationsRequest struct {
*tchttp.BaseRequest
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为 100
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 指定的域名查询
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
}
func NewDescribeUrlViolationsRequest ¶
func NewDescribeUrlViolationsRequest() (request *DescribeUrlViolationsRequest)
func (*DescribeUrlViolationsRequest) FromJsonString ¶
func (r *DescribeUrlViolationsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUrlViolationsRequest) ToJsonString ¶
func (r *DescribeUrlViolationsRequest) ToJsonString() string
type DescribeUrlViolationsResponse ¶
type DescribeUrlViolationsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 违规 URL 详情
// 注意:此字段可能返回 null,表示取不到有效值。
UrlRecordList []*ViolationUrl `json:"UrlRecordList,omitempty" name:"UrlRecordList" list`
// 记录总数,用于分页
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeUrlViolationsResponse ¶
func NewDescribeUrlViolationsResponse() (response *DescribeUrlViolationsResponse)
func (*DescribeUrlViolationsResponse) FromJsonString ¶
func (r *DescribeUrlViolationsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUrlViolationsResponse) ToJsonString ¶
func (r *DescribeUrlViolationsResponse) ToJsonString() string
type DetailDomain ¶
type DetailDomain struct {
// 域名 ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 腾讯云账号ID
AppId *int64 `json:"AppId,omitempty" name:"AppId"`
// 加速域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 域名对应的 CNAME 地址
// 注意:此字段可能返回 null,表示取不到有效值。
Cname *string `json:"Cname,omitempty" name:"Cname"`
// 加速服务状态
// rejected:域名审核未通过,域名备案过期/被注销导致
// processing:部署中
// online:已启动
// offline:已关闭
Status *string `json:"Status,omitempty" name:"Status"`
// 项目 ID,可前往腾讯云项目管理页面查看
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 域名业务类型
// web:静态加速
// download:下载加速
// media:流媒体点播加速
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 域名创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 域名更新时间
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// 源站配置
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// IP 黑白名单配置
// 注意:此字段可能返回 null,表示取不到有效值。
IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"`
// IP 访问限频配置
// 注意:此字段可能返回 null,表示取不到有效值。
IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"`
// 状态码缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"`
// 智能压缩配置
// 注意:此字段可能返回 null,表示取不到有效值。
Compression *Compression `json:"Compression,omitempty" name:"Compression"`
// 带宽封顶配置
// 注意:此字段可能返回 null,表示取不到有效值。
BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"`
// Range 回源配置
// 注意:此字段可能返回 null,表示取不到有效值。
RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"`
// 301/302 回源自动跟随配置
// 注意:此字段可能返回 null,表示取不到有效值。
FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"`
// 自定义错误页面配置(功能灰度中,敬请期待)
// 注意:此字段可能返回 null,表示取不到有效值。
ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// 自定义请求头部配置
// 注意:此字段可能返回 null,表示取不到有效值。
RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"`
// 自定义响应头部配置
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"`
// 单链接下行限速配置
// 注意:此字段可能返回 null,表示取不到有效值。
DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"`
// 带参/不带参缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"`
// 源站头部缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"`
// 视频拖拽配置
// 注意:此字段可能返回 null,表示取不到有效值。
VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"`
// 节点缓存过期规则配置
// 注意:此字段可能返回 null,表示取不到有效值。
Cache *Cache `json:"Cache,omitempty" name:"Cache"`
// 跨国链路优化配置(功能灰度中,敬请期待)
// 注意:此字段可能返回 null,表示取不到有效值。
OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"`
// Https 加速相关配置
// 注意:此字段可能返回 null,表示取不到有效值。
Https *Https `json:"Https,omitempty" name:"Https"`
// 时间戳防盗链配置
// 注意:此字段可能返回 null,表示取不到有效值。
Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"`
// SEO 优化配置
// 注意:此字段可能返回 null,表示取不到有效值。
Seo *Seo `json:"Seo,omitempty" name:"Seo"`
// 域名封禁状态
// normal:正常状态
// overdue:账号欠费导致域名关闭,充值完成后可自行启动加速服务
// malicious:域名出现恶意行为,强制关闭加速服务
// ddos:域名被大规模 DDoS 攻击,关闭加速服务
// idle:域名超过 90 天内无任何操作、数据产生,判定为不活跃域名自动关闭加速服务,可自行启动加速服务
// unlicensed:域名未备案/备案注销,自动关闭加速服务,备案完成后可自行启动加速服务
// capping:触发配置的带宽阈值上限
// readonly:域名存在特殊配置,被锁定
// 注意:此字段可能返回 null,表示取不到有效值。
Disable *string `json:"Disable,omitempty" name:"Disable"`
// 访问协议强制跳转配置
// 注意:此字段可能返回 null,表示取不到有效值。
ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"`
// Referer 防盗链配置
// 注意:此字段可能返回 null,表示取不到有效值。
Referer *Referer `json:"Referer,omitempty" name:"Referer"`
// 浏览器缓存过期规则配置(功能灰度中,敬请期待)
// 注意:此字段可能返回 null,表示取不到有效值。
MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"`
// Ipv6 回源配置(功能灰度中,敬请期待)
// 注意:此字段可能返回 null,表示取不到有效值。
Ipv6 *Ipv6 `json:"Ipv6,omitempty" name:"Ipv6"`
// 是否兼容旧版本配置(内部兼容性字段)
// 注意:此字段可能返回 null,表示取不到有效值。
Compatibility *Compatibility `json:"Compatibility,omitempty" name:"Compatibility"`
// 区域特殊配置
// 注意:此字段可能返回 null,表示取不到有效值。
SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"`
// 加速区域
// mainland:中国境内加速
// overseas:中国境外加速
// global:全球加速
// 注意:此字段可能返回 null,表示取不到有效值。
Area *string `json:"Area,omitempty" name:"Area"`
// 域名锁定状态
// normal:未锁定
// mainland:中国境内锁定
// overseas:中国境外锁定
// global:全球锁定
// 注意:此字段可能返回 null,表示取不到有效值。
Readonly *string `json:"Readonly,omitempty" name:"Readonly"`
// 回源超时配置
// 注意:此字段可能返回 null,表示取不到有效值。
OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"`
// 回源S3鉴权配置
// 注意:此字段可能返回 null,表示取不到有效值。
AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"`
// Scdn配置
// 注意:此字段可能返回 null,表示取不到有效值。
SecurityConfig *SecurityConfig `json:"SecurityConfig,omitempty" name:"SecurityConfig"`
// ImageOptimization配置
// 注意:此字段可能返回 null,表示取不到有效值。
ImageOptimization *ImageOptimization `json:"ImageOptimization,omitempty" name:"ImageOptimization"`
// UA黑白名单配置
// 注意:此字段可能返回 null,表示取不到有效值。
UserAgentFilter *UserAgentFilter `json:"UserAgentFilter,omitempty" name:"UserAgentFilter"`
// 访问控制
// 注意:此字段可能返回 null,表示取不到有效值。
AccessControl *AccessControl `json:"AccessControl,omitempty" name:"AccessControl"`
// 是否支持高级配置项
// on:支持
// off:不支持
// 注意:此字段可能返回 null,表示取不到有效值。
Advance *string `json:"Advance,omitempty" name:"Advance"`
// URL重定向配置
// 注意:此字段可能返回 null,表示取不到有效值。
UrlRedirect *UrlRedirect `json:"UrlRedirect,omitempty" name:"UrlRedirect"`
// 访问端口配置
// 注意:此字段可能返回 null,表示取不到有效值。
AccessPort []*int64 `json:"AccessPort,omitempty" name:"AccessPort" list`
// 标签配置
// 注意:此字段可能返回 null,表示取不到有效值。
Tag []*Tag `json:"Tag,omitempty" name:"Tag" list`
// 时间戳防盗链高级配置,白名单功能
// 注意:此字段可能返回 null,表示取不到有效值。
AdvancedAuthentication *AdvancedAuthentication `json:"AdvancedAuthentication,omitempty" name:"AdvancedAuthentication"`
// 回源鉴权高级配置,白名单功能
// 注意:此字段可能返回 null,表示取不到有效值。
OriginAuthentication *OriginAuthentication `json:"OriginAuthentication,omitempty" name:"OriginAuthentication"`
// Ipv6访问配置
// 注意:此字段可能返回 null,表示取不到有效值。
Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"`
// 高级配置集合。
// 注意:此字段可能返回 null,表示取不到有效值。
AdvanceSet []*AdvanceConfig `json:"AdvanceSet,omitempty" name:"AdvanceSet" list`
// 离线缓存
// 注意:此字段可能返回 null,表示取不到有效值。
OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"`
// 合并回源
// 注意:此字段可能返回 null,表示取不到有效值。
OriginCombine *OriginCombine `json:"OriginCombine,omitempty" name:"OriginCombine"`
// POST上传配置项
// 注意:此字段可能返回 null,表示取不到有效值。
PostMaxSize *PostSize `json:"PostMaxSize,omitempty" name:"PostMaxSize"`
// Quic配置
// 注意:此字段可能返回 null,表示取不到有效值。
Quic *Quic `json:"Quic,omitempty" name:"Quic"`
}
type DiagnoseData ¶
type DiagnoseData struct {
// 诊断报告内容
// 注意:此字段可能返回 null,表示取不到有效值。
Data []*DiagnoseUnit `json:"Data,omitempty" name:"Data" list`
// 当前诊断项是否正常。
// "ok":正常
// "error":异常
// "warning":"警告"
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitempty" name:"Status"`
}
type DiagnoseInfo ¶
type DiagnoseInfo struct {
// 待诊断的URL。
// 注意:此字段可能返回 null,表示取不到有效值。
DiagnoseUrl *string `json:"DiagnoseUrl,omitempty" name:"DiagnoseUrl"`
// 由系统生成的诊断链接。
// 注意:此字段可能返回 null,表示取不到有效值。
DiagnoseLink *string `json:"DiagnoseLink,omitempty" name:"DiagnoseLink"`
// 诊断创建时间。
// 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 诊断链接过期时间。
// 注意:此字段可能返回 null,表示取不到有效值。
ExpireDate *string `json:"ExpireDate,omitempty" name:"ExpireDate"`
// 诊断链接当前访问次数,一个诊断链接最多可访问10次。
// 注意:此字段可能返回 null,表示取不到有效值。
VisitCount *int64 `json:"VisitCount,omitempty" name:"VisitCount"`
// 访问诊断链接的客户端简易信息
// 注意:此字段可能返回 null,表示取不到有效值。
ClientList []*DiagnoseList `json:"ClientList,omitempty" name:"ClientList" list`
// 域名加速区域
// 注意:此字段可能返回 null,表示取不到有效值。
Area *string `json:"Area,omitempty" name:"Area"`
}
type DiagnoseList ¶
type DiagnoseList struct {
// 诊断任务标签。
// 注意:此字段可能返回 null,表示取不到有效值。
DiagnoseTag *string `json:"DiagnoseTag,omitempty" name:"DiagnoseTag"`
// 报告ID,用于获取详细诊断报告。
// 注意:此字段可能返回 null,表示取不到有效值。
ReportId *string `json:"ReportId,omitempty" name:"ReportId"`
// 客户端信息。
// 注意:此字段可能返回 null,表示取不到有效值。
ClientInfo []*ClientInfo `json:"ClientInfo,omitempty" name:"ClientInfo" list`
// 最终诊断结果。
// -1:已提交
// 0 :检测中
// 1 :检测正常
// 2 : 检测异常
// 3 : 诊断页面异常关闭
// 注意:此字段可能返回 null,表示取不到有效值。
FinalDiagnose *int64 `json:"FinalDiagnose,omitempty" name:"FinalDiagnose"`
// 诊断任务创建时间。
// 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type DiagnoseUnit ¶
type DiagnoseUnit struct {
// 内容单元英文名称。
// 注意:此字段可能返回 null,表示取不到有效值。
Key *string `json:"Key,omitempty" name:"Key"`
// 内容单元中文名称。
// 注意:此字段可能返回 null,表示取不到有效值。
KeyText *string `json:"KeyText,omitempty" name:"KeyText"`
// 报告内容。
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitempty" name:"Value"`
// 报告内容。
// 注意:此字段可能返回 null,表示取不到有效值。
ValueText *string `json:"ValueText,omitempty" name:"ValueText"`
}
type DisableCachesRequest ¶
type DisableCachesRequest struct {
*tchttp.BaseRequest
// 禁用的 URL 列表(分协议生效,必须包含http://或https://)
// 每次最多可提交 100 条,每日最多可提交 3000 条
Urls []*string `json:"Urls,omitempty" name:"Urls" list`
}
func NewDisableCachesRequest ¶
func NewDisableCachesRequest() (request *DisableCachesRequest)
func (*DisableCachesRequest) FromJsonString ¶
func (r *DisableCachesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableCachesRequest) ToJsonString ¶
func (r *DisableCachesRequest) ToJsonString() string
type DisableCachesResponse ¶
type DisableCachesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 提交结果
// 注意:此字段可能返回 null,表示取不到有效值。
CacheOptResult *CacheOptResult `json:"CacheOptResult,omitempty" name:"CacheOptResult"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDisableCachesResponse ¶
func NewDisableCachesResponse() (response *DisableCachesResponse)
func (*DisableCachesResponse) FromJsonString ¶
func (r *DisableCachesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableCachesResponse) ToJsonString ¶
func (r *DisableCachesResponse) ToJsonString() string
type DisableClsLogTopicRequest ¶
type DisableClsLogTopicRequest struct {
*tchttp.BaseRequest
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
}
func NewDisableClsLogTopicRequest ¶
func NewDisableClsLogTopicRequest() (request *DisableClsLogTopicRequest)
func (*DisableClsLogTopicRequest) FromJsonString ¶
func (r *DisableClsLogTopicRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableClsLogTopicRequest) ToJsonString ¶
func (r *DisableClsLogTopicRequest) ToJsonString() string
type DisableClsLogTopicResponse ¶
type DisableClsLogTopicResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDisableClsLogTopicResponse ¶
func NewDisableClsLogTopicResponse() (response *DisableClsLogTopicResponse)
func (*DisableClsLogTopicResponse) FromJsonString ¶
func (r *DisableClsLogTopicResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableClsLogTopicResponse) ToJsonString ¶
func (r *DisableClsLogTopicResponse) ToJsonString() string
type DistrictIspInfo ¶
type DistrictIspInfo struct {
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 协议类型
Protocol *string `json:"Protocol,omitempty" name:"Protocol"`
// IP协议类型
IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"`
// 起始时间
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 时间间隔,单位为分钟
Interval *uint64 `json:"Interval,omitempty" name:"Interval"`
// 指标名称
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 地区ID
District *int64 `json:"District,omitempty" name:"District"`
// 运营商ID
Isp *int64 `json:"Isp,omitempty" name:"Isp"`
// 指标数据点
DataPoints []*uint64 `json:"DataPoints,omitempty" name:"DataPoints" list`
// 地区名称
DistrictName *string `json:"DistrictName,omitempty" name:"DistrictName"`
// 运营商名称
IspName *string `json:"IspName,omitempty" name:"IspName"`
}
type DomainAreaConfig ¶
type DomainFilter ¶
type DomainFilter struct {
// 过滤字段名,支持的列表如下:
// - origin:主源站。
// - domain:域名。
// - resourceId:域名id。
// - status:域名状态,online,offline或processing。
// - serviceType:业务类型,web,download或media。
// - projectId:项目ID。
// - domainType:主源站类型,cname表示自有源,cos表示cos接入。
// - fullUrlCache:全路径缓存,on或off。
// - https:是否配置https,on,off或processing。
// - originPullProtocol:回源协议类型,支持http,follow或https。
// - tagKey:标签键。
Name *string `json:"Name,omitempty" name:"Name"`
// 过滤字段值。
Value []*string `json:"Value,omitempty" name:"Value" list`
// 是否启用模糊查询,仅支持过滤字段名为origin,domain。
// 模糊查询时,Value长度最大为1,否则Value长度最大为5。
Fuzzy *bool `json:"Fuzzy,omitempty" name:"Fuzzy"`
}
type DomainLog ¶
type DomainLog struct {
// 日志包起始时间
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 日志包结束时间
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 日志包下载链接
LogPath *string `json:"LogPath,omitempty" name:"LogPath"`
// 日志包对应加速区域
// mainland:境内
// overseas:境外
Area *string `json:"Area,omitempty" name:"Area"`
// 日志包文件名
LogName *string `json:"LogName,omitempty" name:"LogName"`
}
type DownstreamCapping ¶
type DownstreamCapping struct {
// 下行速度配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 下行限速规则
// 注意:此字段可能返回 null,表示取不到有效值。
CappingRules []*CappingRule `json:"CappingRules,omitempty" name:"CappingRules" list`
}
type DuplicateDomainConfigRequest ¶
type DuplicateDomainConfigRequest struct {
*tchttp.BaseRequest
// 新增域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 被拷贝配置的域名
ReferenceDomain *string `json:"ReferenceDomain,omitempty" name:"ReferenceDomain"`
}
func NewDuplicateDomainConfigRequest ¶
func NewDuplicateDomainConfigRequest() (request *DuplicateDomainConfigRequest)
func (*DuplicateDomainConfigRequest) FromJsonString ¶
func (r *DuplicateDomainConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DuplicateDomainConfigRequest) ToJsonString ¶
func (r *DuplicateDomainConfigRequest) ToJsonString() string
type DuplicateDomainConfigResponse ¶
type DuplicateDomainConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDuplicateDomainConfigResponse ¶
func NewDuplicateDomainConfigResponse() (response *DuplicateDomainConfigResponse)
func (*DuplicateDomainConfigResponse) FromJsonString ¶
func (r *DuplicateDomainConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DuplicateDomainConfigResponse) ToJsonString ¶
func (r *DuplicateDomainConfigResponse) ToJsonString() string
type EnableCachesRequest ¶
type EnableCachesRequest struct {
*tchttp.BaseRequest
// 解封 URL 列表
Urls []*string `json:"Urls,omitempty" name:"Urls" list`
}
func NewEnableCachesRequest ¶
func NewEnableCachesRequest() (request *EnableCachesRequest)
func (*EnableCachesRequest) FromJsonString ¶
func (r *EnableCachesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableCachesRequest) ToJsonString ¶
func (r *EnableCachesRequest) ToJsonString() string
type EnableCachesResponse ¶
type EnableCachesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 结果列表
// 注意:此字段可能返回 null,表示取不到有效值。
CacheOptResult *CacheOptResult `json:"CacheOptResult,omitempty" name:"CacheOptResult"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewEnableCachesResponse ¶
func NewEnableCachesResponse() (response *EnableCachesResponse)
func (*EnableCachesResponse) FromJsonString ¶
func (r *EnableCachesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableCachesResponse) ToJsonString ¶
func (r *EnableCachesResponse) ToJsonString() string
type EnableClsLogTopicRequest ¶
type EnableClsLogTopicRequest struct {
*tchttp.BaseRequest
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
}
func NewEnableClsLogTopicRequest ¶
func NewEnableClsLogTopicRequest() (request *EnableClsLogTopicRequest)
func (*EnableClsLogTopicRequest) FromJsonString ¶
func (r *EnableClsLogTopicRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableClsLogTopicRequest) ToJsonString ¶
func (r *EnableClsLogTopicRequest) ToJsonString() string
type EnableClsLogTopicResponse ¶
type EnableClsLogTopicResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewEnableClsLogTopicResponse ¶
func NewEnableClsLogTopicResponse() (response *EnableClsLogTopicResponse)
func (*EnableClsLogTopicResponse) FromJsonString ¶
func (r *EnableClsLogTopicResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableClsLogTopicResponse) ToJsonString ¶
func (r *EnableClsLogTopicResponse) ToJsonString() string
type ErrorPage ¶
type ErrorPage struct {
// 状态码重定向配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 状态码重定向规则配置
// 注意:此字段可能返回 null,表示取不到有效值。
PageRules []*ErrorPageRule `json:"PageRules,omitempty" name:"PageRules" list`
}
type ErrorPageRule ¶
type ErrorPageRule struct {
// 状态码
// 支持 400、403、404、500
StatusCode *int64 `json:"StatusCode,omitempty" name:"StatusCode"`
// 重定向状态码设置
// 支持 301 或 302
RedirectCode *int64 `json:"RedirectCode,omitempty" name:"RedirectCode"`
// 重定向 URL
// 需要为完整跳转路径,如 https://www.test.com/error.html
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
}
type FollowRedirect ¶
type FollowRedirect struct {
// 回源跟随开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type ForceRedirect ¶
type ForceRedirect struct {
// 访问强制跳转配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 访问强制跳转类型
// http:强制 http 跳转
// https:强制 https 跳转
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectType *string `json:"RedirectType,omitempty" name:"RedirectType"`
// 强制跳转时返回状态码
// 支持 301、302
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectStatusCode *int64 `json:"RedirectStatusCode,omitempty" name:"RedirectStatusCode"`
// 强制跳转时是否返回增加的头部。
// 注意:此字段可能返回 null,表示取不到有效值。
CarryHeaders *string `json:"CarryHeaders,omitempty" name:"CarryHeaders"`
}
type GetDisableRecordsRequest ¶
type GetDisableRecordsRequest struct {
*tchttp.BaseRequest
// 开始时间,如:2018-12-12 10:24:00。
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 结束时间,如:2018-12-14 10:24:00。
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 指定 URL 查询
Url *string `json:"Url,omitempty" name:"Url"`
// URL 当前状态
// disable:当前仍为禁用状态,访问返回 403
// enable:当前为可用状态,已解禁,可正常访问
Status *string `json:"Status,omitempty" name:"Status"`
// 分页查询偏移量,默认为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 分页查询限制数目,默认为20。
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}
func NewGetDisableRecordsRequest ¶
func NewGetDisableRecordsRequest() (request *GetDisableRecordsRequest)
func (*GetDisableRecordsRequest) FromJsonString ¶
func (r *GetDisableRecordsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDisableRecordsRequest) ToJsonString ¶
func (r *GetDisableRecordsRequest) ToJsonString() string
type GetDisableRecordsResponse ¶
type GetDisableRecordsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 封禁历史记录
// 注意:此字段可能返回 null,表示取不到有效值。
UrlRecordList []*UrlRecord `json:"UrlRecordList,omitempty" name:"UrlRecordList" list`
// 任务总数,用于分页
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDisableRecordsResponse ¶
func NewGetDisableRecordsResponse() (response *GetDisableRecordsResponse)
func (*GetDisableRecordsResponse) FromJsonString ¶
func (r *GetDisableRecordsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDisableRecordsResponse) ToJsonString ¶
func (r *GetDisableRecordsResponse) ToJsonString() string
type GuetzliAdapter ¶
type GuetzliAdapter struct {
// 开关,"on/off"
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Hsts ¶
type Hsts struct {
// 是否开启,on或off。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// MaxAge数值。
// 注意:此字段可能返回 null,表示取不到有效值。
MaxAge *int64 `json:"MaxAge,omitempty" name:"MaxAge"`
// 是否包含子域名,on或off。
// 注意:此字段可能返回 null,表示取不到有效值。
IncludeSubDomains *string `json:"IncludeSubDomains,omitempty" name:"IncludeSubDomains"`
}
type HttpHeaderPathRule ¶
type HttpHeaderPathRule struct {
// http 头部设置方式
// set:设置。变更指定头部参数的取值为设置后的值;若设置的头部不存在,则会增加该头部;若存在多个重复的头部参数,则会全部变更,同时合并为一个头部。
// del:删除。删除指定的头部参数
// add:增加。增加指定的头部参数,默认允许重复添加,即重复添加相同的头部(注:重复添加可能会影响浏览器响应,请优先使用set操作)
// 注意:此字段可能返回 null,表示取不到有效值。
HeaderMode *string `json:"HeaderMode,omitempty" name:"HeaderMode"`
// http 头部名称,最多可设置 100 个字符
// 注意:此字段可能返回 null,表示取不到有效值。
HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"`
// http 头部值,最多可设置 1000 个字符
// Mode 为 del 时非必填
// Mode 为 add/set 时必填
// 注意:此字段可能返回 null,表示取不到有效值。
HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"`
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// RuleType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
// 注意:此字段可能返回 null,表示取不到有效值。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
}
type HttpHeaderRule ¶
type HttpHeaderRule struct {
// http头部设置方式,支持add,set或del,分别表示新增,设置或删除头部。
HeaderMode *string `json:"HeaderMode,omitempty" name:"HeaderMode"`
// http头部名称。
HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"`
// http头部值。
HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"`
}
type Https ¶
type Https struct {
// https 配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// http2 配置开关
// on:开启
// off:关闭
// 初次启用 https 加速会默认开启 http2 配置
// 注意:此字段可能返回 null,表示取不到有效值。
Http2 *string `json:"Http2,omitempty" name:"Http2"`
// OCSP 配置开关
// on:开启
// off:关闭
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
OcspStapling *string `json:"OcspStapling,omitempty" name:"OcspStapling"`
// 客户端证书校验功能
// on:开启
// off:关闭
// 默认为关闭状态,开启时需要上传客户端证书信息,该配置项目前在灰度中,尚未全量
// 注意:此字段可能返回 null,表示取不到有效值。
VerifyClient *string `json:"VerifyClient,omitempty" name:"VerifyClient"`
// 服务端证书配置信息
// 注意:此字段可能返回 null,表示取不到有效值。
CertInfo *ServerCert `json:"CertInfo,omitempty" name:"CertInfo"`
// 客户端证书配置信息
// 注意:此字段可能返回 null,表示取不到有效值。
ClientCertInfo *ClientCert `json:"ClientCertInfo,omitempty" name:"ClientCertInfo"`
// Spdy 配置开关
// on:开启
// off:关闭
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
Spdy *string `json:"Spdy,omitempty" name:"Spdy"`
// https 证书部署状态
// closed:已关闭
// deploying:部署中
// deployed:部署成功
// failed:部署失败
// 注意:此字段可能返回 null,表示取不到有效值。
SslStatus *string `json:"SslStatus,omitempty" name:"SslStatus"`
// Hsts配置
// 注意:此字段可能返回 null,表示取不到有效值。
Hsts *Hsts `json:"Hsts,omitempty" name:"Hsts"`
// Tls版本设置,仅支持部分Advance域名,支持设置 TLSv1, TLSV1.1, TLSV1.2, TLSv1.3,修改时必须开启连续的版本
// 注意:此字段可能返回 null,表示取不到有效值。
TlsVersion []*string `json:"TlsVersion,omitempty" name:"TlsVersion" list`
}
type ImageOptimization ¶
type ImageOptimization struct {
// WebpAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
WebpAdapter *WebpAdapter `json:"WebpAdapter,omitempty" name:"WebpAdapter"`
// TpgAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
TpgAdapter *TpgAdapter `json:"TpgAdapter,omitempty" name:"TpgAdapter"`
// GuetzliAdapter配置
// 注意:此字段可能返回 null,表示取不到有效值。
GuetzliAdapter *GuetzliAdapter `json:"GuetzliAdapter,omitempty" name:"GuetzliAdapter"`
}
type IpFilter ¶
type IpFilter struct {
// IP 黑白名单配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// IP 黑白名单类型
// whitelist:白名单
// blacklist:黑名单
// 注意:此字段可能返回 null,表示取不到有效值。
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
// IP 黑白名单列表
// 支持 X.X.X.X 形式 IP,或 /8、 /16、/24 形式网段
// 最多可填充 50 个白名单或 50 个黑名单
// 注意:此字段可能返回 null,表示取不到有效值。
Filters []*string `json:"Filters,omitempty" name:"Filters" list`
// IP 黑白名单分路径配置,白名单功能
// 注意:此字段可能返回 null,表示取不到有效值。
FilterRules []*IpFilterPathRule `json:"FilterRules,omitempty" name:"FilterRules" list`
}
type IpFilterPathRule ¶
type IpFilterPathRule struct {
// IP 黑白名单类型
// whitelist:白名单
// blacklist:黑名单
// 注意:此字段可能返回 null,表示取不到有效值。
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
// IP 黑白名单列表
// 支持 X.X.X.X 形式 IP,或 /8、 /16、/24 形式网段
// 最多可填充 50 个白名单或 50 个黑名单
// 注意:此字段可能返回 null,表示取不到有效值。
Filters []*string `json:"Filters,omitempty" name:"Filters" list`
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// RuleType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
// 注意:此字段可能返回 null,表示取不到有效值。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
}
type IpFreqLimit ¶
type IpStatus ¶
type IpStatus struct {
// 节点 IP
Ip *string `json:"Ip,omitempty" name:"Ip"`
// 节点所属区域
District *string `json:"District,omitempty" name:"District"`
// 节点所属运营商
Isp *string `json:"Isp,omitempty" name:"Isp"`
// 节点所在城市
City *string `json:"City,omitempty" name:"City"`
// 节点状态
// online:上线状态,正常调度服务中
// offline:下线状态
Status *string `json:"Status,omitempty" name:"Status"`
}
type Ipv6 ¶
type Ipv6 struct {
// 域名是否开启ipv6功能,on或off。
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Ipv6Access ¶
type Ipv6Access struct {
// 域名是否开启ipv6访问功能,on或off。
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type KeyRule ¶
type KeyRule struct {
// CacheType 对应类型下的匹配内容:
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test
// path 时填充绝对路径,如 /xxx/test.html
// index 时填充 /
// 注意:此字段可能返回 null,表示取不到有效值。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// 规则类型:
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index:首页
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 是否开启全路径缓存
// on:开启全路径缓存(即关闭参数过滤)
// off:关闭全路径缓存(即开启参数过滤)
// 注意:此字段可能返回 null,表示取不到有效值。
FullUrlCache *string `json:"FullUrlCache,omitempty" name:"FullUrlCache"`
// 是否忽略大小写缓存
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreCase *string `json:"IgnoreCase,omitempty" name:"IgnoreCase"`
// CacheKey中包含请求参数
// 注意:此字段可能返回 null,表示取不到有效值。
QueryString *RuleQueryString `json:"QueryString,omitempty" name:"QueryString"`
// 路径缓存键标签,传 user
// 注意:此字段可能返回 null,表示取不到有效值。
RuleTag *string `json:"RuleTag,omitempty" name:"RuleTag"`
}
type ListClsLogTopicsRequest ¶
type ListClsLogTopicsRequest struct {
*tchttp.BaseRequest
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
}
func NewListClsLogTopicsRequest ¶
func NewListClsLogTopicsRequest() (request *ListClsLogTopicsRequest)
func (*ListClsLogTopicsRequest) FromJsonString ¶
func (r *ListClsLogTopicsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListClsLogTopicsRequest) ToJsonString ¶
func (r *ListClsLogTopicsRequest) ToJsonString() string
type ListClsLogTopicsResponse ¶
type ListClsLogTopicsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 日志集信息
Logset *LogSetInfo `json:"Logset,omitempty" name:"Logset"`
// 日志主题信息列表
// 注意:此字段可能返回 null,表示取不到有效值。
Topics []*TopicInfo `json:"Topics,omitempty" name:"Topics" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListClsLogTopicsResponse ¶
func NewListClsLogTopicsResponse() (response *ListClsLogTopicsResponse)
func (*ListClsLogTopicsResponse) FromJsonString ¶
func (r *ListClsLogTopicsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListClsLogTopicsResponse) ToJsonString ¶
func (r *ListClsLogTopicsResponse) ToJsonString() string
type ListClsTopicDomainsRequest ¶
type ListClsTopicDomainsRequest struct {
*tchttp.BaseRequest
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
}
func NewListClsTopicDomainsRequest ¶
func NewListClsTopicDomainsRequest() (request *ListClsTopicDomainsRequest)
func (*ListClsTopicDomainsRequest) FromJsonString ¶
func (r *ListClsTopicDomainsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListClsTopicDomainsRequest) ToJsonString ¶
func (r *ListClsTopicDomainsRequest) ToJsonString() string
type ListClsTopicDomainsResponse ¶
type ListClsTopicDomainsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 开发者ID
AppId *uint64 `json:"AppId,omitempty" name:"AppId"`
// 渠道
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 域名区域配置,其中可能含有已删除的域名,如果要再传回ManageClsTopicDomains接口,需要结合ListCdnDomains接口排除掉已删除的域名
DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs" list`
// 日志主题名称
TopicName *string `json:"TopicName,omitempty" name:"TopicName"`
// 日志主题最近更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListClsTopicDomainsResponse ¶
func NewListClsTopicDomainsResponse() (response *ListClsTopicDomainsResponse)
func (*ListClsTopicDomainsResponse) FromJsonString ¶
func (r *ListClsTopicDomainsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListClsTopicDomainsResponse) ToJsonString ¶
func (r *ListClsTopicDomainsResponse) ToJsonString() string
type ListDiagnoseReportRequest ¶
type ListDiagnoseReportRequest struct {
*tchttp.BaseRequest
// 用于搜索诊断URL的关键字,不填时返回用户所有的诊断任务。
KeyWords *string `json:"KeyWords,omitempty" name:"KeyWords"`
// 用于搜索诊断系统返回的诊断链接,形如:http://cdn.cloud.tencent.com/self_diagnose/xxxxx
DiagnoseLink *string `json:"DiagnoseLink,omitempty" name:"DiagnoseLink"`
}
func NewListDiagnoseReportRequest ¶
func NewListDiagnoseReportRequest() (request *ListDiagnoseReportRequest)
func (*ListDiagnoseReportRequest) FromJsonString ¶
func (r *ListDiagnoseReportRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListDiagnoseReportRequest) ToJsonString ¶
func (r *ListDiagnoseReportRequest) ToJsonString() string
type ListDiagnoseReportResponse ¶
type ListDiagnoseReportResponse struct {
*tchttp.BaseResponse
Response *struct {
// 诊断信息。
Data []*DiagnoseInfo `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListDiagnoseReportResponse ¶
func NewListDiagnoseReportResponse() (response *ListDiagnoseReportResponse)
func (*ListDiagnoseReportResponse) FromJsonString ¶
func (r *ListDiagnoseReportResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListDiagnoseReportResponse) ToJsonString ¶
func (r *ListDiagnoseReportResponse) ToJsonString() string
type ListScdnDomainsRequest ¶
type ListScdnDomainsRequest struct {
*tchttp.BaseRequest
// 分页起始地址
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 列表分页记录条数,最大1000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 域名信息
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewListScdnDomainsRequest ¶
func NewListScdnDomainsRequest() (request *ListScdnDomainsRequest)
func (*ListScdnDomainsRequest) FromJsonString ¶
func (r *ListScdnDomainsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListScdnDomainsRequest) ToJsonString ¶
func (r *ListScdnDomainsRequest) ToJsonString() string
type ListScdnDomainsResponse ¶
type ListScdnDomainsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 域名列表信息
// 注意:此字段可能返回 null,表示取不到有效值。
DomainList []*ScdnDomain `json:"DomainList,omitempty" name:"DomainList" list`
// 域名的总条数。
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListScdnDomainsResponse ¶
func NewListScdnDomainsResponse() (response *ListScdnDomainsResponse)
func (*ListScdnDomainsResponse) FromJsonString ¶
func (r *ListScdnDomainsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListScdnDomainsResponse) ToJsonString ¶
func (r *ListScdnDomainsResponse) ToJsonString() string
type ListScdnLogTasksRequest ¶
type ListScdnLogTasksRequest struct {
*tchttp.BaseRequest
// 产品来源 cdn/ecdn
Source *string `json:"Source,omitempty" name:"Source"`
// 地域:mainland 或 overseas 为空表示查询所有地域
Area *string `json:"Area,omitempty" name:"Area"`
}
func NewListScdnLogTasksRequest ¶
func NewListScdnLogTasksRequest() (request *ListScdnLogTasksRequest)
func (*ListScdnLogTasksRequest) FromJsonString ¶
func (r *ListScdnLogTasksRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListScdnLogTasksRequest) ToJsonString ¶
func (r *ListScdnLogTasksRequest) ToJsonString() string
type ListScdnLogTasksResponse ¶
type ListScdnLogTasksResponse struct {
*tchttp.BaseResponse
Response *struct {
// 日志下载任务详情
TaskList []*ScdnLogTaskDetail `json:"TaskList,omitempty" name:"TaskList" list`
// 查询到的下载任务的总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListScdnLogTasksResponse ¶
func NewListScdnLogTasksResponse() (response *ListScdnLogTasksResponse)
func (*ListScdnLogTasksResponse) FromJsonString ¶
func (r *ListScdnLogTasksResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListScdnLogTasksResponse) ToJsonString ¶
func (r *ListScdnLogTasksResponse) ToJsonString() string
type ListTopDataRequest ¶
type ListTopDataRequest struct {
*tchttp.BaseRequest
// 查询起始日期:yyyy-MM-dd HH:mm:ss
// 仅支持按天粒度的数据查询,取入参中的天信息作为起始日期
// 返回大于等于起始日期当天 00:00:00 点产生的数据
// 仅支持 90 天内数据查询
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询结束日期:yyyy-MM-dd HH:mm:ss
// 仅支持按天粒度的数据查询,取入参中的天信息作为结束日期
// 返回小于等于结束日期当天 23:59:59 产生的数据
// EndTime 需要大于等于 StartTime
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 排序对象,支持以下几种形式:
// url:访问 URL 排序(无参数的URL),支持的 Filter 为 flux、request
// district:省份、国家/地区排序,支持的 Filter 为 flux、request
// isp:运营商排序,支持的 Filter 为 flux、request
// host:域名访问数据排序,支持的 Filter 为:flux、request、bandwidth、fluxHitRate、2XX、3XX、4XX、5XX、statusCode
// originHost:域名回源数据排序,支持的 Filter 为 flux、request、bandwidth、origin_2XX、origin_3XX、origin_4XX、origin_5XX、OriginStatusCode
Metric *string `json:"Metric,omitempty" name:"Metric"`
// 排序使用的指标名称:
// flux:Metric 为 host 时指代访问流量,originHost 时指代回源流量
// bandwidth:Metric 为 host 时指代访问带宽,originHost 时指代回源带宽
// request:Metric 为 host 时指代访问请求数,originHost 时指代回源请求数
// fluxHitRate:平均流量命中率
// 2XX:访问 2XX 状态码
// 3XX:访问 3XX 状态码
// 4XX:访问 4XX 状态码
// 5XX:访问 5XX 状态码
// origin_2XX:回源 2XX 状态码
// origin_3XX:回源 3XX 状态码
// origin_4XX:回源 4XX 状态码
// origin_5XX:回源 5XX 状态码
// statusCode:指定访问状态码统计,在 Code 参数中填充指定状态码
// OriginStatusCode:指定回源状态码统计,在 Code 参数中填充指定状态码
Filter *string `json:"Filter,omitempty" name:"Filter"`
// 指定查询域名列表,最多可一次性查询 30 个加速域名明细
Domains []*string `json:"Domains,omitempty" name:"Domains" list`
// 指定要查询的项目 ID,[前往查看项目 ID](https://console.cloud.tencent.com/project)
// 未填充域名情况下,指定项目查询,若填充了具体域名信息,以域名为主
Project *int64 `json:"Project,omitempty" name:"Project"`
// 多域名查询时,默认(false)返回所有域名汇总排序结果
// Metric 为 url、path、district、isp,Filter 为 flux、request 时,可设置为 true,返回每一个 Domain 的排序数据
Detail *bool `json:"Detail,omitempty" name:"Detail"`
// Filter 为 statusCode、OriginStatusCode 时,填充指定状态码查询排序结果
Code *string `json:"Code,omitempty" name:"Code"`
// 指定服务地域查询,不填充表示查询中国境内 CDN 数据
// mainland:指定查询中国境内 CDN 数据
// overseas:指定查询中国境外 CDN 数据,支持的 Metric 为 url、district、host、originHost,当 Metric 为 originHost 时仅支持 flux、request、bandwidth Filter
Area *string `json:"Area,omitempty" name:"Area"`
// 查询中国境外CDN数据,且仅当 Metric 为 district 或 host 时,可指定地区类型查询,不填充表示查询服务地区数据(仅在 Area 为 overseas,且 Metric 是 district 或 host 时可用)
// server:指定查询服务地区(腾讯云 CDN 节点服务器所在地区)数据
// client:指定查询客户端地区(用户请求终端所在地区)数据,当 Metric 为 host 时仅支持 flux、request、bandwidth Filter
AreaType *string `json:"AreaType,omitempty" name:"AreaType"`
}
func NewListTopDataRequest ¶
func NewListTopDataRequest() (request *ListTopDataRequest)
func (*ListTopDataRequest) FromJsonString ¶
func (r *ListTopDataRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListTopDataRequest) ToJsonString ¶
func (r *ListTopDataRequest) ToJsonString() string
type ListTopDataResponse ¶
type ListTopDataResponse struct {
*tchttp.BaseResponse
Response *struct {
// 各个资源的Top 访问数据详情。
Data []*TopData `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListTopDataResponse ¶
func NewListTopDataResponse() (response *ListTopDataResponse)
func (*ListTopDataResponse) FromJsonString ¶
func (r *ListTopDataResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListTopDataResponse) ToJsonString ¶
func (r *ListTopDataResponse) ToJsonString() string
type LogSetInfo ¶
type LogSetInfo struct {
// 开发者ID
AppId *uint64 `json:"AppId,omitempty" name:"AppId"`
// 渠道
// 注意:此字段可能返回 null,表示取不到有效值。
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志集名字
LogsetName *string `json:"LogsetName,omitempty" name:"LogsetName"`
// 是否默认日志集
IsDefault *uint64 `json:"IsDefault,omitempty" name:"IsDefault"`
// 日志保存时间,单位为天
LogsetSavePeriod *uint64 `json:"LogsetSavePeriod,omitempty" name:"LogsetSavePeriod"`
// 创建日期
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 区域
Region *string `json:"Region,omitempty" name:"Region"`
}
type MainlandConfig ¶
type MainlandConfig struct {
// 时间戳防盗链配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"`
// 带宽封顶配置。
// 注意:此字段可能返回 null,表示取不到有效值。
BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"`
// 缓存规则配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Cache *Cache `json:"Cache,omitempty" name:"Cache"`
// 缓存相关配置。
// 注意:此字段可能返回 null,表示取不到有效值。
CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"`
// 智能压缩配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Compression *Compression `json:"Compression,omitempty" name:"Compression"`
// 下载限速配置。
// 注意:此字段可能返回 null,表示取不到有效值。
DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"`
// 错误码重定向配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// 301和302自动回源跟随配置。
// 注意:此字段可能返回 null,表示取不到有效值。
FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"`
// 访问协议强制跳转配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"`
// Https配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Https *Https `json:"Https,omitempty" name:"Https"`
// IP黑白名单配置。
// 注意:此字段可能返回 null,表示取不到有效值。
IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"`
// IP限频配置。
// 注意:此字段可能返回 null,表示取不到有效值。
IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"`
// 浏览器缓存规则配置。
// 注意:此字段可能返回 null,表示取不到有效值。
MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"`
// 源站配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// 跨国优化配置。
// 注意:此字段可能返回 null,表示取不到有效值。
OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"`
// Range回源配置。
// 注意:此字段可能返回 null,表示取不到有效值。
RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"`
// 防盗链配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Referer *Referer `json:"Referer,omitempty" name:"Referer"`
// 回源请求头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"`
// 源站响应头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"`
// 遵循源站缓存头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"`
// seo优化配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Seo *Seo `json:"Seo,omitempty" name:"Seo"`
// 域名业务类型,web,download,media分别表示静态加速,下载加速和流媒体加速。
// 注意:此字段可能返回 null,表示取不到有效值。
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 状态码缓存配置。
// 注意:此字段可能返回 null,表示取不到有效值。
StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"`
// 视频拖拽配置。
// 注意:此字段可能返回 null,表示取不到有效值。
VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"`
}
type ManageClsTopicDomainsRequest ¶
type ManageClsTopicDomainsRequest struct {
*tchttp.BaseRequest
// 日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 日志主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 域名区域配置,注意:如果此字段为空,则表示解绑对应主题下的所有域名
DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs" list`
}
func NewManageClsTopicDomainsRequest ¶
func NewManageClsTopicDomainsRequest() (request *ManageClsTopicDomainsRequest)
func (*ManageClsTopicDomainsRequest) FromJsonString ¶
func (r *ManageClsTopicDomainsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManageClsTopicDomainsRequest) ToJsonString ¶
func (r *ManageClsTopicDomainsRequest) ToJsonString() string
type ManageClsTopicDomainsResponse ¶
type ManageClsTopicDomainsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewManageClsTopicDomainsResponse ¶
func NewManageClsTopicDomainsResponse() (response *ManageClsTopicDomainsResponse)
func (*ManageClsTopicDomainsResponse) FromJsonString ¶
func (r *ManageClsTopicDomainsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ManageClsTopicDomainsResponse) ToJsonString ¶
func (r *ManageClsTopicDomainsResponse) ToJsonString() string
type MaxAge ¶
type MaxAge struct {
// 浏览器缓存配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// MaxAge 规则
// 注意:此字段可能返回 null,表示取不到有效值。
MaxAgeRules []*MaxAgeRule `json:"MaxAgeRules,omitempty" name:"MaxAgeRules" list`
}
type MaxAgeRule ¶
type MaxAgeRule struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index: 指定主页生效
MaxAgeType *string `json:"MaxAgeType,omitempty" name:"MaxAgeType"`
// MaxAgeType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
// index 时填充 /
// 注意:all规则不可删除,默认遵循源站,可修改。
MaxAgeContents []*string `json:"MaxAgeContents,omitempty" name:"MaxAgeContents" list`
// MaxAge 时间设置,单位秒
// 注意:时间为0,即不缓存。
MaxAgeTime *int64 `json:"MaxAgeTime,omitempty" name:"MaxAgeTime"`
// 是否遵循源站,on或off,开启时忽略时间设置。
// 注意:此字段可能返回 null,表示取不到有效值。
FollowOrigin *string `json:"FollowOrigin,omitempty" name:"FollowOrigin"`
}
type OfflineCache ¶
type OfflineCache struct {
// on | off, 离线缓存是否开启
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Origin ¶
type Origin struct {
// 主源站列表
// 修改源站时,需要同时填充对应的 OriginType
// 注意:此字段可能返回 null,表示取不到有效值。
Origins []*string `json:"Origins,omitempty" name:"Origins" list`
// 主源站类型
// 入参支持以下几种类型:
// domain:域名类型
// cos:对象存储源站
// ip:IP 列表作为源站
// ipv6:源站列表为一个单独的 IPv6 地址
// ip_ipv6:源站列表为多个 IPv4 地址和一个 IPv6 地址
// 出参增加以下几种类型:
// image:数据万象源站
// ftp:历史 FTP 托管源源站,现已不维护
// 修改 Origins 时需要同时填充对应的 OriginType
// IPv6 功能目前尚未全量,需要先申请试用
// 注意:此字段可能返回 null,表示取不到有效值。
OriginType *string `json:"OriginType,omitempty" name:"OriginType"`
// 回主源站时 Host 头部,不填充则默认为加速域名
// 若接入的是泛域名,则回源 Host 默认为访问时的子域名
// 注意:此字段可能返回 null,表示取不到有效值。
ServerName *string `json:"ServerName,omitempty" name:"ServerName"`
// OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket
// 注意:需要先授权 CDN 访问该私有 Bucket 的权限后,才可开启此配置。
// 注意:此字段可能返回 null,表示取不到有效值。
CosPrivateAccess *string `json:"CosPrivateAccess,omitempty" name:"CosPrivateAccess"`
// 回源协议配置
// http:强制 http 回源
// follow:协议跟随回源
// https:强制 https 回源,https 回源时仅支持源站 443 端口
// 注意:此字段可能返回 null,表示取不到有效值。
OriginPullProtocol *string `json:"OriginPullProtocol,omitempty" name:"OriginPullProtocol"`
// 备源站列表
// 修改备源站时,需要同时填充对应的 BackupOriginType
// 注意:此字段可能返回 null,表示取不到有效值。
BackupOrigins []*string `json:"BackupOrigins,omitempty" name:"BackupOrigins" list`
// 备源站类型,支持以下类型:
// domain:域名类型
// ip:IP 列表作为源站
// 修改 BackupOrigins 时需要同时填充对应的 BackupOriginType
// 注意:此字段可能返回 null,表示取不到有效值。
BackupOriginType *string `json:"BackupOriginType,omitempty" name:"BackupOriginType"`
// 回备源站时 Host 头部,不填充则默认为主源站的 ServerName
// 注意:此字段可能返回 null,表示取不到有效值。
BackupServerName *string `json:"BackupServerName,omitempty" name:"BackupServerName"`
// 回源路径
// 注意:此字段可能返回 null,表示取不到有效值。
BasePath *string `json:"BasePath,omitempty" name:"BasePath"`
// 回源路径重写规则配置
// 注意:此字段可能返回 null,表示取不到有效值。
PathRules []*PathRule `json:"PathRules,omitempty" name:"PathRules" list`
// 分路径回源配置
// 注意:此字段可能返回 null,表示取不到有效值。
PathBasedOrigin []*PathBasedOriginRule `json:"PathBasedOrigin,omitempty" name:"PathBasedOrigin" list`
}
type OriginAuthentication ¶
type OriginAuthentication struct {
// 鉴权开关,on或off
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 鉴权类型A配置
// 注意:此字段可能返回 null,表示取不到有效值。
TypeA *OriginAuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"`
}
type OriginAuthenticationTypeA ¶
type OriginAuthenticationTypeA struct {
// 用于计算签名的密钥,只允许字母和数字,长度6-32字节。
// 注意:此字段可能返回 null,表示取不到有效值。
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
}
type OriginCombine ¶
type OriginCombine struct {
// on|off 是否开启合并回源
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type OriginIp ¶
type OriginIp struct {
// 回源IP段/回源IP,默认返回IP段信息。
Ip *string `json:"Ip,omitempty" name:"Ip"`
}
type OriginPullOptimization ¶
type OriginPullTimeout ¶
type OriginPullTimeout struct {
// 回源建连超时时间,单位为秒,要求5~60之间
// 注意:此字段可能返回 null,表示取不到有效值。
ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"`
// 回源接收超时时间,单位为秒,要求10 ~ 60之间
// 注意:此字段可能返回 null,表示取不到有效值。
ReceiveTimeout *uint64 `json:"ReceiveTimeout,omitempty" name:"ReceiveTimeout"`
}
type OverseaConfig ¶
type OverseaConfig struct {
// 时间戳防盗链配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"`
// 带宽封顶配置。
// 注意:此字段可能返回 null,表示取不到有效值。
BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"`
// 缓存规则配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Cache *Cache `json:"Cache,omitempty" name:"Cache"`
// 缓存相关配置。
// 注意:此字段可能返回 null,表示取不到有效值。
CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"`
// 智能压缩配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Compression *Compression `json:"Compression,omitempty" name:"Compression"`
// 下载限速配置。
// 注意:此字段可能返回 null,表示取不到有效值。
DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"`
// 错误码重定向配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// 301和302自动回源跟随配置。
// 注意:此字段可能返回 null,表示取不到有效值。
FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"`
// 访问协议强制跳转配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"`
// Https配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Https *Https `json:"Https,omitempty" name:"Https"`
// IP黑白名单配置。
// 注意:此字段可能返回 null,表示取不到有效值。
IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"`
// IP限频配置。
// 注意:此字段可能返回 null,表示取不到有效值。
IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"`
// 浏览器缓存规则配置。
// 注意:此字段可能返回 null,表示取不到有效值。
MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"`
// 源站配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// 跨国优化配置。
// 注意:此字段可能返回 null,表示取不到有效值。
OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"`
// Range回源配置。
// 注意:此字段可能返回 null,表示取不到有效值。
RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"`
// 防盗链配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Referer *Referer `json:"Referer,omitempty" name:"Referer"`
// 回源请求头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"`
// 源站响应头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"`
// 遵循源站缓存头部配置。
// 注意:此字段可能返回 null,表示取不到有效值。
ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"`
// seo优化配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Seo *Seo `json:"Seo,omitempty" name:"Seo"`
// 域名业务类型,web,download,media分别表示静态加速,下载加速和流媒体加速。
// 注意:此字段可能返回 null,表示取不到有效值。
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 状态码缓存配置。
// 注意:此字段可能返回 null,表示取不到有效值。
StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"`
// 视频拖拽配置。
// 注意:此字段可能返回 null,表示取不到有效值。
VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"`
}
type PathBasedOriginRule ¶
type PathBasedOriginRule struct {
// 规则类型:
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index: 指定主页生效
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// RuleType 对应类型下的匹配内容:
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
// index 时填充 /
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// 源站列表,支持域名或ipv4地址
Origin []*string `json:"Origin,omitempty" name:"Origin" list`
}
type PathRule ¶
type PathRule struct {
// 是否开启通配符“*”匹配:
// false:关闭
// true:开启
// 注意:此字段可能返回 null,表示取不到有效值。
Regex *bool `json:"Regex,omitempty" name:"Regex"`
// 匹配的URL路径,仅支持Url路径,不支持参数。默认完全匹配,开启通配符“*”匹配后,最多支持5个通配符,最大长度为1024个字符。
// 注意:此字段可能返回 null,表示取不到有效值。
Path *string `json:"Path,omitempty" name:"Path"`
// 路径匹配时的回源源站。暂不支持开了私有读写的COS源。不填写时沿用默认源站。
// 注意:此字段可能返回 null,表示取不到有效值。
Origin *string `json:"Origin,omitempty" name:"Origin"`
// 路径匹配时回源的Host头部。不填写时沿用默认ServerName。
// 注意:此字段可能返回 null,表示取不到有效值。
ServerName *string `json:"ServerName,omitempty" name:"ServerName"`
// 源站所属区域,支持CN,OV:
// CN:中国境内
// OV:中国境外
// 默认为CN。
// 注意:此字段可能返回 null,表示取不到有效值。
OriginArea *string `json:"OriginArea,omitempty" name:"OriginArea"`
// 路径匹配时回源的URI路径,必须以“/”开头,不包含参数部分。最大长度为1024个字符。可使用$1, $2, $3, $4, $5分别捕获匹配路径中的通配符号“*”,最多支持10个捕获值。
// 注意:此字段可能返回 null,表示取不到有效值。
ForwardUri *string `json:"ForwardUri,omitempty" name:"ForwardUri"`
// 路径匹配时回源的头部设置。
// 注意:此字段可能返回 null,表示取不到有效值。
RequestHeaders []*HttpHeaderRule `json:"RequestHeaders,omitempty" name:"RequestHeaders" list`
}
type PurgePathCacheRequest ¶
type PurgePathCacheRequest struct {
*tchttp.BaseRequest
// 目录列表,需要包含协议头部 http:// 或 https://
Paths []*string `json:"Paths,omitempty" name:"Paths" list`
// 刷新类型
// flush:刷新产生更新的资源
// delete:刷新全部资源
FlushType *string `json:"FlushType,omitempty" name:"FlushType"`
// 是否对中文字符进行编码后刷新
UrlEncode *bool `json:"UrlEncode,omitempty" name:"UrlEncode"`
}
func NewPurgePathCacheRequest ¶
func NewPurgePathCacheRequest() (request *PurgePathCacheRequest)
func (*PurgePathCacheRequest) FromJsonString ¶
func (r *PurgePathCacheRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgePathCacheRequest) ToJsonString ¶
func (r *PurgePathCacheRequest) ToJsonString() string
type PurgePathCacheResponse ¶
type PurgePathCacheResponse struct {
*tchttp.BaseResponse
Response *struct {
// 刷新任务 ID,同一批次提交的目录共用一个任务 ID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPurgePathCacheResponse ¶
func NewPurgePathCacheResponse() (response *PurgePathCacheResponse)
func (*PurgePathCacheResponse) FromJsonString ¶
func (r *PurgePathCacheResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgePathCacheResponse) ToJsonString ¶
func (r *PurgePathCacheResponse) ToJsonString() string
type PurgeTask ¶
type PurgeTask struct {
// 刷新任务 ID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 刷新 URL
Url *string `json:"Url,omitempty" name:"Url"`
// 刷新任务状态
// fail:刷新失败
// done:刷新成功
// process:刷新中
Status *string `json:"Status,omitempty" name:"Status"`
// 刷新类型
// url:URL 刷新
// path:目录刷新
PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"`
// 刷新方式
// flush:刷新更新资源(仅目录刷新时有此类型)
// delete:刷新全部资源
FlushType *string `json:"FlushType,omitempty" name:"FlushType"`
// 刷新任务提交时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type PurgeUrlsCacheRequest ¶
type PurgeUrlsCacheRequest struct {
*tchttp.BaseRequest
// URL 列表,需要包含协议头部 http:// 或 https://
Urls []*string `json:"Urls,omitempty" name:"Urls" list`
// 刷新区域
// 无此参数时,默认刷新加速域名所在加速区域
// 填充 mainland 时,仅刷新中国境内加速节点上缓存内容
// 填充 overseas 时,仅刷新中国境外加速节点上缓存内容
// 指定刷新区域时,需要与域名加速区域匹配
Area *string `json:"Area,omitempty" name:"Area"`
// 是否对中文字符进行编码后刷新
UrlEncode *bool `json:"UrlEncode,omitempty" name:"UrlEncode"`
}
func NewPurgeUrlsCacheRequest ¶
func NewPurgeUrlsCacheRequest() (request *PurgeUrlsCacheRequest)
func (*PurgeUrlsCacheRequest) FromJsonString ¶
func (r *PurgeUrlsCacheRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgeUrlsCacheRequest) ToJsonString ¶
func (r *PurgeUrlsCacheRequest) ToJsonString() string
type PurgeUrlsCacheResponse ¶
type PurgeUrlsCacheResponse struct {
*tchttp.BaseResponse
Response *struct {
// 刷新任务 ID,同一批次提交的 URL 共用一个任务 ID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPurgeUrlsCacheResponse ¶
func NewPurgeUrlsCacheResponse() (response *PurgeUrlsCacheResponse)
func (*PurgeUrlsCacheResponse) FromJsonString ¶
func (r *PurgeUrlsCacheResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgeUrlsCacheResponse) ToJsonString ¶
func (r *PurgeUrlsCacheResponse) ToJsonString() string
type PushTask ¶
type PushTask struct {
// 预热任务 ID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 预热 URL
Url *string `json:"Url,omitempty" name:"Url"`
// 预热任务状态
// fail:预热失败
// done:预热成功
// process:预热中
Status *string `json:"Status,omitempty" name:"Status"`
// 预热进度百分比
Percent *int64 `json:"Percent,omitempty" name:"Percent"`
// 预热任务提交时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 预热区域
// mainland:境内
// overseas:境外
// global:全球
Area *string `json:"Area,omitempty" name:"Area"`
// 预热任务更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type PushUrlsCacheRequest ¶
type PushUrlsCacheRequest struct {
*tchttp.BaseRequest
// URL 列表,需要包含协议头部 http:// 或 https://
Urls []*string `json:"Urls,omitempty" name:"Urls" list`
// 指定预热请求回源时 HTTP 请求的 User-Agent 头部
// 默认为 TencentCdn
UserAgent *string `json:"UserAgent,omitempty" name:"UserAgent"`
// 预热生效区域
// mainland:预热至境内节点
// overseas:预热至境外节点
// global:预热全球节点
// 不填充情况下,默认为 mainland, URL 中域名必须在对应区域启用了加速服务才能提交对应区域的预热任务
Area *string `json:"Area,omitempty" name:"Area"`
// 填写"middle"或不填充时预热至中间层节点
Layer *string `json:"Layer,omitempty" name:"Layer"`
// 是否递归解析m3u8文件中的ts分片预热
// 注意事项:
// 1. 该功能要求m3u8索引文件能直接请求获取
// 2. 当前只支持递归解析一级索引和子索引中的ts分片,递归深度不超过3层
// 3. 解析获取的ts分片会正常累加每日预热用量,当用量超出配额时,会静默处理,不再执行预热
ParseM3U8 *bool `json:"ParseM3U8,omitempty" name:"ParseM3U8"`
}
func NewPushUrlsCacheRequest ¶
func NewPushUrlsCacheRequest() (request *PushUrlsCacheRequest)
func (*PushUrlsCacheRequest) FromJsonString ¶
func (r *PushUrlsCacheRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PushUrlsCacheRequest) ToJsonString ¶
func (r *PushUrlsCacheRequest) ToJsonString() string
type PushUrlsCacheResponse ¶
type PushUrlsCacheResponse struct {
*tchttp.BaseResponse
Response *struct {
// 此批提交的任务 ID
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPushUrlsCacheResponse ¶
func NewPushUrlsCacheResponse() (response *PushUrlsCacheResponse)
func (*PushUrlsCacheResponse) FromJsonString ¶
func (r *PushUrlsCacheResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PushUrlsCacheResponse) ToJsonString ¶
func (r *PushUrlsCacheResponse) ToJsonString() string
type QueryStringKey ¶
type QueryStringKey struct {
// on | off CacheKey是否由QueryString组成
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 是否重新排序
// 注意:此字段可能返回 null,表示取不到有效值。
Reorder *string `json:"Reorder,omitempty" name:"Reorder"`
// includeAll | excludeAll | includeCustom | excludeAll 使用/排除部分url参数
// 注意:此字段可能返回 null,表示取不到有效值。
Action *string `json:"Action,omitempty" name:"Action"`
// 使用/排除的url参数数组,';' 分割
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitempty" name:"Value"`
}
type Quic ¶
type Quic struct {
// 是否启动Quic配置
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type RangeOriginPull ¶
type RangeOriginPull struct {
// 分片回源配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Referer ¶
type Referer struct {
// referer 黑白名单配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// referer 黑白名单配置规则
// 注意:此字段可能返回 null,表示取不到有效值。
RefererRules []*RefererRule `json:"RefererRules,omitempty" name:"RefererRules" list`
}
type RefererRule ¶
type RefererRule struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// RuleType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test/
// path 时填充绝对路径,如 /xxx/test.html
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// referer 配置类型
// whitelist:白名单
// blacklist:黑名单
RefererType *string `json:"RefererType,omitempty" name:"RefererType"`
// referer 内容列表列表
Referers []*string `json:"Referers,omitempty" name:"Referers" list`
// 是否允许空 referer
// true:允许空 referer
// false:不允许空 referer
AllowEmpty *bool `json:"AllowEmpty,omitempty" name:"AllowEmpty"`
}
type RegionMapRelation ¶
type ReportData ¶
type ReportData struct {
// 项目ID/域名ID。
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 项目名称/域名。
Resource *string `json:"Resource,omitempty" name:"Resource"`
// 流量总和/带宽最大值,单位分别为bytes,bps。
Value *int64 `json:"Value,omitempty" name:"Value"`
// 单个资源占总体百分比。
Percentage *float64 `json:"Percentage,omitempty" name:"Percentage"`
// 计费流量总和/计费带宽最大值,单位分别为bytes,bps。
BillingValue *int64 `json:"BillingValue,omitempty" name:"BillingValue"`
// 计费数值占总体百分比。
BillingPercentage *float64 `json:"BillingPercentage,omitempty" name:"BillingPercentage"`
}
type RequestHeader ¶
type RequestHeader struct {
// 自定义请求头配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 自定义请求头配置规则
// 注意:此字段可能返回 null,表示取不到有效值。
HeaderRules []*HttpHeaderPathRule `json:"HeaderRules,omitempty" name:"HeaderRules" list`
}
type ResourceBillingData ¶
type ResourceBillingData struct {
// 资源名称,根据查询条件不同分为以下几类:
// 某一个具体域名:表示该域名明细数据
// multiDomains:表示多域名汇总明细数据
// 某一个项目 ID:指定项目查询时,显示为项目 ID
// all:账号维度数据明细
Resource *string `json:"Resource,omitempty" name:"Resource"`
// 计费数据详情
BillingData []*CdnData `json:"BillingData,omitempty" name:"BillingData" list`
}
type ResourceData ¶
type ResourceOriginData ¶
type ResponseHeader ¶
type ResponseHeader struct {
// 自定义响应头开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 自定义响应头规则
// 注意:此字段可能返回 null,表示取不到有效值。
HeaderRules []*HttpHeaderPathRule `json:"HeaderRules,omitempty" name:"HeaderRules" list`
}
type ResponseHeaderCache ¶
type ResponseHeaderCache struct {
// 源站头部缓存开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Revalidate ¶
type RuleCache ¶
type RuleCache struct {
// CacheType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test
// path 时填充绝对路径,如 /xxx/test.html
// index 时填充 /
// 注意:此字段可能返回 null,表示取不到有效值。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index:首页
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 缓存配置。
// 注意:此字段可能返回 null,表示取不到有效值。
CacheConfig *RuleCacheConfig `json:"CacheConfig,omitempty" name:"CacheConfig"`
}
type RuleCacheConfig ¶
type RuleCacheConfig struct {
// 缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
Cache *CacheConfigCache `json:"Cache,omitempty" name:"Cache"`
// 不缓存配置
// 注意:此字段可能返回 null,表示取不到有效值。
NoCache *CacheConfigNoCache `json:"NoCache,omitempty" name:"NoCache"`
// 遵循源站配置
// 注意:此字段可能返回 null,表示取不到有效值。
FollowOrigin *CacheConfigFollowOrigin `json:"FollowOrigin,omitempty" name:"FollowOrigin"`
}
type RuleQueryString ¶
type RuleQueryString struct {
// on | off CacheKey是否由QueryString组成
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// includeCustom 包含部分url参数
// 注意:此字段可能返回 null,表示取不到有效值。
Action *string `json:"Action,omitempty" name:"Action"`
// 使用/排除的url参数数组,';' 分割
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitempty" name:"Value"`
}
type ScdnAclConfig ¶
type ScdnAclConfig struct {
// 是否开启,on | off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// Acl规则组,switch为on时必填
// 注意:此字段可能返回 null,表示取不到有效值。
ScriptData []*ScdnAclGroup `json:"ScriptData,omitempty" name:"ScriptData" list`
// 错误页面配置
// 注意:此字段可能返回 null,表示取不到有效值。
ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
}
type ScdnAclGroup ¶
type ScdnAclGroup struct {
// 规则名称
RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
// 具体配置
Configure []*ScdnAclRule `json:"Configure,omitempty" name:"Configure" list`
// 规则行为,一般为refuse
Result *string `json:"Result,omitempty" name:"Result"`
// 规则是否生效中active|inactive
Status *string `json:"Status,omitempty" name:"Status"`
}
type ScdnAclRule ¶
type ScdnAclRule struct {
// 匹配关键字, params | url | ip | referer | user-agent
MatchKey *string `json:"MatchKey,omitempty" name:"MatchKey"`
// 逻辑操作符,取值 exclude, include, notequal, equal, len-less, len-equal, len-more
LogiOperator *string `json:"LogiOperator,omitempty" name:"LogiOperator"`
// 匹配值
MatchValue *string `json:"MatchValue,omitempty" name:"MatchValue"`
}
type ScdnBotConfig ¶
type ScdnBotConfig struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// Bot cookie策略
// 注意:此字段可能返回 null,表示取不到有效值。
BotCookie []*BotCookie `json:"BotCookie,omitempty" name:"BotCookie" list`
// Bot Js策略
// 注意:此字段可能返回 null,表示取不到有效值。
BotJavaScript []*BotJavaScript `json:"BotJavaScript,omitempty" name:"BotJavaScript" list`
}
type ScdnCCRules ¶
type ScdnCCRules struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index:首页
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 规则值
RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue" list`
// 规则限频
Qps *uint64 `json:"Qps,omitempty" name:"Qps"`
// 探测时长
// 注意:此字段可能返回 null,表示取不到有效值。
DetectionTime *uint64 `json:"DetectionTime,omitempty" name:"DetectionTime"`
// 限频阈值
// 注意:此字段可能返回 null,表示取不到有效值。
FrequencyLimit *uint64 `json:"FrequencyLimit,omitempty" name:"FrequencyLimit"`
// IP 惩罚开关,可选on|off
// 注意:此字段可能返回 null,表示取不到有效值。
PunishmentSwitch *string `json:"PunishmentSwitch,omitempty" name:"PunishmentSwitch"`
// IP 惩罚时长
// 注意:此字段可能返回 null,表示取不到有效值。
PunishmentTime *uint64 `json:"PunishmentTime,omitempty" name:"PunishmentTime"`
// 执行动作,intercept|redirect
// 注意:此字段可能返回 null,表示取不到有效值。
Action *string `json:"Action,omitempty" name:"Action"`
// 动作为 redirect 时,重定向的url
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
}
type ScdnConfig ¶
type ScdnConfig struct {
// on | off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 自定义 cc 防护规则
// 注意:此字段可能返回 null,表示取不到有效值。
Rules []*ScdnCCRules `json:"Rules,omitempty" name:"Rules" list`
}
type ScdnDdosConfig ¶
type ScdnDdosConfig struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type ScdnDomain ¶
type ScdnDomain struct {
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 当前状态,取值online | offline | process
Status *string `json:"Status,omitempty" name:"Status"`
// Waf 状态默认为‘/’,取值 close | intercept | observe
Waf *string `json:"Waf,omitempty" name:"Waf"`
// Acl 状态默认为‘/’,取值 close | open
Acl *string `json:"Acl,omitempty" name:"Acl"`
// CC 状态默认为‘/’,取值 close | open
CC *string `json:"CC,omitempty" name:"CC"`
// Ddos 状态默认为‘/’,取值 close | open
Ddos *string `json:"Ddos,omitempty" name:"Ddos"`
// 项目ID
ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"`
// Acl 规则数
AclRuleNumbers *uint64 `json:"AclRuleNumbers,omitempty" name:"AclRuleNumbers"`
// Bot 状态默认为‘/’,取值 close | open
Bot *string `json:"Bot,omitempty" name:"Bot"`
// 域名加速区域,取值global | mainland | overseas
// 注意:此字段可能返回 null,表示取不到有效值。
Area *string `json:"Area,omitempty" name:"Area"`
}
type ScdnErrorPage ¶
type ScdnEventLogConditions ¶
type ScdnLogTaskDetail ¶
type ScdnLogTaskDetail struct {
// scdn域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 防护类型
Mode *string `json:"Mode,omitempty" name:"Mode"`
// 查询任务开始时间
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询任务结束时间
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 任务创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 日志包下载链接
// 成功返回下载链接,其他情况返回'-'
// 注意:此字段可能返回 null,表示取不到有效值。
DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`
// 任务状态
// created->任务已经创建
// processing->任务正在执行
// done->任务执行成功
// failed->任务执行失败
// no-log->没有日志产生
Status *string `json:"Status,omitempty" name:"Status"`
// 日志任务唯一id
TaskID *string `json:"TaskID,omitempty" name:"TaskID"`
// 攻击类型, 可以为"all"
// AttackType映射如下:
// other = '未知类型'
// malicious_scan = "恶意扫描"
// sql_inject = "SQL注入攻击"
// xss = "XSS攻击"
// cmd_inject = "命令注入攻击"
// ldap_inject = "LDAP注入攻击"
// ssi_inject = "SSI注入攻击"
// xml_inject = "XML注入攻击"
// web_service = "WEB服务漏洞攻击"
// web_app = "WEB应用漏洞攻击"
// path_traversal = "路径跨越攻击"
// illegal_access_core_file = "核心文件非法访问"
// file_upload = "文件上传攻击"
// trojan_horse = "木马后门攻击"
// csrf = "CSRF攻击"
// custom_policy = "自定义策略"
// ai_engine= 'AI引擎检出'
// malicious_file_upload= '恶意文件上传'
AttackType *string `json:"AttackType,omitempty" name:"AttackType"`
// 防御模式,可以为"all"
// DefenceMode映射如下:
// observe = '观察模式'
// intercept = '防御模式'
DefenceMode *string `json:"DefenceMode,omitempty" name:"DefenceMode"`
// 查询条件
// 注意:此字段可能返回 null,表示取不到有效值。
Conditions []*ScdnEventLogConditions `json:"Conditions,omitempty" name:"Conditions" list`
// mainland或overseas
// 注意:此字段可能返回 null,表示取不到有效值。
Area *string `json:"Area,omitempty" name:"Area"`
}
type ScdnTopData ¶
type ScdnTopData struct {
// 时间
Time *string `json:"Time,omitempty" name:"Time"`
// 数值
Value *uint64 `json:"Value,omitempty" name:"Value"`
// 运营商
Isp *string `json:"Isp,omitempty" name:"Isp"`
// IP地址
Ip *string `json:"Ip,omitempty" name:"Ip"`
// 区域
District *string `json:"District,omitempty" name:"District"`
}
type ScdnTopUrlData ¶
type ScdnTypeData ¶
type ScdnWafConfig ¶
type ScdnWafConfig struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
// intercept|observe,默认intercept
// 注意:此字段可能返回 null,表示取不到有效值。
Mode *string `json:"Mode,omitempty" name:"Mode"`
// 重定向的错误页面
// 注意:此字段可能返回 null,表示取不到有效值。
ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// webshell拦截开关,on|off,默认off
// 注意:此字段可能返回 null,表示取不到有效值。
WebShellSwitch *string `json:"WebShellSwitch,omitempty" name:"WebShellSwitch"`
// 类型拦截规则
// 注意:此字段可能返回 null,表示取不到有效值。
Rules []*ScdnWafRule `json:"Rules,omitempty" name:"Rules" list`
// waf规则等级,可取100|200|300
// 注意:此字段可能返回 null,表示取不到有效值。
Level *int64 `json:"Level,omitempty" name:"Level"`
// waf子规则开关
// 注意:此字段可能返回 null,表示取不到有效值。
SubRuleSwitch []*WafSubRuleStatus `json:"SubRuleSwitch,omitempty" name:"SubRuleSwitch" list`
}
type ScdnWafRule ¶
type SchemeKey ¶
type SchemeKey struct {
// on | off 是否使用scheme作为cache key的一部分
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type SearchClsLogRequest ¶
type SearchClsLogRequest struct {
*tchttp.BaseRequest
// 需要查询的日志集ID
LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"`
// 需要查询的日志主题ID组合,以逗号分隔
TopicIds *string `json:"TopicIds,omitempty" name:"TopicIds"`
// 需要查询的日志的起始时间,格式 YYYY-mm-dd HH:MM:SS
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 需要查询的日志的结束时间,格式 YYYY-mm-dd HH:MM:SS
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 单次要返回的日志条数,单次返回的最大条数为100
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 接入渠道,默认值为cdn
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 需要查询的内容,详情请参考https://cloud.tencent.com/document/product/614/16982
Query *string `json:"Query,omitempty" name:"Query"`
// 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
Context *string `json:"Context,omitempty" name:"Context"`
// 按日志时间排序, asc(升序)或者 desc(降序),默认为 desc
Sort *string `json:"Sort,omitempty" name:"Sort"`
}
func NewSearchClsLogRequest ¶
func NewSearchClsLogRequest() (request *SearchClsLogRequest)
func (*SearchClsLogRequest) FromJsonString ¶
func (r *SearchClsLogRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SearchClsLogRequest) ToJsonString ¶
func (r *SearchClsLogRequest) ToJsonString() string
type SearchClsLogResponse ¶
type SearchClsLogResponse struct {
*tchttp.BaseResponse
Response *struct {
// 查询结果
Logs *ClsSearchLogs `json:"Logs,omitempty" name:"Logs"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSearchClsLogResponse ¶
func NewSearchClsLogResponse() (response *SearchClsLogResponse)
func (*SearchClsLogResponse) FromJsonString ¶
func (r *SearchClsLogResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SearchClsLogResponse) ToJsonString ¶
func (r *SearchClsLogResponse) ToJsonString() string
type SecurityConfig ¶
type SecurityConfig struct {
// on|off
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type Seo ¶
type Seo struct {
// SEO 配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type ServerCert ¶
type ServerCert struct {
// 服务器证书 ID
// 在 SSL 证书管理进行证书托管时自动生成
// 注意:此字段可能返回 null,表示取不到有效值。
CertId *string `json:"CertId,omitempty" name:"CertId"`
// 服务器证书名称
// 在 SSL 证书管理进行证书托管时自动生成
// 注意:此字段可能返回 null,表示取不到有效值。
CertName *string `json:"CertName,omitempty" name:"CertName"`
// 服务器证书信息
// 上传自有证书时必填,需要包含完整的证书链
// 注意:此字段可能返回 null,表示取不到有效值。
Certificate *string `json:"Certificate,omitempty" name:"Certificate"`
// 服务器密钥信息
// 上传自有证书时必填
// 注意:此字段可能返回 null,表示取不到有效值。
PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"`
// 证书过期时间
// 作为入参配置时无需填充
// 注意:此字段可能返回 null,表示取不到有效值。
ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 证书颁发时间
// 作为入参配置时无需填充
// 注意:此字段可能返回 null,表示取不到有效值。
DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"`
// 证书备注信息
// 注意:此字段可能返回 null,表示取不到有效值。
Message *string `json:"Message,omitempty" name:"Message"`
}
type SimpleCache ¶
type SimpleCache struct {
// 缓存过期时间规则
// 注意:此字段可能返回 null,表示取不到有效值。
CacheRules []*SimpleCacheRule `json:"CacheRules,omitempty" name:"CacheRules" list`
// 遵循源站 Cache-Control: max-age 配置
// on:开启
// off:关闭
// 开启后,未能匹配 CacheRules 规则的资源将根据源站返回的 max-age 值进行节点缓存;匹配了 CacheRules 规则的资源将按照 CacheRules 中设置的缓存过期时间在节点进行缓存
// 与 CompareMaxAge 冲突,不能同时开启
// 注意:此字段可能返回 null,表示取不到有效值。
FollowOrigin *string `json:"FollowOrigin,omitempty" name:"FollowOrigin"`
// 强制缓存
// on:开启
// off:关闭
// 默认为关闭状态,开启后,源站返回的 no-store、no-cache 资源,也将按照 CacheRules 规则进行缓存
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"`
// 忽略源站的Set-Cookie头部
// on:开启
// off:关闭
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"`
// 高级缓存过期配置,开启时会对比源站返回的 max-age 值与 CacheRules 中设置的缓存过期时间,取最小值在节点进行缓存
// on:开启
// off:关闭
// 默认为关闭状态
// 注意:此字段可能返回 null,表示取不到有效值。
CompareMaxAge *string `json:"CompareMaxAge,omitempty" name:"CompareMaxAge"`
// 总是回源站校验
// 注意:此字段可能返回 null,表示取不到有效值。
Revalidate *Revalidate `json:"Revalidate,omitempty" name:"Revalidate"`
}
type SimpleCacheRule ¶
type SimpleCacheRule struct {
// 规则类型:
// all:所有文件生效
// file:指定文件后缀生效
// directory:指定路径生效
// path:指定绝对路径生效
// index:首页
CacheType *string `json:"CacheType,omitempty" name:"CacheType"`
// CacheType 对应类型下的匹配内容:
// all 时填充 *
// file 时填充后缀名,如 jpg、txt
// directory 时填充路径,如 /xxx/test
// path 时填充绝对路径,如 /xxx/test.html
// index 时填充 /
CacheContents []*string `json:"CacheContents,omitempty" name:"CacheContents" list`
// 缓存过期时间设置
// 单位为秒,最大可设置为 365 天
CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"`
}
type SpecificConfig ¶
type SpecificConfig struct {
// 国内特殊配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Mainland *MainlandConfig `json:"Mainland,omitempty" name:"Mainland"`
// 海外特殊配置。
// 注意:此字段可能返回 null,表示取不到有效值。
Overseas *OverseaConfig `json:"Overseas,omitempty" name:"Overseas"`
}
type StartCdnDomainRequest ¶
type StartCdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
// 域名状态需要为【已停用】
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewStartCdnDomainRequest ¶
func NewStartCdnDomainRequest() (request *StartCdnDomainRequest)
func (*StartCdnDomainRequest) FromJsonString ¶
func (r *StartCdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartCdnDomainRequest) ToJsonString ¶
func (r *StartCdnDomainRequest) ToJsonString() string
type StartCdnDomainResponse ¶
type StartCdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewStartCdnDomainResponse ¶
func NewStartCdnDomainResponse() (response *StartCdnDomainResponse)
func (*StartCdnDomainResponse) FromJsonString ¶
func (r *StartCdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartCdnDomainResponse) ToJsonString ¶
func (r *StartCdnDomainResponse) ToJsonString() string
type StartScdnDomainRequest ¶
type StartScdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewStartScdnDomainRequest ¶
func NewStartScdnDomainRequest() (request *StartScdnDomainRequest)
func (*StartScdnDomainRequest) FromJsonString ¶
func (r *StartScdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartScdnDomainRequest) ToJsonString ¶
func (r *StartScdnDomainRequest) ToJsonString() string
type StartScdnDomainResponse ¶
type StartScdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 开启结果,Success表示成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewStartScdnDomainResponse ¶
func NewStartScdnDomainResponse() (response *StartScdnDomainResponse)
func (*StartScdnDomainResponse) FromJsonString ¶
func (r *StartScdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartScdnDomainResponse) ToJsonString ¶
func (r *StartScdnDomainResponse) ToJsonString() string
type StatusCodeCache ¶
type StatusCodeCache struct {
// 状态码缓存过期配置开关
// on:开启
// off:关闭
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// 状态码缓存过期规则明细
// 注意:此字段可能返回 null,表示取不到有效值。
CacheRules []*StatusCodeCacheRule `json:"CacheRules,omitempty" name:"CacheRules" list`
}
type StatusCodeCacheRule ¶
type StopCdnDomainRequest ¶
type StopCdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
// 域名需要为【已启动】状态
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewStopCdnDomainRequest ¶
func NewStopCdnDomainRequest() (request *StopCdnDomainRequest)
func (*StopCdnDomainRequest) FromJsonString ¶
func (r *StopCdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopCdnDomainRequest) ToJsonString ¶
func (r *StopCdnDomainRequest) ToJsonString() string
type StopCdnDomainResponse ¶
type StopCdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewStopCdnDomainResponse ¶
func NewStopCdnDomainResponse() (response *StopCdnDomainResponse)
func (*StopCdnDomainResponse) FromJsonString ¶
func (r *StopCdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopCdnDomainResponse) ToJsonString ¶
func (r *StopCdnDomainResponse) ToJsonString() string
type StopScdnDomainRequest ¶
type StopScdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewStopScdnDomainRequest ¶
func NewStopScdnDomainRequest() (request *StopScdnDomainRequest)
func (*StopScdnDomainRequest) FromJsonString ¶
func (r *StopScdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopScdnDomainRequest) ToJsonString ¶
func (r *StopScdnDomainRequest) ToJsonString() string
type StopScdnDomainResponse ¶
type StopScdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 关闭结果,Success表示成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewStopScdnDomainResponse ¶
func NewStopScdnDomainResponse() (response *StopScdnDomainResponse)
func (*StopScdnDomainResponse) FromJsonString ¶
func (r *StopScdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopScdnDomainResponse) ToJsonString ¶
func (r *StopScdnDomainResponse) ToJsonString() string
type SummarizedData ¶
type TimestampData ¶
type TopData ¶
type TopData struct {
// 资源名称,根据查询条件不同分为以下几类:
// 具体域名:表示该域名明细数据
// multiDomains:表示多域名汇总明细数据
// 项目 ID:指定项目查询时,显示为项目 ID
// all:账号维度明细数据
Resource *string `json:"Resource,omitempty" name:"Resource"`
// 排序结果详情
DetailData []*TopDetailData `json:"DetailData,omitempty" name:"DetailData" list`
}
type TopDetailData ¶
type TopicInfo ¶
type TopicInfo struct {
// 主题ID
TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
// 主题名字
TopicName *string `json:"TopicName,omitempty" name:"TopicName"`
// 是否启用投递
Enabled *int64 `json:"Enabled,omitempty" name:"Enabled"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type TpgAdapter ¶
type TpgAdapter struct {
// 开关,"on/off"
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type TrafficPackage ¶
type TrafficPackage struct {
// 流量包 Id
Id *int64 `json:"Id,omitempty" name:"Id"`
// 流量包类型
Type *string `json:"Type,omitempty" name:"Type"`
// 流量包大小(单位为 Byte)
Bytes *int64 `json:"Bytes,omitempty" name:"Bytes"`
// 已消耗流量(单位为 Byte)
BytesUsed *int64 `json:"BytesUsed,omitempty" name:"BytesUsed"`
// 流量包状态
// enabled:已启用
// expired:已过期
// disabled:未启用
Status *string `json:"Status,omitempty" name:"Status"`
// 流量包发放时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 流量包生效时间
EnableTime *string `json:"EnableTime,omitempty" name:"EnableTime"`
// 流量包过期时间
ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`
// 流量包是否续订
ContractExtension *bool `json:"ContractExtension,omitempty" name:"ContractExtension"`
// 流量包是否自动续订
AutoExtension *bool `json:"AutoExtension,omitempty" name:"AutoExtension"`
// 流量包来源
Channel *string `json:"Channel,omitempty" name:"Channel"`
// 流量包生效区域,目前仅支持mainland
Area *string `json:"Area,omitempty" name:"Area"`
// 流量包生命周期月数
LifeTimeMonth *int64 `json:"LifeTimeMonth,omitempty" name:"LifeTimeMonth"`
// 流量包是否支持续订
ExtensionAvailable *bool `json:"ExtensionAvailable,omitempty" name:"ExtensionAvailable"`
// 流量包是否支持退费
RefundAvailable *bool `json:"RefundAvailable,omitempty" name:"RefundAvailable"`
}
type UpdateDomainConfigRequest ¶
type UpdateDomainConfigRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 项目 ID
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 源站配置
Origin *Origin `json:"Origin,omitempty" name:"Origin"`
// IP 黑白名单配置
IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"`
// IP 限频配置
IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"`
// 状态码缓存配置
StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"`
// 智能压缩配置
Compression *Compression `json:"Compression,omitempty" name:"Compression"`
// 带宽封顶配置
BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"`
// Range 回源配置
RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"`
// 301/302 回源跟随配置
FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"`
// 错误码重定向配置(功能灰度中,尚未全量)
ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"`
// 请求头部配置
RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"`
// 响应头部配置
ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"`
// 下载速度配置
DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"`
// 节点缓存键配置
CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"`
// 头部缓存配置
ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"`
// 视频拖拽配置
VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"`
// 缓存过期时间配置
Cache *Cache `json:"Cache,omitempty" name:"Cache"`
// 跨国链路优化配置
OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"`
// Https 加速配置
Https *Https `json:"Https,omitempty" name:"Https"`
// 时间戳防盗链配置
Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"`
// SEO 优化配置
Seo *Seo `json:"Seo,omitempty" name:"Seo"`
// 访问协议强制跳转配置
ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"`
// Referer 防盗链配置
Referer *Referer `json:"Referer,omitempty" name:"Referer"`
// 浏览器缓存配置(功能灰度中,尚未全量)
MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"`
// 域名业务类型
// web:静态加速
// download:下载加速
// media:流媒体点播加速
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// 地域属性特殊配置
// 适用于域名境内加速、境外加速配置不一致场景
SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"`
// 域名加速区域
// mainland:中国境内加速
// overseas:中国境外加速
// global:全球加速
Area *string `json:"Area,omitempty" name:"Area"`
// 回源超时配置
OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"`
// 回源S3私有鉴权
AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"`
// UA黑白名单配置
UserAgentFilter *UserAgentFilter `json:"UserAgentFilter,omitempty" name:"UserAgentFilter"`
// 访问控制
AccessControl *AccessControl `json:"AccessControl,omitempty" name:"AccessControl"`
// URL重定向配置
UrlRedirect *UrlRedirect `json:"UrlRedirect,omitempty" name:"UrlRedirect"`
// 访问端口配置
AccessPort []*int64 `json:"AccessPort,omitempty" name:"AccessPort" list`
// 时间戳防盗链高级版配置,白名单功能
AdvancedAuthentication *AdvancedAuthentication `json:"AdvancedAuthentication,omitempty" name:"AdvancedAuthentication"`
// 回源鉴权高级版配置,白名单功能
OriginAuthentication *OriginAuthentication `json:"OriginAuthentication,omitempty" name:"OriginAuthentication"`
// Ipv6 访问配置
Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"`
// 离线缓存
OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"`
// 合并回源
OriginCombine *OriginCombine `json:"OriginCombine,omitempty" name:"OriginCombine"`
// QUIC正在内测中,请先提交内测申请,详情请前往QUIC产品文档。
Quic *Quic `json:"Quic,omitempty" name:"Quic"`
}
func NewUpdateDomainConfigRequest ¶
func NewUpdateDomainConfigRequest() (request *UpdateDomainConfigRequest)
func (*UpdateDomainConfigRequest) FromJsonString ¶
func (r *UpdateDomainConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateDomainConfigRequest) ToJsonString ¶
func (r *UpdateDomainConfigRequest) ToJsonString() string
type UpdateDomainConfigResponse ¶
type UpdateDomainConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateDomainConfigResponse ¶
func NewUpdateDomainConfigResponse() (response *UpdateDomainConfigResponse)
func (*UpdateDomainConfigResponse) FromJsonString ¶
func (r *UpdateDomainConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateDomainConfigResponse) ToJsonString ¶
func (r *UpdateDomainConfigResponse) ToJsonString() string
type UpdateImageConfigRequest ¶
type UpdateImageConfigRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// WebpAdapter配置项
WebpAdapter *WebpAdapter `json:"WebpAdapter,omitempty" name:"WebpAdapter"`
// TpgAdapter配置项
TpgAdapter *TpgAdapter `json:"TpgAdapter,omitempty" name:"TpgAdapter"`
// GuetzliAdapter配置项
GuetzliAdapter *GuetzliAdapter `json:"GuetzliAdapter,omitempty" name:"GuetzliAdapter"`
}
func NewUpdateImageConfigRequest ¶
func NewUpdateImageConfigRequest() (request *UpdateImageConfigRequest)
func (*UpdateImageConfigRequest) FromJsonString ¶
func (r *UpdateImageConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateImageConfigRequest) ToJsonString ¶
func (r *UpdateImageConfigRequest) ToJsonString() string
type UpdateImageConfigResponse ¶
type UpdateImageConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateImageConfigResponse ¶
func NewUpdateImageConfigResponse() (response *UpdateImageConfigResponse)
func (*UpdateImageConfigResponse) FromJsonString ¶
func (r *UpdateImageConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateImageConfigResponse) ToJsonString ¶
func (r *UpdateImageConfigResponse) ToJsonString() string
type UpdatePayTypeRequest ¶
type UpdatePayTypeRequest struct {
*tchttp.BaseRequest
// 计费区域,mainland或overseas。
Area *string `json:"Area,omitempty" name:"Area"`
// 计费类型,flux或bandwidth。
PayType *string `json:"PayType,omitempty" name:"PayType"`
}
func NewUpdatePayTypeRequest ¶
func NewUpdatePayTypeRequest() (request *UpdatePayTypeRequest)
func (*UpdatePayTypeRequest) FromJsonString ¶
func (r *UpdatePayTypeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdatePayTypeRequest) ToJsonString ¶
func (r *UpdatePayTypeRequest) ToJsonString() string
type UpdatePayTypeResponse ¶
type UpdatePayTypeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdatePayTypeResponse ¶
func NewUpdatePayTypeResponse() (response *UpdatePayTypeResponse)
func (*UpdatePayTypeResponse) FromJsonString ¶
func (r *UpdatePayTypeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdatePayTypeResponse) ToJsonString ¶
func (r *UpdatePayTypeResponse) ToJsonString() string
type UpdateScdnDomainRequest ¶
type UpdateScdnDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// Web 攻击防护(WAF)配置
Waf *ScdnWafConfig `json:"Waf,omitempty" name:"Waf"`
// 自定义防护策略配置
Acl *ScdnAclConfig `json:"Acl,omitempty" name:"Acl"`
// CC 防护配置,目前 CC 防护默认开启
CC *ScdnConfig `json:"CC,omitempty" name:"CC"`
// DDOS 防护配置,目前 DDoS 防护默认开启
Ddos *ScdnDdosConfig `json:"Ddos,omitempty" name:"Ddos"`
// BOT 防护配置
Bot *ScdnBotConfig `json:"Bot,omitempty" name:"Bot"`
}
func NewUpdateScdnDomainRequest ¶
func NewUpdateScdnDomainRequest() (request *UpdateScdnDomainRequest)
func (*UpdateScdnDomainRequest) FromJsonString ¶
func (r *UpdateScdnDomainRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateScdnDomainRequest) ToJsonString ¶
func (r *UpdateScdnDomainRequest) ToJsonString() string
type UpdateScdnDomainResponse ¶
type UpdateScdnDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 提交结果,Success表示成功
Result *string `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateScdnDomainResponse ¶
func NewUpdateScdnDomainResponse() (response *UpdateScdnDomainResponse)
func (*UpdateScdnDomainResponse) FromJsonString ¶
func (r *UpdateScdnDomainResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateScdnDomainResponse) ToJsonString ¶
func (r *UpdateScdnDomainResponse) ToJsonString() string
type UrlRecord ¶
type UrlRecord struct {
// 状态(disable表示封禁,enable表示解封)
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitempty" name:"Status"`
// 对应的url
// 注意:此字段可能返回 null,表示取不到有效值。
RealUrl *string `json:"RealUrl,omitempty" name:"RealUrl"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type UrlRedirect ¶
type UrlRedirect struct {
// URL重定向配置开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
// URL重定向规则,当Switch为on时必填,规则数量最大为10个。
// 注意:此字段可能返回 null,表示取不到有效值。
PathRules []*UrlRedirectRule `json:"PathRules,omitempty" name:"PathRules" list`
}
type UrlRedirectRule ¶
type UrlRedirectRule struct {
// 重定向状态码,301 | 302
RedirectStatusCode *int64 `json:"RedirectStatusCode,omitempty" name:"RedirectStatusCode"`
// 待匹配的Url,仅支持Url路径,不支持参数。默认完全匹配,支持通配符 *,最多支持5个通配符,最大长度1024字符。
Pattern *string `json:"Pattern,omitempty" name:"Pattern"`
// 目标URL,必须以“/”开头,不包含参数部分。最大长度1024字符。可使用$1, $2, $3, $4, $5分别捕获匹配路径中的通配符号,最多支持10个捕获值。
RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"`
// 目标host,必须以http://或https://开头,并填写标准格式域名,如果不填写,默认为http:// + 当前域名
// 注意:此字段可能返回 null,表示取不到有效值。
RedirectHost *string `json:"RedirectHost,omitempty" name:"RedirectHost"`
}
type UserAgentFilter ¶
type UserAgentFilter struct {
// 开关,on或off
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
// UA黑白名单生效规则列表
// 注意:此字段可能返回 null,表示取不到有效值。
FilterRules []*UserAgentFilterRule `json:"FilterRules,omitempty" name:"FilterRules" list`
}
type UserAgentFilterRule ¶
type UserAgentFilterRule struct {
// 访问路径生效类型
// all: 所有访问路径生效
// file: 根据文件后缀类型生效
// directory: 根据目录生效
// path: 根据完整访问路径生效
// 注意:此字段可能返回 null,表示取不到有效值。
RuleType *string `json:"RuleType,omitempty" name:"RuleType"`
// 访问路径生效内容
// 注意:此字段可能返回 null,表示取不到有效值。
RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths" list`
// UserAgent列表
// 注意:此字段可能返回 null,表示取不到有效值。
UserAgents []*string `json:"UserAgents,omitempty" name:"UserAgents" list`
// 黑名单或白名单,blacklist或whitelist
// 注意:此字段可能返回 null,表示取不到有效值。
FilterType *string `json:"FilterType,omitempty" name:"FilterType"`
}
type VerifyDomainRecordRequest ¶
type VerifyDomainRecordRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
}
func NewVerifyDomainRecordRequest ¶
func NewVerifyDomainRecordRequest() (request *VerifyDomainRecordRequest)
func (*VerifyDomainRecordRequest) FromJsonString ¶
func (r *VerifyDomainRecordRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyDomainRecordRequest) ToJsonString ¶
func (r *VerifyDomainRecordRequest) ToJsonString() string
type VerifyDomainRecordResponse ¶
type VerifyDomainRecordResponse struct {
*tchttp.BaseResponse
Response *struct {
// 是否验证成功
Result *bool `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVerifyDomainRecordResponse ¶
func NewVerifyDomainRecordResponse() (response *VerifyDomainRecordResponse)
func (*VerifyDomainRecordResponse) FromJsonString ¶
func (r *VerifyDomainRecordResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyDomainRecordResponse) ToJsonString ¶
func (r *VerifyDomainRecordResponse) ToJsonString() string
type VideoSeek ¶
type VideoSeek struct {
// 视频拖拽开关
// on:开启
// off:关闭
Switch *string `json:"Switch,omitempty" name:"Switch"`
}
type ViolationUrl ¶
type ViolationUrl struct {
// ID
Id *int64 `json:"Id,omitempty" name:"Id"`
// 违规资源原始访问 URL
RealUrl *string `json:"RealUrl,omitempty" name:"RealUrl"`
// 快照路径,用于控制台展示违规内容快照
DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`
// 违规资源当前状态
// forbid:已封禁
// release:已解封
// delay : 延迟处理
// reject :申诉驳回,状态仍为封禁态
// complain:申诉进行中
UrlStatus *string `json:"UrlStatus,omitempty" name:"UrlStatus"`
// 创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 更新时间
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type WafSubRuleStatus ¶
type WebpAdapter ¶
type WebpAdapter struct {
// 开关,"on/off"
// 注意:此字段可能返回 null,表示取不到有效值。
Switch *string `json:"Switch,omitempty" name:"Switch"`
}