Documentation ¶
Index ¶
- Constants
- type AccessControl
- type AccessControlRule
- type AddCdnDomainRequest
- type AddCdnDomainResponse
- type AdvanceCacheRule
- type AdvanceConfig
- type AdvanceHttps
- type AdvancedAuthentication
- type AdvancedAuthenticationTypeA
- type AdvancedAuthenticationTypeB
- type AdvancedAuthenticationTypeC
- type AdvancedAuthenticationTypeD
- type AdvancedAuthenticationTypeE
- type AdvancedAuthenticationTypeF
- type AdvancedCCRules
- type AdvancedCache
- type AdvancedScdnAclGroup
- type AdvancedScdnAclRule
- 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) AddCdnDomainWithContext(ctx context.Context, request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error)
- func (c *Client) CreateClsLogTopic(request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
- func (c *Client) CreateClsLogTopicWithContext(ctx context.Context, request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
- func (c *Client) CreateScdnFailedLogTask(request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
- func (c *Client) CreateScdnFailedLogTaskWithContext(ctx context.Context, request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
- func (c *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
- func (c *Client) DeleteCdnDomainWithContext(ctx context.Context, request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
- func (c *Client) DeleteClsLogTopic(request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
- func (c *Client) DeleteClsLogTopicWithContext(ctx context.Context, request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
- func (c *Client) DescribeBillingData(request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
- func (c *Client) DescribeBillingDataWithContext(ctx context.Context, request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
- func (c *Client) DescribeCdnData(request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
- func (c *Client) DescribeCdnDataWithContext(ctx context.Context, request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
- func (c *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
- func (c *Client) DescribeCdnDomainLogsWithContext(ctx context.Context, request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
- func (c *Client) DescribeCdnIp(request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
- func (c *Client) DescribeCdnIpWithContext(ctx context.Context, request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
- func (c *Client) DescribeCdnOriginIp(request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
- func (c *Client) DescribeCdnOriginIpWithContext(ctx context.Context, request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
- func (c *Client) DescribeCertDomains(request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error)
- func (c *Client) DescribeCertDomainsWithContext(ctx context.Context, request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, 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) DescribeDomainsConfigWithContext(ctx context.Context, request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
- func (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
- func (c *Client) DescribeIpStatusWithContext(ctx context.Context, request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
- func (c *Client) DescribeIpVisit(request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
- func (c *Client) DescribeIpVisitWithContext(ctx context.Context, request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
- func (c *Client) DescribeMapInfo(request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
- func (c *Client) DescribeMapInfoWithContext(ctx context.Context, request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
- func (c *Client) DescribeOriginData(request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
- func (c *Client) DescribeOriginDataWithContext(ctx context.Context, request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
- func (c *Client) DescribePayType(request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
- func (c *Client) DescribePayTypeWithContext(ctx context.Context, request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
- func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
- func (c *Client) DescribePurgeQuotaWithContext(ctx context.Context, request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
- func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
- func (c *Client) DescribePurgeTasksWithContext(ctx context.Context, request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
- func (c *Client) DescribePushQuota(request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
- func (c *Client) DescribePushQuotaWithContext(ctx context.Context, request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
- func (c *Client) DescribePushTasks(request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
- func (c *Client) DescribePushTasksWithContext(ctx context.Context, request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
- func (c *Client) DescribeReportData(request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
- func (c *Client) DescribeReportDataWithContext(ctx context.Context, request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
- func (c *Client) DescribeUrlViolations(request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
- func (c *Client) DescribeUrlViolationsWithContext(ctx context.Context, request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
- func (c *Client) DisableCaches(request *DisableCachesRequest) (response *DisableCachesResponse, err error)
- func (c *Client) DisableCachesWithContext(ctx context.Context, request *DisableCachesRequest) (response *DisableCachesResponse, err error)
- func (c *Client) DisableClsLogTopic(request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
- func (c *Client) DisableClsLogTopicWithContext(ctx context.Context, request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
- func (c *Client) EnableCaches(request *EnableCachesRequest) (response *EnableCachesResponse, err error)
- func (c *Client) EnableCachesWithContext(ctx context.Context, request *EnableCachesRequest) (response *EnableCachesResponse, err error)
- func (c *Client) EnableClsLogTopic(request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
- func (c *Client) EnableClsLogTopicWithContext(ctx context.Context, request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
- func (c *Client) GetDisableRecords(request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
- func (c *Client) GetDisableRecordsWithContext(ctx context.Context, request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
- func (c *Client) ListClsLogTopics(request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
- func (c *Client) ListClsLogTopicsWithContext(ctx context.Context, request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
- func (c *Client) ListClsTopicDomains(request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
- func (c *Client) ListClsTopicDomainsWithContext(ctx context.Context, request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
- func (c *Client) ListTopData(request *ListTopDataRequest) (response *ListTopDataResponse, err error)
- func (c *Client) ListTopDataWithContext(ctx context.Context, request *ListTopDataRequest) (response *ListTopDataResponse, err error)
- func (c *Client) ManageClsTopicDomains(request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
- func (c *Client) ManageClsTopicDomainsWithContext(ctx context.Context, request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
- func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
- func (c *Client) PurgePathCacheWithContext(ctx context.Context, request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
- func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
- func (c *Client) PurgeUrlsCacheWithContext(ctx context.Context, request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
- func (c *Client) PushUrlsCache(request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
- func (c *Client) PushUrlsCacheWithContext(ctx context.Context, request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
- func (c *Client) SearchClsLog(request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
- func (c *Client) SearchClsLogWithContext(ctx context.Context, request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
- func (c *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
- func (c *Client) StartCdnDomainWithContext(ctx context.Context, request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
- func (c *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
- func (c *Client) StopCdnDomainWithContext(ctx context.Context, request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
- func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
- func (c *Client) UpdateDomainConfigWithContext(ctx context.Context, request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
- func (c *Client) UpdatePayType(request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
- func (c *Client) UpdatePayTypeWithContext(ctx context.Context, request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
- func (c *Client) UpdateScdnDomain(request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
- func (c *Client) UpdateScdnDomainWithContext(ctx context.Context, request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
- type ClientCert
- type ClsLogObject
- type ClsSearchLogs
- type Compatibility
- type Compression
- type CompressionRule
- type CookieKey
- type CreateClsLogTopicRequest
- type CreateClsLogTopicResponse
- type CreateScdnFailedLogTaskRequest
- type CreateScdnFailedLogTaskResponse
- type DeleteCdnDomainRequest
- type DeleteCdnDomainResponse
- type DeleteClsLogTopicRequest
- type DeleteClsLogTopicResponse
- 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 DescribeDomainsConfigRequest
- type DescribeDomainsConfigResponse
- type DescribeDomainsRequest
- type DescribeDomainsResponse
- 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 DescribeUrlViolationsRequest
- type DescribeUrlViolationsResponse
- type DetailDomain
- type DisableCachesRequest
- type DisableCachesResponse
- type DisableClsLogTopicRequest
- type DisableClsLogTopicResponse
- type DomainAreaConfig
- type DomainFilter
- type DomainLog
- type DownstreamCapping
- type EnableCachesRequest
- type EnableCachesResponse
- type EnableClsLogTopicRequest
- type EnableClsLogTopicResponse
- type ErrorPage
- type ErrorPageRule
- type ExtraLogset
- 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 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 OssPrivateAccess
- 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 RangeOriginPullRule
- type Referer
- type RefererRule
- type RegionMapRelation
- type RemoteAuthentication
- type RemoteAuthenticationRule
- 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 ScdnErrorPage
- type ScdnSevenLayerRules
- type ScdnWafConfig
- type ScdnWafRule
- type SchemeKey
- type SearchClsLogRequest
- type SearchClsLogResponse
- type SecurityConfig
- type Seo
- type ServerCert
- type ShareCname
- type SimpleCache
- type SimpleCacheRule
- type Sort
- type SpecificConfig
- type StartCdnDomainRequest
- type StartCdnDomainResponse
- type StatusCodeCache
- type StatusCodeCacheRule
- type StopCdnDomainRequest
- type StopCdnDomainResponse
- type SummarizedData
- type Tag
- type TimestampData
- type TopData
- type TopDetailData
- type TopicInfo
- type TpgAdapter
- type UpdateDomainConfigRequest
- type UpdateDomainConfigResponse
- type UpdatePayTypeRequest
- type UpdatePayTypeResponse
- type UpdateScdnDomainRequest
- type UpdateScdnDomainResponse
- type UrlRecord
- type UrlRedirect
- type UrlRedirectRule
- type UserAgentFilter
- type UserAgentFilterRule
- type VideoSeek
- type ViolationUrl
- type WafSubRuleStatus
- type WebSocket
- type WebpAdapter
Constants ¶
const ( // Authentication error. Please check and try again. AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" // Failed to update the domain name configuration. Please try again or contact customer service. FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" // Authentication system internal error. INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" // Failed to update the domain name configuration. INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" // Internal data error. Please submit a ticket for troubleshooting. INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" // Internal error. Please try again or contact the customer service for assistance. INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError" // Internal error. Please try again or contact the customer service for assistance. INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" // System error. Please submit a ticket for troubleshooting. INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" // CLS internal error. INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" // Internal error. Please try again or contact the customer service for assistance. INTERNALERROR_COSTDATASYSTEMERROR = "InternalError.CostDataSystemError" // Error with the data query. Please submit a ticket for troubleshooting. INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" // Service internal error. Please submit a ticket for troubleshooting. INTERNALERROR_ERROR = "InternalError.Error" // Service internal error. Please submit a ticket for troubleshooting. INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" // Internal service error. Please submit a ticket for troubleshooting. INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" // Internal service error. Please submit a ticket for troubleshooting. INTERNALERROR_ROUTEERROR = "InternalError.RouteError" // The SCDN service is not activated. Please purchase or renew an SCDN packet and try again. INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage" // Your SCDN service is suspended. Please purchase a new SCDN packet. INTERNALERROR_SCDNUSERSUSPEND = "InternalError.ScdnUserSuspend" // Internal error. Please try again or contact the customer service for assistance. INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError" // To enable HTTPS, access port 443 must be enabled. INVALIDPARAMETER_ACCESSPORTOPENEDHTTPS = "InvalidParameter.AccessPortOpenedHttps" // INVALIDPARAMETER_BANDLIMITREQUIREDMAINLAND = "InvalidParameter.BandLimitRequiredMainland" // INVALIDPARAMETER_BANDWIDTHALERTCOUNTERMEASURECONFLICTORIGINTYPE = "InvalidParameter.BandwidthAlertCounterMeasureConflictOriginType" // Invalid domain name status. INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" // Inconsistent resource AppID. INVALIDPARAMETER_CAMRESOURCEBELONGTODIFFERENTUSER = "InvalidParameter.CamResourceBelongToDifferentUser" // Incorrect six-segment resource parameter. INVALIDPARAMETER_CAMRESOURCESIXSTAGEERROR = "InvalidParameter.CamResourceSixStageError" // The domain name has already been associated with this tag. INVALIDPARAMETER_CAMTAGKEYALREADYATTACHED = "InvalidParameter.CamTagKeyAlreadyAttached" // Invalid tag key character. INVALIDPARAMETER_CAMTAGKEYILLEGAL = "InvalidParameter.CamTagKeyIllegal" // The tag key does not exist. INVALIDPARAMETER_CAMTAGKEYNOTEXIST = "InvalidParameter.CamTagKeyNotExist" // Invalid tag value character INVALIDPARAMETER_CAMTAGVALUEILLEGAL = "InvalidParameter.CamTagValueIllegal" // The certificate information is invalid or does not exist. Please check and try again. INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound" // Invalid certificate. Please check and try again. INVALIDPARAMETER_CDNCERTNOCERTINFO = "InvalidParameter.CdnCertNoCertInfo" // Invalid HTTPS certificate. INVALIDPARAMETER_CDNCERTNOTPEM = "InvalidParameter.CdnCertNotPem" // A duplicate topic already exists. INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" // Invalid topic name. INVALIDPARAMETER_CDNCLSTOPICNAMEINVALID = "InvalidParameter.CdnClsTopicNameInvalid" // The CLS topic does not exist. INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" // Invalid cache configuration. Please check and try again. INVALIDPARAMETER_CDNCONFIGINVALIDCACHE = "InvalidParameter.CdnConfigInvalidCache" // The domain name is invalid. INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost" // Invalid tag configuration INVALIDPARAMETER_CDNCONFIGINVALIDTAG = "InvalidParameter.CdnConfigInvalidTag" // Failed to add the domain name. You must select a tag for the current domain name. Please check and try again. INVALIDPARAMETER_CDNCONFIGTAGREQUIRED = "InvalidParameter.CdnConfigTagRequired" // The domain name is configured with special configurations, please submit a ticket. INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" // This domain name is internal and cannot be accessed. INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost" // Incorrect intermediate server configuration. INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" // Invalid domain name format. Please check and try again. INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" // Invalid domain name status. INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" // The domain name is too long. INVALIDPARAMETER_CDNHOSTTOOLONGHOST = "InvalidParameter.CdnHostTooLongHost" // Internal API error. Please submit a ticket for troubleshooting. INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" // The parameter “Interval” is wrong. Please check and try again. INVALIDPARAMETER_CDNINVALIDPARAMINTERVAL = "InvalidParameter.CdnInvalidParamInterval" // The parameter “Metric” is wrong. Please check and try again. INVALIDPARAMETER_CDNINVALIDPARAMMETRIC = "InvalidParameter.CdnInvalidParamMetric" // The field “ServiceType” is invalid. Please check and try again. INVALIDPARAMETER_CDNINVALIDPARAMSERVICETYPE = "InvalidParameter.CdnInvalidParamServiceType" // The field “QueryString” is invalid. Please check and try again. INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue" // Parameter error. Please see the sample parameters in the documentation. INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" // Cache purge does not support wildcard domain names. INVALIDPARAMETER_CDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.CdnPurgeWildcardNotAllowed" // Prefetch does not support wildcard domain names. INVALIDPARAMETER_CDNPUSHWILDCARDNOTALLOWED = "InvalidParameter.CdnPushWildcardNotAllowed" // Invalid date. Please see the sample date in the documentation. INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" // Invalid statistical dimension. Please see the sample statistical analysis in the documentation. INVALIDPARAMETER_CDNSTATINVALIDFILTER = "InvalidParameter.CdnStatInvalidFilter" // Invalid statistical type. Please see the sample statistical analysis in the documentation. INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" // Incorrect project ID. Please check and try again. INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" // The number of queried domain names reached the limit. INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" // The URL exceeds the length limit. INVALIDPARAMETER_CDNURLEXCEEDLENGTH = "InvalidParameter.CdnUrlExceedLength" // Index conflict. INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" // The index rule is empty. INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" // Invalid content. INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" // Invalid `Content-Type`. INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" // Parameter error. Please check and try again. INVALIDPARAMETER_CLSINVALIDPARAM = "InvalidParameter.ClsInvalidParam" // Logset conflict. INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" // The logset is empty. INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" // The logset is not empty. INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" // No authorization information. INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" // Lost content. INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" // Syntax error. INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" // The topic has been closed. INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" // Topic conflict. INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" // API internal error. Please try again or contact the customer service for assistance. INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" // This platform does not support remote authentication. INVALIDPARAMETER_REMOTEAUTHINVALIDPLATFORM = "InvalidParameter.RemoteAuthInvalidPlatform" // This platform does not support remote access to an authentication address via the HTTPS protocol. INVALIDPARAMETER_REMOTEAUTHINVALIDPROTOCOL = "InvalidParameter.RemoteAuthInvalidProtocol" // Unable to recreate: the task has expired. INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired" // The task does not exist or was not failed. INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail" // Incorrect time range INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid" // The number of resource arrays exceeds the upper limit. LIMITEXCEEDED_CAMRESOURCEARRAYTOOLONG = "LimitExceeded.CamResourceArrayTooLong" // The number of tag keys exceeds the upper limit. Each resource can have up to 50 tag keys. LIMITEXCEEDED_CAMRESOURCETOOMANYTAGKEY = "LimitExceeded.CamResourceTooManyTagKey" // The tag key length exceeds the upper limit. LIMITEXCEEDED_CAMTAGKEYTOOLONG = "LimitExceeded.CamTagKeyTooLong" // The number of tag values exceeds the upper limit. Each tag key can have up to 1,000 tag values. LIMITEXCEEDED_CAMTAGKEYTOOMANYTAGVALUE = "LimitExceeded.CamTagKeyTooManyTagValue" // The number of keys exceeds the upper limit. Each user can have up to 1,000 different keys. LIMITEXCEEDED_CAMUSERTOOMANYTAGKEY = "LimitExceeded.CamUserTooManyTagKey" // Too frequent queries on IP ownership. LIMITEXCEEDED_CDNCALLINGQUERYIPTOOOFTEN = "LimitExceeded.CdnCallingQueryIpTooOften" // This account has created too many topics. LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" // The number of cache validity configuration rules exceeds the limit. LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules" // Domain name operations are too frequent. LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" // The number of directories to be purged exceeds the limit. LIMITEXCEEDED_CDNPURGEPATHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgePathExceedBatchLimit" // The number of directories to be purged exceeds the daily limit. LIMITEXCEEDED_CDNPURGEPATHEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgePathExceedDayLimit" // The number of URLs to be purged exceeds the limit. LIMITEXCEEDED_CDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeUrlExceedBatchLimit" // The number of URLs to be purged exceeds the daily limit. LIMITEXCEEDED_CDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeUrlExceedDayLimit" // The number of URLs to be prefetched at a time exceeds the limit. LIMITEXCEEDED_CDNPUSHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPushExceedBatchLimit" // The number of URLs to be prefetched exceeds the daily limit. LIMITEXCEEDED_CDNPUSHEXCEEDDAYLIMIT = "LimitExceeded.CdnPushExceedDayLimit" // The number of IPs to be queried exceeds the limit. LIMITEXCEEDED_CDNQUERYIPBATCHTOOMANY = "LimitExceeded.CdnQueryIpBatchTooMany" // The number of connected domain names has exceeded the upper limit. LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts" // The log size exceeds the limit. LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" // The number of logsets exceeds the limit. LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" // The number of topics exceeds the limit. LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" // Daily task quota exceeded LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit" // Domain name already exists. RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists" // CDN resources are being operated. RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" // This domain name does not exist under the account. Please check and try again. RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" // The project does not exist. Please check and try again. RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" // The CDN service has not been activated. Please activate it first before using this API. RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" // The number of accessed domain names reached the limit. RESOURCENOTFOUND_CDNUSERTOOMANYHOSTS = "ResourceNotFound.CdnUserTooManyHosts" // The index does not exist. RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" // The logset does not exist. RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" // The topic does not exist. RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" // The domain name does not exist. Please check and try again. RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" // The domain name has been connected to Chinese mainland service region. If you need to switch the service region to "Global", please verify its ownership for domain name retrieval. RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINMAINLAND = "ResourceUnavailable.CdnHostBelongsToOthersInMainland" // The domain name has been connected to the service region outside Chinese mainland. If you need to switch the service region to "Global", please verify its ownership for domain name retrieval. RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINOVERSEAS = "ResourceUnavailable.CdnHostBelongsToOthersInOverseas" // The domain name has been connected in the TCB console. RESOURCEUNAVAILABLE_CDNHOSTEXISTSINTCB = "ResourceUnavailable.CdnHostExistsInTcb" // The domain name is locked. RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" // The domain name cannot be connected for being insecure or malicious. RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious" // Domain name is still in use. RESOURCEUNAVAILABLE_CDNHOSTISNOTOFFLINE = "ResourceUnavailable.CdnHostIsNotOffline" // The domain name has been deactivated. Prefetch requests cannot be submitted. RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" // The domain name does not have an ICP filing. RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" // The SCDN service is not activated. Please purchase or renew an SCDN packet and try again. RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage" // The sub-account is unauthorized to query full data. UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" // No CAM policy is configured for the sub-account. UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" // This account is not authorized to activate CLS. UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" // The domain name has not been verified. UNAUTHORIZEDOPERATION_CDNDOMAINRECORDNOTVERIFIED = "UnauthorizedOperation.CdnDomainRecordNotVerified" // The domain name already exists in the system. Please submit a ticket. UNAUTHORIZEDOPERATION_CDNHOSTEXISTSININTERNAL = "UnauthorizedOperation.CdnHostExistsInInternal" // The domain name is not secure and cannot be connected. UNAUTHORIZEDOPERATION_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist" // This domain name belongs to another account, and you do not have permission to connect it. UNAUTHORIZEDOPERATION_CDNHOSTISOWNEDBYOTHER = "UnauthorizedOperation.CdnHostIsOwnedByOther" // The domain name has been connected by another account. For more information, please submit a ticket. UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther" // The sub-account has no access to the CDN-accelerated domain name. UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" // The sub-account has no access to the project. UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" // The sub-account has no access to the tag. UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" // Fail to authenticate the CDN user. UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" // The CDN user is pending authentication. UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" // Service internal error. Please submit a ticket for troubleshooting. UNAUTHORIZEDOPERATION_CDNUSERINVALIDCREDENTIAL = "UnauthorizedOperation.CdnUserInvalidCredential" // The account has been isolated due to overdue payment. Please pay the bill and try again. UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" // The CDN service has been suspended. Please restart it and try again. UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" // You are not in the beta whitelist and thus have no permission to use this function. UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" // Invalid authorization. UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" // You have not activated CLS service. Please activate it in the CLS console first. UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated" // Authorization failed. UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" // Service internal error. Please submit a ticket for troubleshooting. UNAUTHORIZEDOPERATION_CSRFERROR = "UnauthorizedOperation.CsrfError" // This operation is not supported currently. Please submit a ticket for assistance. UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" // Too many calling attempts. UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" // The operation is not allowed. UNSUPPORTEDOPERATION_CLSNOTALLOWED = "UnsupportedOperation.ClsNotAllowed" // This operation is not supported currently. Please submit a ticket for assistance. UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth" )
const APIVersion = "2018-06-06"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶
type AccessControl struct { // Whether to enable request header and request URL access control. Valid values: on, off Switch *string `json:"Switch,omitempty" name:"Switch"` // Request header and request URL access rule // Note: this field may return null, indicating that no valid values can be obtained. AccessControlRules []*AccessControlRule `json:"AccessControlRules,omitempty" name:"AccessControlRules"` // Returned status code // Note: this field may return null, indicating that no valid values can be obtained. ReturnCode *int64 `json:"ReturnCode,omitempty" name:"ReturnCode"` }
type AccessControlRule ¶
type AccessControlRule struct { // requestHeader: access control over request header // url: access control over access URL // Note: this field may return null, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Blocked content // Note: this field may return null, indicating that no valid values can be obtained. RuleContent *string `json:"RuleContent,omitempty" name:"RuleContent"` // on: regular match // off: exact match // Note: this field may return null, indicating that no valid values can be obtained. Regex *string `json:"Regex,omitempty" name:"Regex"` // This parameter is required only if `RuleType` is `requestHeader` // Note: this field may return null, indicating that no valid values can be obtained. RuleHeader *string `json:"RuleHeader,omitempty" name:"RuleHeader"` }
type AddCdnDomainRequest ¶
type AddCdnDomainRequest struct { *tchttp.BaseRequest // Domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // Acceleration domain name service type // web: static acceleration // download: download acceleration // media: streaming media VOD acceleration ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Origin server configuration Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Project ID. Default value: 0, indicating `Default Project` ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // IP blocklist/allowlist configuration IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Status code cache configuration StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"` // Smart compression configuration Compression *Compression `json:"Compression,omitempty" name:"Compression"` // Bandwidth cap configuration BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"` // Range GETs configuration RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"` // 301/302 origin-pull follow-redirect configuration FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"` // Error code redirect configuration (This feature is in beta and not generally available yet.) ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // Request header configuration RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"` // Response header configuration ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Download speed configuration DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"` // Node cache key configuration CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Header cache configuration ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"` // Video dragging configuration VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"` // Cache expiration time configuration Cache *Cache `json:"Cache,omitempty" name:"Cache"` // Cross-border linkage optimization configuration OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"` // HTTPS acceleration configuration Https *Https `json:"Https,omitempty" name:"Https"` // Timestamp hotlink protection configuration Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"` // SEO configuration Seo *Seo `json:"Seo,omitempty" name:"Seo"` // Access protocol forced redirect configuration ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Referer hotlink protection configuration Referer *Referer `json:"Referer,omitempty" name:"Referer"` // Browser cache configuration (This feature is in beta and not generally available yet.) MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"` // IPv6 configuration (This feature is in beta and not generally available yet.) Ipv6 *Ipv6 `json:"Ipv6,omitempty" name:"Ipv6"` // Specific region configuration // Applicable to cases where the acceleration domain name configuration differs for regions in and outside mainland China. SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"` // Domain name acceleration region // mainland: acceleration inside mainland China // overseas: acceleration outside mainland China // global: global acceleration // Overseas acceleration service must be enabled to use overseas acceleration and global acceleration. Area *string `json:"Area,omitempty" name:"Area"` // Origin-pull timeout configuration OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"` // Tag configuration Tag []*Tag `json:"Tag,omitempty" name:"Tag"` // IPv6 access configuration Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"` // Offline cache OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"` // QUIC is in beta now. Please submit an application to join the beta. For more information, please see QUIC product documents. Quic *Quic `json:"Quic,omitempty" name:"Quic"` // Access authentication for S3 origin AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"` // Access authentication for OSS origin OssPrivateAccess *OssPrivateAccess `json:"OssPrivateAccess,omitempty" name:"OssPrivateAccess"` }
func NewAddCdnDomainRequest ¶
func NewAddCdnDomainRequest() (request *AddCdnDomainRequest)
func (*AddCdnDomainRequest) FromJsonString ¶
func (r *AddCdnDomainRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths // `default`: the cache rules when the origin server has not returned max-age // Note: this field may return null, indicating that no valid values can be obtained. CacheType *string `json:"CacheType,omitempty" name:"CacheType"` // Content for each CacheType: // For `all`, enter an asterisk (*). // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. // For `default`, enter "no max-age". // Note: this field may return null, indicating that no valid values can be obtained. CacheContents []*string `json:"CacheContents,omitempty" name:"CacheContents"` // Cache expiration time // Unit: second. The maximum value is 365 days. // Note: this field may return null, indicating that no valid values can be obtained. CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"` }
type AdvanceConfig ¶
type AdvanceConfig struct { // Advanced configuration name // Note: this field may return `null`, indicating that no valid values can be obtained. Name *string `json:"Name,omitempty" name:"Name"` // Whether advanced configuration is supported: // `on`: support // `off`: do not support // Note: this field may return `null`, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type AdvanceHttps ¶
type AdvanceHttps struct { // Custom TLS data switch // Note: this field may return `null`, indicating that no valid values can be obtained. CustomTlsStatus *string `json:"CustomTlsStatus,omitempty" name:"CustomTlsStatus"` // Specifies the TLS version. Valid values: `TLSv1`, `TLSV1.1`, `TLSV1.2`, and `TLSv1.3`. Only consecutive versions can be enabled at the same time. // Note: this field may return `null`, indicating that no valid values can be obtained. TlsVersion []*string `json:"TlsVersion,omitempty" name:"TlsVersion"` // Custom encryption suite // Note: this field may return `null`, indicating that no valid values can be obtained. Cipher *string `json:"Cipher,omitempty" name:"Cipher"` // Origin authentication type // `off`: disable authentication // `oneWay`: authenticate the origin // `twoWay`: two-way authentication // Note: this field may return `null`, indicating that no valid values can be obtained. VerifyOriginType *string `json:"VerifyOriginType,omitempty" name:"VerifyOriginType"` // Information of the origin-pull certificate // Note: this field may return `null`, indicating that no valid values can be obtained. CertInfo *ServerCert `json:"CertInfo,omitempty" name:"CertInfo"` // Information of the origin server certificate // Note: this field may return `null`, indicating that no valid values can be obtained. OriginCertInfo *ClientCert `json:"OriginCertInfo,omitempty" name:"OriginCertInfo"` }
type AdvancedAuthentication ¶
type AdvancedAuthentication struct { // Hotlink protection configuration switch (which can be on or off). If it is enabled, only one mode can and must be configured, while other modes are null. Switch *string `json:"Switch,omitempty" name:"Switch"` // Timestamp hotlink protection advanced configuration mode A // Note: this field may return `null`, indicating that no valid values can be obtained. TypeA *AdvancedAuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"` // Timestamp hotlink protection advanced configuration mode B // Note: this field may return `null`, indicating that no valid values can be obtained. TypeB *AdvancedAuthenticationTypeB `json:"TypeB,omitempty" name:"TypeB"` // Timestamp hotlink protection advanced configuration mode C // Note: this field may return `null`, indicating that no valid values can be obtained. TypeC *AdvancedAuthenticationTypeC `json:"TypeC,omitempty" name:"TypeC"` // Timestamp hotlink protection advanced configuration mode D // Note: this field may return `null`, indicating that no valid values can be obtained. TypeD *AdvancedAuthenticationTypeD `json:"TypeD,omitempty" name:"TypeD"` // Timestamp hotlink protection advanced configuration mode E // Note: this field may return `null`, indicating that no valid values can be obtained. TypeE *AdvancedAuthenticationTypeE `json:"TypeE,omitempty" name:"TypeE"` // Timestamp hotlink protection advanced configuration mode F // Note: this field may return `null`, indicating that no valid values can be obtained. TypeF *AdvancedAuthenticationTypeF `json:"TypeF,omitempty" name:"TypeF"` }
type AdvancedAuthenticationTypeA ¶
type AdvancedAuthenticationTypeA struct { // Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"` // Expiration time in seconds ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // Whether the expiration time parameter is required ExpireTimeRequired *bool `json:"ExpireTimeRequired,omitempty" name:"ExpireTimeRequired"` // URL composition, e.g., `${private_key}${schema}${host}${full_uri}`. Format *string `json:"Format,omitempty" name:"Format"` // Time format. Valid values: dec (decimal), hex (hexadecimal). TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` // Status code returned when the authentication failed FailCode *int64 `json:"FailCode,omitempty" name:"FailCode"` // Status code returned when the URL expired ExpireCode *int64 `json:"ExpireCode,omitempty" name:"ExpireCode"` // List of URLs to be authenticated RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Reserved field Transformation *int64 `json:"Transformation,omitempty" name:"Transformation"` }
type AdvancedAuthenticationTypeB ¶
type AdvancedAuthenticationTypeB struct { // Alpha key name KeyAlpha *string `json:"KeyAlpha,omitempty" name:"KeyAlpha"` // Beta key name KeyBeta *string `json:"KeyBeta,omitempty" name:"KeyBeta"` // Gamma key name KeyGamma *string `json:"KeyGamma,omitempty" name:"KeyGamma"` // Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"` // Expiration time in seconds ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // Time format. Valid values: dec (decimal), hex (hexadecimal). TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` // Status code returned when the authentication failed FailCode *int64 `json:"FailCode,omitempty" name:"FailCode"` // Status code returned when the URL expired ExpireCode *int64 `json:"ExpireCode,omitempty" name:"ExpireCode"` // List of URLs to be authenticated RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type AdvancedAuthenticationTypeD ¶
type AdvancedAuthenticationTypeD struct { // Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Alternative key used for authentication after the authentication key (`SecretKey`) failed BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` // Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"` // Expiration time in seconds ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // Time format. Valid values: dec (decimal), hex (hexadecimal). TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` }
type AdvancedAuthenticationTypeE ¶
type AdvancedAuthenticationTypeE struct { // Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. // Note: this field may return `null`, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // ACL signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. AclSignParam *string `json:"AclSignParam,omitempty" name:"AclSignParam"` // Start time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. StartTimeParam *string `json:"StartTimeParam,omitempty" name:"StartTimeParam"` // Expiration time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. ExpireTimeParam *string `json:"ExpireTimeParam,omitempty" name:"ExpireTimeParam"` // Time format (dec) // Note: this field may return `null`, indicating that no valid values can be obtained. TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` }
type AdvancedAuthenticationTypeF ¶
type AdvancedAuthenticationTypeF struct { // Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"` // Transaction field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. // Note: this field may return `null`, indicating that no valid values can be obtained. TransactionParam *string `json:"TransactionParam,omitempty" name:"TransactionParam"` // CMK used for signature calculation, allowing 6 to 32 bytes of letters and digits. // Note: this field may return `null`, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Alternative key used for signature calculation, which is used after the CMK fails in authentication. It allows 6 to 32 bytes of letters and digits. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` }
type AdvancedCCRules ¶
type AdvancedCCRules struct { // Rule name RuleName *string `json:"RuleName,omitempty" name:"RuleName"` // Detection duration // Note: this field may return `null`, indicating that no valid values can be obtained. DetectionTime *uint64 `json:"DetectionTime,omitempty" name:"DetectionTime"` // Detection frequency threshold // Note: this field may return `null`, indicating that no valid values can be obtained. FrequencyLimit *uint64 `json:"FrequencyLimit,omitempty" name:"FrequencyLimit"` // Whether to enable IP penalty. Valid values: `on` and `off`. // Note: this field may return `null`, indicating that no valid values can be obtained. PunishmentSwitch *string `json:"PunishmentSwitch,omitempty" name:"PunishmentSwitch"` // IP penalty duration // Note: this field may return `null`, indicating that no valid values can be obtained. PunishmentTime *uint64 `json:"PunishmentTime,omitempty" name:"PunishmentTime"` // Action. Valid values: `intercept` and `redirect`. // Note: this field may return `null`, indicating that no valid values can be obtained. Action *string `json:"Action,omitempty" name:"Action"` // A redirection URL used when Action is `redirect` // Note: this field may return `null`, indicating that no valid values can be obtained. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` // Layer-7 rule configuration for CC frequency limiting // Note: this field may return `null`, indicating that no valid values can be obtained. Configure []*ScdnSevenLayerRules `json:"Configure,omitempty" name:"Configure"` }
type AdvancedCache ¶
type AdvancedCache struct { // Cache expiration rule // Note: this field may return null, indicating that no valid values can be obtained. CacheRules []*AdvanceCacheRule `json:"CacheRules,omitempty" name:"CacheRules"` // Forced cache configuration // on: enabled // off: disabled // When this is enabled, if the origin server returns no-cache, no-store headers, node caching will still be performed according to the cache expiration rules. // This is disabled by default // Note: this field may return null, indicating that no valid values can be obtained. IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"` // Whether to cache the header and body on cache nodes if the origin server returns the header `Set-Cookie`. // on: Enable; do not cache the header and body. // off: Disable; follow the custom cache rules of cache nodes. // It is disabled by default. // Note: this field may return `null`, indicating that no valid values can be obtained. IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"` }
type AdvancedScdnAclGroup ¶
type AdvancedScdnAclGroup struct { // Rule name RuleName *string `json:"RuleName,omitempty" name:"RuleName"` // Specific configurations Configure []*AdvancedScdnAclRule `json:"Configure,omitempty" name:"Configure"` // Action. Valid values: `intercept` and `redirect`. Result *string `json:"Result,omitempty" name:"Result"` // Whether the rule is activated. Valid values: `active` and `inactive`. Status *string `json:"Status,omitempty" name:"Status"` // Error page configuration ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` }
type AdvancedScdnAclRule ¶
type AdvancedScdnAclRule struct { // Keyword. Valid values: // `protocol`: HTTP protocol // `httpVersion`: HTTP version // `method`: request method // `ip`: requester IP // `ipAsn`: ASN of the requester IP // `ipCountry`: country/region of the requester IP // `ipArea`: region of the requester IP // `xForwardFor`: X-Forward-For request header // `directory`: path // `index`: homepage // `path`: full path of a file // `file`: file extension // `param`: request parameter // `referer`: Referer request header // `cookie`: Cookie request header // `userAgent`: User-Agent request header // `head`: custom request header MatchKey *string `json:"MatchKey,omitempty" name:"MatchKey"` // Logical operator. Valid values: // `exclude`: the keyword is not included // `include`: the keyword is included // `notequal`: not the same as the keyword // `equal`: the same as the keyword // `matching`: the prefix is matched // `null`: empty or does not exist LogicOperator *string `json:"LogicOperator,omitempty" name:"LogicOperator"` // Match value // When `MatchKey` is `protocol`, // Values: `HTTP` and `HTTPS`. // // When `MatchKey` is `httpVersion`, // Values: `HTTP/1.0`, `HTTP/1.1`, `HTTP/1.2`, `HTTP/2`, and `HTTP/3`. // // When `MatchKey` is `method`, // Values: `HEAD`, `GET`, `POST`, `PUT`, `OPTIONS`, `TRACE`, `DELETE`, `PATCH` and `CONNECT`. // // When `MatchKey` is `ipCountry`, valid values include: // `OTHER`: other countries/regions // `VE`: Venezuela // `UY`: Uruguay // `SR`: Suriname // `PY`: Paraguay // `PE`: Peru // `GY`: Guyana // `EC`: Ecuador // `CO`: Colombia // `CL`: Chile // `BR`: Brazil // `BO`: Bolivia // `AR`: Argentina // `NZ`: New Zealand // `WS`: Samoa // `VU`: Vanuatu // `TV`: Tuvalu // `TO`: Tonga // `TK`: Tokelau // `PW`: Palau // `NU`: Niue // `NR`: Nauru // `KI`: Kiribati // `GU`: Guam // `FM`: Micronesia // `AU`: Australia // `US`: United States // `PR`: Puerto Rico // `DO`: Dominican Republic // `CR`: Costa Rica // `AS`: American Samoa // `AG`: Antigua and Barbuda // `PA`: Panama // `NI`: Nicaragua // `MX`: Mexico // `JM`: Jamaica // `HT`: Haiti // `HN`: Honduras // `GT`: Guatemala // `GP`: Guadeloupe // `GL`: Greenland // `GD`: Grenada // `CU`: Cuba // `CA`: Canada // `BZ`: Belize // `BS`: Bahamas // `BM`: Bermuda // `BB`: Barbados // `AW`: Aruba // `AI`: Anguilla // `VA`: Vatican // `SK`: Slovakia // `RU`: Russia // `GB`: United Kingdom // `CZ`: Czech Republic // `UA`: Ukraine // `TR`: Turkey // `SI`: Slovenia // `SE`: Sweden // `RS`: Republic of Serbia // `RO`: Romania // `PT`: Portugal // `PL`: Poland // `NO`: Norway // `NL`: Netherlands // `MT`: Malta // `MK`: Macedonia // `ME`: Montenegro // `MD`: Moldova // `MC`: Monaco // `LV`: Latvia // `LU`: Luxembourg // `LT`: Lithuania // `LI`: Liechtenstein // `KZ`: Kazakhstan // `IT`: Italy // `IS`: Iceland // `IE`: Ireland // `HU`: Hungary // `HR`: Croatia // `GR`: Greece // `GI`: Gibraltar // `GG`: Guernsey // `GE`: Georgia // `FR`: France // `FI`: Finland // `ES`: Spain // `EE`: Estonia // `DK`: Denmark // `DE`: Germany // `CY`: Cyprus // `CH`: Switzerland // `BY`: Belarus // `BG`: Bulgaria // `BE`: Belgium // `AZ`: Azerbaijan // `AT`: Austria // `AM`: Armenia // `AL`: Albania // `AD`: Andorra // `TL`: East Timor // `SY`: Syria // `SA`: Saudi Arabia // `PS`: Palestine // `LK`: Sri Lanka // `LK`: Sri Lanka // `KP`: North Korea // `KG`: Kyrgyzstan // `HK`: Hong Kong, China // `BN`: Brunei // `BD`: Bangladesh // `AE`: United Arab Emirates // `YE`: Yemen // `VN`: Vietnam // `UZ`: Uzbekistan // `TW`: Taiwan, China // `TM`: Turkmenistan // `TJ`: Tajikistan // `TH`: Thailand // `SG`: Singapore // `QA`: Qatar // `PK`: Pakistan // `PH`: Philippines // `OM`: Oman // `NP`: Nepal // `MY`: Malaysia // `MV`: Maldives // `MO`: Macao, China // `MN`: Mongolia // `MM`: Myanmar // `LB`: Lebanon // `KW`: Kuwait // `KR`: South Korea // `KH`: Cambodia // `JP`: Japan // `JO`: Jordan // `IR`: Iran // `IQ`: Iraq // `IN`: India // `IL`: Israel // `ID`: Indonesia // `CN`: China // `BT`: Bhutan // `BH`: Bahrain // `AF`: Afghanistan // `LY`: Libya // `CD`: Democratic Republic of the Congo // `RE`: La Réunion // `SZ`: Swaziland // `ZW`: Zimbabwe // `ZM`: Zambia // `YT`: Mayotte // `UG`: Uganda // `TZ`: Tanzania // `TN`: Tunisia // `TG`: Togo // `TD`: Chad // `SO`: Somalia // `SN`: Senegal // `SD`: Sudan // `SC`: Seychelles // `RW`: Rwanda // `NG`: Nigeria // `NE`: Niger // `NA`: Namibia // `MZ`: Mozambique // `MW`: Malawi // `MU`: Mauritius // `MR`: Mauritania // `ML`: Mali // `MG`: Madagascar // `MA`: Morocco // `LS`: Lesotho // `LR`: Liberia // `KM`: Comoros // `KE`: Kenya // `GN`: Guinea // `GM`: Gambia // `GH`: Ghana // `GA`: Gabon // `ET`: Ethiopia // `ER`: Eritrea // `EG`: Egypt // `DZ`: Algeria // `DJ`: Djibouti // `CM`: Cameroon // `CG`: Republic of the Congo // `BW`: Botswana // `BJ`: Benin // `BI`: Burundi // `AO`: Angola // // When MatchKey is `ipArea`, valid values include: // `OTHER`: other areas // `AS`: Asia // `EU`: Europe // `AN`: Antarctica // `AF`: Africa // `OC`: Oceania // `NA`: North America // `SA`: South America // // When MatchKey is `index`, // valid value is `/;/index.html`. MatchValue []*string `json:"MatchValue,omitempty" name:"MatchValue"` // Whether to distinguish uppercase or lowercase letters. `true`: case sensitive; `false`: case insensitive. CaseSensitive *bool `json:"CaseSensitive,omitempty" name:"CaseSensitive"` // This field is required when `MatchKey` is `param` or `cookie`. For `param`, it indicates a key value of the request parameter if MatchKey is `param`, while a key value of the Cookie request header if MatchKey is `cookie`. MatchKeyParam *string `json:"MatchKeyParam,omitempty" name:"MatchKeyParam"` }
type Authentication ¶
type Authentication struct { // Hotlink protection configuration switch // on: enabled // off: disabled // When this is enabled, one mode needs to be configured. Other modes need to be set to null. Switch *string `json:"Switch,omitempty" name:"Switch"` // Timestamp hotlink protection mode A configuration // Note: this field may return null, indicating that no valid values can be obtained. TypeA *AuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"` // Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported) // Note: this field may return null, indicating that no valid values can be obtained. TypeB *AuthenticationTypeB `json:"TypeB,omitempty" name:"TypeB"` // Timestamp hotlink protection mode C configuration // Note: this field may return null, indicating that no valid values can be obtained. TypeC *AuthenticationTypeC `json:"TypeC,omitempty" name:"TypeC"` // Timestamp hotlink protection mode D configuration // Note: this field may return null, indicating that no valid values can be obtained. TypeD *AuthenticationTypeD `json:"TypeD,omitempty" name:"TypeD"` }
type AuthenticationTypeA ¶
type AuthenticationTypeA struct { // The key for signature calculation // Only digits, upper and lower-case letters are allowed. Length limit: 6-32 characters. // Note: this field may return null, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature parameter name // Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Signature expiration time // Unit: second. The maximum value is 630720000. ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // File extension list settings determining if authentication should be performed // If it contains an asterisk (*), this indicates all files. FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions"` // allowlist: indicates that all file types apart from the FileExtensions list are authenticated // blacklist: indicates that only the file types in the FileExtensions list are authenticated FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // Backup key, which is used to calculate a signature. // 6-32 characters. Only digits and letters are allowed. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` }
type AuthenticationTypeB ¶
type AuthenticationTypeB struct { // The key for signature calculation // Only digits, upper and lower-case letters are allowed. Length limit: 6-32 characters. // Note: this field may return null, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature expiration time // Unit: second. The maximum value is 630720000. ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // File extension list settings determining if authentication should be performed // If it contains an asterisk (*), this indicates all files. FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions"` // allowlist: indicates that all file types apart from the FileExtensions list are authenticated // blacklist: indicates that only the file types in the FileExtensions list are authenticated FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // Backup key, which is used to calculate a signature. // 6-32 characters. Only digits and letters are allowed. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` }
type AuthenticationTypeC ¶
type AuthenticationTypeC struct { // The key for signature calculation // Only digits, upper and lower-case letters are allowed. Length limit: 6-32 characters. // Note: this field may return null, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature expiration time // Unit: second. The maximum value is 630720000. ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // File extension list settings determining if authentication should be performed // If it contains an asterisk (*), this indicates all files. FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions"` // allowlist: indicates that all file types apart from the FileExtensions list are authenticated // blacklist: indicates that only the file types in the FileExtensions list are authenticated FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // Timestamp settings // dec: decimal // hex: hexadecimal // Note: this field may return `null`, indicating that no valid value is obtained. TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` // Backup key, which is used to calculate a signature. // 6-32 characters. Only digits and letters are allowed. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` }
type AuthenticationTypeD ¶
type AuthenticationTypeD struct { // The key for signature calculation // Only digits, upper and lower-case letters are allowed. Length limit: 6-32 characters. // Note: this field may return null, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Signature expiration time // Unit: second. The maximum value is 630720000. ExpireTime *int64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // File extension list settings determining if authentication should be performed // If it contains an asterisk (*), this indicates all files. FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions"` // allowlist: indicates that all file types apart from the FileExtensions list are authenticated // blacklist: indicates that only the file types in the FileExtensions list are authenticated FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // Signature parameter name // Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. SignParam *string `json:"SignParam,omitempty" name:"SignParam"` // Timestamp parameter name // Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. TimeParam *string `json:"TimeParam,omitempty" name:"TimeParam"` // Timestamp settings // dec: decimal // hex: hexadecimal TimeFormat *string `json:"TimeFormat,omitempty" name:"TimeFormat"` // Backup key, which is used to calculate a signature. // 6-32 characters. Only digits and letters are allowed. // Note: this field may return `null`, indicating that no valid values can be obtained. BackupSecretKey *string `json:"BackupSecretKey,omitempty" name:"BackupSecretKey"` }
type AwsPrivateAccess ¶
type AwsPrivateAccess struct { // Switch, which can be set to on or off. Switch *string `json:"Switch,omitempty" name:"Switch"` // Access ID. // Note: this field may return null, indicating that no valid values can be obtained. AccessKey *string `json:"AccessKey,omitempty" name:"AccessKey"` // Key. // Note: this field may return null, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` }
type BandwidthAlert ¶
type BandwidthAlert struct { // Specifies whether to enable the bandwidth cap // `on`: enable // `off`: disable Switch *string `json:"Switch,omitempty" name:"Switch"` // The upper limit of bandwidth usage (in bps) or traffic usage (in bytes). // Note: this field may return `null`, indicating that no valid values can be obtained. BpsThreshold *int64 `json:"BpsThreshold,omitempty" name:"BpsThreshold"` // Action taken when threshold is reached // RESOLVE_DNS_TO_ORIGIN: requests will be forwarded to the origin server. This is only supported for domain names of external origin. // RETURN_404: a 404 error will be returned for all requests. // Note: this field may return null, indicating that no valid values can be obtained. CounterMeasure *string `json:"CounterMeasure,omitempty" name:"CounterMeasure"` // The last time when the usage upper limit in the Chinese mainland was reached // Note: this field may return `null`, indicating that no valid values can be obtained. LastTriggerTime *string `json:"LastTriggerTime,omitempty" name:"LastTriggerTime"` // Indicates whether to trigger alerts when the upper limit is reached // `on`: enable // `off`: disable // Note: this field may return `null`, indicating that no valid values can be obtained. AlertSwitch *string `json:"AlertSwitch,omitempty" name:"AlertSwitch"` // Triggers alarms when the ratio of bandwidth or traffic usage to the usage upper limit reaches the specified value // Note: this field may return `null`, indicating that no valid values can be obtained. AlertPercentage *int64 `json:"AlertPercentage,omitempty" name:"AlertPercentage"` // The last time when the usage outside the Chinese mainland reached the upper limit // Note: this field may return `null`, indicating that no valid values can be obtained. LastTriggerTimeOverseas *string `json:"LastTriggerTimeOverseas,omitempty" name:"LastTriggerTimeOverseas"` // Dimension of the usage limit // `bandwidth`: bandwidth // `flux`: traffic // Note: this field may return `null`, indicating that no valid values can be obtained. Metric *string `json:"Metric,omitempty" name:"Metric"` }
type BotCookie ¶
type BotCookie struct { // Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Rule type, which can only be `all` currently. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Rule value. Valid value: `*`. RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue"` // Action. Valid values: `monitor`, `intercept`, `redirect`, and `captcha`. Action *string `json:"Action,omitempty" name:"Action"` // Redirection target page // Note: this field may return `null`, indicating that no valid values can be obtained. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` // Update time // Note: this field may return `null`, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type BotJavaScript ¶
type BotJavaScript struct { // Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Rule type, which can only be `file` currently. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Rule value. Valid values: `html` and `htm`. RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue"` // Action. Valid values: `monitor`, `intercept`, `redirect`, and `captcha`. Action *string `json:"Action,omitempty" name:"Action"` // Redirection target page // Note: this field may return `null`, indicating that no valid values can be obtained. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` // Update time // Note: this field may return `null`, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type BriefDomain ¶
type BriefDomain struct { // Domain name ID ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tencent Cloud account ID AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Acceleration domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // CNAME address of domain name Cname *string `json:"Cname,omitempty" name:"Cname"` // Acceleration service status // rejected: the domain name is rejected due to expiration/deregistration of its ICP filing // processing: deploying // online: activated // offline: disabled Status *string `json:"Status,omitempty" name:"Status"` // Project ID, which can be viewed on the Tencent Cloud project management page ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Domain name service type // web: static acceleration // download: download acceleration // media: streaming VOD acceleration ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Domain name creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Last modified time of domain name UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Origin server configuration details Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Domain name block status // normal: normal // overdue: the domain name has been disabled due to account arrears. The acceleration service can be resumed after the account is topped up. // malicious: the acceleration service has been forcibly disabled due to detection of malicious behavior. // ddos: the acceleration service has been disabled due to large-scale DDoS attacks to the domain name // idle: no operations or data has been detected for more than 90 days. The domain name is determined to be inactive which automatically disables the acceleration service. You can restart the service. // unlicensed: the acceleration service has been automatically disabled as the domain name has no ICP filing or its ICP filing is deregistered. Service can be resumed after an ICP filing is obtained. // capping: the configured upper limit for bandwidth has been reached. // readonly: the domain name has a special configuration and has been locked. Disable *string `json:"Disable,omitempty" name:"Disable"` // Acceleration region // mainland: acceleration in Mainland China // overseas: acceleration outside Mainland China // global: global acceleration Area *string `json:"Area,omitempty" name:"Area"` // Domain name lock status // normal: not locked // mainland: locked in Mainland China // overseas: locked outside Mainland China // global: locked globally Readonly *string `json:"Readonly,omitempty" name:"Readonly"` // Product of the domain name, either `cdn` or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` }
type Cache ¶
type Cache struct { // Basic cache expiration time configuration // Note: this field may return null, indicating that no valid values can be obtained. SimpleCache *SimpleCache `json:"SimpleCache,omitempty" name:"SimpleCache"` // (Disused) Advanced cache validity configuration // Note: this field may return `null`, indicating that no valid values can be obtained. AdvancedCache *AdvancedCache `json:"AdvancedCache,omitempty" name:"AdvancedCache"` // Advanced path cache configuration // Note: this field may return null, indicating that no valid value is obtained. RuleCache []*RuleCache `json:"RuleCache,omitempty" name:"RuleCache"` }
type CacheConfigCache ¶
type CacheConfigCache struct { // Cache configuration switch // on: enable // off: disable // Note: this field may return null, indicating that no valid value is obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Cache expiration time settings // Unit: second. The maximum value is 365 days. // Note: this field may return null, indicating that no valid value is obtained. CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"` // Advanced cache expiration configuration. If this is enabled, the max-age value returned by the origin server will be compared with the cache expiration time set in CacheRules, and the smallest value will be cached on the node. // on: enable // off: disable // This is disabled by default. // Note: this field may return null, indicating that no valid value is obtained. CompareMaxAge *string `json:"CompareMaxAge,omitempty" name:"CompareMaxAge"` // Force cache // on: enable // off: disable // This is disabled by default. If enabled, the `no-store` and `no-cache` resources returned from the origin server will be cached according to `CacheRules` rules. // Note: this field may return null, indicating that no valid value is obtained. IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"` // Whether to ignore the header and body on cache nodes if the origin server returns the header `Set-Cookie`. // `on`: Ignore; do not cache the header and body. // `off`: Do not ignore; follow the custom cache rules of cache nodes. // It is disabled by default. // Note: This field may return `null`, indicating that no valid value can be obtained. IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"` }
type CacheConfigFollowOrigin ¶
type CacheConfigFollowOrigin struct { // Follow origin server switch configuration // on: enable // off: disable Switch *string `json:"Switch,omitempty" name:"Switch"` }
type CacheConfigNoCache ¶
type CacheConfigNoCache struct { // No cache configuration switch // on: enable // off: disable // Note: this field may return null, indicating that no valid value is obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Always forwards to the origin server for verification // on: enable // off: disable // This is disabled by default. // Note: this field may return null, indicating that no valid value is obtained. Revalidate *string `json:"Revalidate,omitempty" name:"Revalidate"` }
type CacheKey ¶
type CacheKey struct { // Whether to enable full-path cache // `on`: enables full-path cache (i.e., disables Ignore Query String) // `off`: disables full-path cache (i.e., enables Ignore Query String) FullUrlCache *string `json:"FullUrlCache,omitempty" name:"FullUrlCache"` // Whether caches are case insensitive // Note: this field may return null, indicating that no valid values can be obtained. IgnoreCase *string `json:"IgnoreCase,omitempty" name:"IgnoreCase"` // Request parameter contained in `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. QueryString *QueryStringKey `json:"QueryString,omitempty" name:"QueryString"` // Cookie contained in `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. Cookie *CookieKey `json:"Cookie,omitempty" name:"Cookie"` // Request header contained in `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. Header *HeaderKey `json:"Header,omitempty" name:"Header"` // Custom string contained in `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. CacheTag *CacheTagKey `json:"CacheTag,omitempty" name:"CacheTag"` // Request protocol contained in `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. Scheme *SchemeKey `json:"Scheme,omitempty" name:"Scheme"` // Path-based cache key configuration // Note: this field may return null, indicating that no valid value is obtained. KeyRules []*KeyRule `json:"KeyRules,omitempty" name:"KeyRules"` }
type CacheOptResult ¶
type CacheOptResult struct { // List of succeeded URLs // Note: This field may return null, indicating that no valid values can be obtained. SuccessUrls []*string `json:"SuccessUrls,omitempty" name:"SuccessUrls"` // List of failed URLs // Note: This field may return null, indicating that no valid values can be obtained. FailUrls []*string `json:"FailUrls,omitempty" name:"FailUrls"` }
type CacheTagKey ¶
type CacheTagKey struct { // Whether to use `CacheTag` as part of `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Value of custom `CacheTag` // Note: this field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type CappingRule ¶
type CappingRule struct { // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each RuleType: // For `all`, enter an asterisk (*). // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Downstream speed value settings (in KB/s) KBpsThreshold *int64 `json:"KBpsThreshold,omitempty" name:"KBpsThreshold"` }
type CdnData ¶
type CdnData struct { // Queries the specified metric: // flux: traffic (in bytes) // bandwidth: bandwidth (in bps) // request: number of requests // fluxHitRate: traffic hit rate (in %) // statusCode: status code. The aggregate data for 2xx, 3xx, 4xx, and 5xx status codes will be returned (in entries) // 2XX: Returns the aggregate list of 2xx status codes and the data for status codes starting with 2 (in entries) // 3XX: Returns the aggregate list of 3xx status codes and the data for status codes starting with 3 (in entries) // 4XX: Returns the aggregate list of 4xx status codes and the data for status codes starting with 4 (in entries) // 5XX: Returns the aggregate list of 5xx status codes and the data for status codes starting with 5 (in entries) // Alternatively, you can specify a status code for querying. Metric *string `json:"Metric,omitempty" name:"Metric"` // Detailed data combination DetailData []*TimestampData `json:"DetailData,omitempty" name:"DetailData"` // Aggregate data combination SummarizedData *SummarizedData `json:"SummarizedData,omitempty" name:"SummarizedData"` }
type CdnIp ¶
type CdnIp struct { // IP to be queried Ip *string `json:"Ip,omitempty" name:"Ip"` // IP ownership: // yes: Tencent Cloud CDN node // no: non-Tencent Cloud CDN node Platform *string `json:"Platform,omitempty" name:"Platform"` // Node district/country // unknown: unknown node location Location *string `json:"Location,omitempty" name:"Location"` // Node activation and deactivation history History []*CdnIpHistory `json:"History,omitempty" name:"History"` // Node region // mainland: cache node in Mainland China // overseas: cache node outside Mainland China // unknown: service region unknown Area *string `json:"Area,omitempty" name:"Area"` // City where the node resides // Note: this field may return `null`, indicating that no valid value is obtained. City *string `json:"City,omitempty" name:"City"` }
type CdnIpHistory ¶
type CdnIpHistory struct { // Operation type // online: node is online // offline: node is offline Status *string `json:"Status,omitempty" name:"Status"` // Operation time corresponding to operation type // If this value is null, there are no status change records // Note: this field may return null, indicating that no valid values can be obtained. Datetime *string `json:"Datetime,omitempty" name:"Datetime"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, 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 This API is used to add a CDN acceleration domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CAMRESOURCEBELONGTODIFFERENTUSER = "InvalidParameter.CamResourceBelongToDifferentUser" INVALIDPARAMETER_CAMRESOURCESIXSTAGEERROR = "InvalidParameter.CamResourceSixStageError" INVALIDPARAMETER_CAMTAGKEYALREADYATTACHED = "InvalidParameter.CamTagKeyAlreadyAttached" INVALIDPARAMETER_CAMTAGKEYILLEGAL = "InvalidParameter.CamTagKeyIllegal" INVALIDPARAMETER_CAMTAGKEYNOTEXIST = "InvalidParameter.CamTagKeyNotExist" INVALIDPARAMETER_CAMTAGVALUEILLEGAL = "InvalidParameter.CamTagValueIllegal" INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound" INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost" INVALIDPARAMETER_CDNCONFIGINVALIDTAG = "InvalidParameter.CdnConfigInvalidTag" INVALIDPARAMETER_CDNCONFIGTAGREQUIRED = "InvalidParameter.CdnConfigTagRequired" INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost" INVALIDPARAMETER_CDNHOSTTOOLONGHOST = "InvalidParameter.CdnHostTooLongHost" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CAMRESOURCEARRAYTOOLONG = "LimitExceeded.CamResourceArrayTooLong" LIMITEXCEEDED_CAMRESOURCETOOMANYTAGKEY = "LimitExceeded.CamResourceTooManyTagKey" LIMITEXCEEDED_CAMTAGKEYTOOLONG = "LimitExceeded.CamTagKeyTooLong" LIMITEXCEEDED_CAMTAGKEYTOOMANYTAGVALUE = "LimitExceeded.CamTagKeyTooManyTagValue" LIMITEXCEEDED_CAMUSERTOOMANYTAGKEY = "LimitExceeded.CamUserTooManyTagKey" LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts" RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTEXISTSINTCB = "ResourceUnavailable.CdnHostExistsInTcb" RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNDOMAINRECORDNOTVERIFIED = "UnauthorizedOperation.CdnDomainRecordNotVerified" UNAUTHORIZEDOPERATION_CDNHOSTEXISTSININTERNAL = "UnauthorizedOperation.CdnHostExistsInInternal" UNAUTHORIZEDOPERATION_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist" UNAUTHORIZEDOPERATION_CDNHOSTISOWNEDBYOTHER = "UnauthorizedOperation.CdnHostIsOwnedByOther" UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) AddCdnDomainWithContext ¶
func (c *Client) AddCdnDomainWithContext(ctx context.Context, request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error)
AddCdnDomain This API is used to add a CDN acceleration domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CAMRESOURCEBELONGTODIFFERENTUSER = "InvalidParameter.CamResourceBelongToDifferentUser" INVALIDPARAMETER_CAMRESOURCESIXSTAGEERROR = "InvalidParameter.CamResourceSixStageError" INVALIDPARAMETER_CAMTAGKEYALREADYATTACHED = "InvalidParameter.CamTagKeyAlreadyAttached" INVALIDPARAMETER_CAMTAGKEYILLEGAL = "InvalidParameter.CamTagKeyIllegal" INVALIDPARAMETER_CAMTAGKEYNOTEXIST = "InvalidParameter.CamTagKeyNotExist" INVALIDPARAMETER_CAMTAGVALUEILLEGAL = "InvalidParameter.CamTagValueIllegal" INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound" INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost" INVALIDPARAMETER_CDNCONFIGINVALIDTAG = "InvalidParameter.CdnConfigInvalidTag" INVALIDPARAMETER_CDNCONFIGTAGREQUIRED = "InvalidParameter.CdnConfigTagRequired" INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost" INVALIDPARAMETER_CDNHOSTTOOLONGHOST = "InvalidParameter.CdnHostTooLongHost" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CAMRESOURCEARRAYTOOLONG = "LimitExceeded.CamResourceArrayTooLong" LIMITEXCEEDED_CAMRESOURCETOOMANYTAGKEY = "LimitExceeded.CamResourceTooManyTagKey" LIMITEXCEEDED_CAMTAGKEYTOOLONG = "LimitExceeded.CamTagKeyTooLong" LIMITEXCEEDED_CAMTAGKEYTOOMANYTAGVALUE = "LimitExceeded.CamTagKeyTooManyTagValue" LIMITEXCEEDED_CAMUSERTOOMANYTAGKEY = "LimitExceeded.CamUserTooManyTagKey" LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts" RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTEXISTSINTCB = "ResourceUnavailable.CdnHostExistsInTcb" RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNDOMAINRECORDNOTVERIFIED = "UnauthorizedOperation.CdnDomainRecordNotVerified" UNAUTHORIZEDOPERATION_CDNHOSTEXISTSININTERNAL = "UnauthorizedOperation.CdnHostExistsInInternal" UNAUTHORIZEDOPERATION_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist" UNAUTHORIZEDOPERATION_CDNHOSTISOWNEDBYOTHER = "UnauthorizedOperation.CdnHostIsOwnedByOther" UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) CreateClsLogTopic ¶
func (c *Client) CreateClsLogTopic(request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
CreateClsLogTopic This API is used to create a log topic. Up to 10 log topics can be created under one logset.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNAMEINVALID = "InvalidParameter.CdnClsTopicNameInvalid" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) CreateClsLogTopicWithContext ¶
func (c *Client) CreateClsLogTopicWithContext(ctx context.Context, request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error)
CreateClsLogTopic This API is used to create a log topic. Up to 10 log topics can be created under one logset.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNAMEINVALID = "InvalidParameter.CdnClsTopicNameInvalid" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) CreateScdnFailedLogTask ¶
func (c *Client) CreateScdnFailedLogTask(request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
CreateScdnFailedLogTask This API is used to recreate a failed event log task.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired" INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail" INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid" LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
func (*Client) CreateScdnFailedLogTaskWithContext ¶
func (c *Client) CreateScdnFailedLogTaskWithContext(ctx context.Context, request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error)
CreateScdnFailedLogTask This API is used to recreate a failed event log task.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired" INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail" INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid" LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
func (*Client) DeleteCdnDomain ¶
func (c *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
DeleteCdnDomain This API is used to delete a specified acceleration domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTOFFLINE = "ResourceUnavailable.CdnHostIsNotOffline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DeleteCdnDomainWithContext ¶
func (c *Client) DeleteCdnDomainWithContext(ctx context.Context, request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error)
DeleteCdnDomain This API is used to delete a specified acceleration domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTOFFLINE = "ResourceUnavailable.CdnHostIsNotOffline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DeleteClsLogTopic ¶
func (c *Client) DeleteClsLogTopic(request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
DeleteClsLogTopic This API is used to delete a log topic. Note: when a log topic is deleted, all logs of the domain names bound to it will no longer be published to the topic, and the logs previously published to the topic will be deleted. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DeleteClsLogTopicWithContext ¶
func (c *Client) DeleteClsLogTopicWithContext(ctx context.Context, request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error)
DeleteClsLogTopic This API is used to delete a log topic. Note: when a log topic is deleted, all logs of the domain names bound to it will no longer be published to the topic, and the logs previously published to the topic will be deleted. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeBillingData ¶
func (c *Client) DescribeBillingData(request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
DescribeBillingData This API is used to query billing data details.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeBillingDataWithContext ¶
func (c *Client) DescribeBillingDataWithContext(ctx context.Context, request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error)
DescribeBillingData This API is used to query billing data details.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeCdnData ¶
func (c *Client) DescribeCdnData(request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
DescribeCdnData This API (DescribeCdnData) is used to query CDN real-time access monitoring data and supports the following metrics:
+ Traffic (in bytes)
+ Bandwidth (in bps)
+ Number of requests
+ Number of hit requests
+ Request hit rate (in %)
+ Hit traffic (in bytes)
+ Traffic hit rate (in %)
+ Aggregate list of 2xx status codes and the details of status codes starting with 2 (in entries)
+ Aggregate list of 3xx status codes and the details of status codes starting with 3 (in entries)
+ Aggregate list of 4xx status codes and the details of status codes starting with 4 (in entries)
+ Aggregate list of 5xx status codes and the details of status codes starting with 5 (in entries)
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_COSTDATASYSTEMERROR = "InternalError.CostDataSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMMETRIC = "InvalidParameter.CdnInvalidParamMetric" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_CSRFERROR = "UnauthorizedOperation.CsrfError" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeCdnDataWithContext ¶
func (c *Client) DescribeCdnDataWithContext(ctx context.Context, request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error)
DescribeCdnData This API (DescribeCdnData) is used to query CDN real-time access monitoring data and supports the following metrics:
+ Traffic (in bytes)
+ Bandwidth (in bps)
+ Number of requests
+ Number of hit requests
+ Request hit rate (in %)
+ Hit traffic (in bytes)
+ Traffic hit rate (in %)
+ Aggregate list of 2xx status codes and the details of status codes starting with 2 (in entries)
+ Aggregate list of 3xx status codes and the details of status codes starting with 3 (in entries)
+ Aggregate list of 4xx status codes and the details of status codes starting with 4 (in entries)
+ Aggregate list of 5xx status codes and the details of status codes starting with 5 (in entries)
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_COSTDATASYSTEMERROR = "InternalError.CostDataSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMMETRIC = "InvalidParameter.CdnInvalidParamMetric" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_CSRFERROR = "UnauthorizedOperation.CsrfError" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeCdnDomainLogs ¶
func (c *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
DescribeCdnDomainLogs This API is used to query the download link of an access log. You can use this API for access logs in the last 30 days either within or outside Mainland China.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeCdnDomainLogsWithContext ¶
func (c *Client) DescribeCdnDomainLogsWithContext(ctx context.Context, request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error)
DescribeCdnDomainLogs This API is used to query the download link of an access log. You can use this API for access logs in the last 30 days either within or outside Mainland China.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeCdnIp ¶
func (c *Client) DescribeCdnIp(request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
DescribeCdnIp This API is used to query CDN IP ownership.
(Note: the request rate limit of this API is subject to the limit in CDN, which is 200 calls/10 minutes).
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNCALLINGQUERYIPTOOOFTEN = "LimitExceeded.CdnCallingQueryIpTooOften" LIMITEXCEEDED_CDNQUERYIPBATCHTOOMANY = "LimitExceeded.CdnQueryIpBatchTooMany" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribeCdnIpWithContext ¶
func (c *Client) DescribeCdnIpWithContext(ctx context.Context, request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error)
DescribeCdnIp This API is used to query CDN IP ownership.
(Note: the request rate limit of this API is subject to the limit in CDN, which is 200 calls/10 minutes).
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNCALLINGQUERYIPTOOOFTEN = "LimitExceeded.CdnCallingQueryIpTooOften" LIMITEXCEEDED_CDNQUERYIPBATCHTOOMANY = "LimitExceeded.CdnQueryIpBatchTooMany" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribeCdnOriginIp ¶
func (c *Client) DescribeCdnOriginIp(request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
DescribeCdnOriginIp This API is used to query the IP information of CDN intermediate nodes. Note: this API will be deactivated soon. Please call `DescribeIpStatus` instead.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNCALLINGQUERYIPTOOOFTEN = "LimitExceeded.CdnCallingQueryIpTooOften" LIMITEXCEEDED_CDNQUERYIPBATCHTOOMANY = "LimitExceeded.CdnQueryIpBatchTooMany" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribeCdnOriginIpWithContext ¶
func (c *Client) DescribeCdnOriginIpWithContext(ctx context.Context, request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error)
DescribeCdnOriginIp This API is used to query the IP information of CDN intermediate nodes. Note: this API will be deactivated soon. Please call `DescribeIpStatus` instead.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNCALLINGQUERYIPTOOOFTEN = "LimitExceeded.CdnCallingQueryIpTooOften" LIMITEXCEEDED_CDNQUERYIPBATCHTOOMANY = "LimitExceeded.CdnQueryIpBatchTooMany" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribeCertDomains ¶
func (c *Client) DescribeCertDomains(request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error)
DescribeCertDomains This API is used to verify an SSL certificate and extract the domain names. It will then return the list of domain names connected to CDN and the list of domain names with the certificate configured.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INVALIDPARAMETER_CDNCERTNOCERTINFO = "InvalidParameter.CdnCertNoCertInfo" INVALIDPARAMETER_CDNCERTNOTPEM = "InvalidParameter.CdnCertNotPem" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_CLSNOTALLOWED = "UnsupportedOperation.ClsNotAllowed" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeCertDomainsWithContext ¶
func (c *Client) DescribeCertDomainsWithContext(ctx context.Context, request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error)
DescribeCertDomains This API is used to verify an SSL certificate and extract the domain names. It will then return the list of domain names connected to CDN and the list of domain names with the certificate configured.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INVALIDPARAMETER_CDNCERTNOCERTINFO = "InvalidParameter.CdnCertNoCertInfo" INVALIDPARAMETER_CDNCERTNOTPEM = "InvalidParameter.CdnCertNotPem" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_CLSNOTALLOWED = "UnsupportedOperation.ClsNotAllowed" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeDomains ¶
func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains This API is used to query the basic configuration information of CDN acceleration domain names (inside and outside mainland China), including the project ID, service status, service type, creation time, and update time, etc.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeDomainsConfig ¶
func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
DescribeDomainsConfig This API is used to query the complete configuration information of CDN acceleration domain names (inside and outside mainland China).
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNCERTNOCERTINFO = "InvalidParameter.CdnCertNoCertInfo" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeDomainsConfigWithContext ¶
func (c *Client) DescribeDomainsConfigWithContext(ctx context.Context, request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
DescribeDomainsConfig This API is used to query the complete configuration information of CDN acceleration domain names (inside and outside mainland China).
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNCERTNOCERTINFO = "InvalidParameter.CdnCertNoCertInfo" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeDomainsWithContext ¶
func (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains This API is used to query the basic configuration information of CDN acceleration domain names (inside and outside mainland China), including the project ID, service status, service type, creation time, and update time, etc.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeIpStatus ¶
func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
DescribeIpStatus This API is used to query the status of the edge servers and intermediate nodes on the domain name acceleration platform. Note: edge servers are not generally available. This API can only be used by allowlisted accounts.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeIpStatusWithContext ¶
func (c *Client) DescribeIpStatusWithContext(ctx context.Context, request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
DescribeIpStatus This API is used to query the status of the edge servers and intermediate nodes on the domain name acceleration platform. Note: edge servers are not generally available. This API can only be used by allowlisted accounts.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeIpVisit ¶
func (c *Client) DescribeIpVisit(request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
DescribeIpVisit This API (DescribeIpVisit) is used to query the number of users who remain active for 5 minutes and the detailed number of daily active users.
+ Number of users who remain active for 5 minutes: Collects deduplicated statistics based on client IP addresses in the log with the 5-minute granularity.
+ Number of daily active users: Collects deduplicated statistics based on client IP addresses in the log with the 1-day granularity.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMINTERVAL = "InvalidParameter.CdnInvalidParamInterval" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeIpVisitWithContext ¶
func (c *Client) DescribeIpVisitWithContext(ctx context.Context, request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error)
DescribeIpVisit This API (DescribeIpVisit) is used to query the number of users who remain active for 5 minutes and the detailed number of daily active users.
+ Number of users who remain active for 5 minutes: Collects deduplicated statistics based on client IP addresses in the log with the 5-minute granularity.
+ Number of daily active users: Collects deduplicated statistics based on client IP addresses in the log with the 1-day granularity.
error code that may be returned:
INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMINTERVAL = "InvalidParameter.CdnInvalidParamInterval" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeMapInfo ¶
func (c *Client) DescribeMapInfo(request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
DescribeMapInfo This API (DescribeMapInfo) is used to query the IDs of districts or ISPs.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeMapInfoWithContext ¶
func (c *Client) DescribeMapInfoWithContext(ctx context.Context, request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error)
DescribeMapInfo This API (DescribeMapInfo) is used to query the IDs of districts or ISPs.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeOriginData ¶
func (c *Client) DescribeOriginData(request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
DescribeOriginData This API (DescribeOriginData) is used to query CDN real-time origin-pull monitoring data and supports the following metrics:
+ Origin-pull traffic (in bytes)
+ Origin-pull bandwidth (in bps)
+ Number of origin-pull requests
+ Number of failed origin-pull requests
+ Origin-pull failure rate (in % with two decimal digits)
+ Aggregate list of 2xx origin-pull status codes and the details of origin-pull status codes starting with 2 (in entries)
+ Aggregate list of 3xx origin-pull status codes and the details of origin-pull status codes starting with 3 (in entries)
+ Aggregate list of 4xx origin-pull status codes and the details of origin-pull status codes starting with 4 (in entries)
+ Aggregate list of 5xx origin-pull status codes and the details of origin-pull status codes starting with 5 (in entries)
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMMETRIC = "InvalidParameter.CdnInvalidParamMetric" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CDNUSERTOOMANYHOSTS = "ResourceNotFound.CdnUserTooManyHosts" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribeOriginDataWithContext ¶
func (c *Client) DescribeOriginDataWithContext(ctx context.Context, request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error)
DescribeOriginData This API (DescribeOriginData) is used to query CDN real-time origin-pull monitoring data and supports the following metrics:
+ Origin-pull traffic (in bytes)
+ Origin-pull bandwidth (in bps)
+ Number of origin-pull requests
+ Number of failed origin-pull requests
+ Origin-pull failure rate (in % with two decimal digits)
+ Aggregate list of 2xx origin-pull status codes and the details of origin-pull status codes starting with 2 (in entries)
+ Aggregate list of 3xx origin-pull status codes and the details of origin-pull status codes starting with 3 (in entries)
+ Aggregate list of 4xx origin-pull status codes and the details of origin-pull status codes starting with 4 (in entries)
+ Aggregate list of 5xx origin-pull status codes and the details of origin-pull status codes starting with 5 (in entries)
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMMETRIC = "InvalidParameter.CdnInvalidParamMetric" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CDNUSERTOOMANYHOSTS = "ResourceNotFound.CdnUserTooManyHosts" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePayType ¶
func (c *Client) DescribePayType(request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
DescribePayType This API (DescribePayType) is used to query billing information of the current account, such as billing mode and billing cycle.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePayTypeWithContext ¶
func (c *Client) DescribePayTypeWithContext(ctx context.Context, request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error)
DescribePayType This API (DescribePayType) is used to query billing information of the current account, such as billing mode and billing cycle.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePurgeQuota ¶
func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
DescribePurgeQuota This API is used to query the purge usage quota and daily available usage for an account.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePurgeQuotaWithContext ¶
func (c *Client) DescribePurgeQuotaWithContext(ctx context.Context, request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
DescribePurgeQuota This API is used to query the purge usage quota and daily available usage for an account.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePurgeTasks ¶
func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
DescribePurgeTasks This API is used to query the record and progress of URL or directory purge tasks submitted via the `PurgePathCache` or `PurgeUrlsCache` APIs.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePurgeTasksWithContext ¶
func (c *Client) DescribePurgeTasksWithContext(ctx context.Context, request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
DescribePurgeTasks This API is used to query the record and progress of URL or directory purge tasks submitted via the `PurgePathCache` or `PurgeUrlsCache` APIs.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePushQuota ¶
func (c *Client) DescribePushQuota(request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
DescribePushQuota This API is used to query the prefetch quota and daily available usage.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePushQuotaWithContext ¶
func (c *Client) DescribePushQuotaWithContext(ctx context.Context, request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error)
DescribePushQuota This API is used to query the prefetch quota and daily available usage.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ROUTEERROR = "InternalError.RouteError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DescribePushTasks ¶
func (c *Client) DescribePushTasks(request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
DescribePushTasks This API is used to query the submission record and progress of prefetch tasks.
This API is in beta test and not fully available yet. Please stay tuned.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribePushTasksWithContext ¶
func (c *Client) DescribePushTasksWithContext(ctx context.Context, request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error)
DescribePushTasks This API is used to query the submission record and progress of prefetch tasks.
This API is in beta test and not fully available yet. Please stay tuned.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) DescribeReportData ¶
func (c *Client) DescribeReportData(request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
DescribeReportData This API is used to query the daily/weekly/monthly report data at domain name/project levels.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeReportDataWithContext ¶
func (c *Client) DescribeReportDataWithContext(ctx context.Context, request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error)
DescribeReportData This API is used to query the daily/weekly/monthly report data at domain name/project levels.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) DescribeUrlViolations ¶
func (c *Client) DescribeUrlViolations(request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
DescribeUrlViolations This API is used to query the list of domain name URLs containing regulation-violating content scanned and detected by the CDN system, and the current status of the URLs.
It corresponds to the **Pornography Detection** page on the CDN Console.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized"
func (*Client) DescribeUrlViolationsWithContext ¶
func (c *Client) DescribeUrlViolationsWithContext(ctx context.Context, request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error)
DescribeUrlViolations This API is used to query the list of domain name URLs containing regulation-violating content scanned and detected by the CDN system, and the current status of the URLs.
It corresponds to the **Pornography Detection** page on the CDN Console.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized"
func (*Client) DisableCaches ¶
func (c *Client) DisableCaches(request *DisableCachesRequest) (response *DisableCachesResponse, err error)
DisableCaches This API is used to block access to a specific URL on CDN. When a URL is blocked, error 403 will be returned for requests from the Chinese mainland. URL blocking is not permanent. Note that this API is only available to beta users now.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DisableCachesWithContext ¶
func (c *Client) DisableCachesWithContext(ctx context.Context, request *DisableCachesRequest) (response *DisableCachesResponse, err error)
DisableCaches This API is used to block access to a specific URL on CDN. When a URL is blocked, error 403 will be returned for requests from the Chinese mainland. URL blocking is not permanent. Note that this API is only available to beta users now.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DisableClsLogTopic ¶
func (c *Client) DisableClsLogTopic(request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
DisableClsLogTopic This API is used to stop publishing to a log topic. Note: after a log topic is disabled, all logs of the domain names bound to it will no longer be published to the topic, and the logs that have already been published will be retained. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) DisableClsLogTopicWithContext ¶
func (c *Client) DisableClsLogTopicWithContext(ctx context.Context, request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error)
DisableClsLogTopic This API is used to stop publishing to a log topic. Note: after a log topic is disabled, all logs of the domain names bound to it will no longer be published to the topic, and the logs that have already been published will be retained. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) EnableCaches ¶
func (c *Client) EnableCaches(request *EnableCachesRequest) (response *EnableCachesResponse, err error)
EnableCaches This API (EnableCaches) is used to unblock manually blocked URLs. After a URL is successfully unblocked, it takes about 5 to 10 minutes to take effect across the entire network. (This API is during beta test and not fully available now.)
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) EnableCachesWithContext ¶
func (c *Client) EnableCachesWithContext(ctx context.Context, request *EnableCachesRequest) (response *EnableCachesResponse, err error)
EnableCaches This API (EnableCaches) is used to unblock manually blocked URLs. After a URL is successfully unblocked, it takes about 5 to 10 minutes to take effect across the entire network. (This API is during beta test and not fully available now.)
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) EnableClsLogTopic ¶
func (c *Client) EnableClsLogTopic(request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
EnableClsLogTopic This API is used to start publishing to a log topic. Note: after a log topic is enabled, all logs of the domain names bound to the topic will be published to it. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) EnableClsLogTopicWithContext ¶
func (c *Client) EnableClsLogTopicWithContext(ctx context.Context, request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error)
EnableClsLogTopic This API is used to start publishing to a log topic. Note: after a log topic is enabled, all logs of the domain names bound to the topic will be published to it. This action will take effect within 5-15 minutes.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) GetDisableRecords ¶
func (c *Client) GetDisableRecords(request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
GetDisableRecords This API is used to query the resource blocking history and the current URL status. (This API is in beta test and not generally available yet.)
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) GetDisableRecordsWithContext ¶
func (c *Client) GetDisableRecordsWithContext(ctx context.Context, request *GetDisableRecordsRequest) (response *GetDisableRecordsResponse, err error)
GetDisableRecords This API is used to query the resource blocking history and the current URL status. (This API is in beta test and not generally available yet.)
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListClsLogTopics ¶
func (c *Client) ListClsLogTopics(request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
ListClsLogTopics This API is used to display the list of log topics. Note: a logset can contain up to 10 log topics.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListClsLogTopicsWithContext ¶
func (c *Client) ListClsLogTopicsWithContext(ctx context.Context, request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error)
ListClsLogTopics This API is used to display the list of log topics. Note: a logset can contain up to 10 log topics.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListClsTopicDomains ¶
func (c *Client) ListClsTopicDomains(request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
ListClsTopicDomains This API is used to get the list of domain names bound to a log topic.
error code that may be returned:
INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListClsTopicDomainsWithContext ¶
func (c *Client) ListClsTopicDomainsWithContext(ctx context.Context, request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error)
ListClsTopicDomains This API is used to get the list of domain names bound to a log topic.
error code that may be returned:
INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListTopData ¶
func (c *Client) ListTopData(request *ListTopDataRequest) (response *ListTopDataResponse, err error)
ListTopData This API is used to list data sorted the following ways by using different combinations of the Metric and Filter input parameters:
+ It sorts access URLs by total traffic and total requests, and returns the top 1,000 URLs in descending order.
+ It sorts client districts by total traffic and total requests, and returns the list of districts in descending order.
+ It sorts client ISPs by total traffic and total requests, and returns the list of ISPs in descending order.
+ It sorts domain names by total traffic, peak bandwidth, total requests, average hit rate, and 2XX/3XX/4XX/5XX status codes, and returns the list of domain names in descending order.
+ It sorts domain names by total origin-pull traffic, peak origin-pull bandwidth, total origin-pull requests, average origin-pull failure rate, and 2XX/3XX/4XX/5XX origin-pull status codes, and returns the list of domain names in descending order.
Note: only data from the last 90 days will be queried.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDFILTER = "InvalidParameter.CdnStatInvalidFilter" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ListTopDataWithContext ¶
func (c *Client) ListTopDataWithContext(ctx context.Context, request *ListTopDataRequest) (response *ListTopDataResponse, err error)
ListTopData This API is used to list data sorted the following ways by using different combinations of the Metric and Filter input parameters:
+ It sorts access URLs by total traffic and total requests, and returns the top 1,000 URLs in descending order.
+ It sorts client districts by total traffic and total requests, and returns the list of districts in descending order.
+ It sorts client ISPs by total traffic and total requests, and returns the list of ISPs in descending order.
+ It sorts domain names by total traffic, peak bandwidth, total requests, average hit rate, and 2XX/3XX/4XX/5XX status codes, and returns the list of domain names in descending order.
+ It sorts domain names by total origin-pull traffic, peak origin-pull bandwidth, total origin-pull requests, average origin-pull failure rate, and 2XX/3XX/4XX/5XX origin-pull status codes, and returns the list of domain names in descending order.
Note: only data from the last 90 days will be queried.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError" INTERNALERROR_ERROR = "InternalError.Error" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDFILTER = "InvalidParameter.CdnStatInvalidFilter" INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNPROJECTNOTEXISTS = "ResourceNotFound.CdnProjectNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ManageClsTopicDomains ¶
func (c *Client) ManageClsTopicDomains(request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
ManageClsTopicDomains This API is used to manage the list of domain names bound to a log topic.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) ManageClsTopicDomainsWithContext ¶
func (c *Client) ManageClsTopicDomainsWithContext(ctx context.Context, request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error)
ManageClsTopicDomains This API is used to manage the list of domain names bound to a log topic.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) PurgePathCache ¶
func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
PurgePathCache This API is used to submit multiple directory purge tasks, which are carried out according to the acceleration region of the domain names.
By default, a maximum of 100 directories can be purged per day for acceleration regions either within or outside Mainland China, and up to 20 tasks can be submitted at a time.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.CdnPurgeWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNURLEXCEEDLENGTH = "InvalidParameter.CdnUrlExceedLength" LIMITEXCEEDED_CDNPURGEPATHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgePathExceedBatchLimit" LIMITEXCEEDED_CDNPURGEPATHEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgePathExceedDayLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeUrlExceedBatchLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeUrlExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) PurgePathCacheWithContext ¶
func (c *Client) PurgePathCacheWithContext(ctx context.Context, request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
PurgePathCache This API is used to submit multiple directory purge tasks, which are carried out according to the acceleration region of the domain names.
By default, a maximum of 100 directories can be purged per day for acceleration regions either within or outside Mainland China, and up to 20 tasks can be submitted at a time.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.CdnPurgeWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNURLEXCEEDLENGTH = "InvalidParameter.CdnUrlExceedLength" LIMITEXCEEDED_CDNPURGEPATHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgePathExceedBatchLimit" LIMITEXCEEDED_CDNPURGEPATHEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgePathExceedDayLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeUrlExceedBatchLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeUrlExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) PurgeUrlsCache ¶
func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
PurgeUrlsCache This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
By default, a maximum of 10,000 URLs can be purged per day for acceleration regions either within or outside Mainland China, and up to 1,000 tasks can be submitted at a time.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.CdnPurgeWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNURLEXCEEDLENGTH = "InvalidParameter.CdnUrlExceedLength" LIMITEXCEEDED_CDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeUrlExceedBatchLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeUrlExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) PurgeUrlsCacheWithContext ¶
func (c *Client) PurgeUrlsCacheWithContext(ctx context.Context, request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
PurgeUrlsCache This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
By default, a maximum of 10,000 URLs can be purged per day for acceleration regions either within or outside Mainland China, and up to 1,000 tasks can be submitted at a time.
error code that may be returned:
AUTHFAILURE_INVALIDAUTHORIZATION = "AuthFailure.InvalidAuthorization" INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError" INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.CdnPurgeWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNURLEXCEEDLENGTH = "InvalidParameter.CdnUrlExceedLength" LIMITEXCEEDED_CDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeUrlExceedBatchLimit" LIMITEXCEEDED_CDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeUrlExceedDayLimit" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) PushUrlsCache ¶
func (c *Client) PushUrlsCache(request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
PushUrlsCache This API is used to cache specified URL resources to CDN nodes. You can specify acceleration regions for the prefetch.
By default, a maximum of 1000 URLs can be prefetched per day either within or outside the Chinese mainland, and up to 20 tasks can be submitted at a time. Note that resources prefetched outside the Chinese mainland will be cached to CDN nodes outside the Chinese mainland and the traffic generated will incur costs.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPUSHWILDCARDNOTALLOWED = "InvalidParameter.CdnPushWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" LIMITEXCEEDED_CDNPUSHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPushExceedBatchLimit" LIMITEXCEEDED_CDNPUSHEXCEEDDAYLIMIT = "LimitExceeded.CdnPushExceedDayLimit" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) PushUrlsCacheWithContext ¶
func (c *Client) PushUrlsCacheWithContext(ctx context.Context, request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error)
PushUrlsCache This API is used to cache specified URL resources to CDN nodes. You can specify acceleration regions for the prefetch.
By default, a maximum of 1000 URLs can be prefetched per day either within or outside the Chinese mainland, and up to 20 tasks can be submitted at a time. Note that resources prefetched outside the Chinese mainland will be cached to CDN nodes outside the Chinese mainland and the traffic generated will incur costs.
error code that may be returned:
INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_ERROR = "InternalError.Error" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNPUSHWILDCARDNOTALLOWED = "InvalidParameter.CdnPushWildcardNotAllowed" INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" LIMITEXCEEDED_CDNPUSHEXCEEDBATCHLIMIT = "LimitExceeded.CdnPushExceedBatchLimit" LIMITEXCEEDED_CDNPUSHEXCEEDDAYLIMIT = "LimitExceeded.CdnPushExceedDayLimit" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTONLINE = "ResourceUnavailable.CdnHostIsNotOnline" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
func (*Client) SearchClsLog ¶
func (c *Client) SearchClsLog(request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
SearchClsLog This API is used to search for CLS logs. Search filters can be set to today, 24 hours (one of the last 7 days), and the last 7 days.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSINVALIDPARAM = "InvalidParameter.ClsInvalidParam" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) SearchClsLogWithContext ¶
func (c *Client) SearchClsLogWithContext(ctx context.Context, request *SearchClsLogRequest) (response *SearchClsLogResponse, err error)
SearchClsLog This API is used to search for CLS logs. Search filters can be set to today, 24 hours (one of the last 7 days), and the last 7 days.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError" INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer" INVALIDPARAMETER_CDNCLSDUPLICATETOPIC = "InvalidParameter.CdnClsDuplicateTopic" INVALIDPARAMETER_CDNCLSTOPICNOTEXIST = "InvalidParameter.CdnClsTopicNotExist" INVALIDPARAMETER_CLSINDEXCONFLICT = "InvalidParameter.ClsIndexConflict" INVALIDPARAMETER_CLSINDEXRULEEMPTY = "InvalidParameter.ClsIndexRuleEmpty" INVALIDPARAMETER_CLSINVALIDCONTENT = "InvalidParameter.ClsInvalidContent" INVALIDPARAMETER_CLSINVALIDCONTENTTYPE = "InvalidParameter.ClsInvalidContentType" INVALIDPARAMETER_CLSINVALIDPARAM = "InvalidParameter.ClsInvalidParam" INVALIDPARAMETER_CLSLOGSETCONFLICT = "InvalidParameter.ClsLogsetConflict" INVALIDPARAMETER_CLSLOGSETEMPTY = "InvalidParameter.ClsLogsetEmpty" INVALIDPARAMETER_CLSLOGSETNOTEMPTY = "InvalidParameter.ClsLogsetNotEmpty" INVALIDPARAMETER_CLSMISSINGAUTHORIZATION = "InvalidParameter.ClsMissingAuthorization" INVALIDPARAMETER_CLSMISSINGCONTENT = "InvalidParameter.ClsMissingContent" INVALIDPARAMETER_CLSSYNTAXERROR = "InvalidParameter.ClsSyntaxError" INVALIDPARAMETER_CLSTOPICCLOSED = "InvalidParameter.ClsTopicClosed" INVALIDPARAMETER_CLSTOPICCONFLICT = "InvalidParameter.ClsTopicConflict" LIMITEXCEEDED_CDNCLSTOOMANYTOPICS = "LimitExceeded.CdnClsTooManyTopics" LIMITEXCEEDED_CLSLOGSIZEEXCEED = "LimitExceeded.ClsLogSizeExceed" LIMITEXCEEDED_CLSLOGSETEXCEED = "LimitExceeded.ClsLogsetExceed" LIMITEXCEEDED_CLSTOPICEXCEED = "LimitExceeded.ClsTopicExceed" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist" RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist" RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered" UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization" UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) StartCdnDomain ¶
func (c *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
StartCdnDomain This API is used to enable the acceleration service for a disabled domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERINVALIDCREDENTIAL = "UnauthorizedOperation.CdnUserInvalidCredential" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) StartCdnDomainWithContext ¶
func (c *Client) StartCdnDomainWithContext(ctx context.Context, request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error)
StartCdnDomain This API is used to enable the acceleration service for a disabled domain name.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERINVALIDCREDENTIAL = "UnauthorizedOperation.CdnUserInvalidCredential" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) StopCdnDomain ¶
func (c *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
StopCdnDomain This API is used to suspend the acceleration service for a domain name.
Note: after the acceleration service has been suspended, requests to the cache node will return a 404 error. In order to avoid impact to your business, please move the domain name to another service before suspending the acceleration service.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) StopCdnDomainWithContext ¶
func (c *Client) StopCdnDomainWithContext(ctx context.Context, request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error)
StopCdnDomain This API is used to suspend the acceleration service for a domain name.
Note: after the acceleration service has been suspended, requests to the cache node will return a 404 error. In order to avoid impact to your business, please move the domain name to another service before suspending the acceleration service.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften" UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (*Client) UpdateDomainConfig ¶
func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
UpdateDomainConfig This API is used to modify the configuration of CDN acceleration domain names.
Note: if you need to update complex configuration items, you must pass all the attributes of the entire object. The default value will be used for attributes that are not passed. We recommend calling the querying API to obtain the configuration attributes first. You can then modify and pass the attributes to the API. The certificate and key fields do not need to be passed for HTTPS configuration.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INVALIDPARAMETER_ACCESSPORTOPENEDHTTPS = "InvalidParameter.AccessPortOpenedHttps" INVALIDPARAMETER_BANDLIMITREQUIREDMAINLAND = "InvalidParameter.BandLimitRequiredMainland" INVALIDPARAMETER_BANDWIDTHALERTCOUNTERMEASURECONFLICTORIGINTYPE = "InvalidParameter.BandwidthAlertCounterMeasureConflictOriginType" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound" INVALIDPARAMETER_CDNCONFIGINVALIDCACHE = "InvalidParameter.CdnConfigInvalidCache" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMSERVICETYPE = "InvalidParameter.CdnInvalidParamServiceType" INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_REMOTEAUTHINVALIDPLATFORM = "InvalidParameter.RemoteAuthInvalidPlatform" INVALIDPARAMETER_REMOTEAUTHINVALIDPROTOCOL = "InvalidParameter.RemoteAuthInvalidProtocol" LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINMAINLAND = "ResourceUnavailable.CdnHostBelongsToOthersInMainland" RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINOVERSEAS = "ResourceUnavailable.CdnHostBelongsToOthersInOverseas" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTOFFLINE = "ResourceUnavailable.CdnHostIsNotOffline" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) UpdateDomainConfigWithContext ¶
func (c *Client) UpdateDomainConfigWithContext(ctx context.Context, request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
UpdateDomainConfig This API is used to modify the configuration of CDN acceleration domain names.
Note: if you need to update complex configuration items, you must pass all the attributes of the entire object. The default value will be used for attributes that are not passed. We recommend calling the querying API to obtain the configuration attributes first. You can then modify and pass the attributes to the API. The certificate and key fields do not need to be passed for HTTPS configuration.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode" INVALIDPARAMETER_ACCESSPORTOPENEDHTTPS = "InvalidParameter.AccessPortOpenedHttps" INVALIDPARAMETER_BANDLIMITREQUIREDMAINLAND = "InvalidParameter.BandLimitRequiredMainland" INVALIDPARAMETER_BANDWIDTHALERTCOUNTERMEASURECONFLICTORIGINTYPE = "InvalidParameter.BandwidthAlertCounterMeasureConflictOriginType" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound" INVALIDPARAMETER_CDNCONFIGINVALIDCACHE = "InvalidParameter.CdnConfigInvalidCache" INVALIDPARAMETER_CDNHOSTINVALIDMIDDLECONFIG = "InvalidParameter.CdnHostInvalidMiddleConfig" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNINVALIDPARAMSERVICETYPE = "InvalidParameter.CdnInvalidParamServiceType" INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId" INVALIDPARAMETER_REMOTEAUTHINVALIDPLATFORM = "InvalidParameter.RemoteAuthInvalidPlatform" INVALIDPARAMETER_REMOTEAUTHINVALIDPROTOCOL = "InvalidParameter.RemoteAuthInvalidProtocol" LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINMAINLAND = "ResourceUnavailable.CdnHostBelongsToOthersInMainland" RESOURCEUNAVAILABLE_CDNHOSTBELONGSTOOTHERSINOVERSEAS = "ResourceUnavailable.CdnHostBelongsToOthersInOverseas" RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked" RESOURCEUNAVAILABLE_CDNHOSTISNOTOFFLINE = "ResourceUnavailable.CdnHostIsNotOffline" RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail" UNAUTHORIZEDOPERATION_CDNUSERAUTHWAIT = "UnauthorizedOperation.CdnUserAuthWait" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) UpdatePayType ¶
func (c *Client) UpdatePayType(request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
UpdatePayType This API is used to modify the billing mode of an account. At present, the billing mode of accounts on a monthly billing cycle and sub-accounts cannot be modified.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) UpdatePayTypeWithContext ¶
func (c *Client) UpdatePayTypeWithContext(ctx context.Context, request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error)
UpdatePayType This API is used to modify the billing mode of an account. At present, the billing mode of accounts on a monthly billing cycle and sub-accounts cannot be modified.
error code that may be returned:
INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated" UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended" UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth" UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (*Client) UpdateScdnDomain ¶
func (c *Client) UpdateScdnDomain(request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
UpdateScdnDomain This API is used to modify security configurations of SCDN acceleration domain names.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage" INTERNALERROR_SCDNUSERSUSPEND = "InternalError.ScdnUserSuspend" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
func (*Client) UpdateScdnDomainWithContext ¶
func (c *Client) UpdateScdnDomainWithContext(ctx context.Context, request *UpdateScdnDomainRequest) (response *UpdateScdnDomainResponse, err error)
UpdateScdnDomain This API is used to modify security configurations of SCDN acceleration domain names.
error code that may be returned:
FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError" INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError" INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError" INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError" INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage" INTERNALERROR_SCDNUSERSUSPEND = "InternalError.ScdnUserSuspend" INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain" INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus" INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError" INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError" LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften" RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress" RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists" RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists" RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
type ClientCert ¶
type ClientCert struct { // Client Certificate // PEM format, requires Base64 encoding. // Note: this field may return null, indicating that no valid values can be obtained. Certificate *string `json:"Certificate,omitempty" name:"Certificate"` // Client certificate name // Note: this field may return null, indicating that no valid values can be obtained. CertName *string `json:"CertName,omitempty" name:"CertName"` // Certificate expiration time // When this is used as an input parameter, it can be left blank. // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Certificate issuance time // When this is used as an input parameter, it can be left blank. // Note: this field may return null, indicating that no valid values can be obtained. DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"` }
type ClsLogObject ¶
type ClsLogObject struct { // Topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Topic name TopicName *string `json:"TopicName,omitempty" name:"TopicName"` // Log time Timestamp *string `json:"Timestamp,omitempty" name:"Timestamp"` // Log content Content *string `json:"Content,omitempty" name:"Content"` // Capture path Filename *string `json:"Filename,omitempty" name:"Filename"` // Log source device Source *string `json:"Source,omitempty" name:"Source"` }
type ClsSearchLogs ¶
type ClsSearchLogs struct { // Cursor for more search results Context *string `json:"Context,omitempty" name:"Context"` // Whether all search results have been returned Listover *bool `json:"Listover,omitempty" name:"Listover"` // Log content information Results []*ClsLogObject `json:"Results,omitempty" name:"Results"` }
type Compatibility ¶
type Compatibility struct { // Compatibility flag status code. // Note: this field may return null, indicating that no valid values can be obtained. Code *int64 `json:"Code,omitempty" name:"Code"` }
type Compression ¶
type Compression struct { // Smart compression configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Compression rules array // Note: this field may return null, indicating that no valid values can be obtained. CompressionRules []*CompressionRule `json:"CompressionRules,omitempty" name:"CompressionRules"` }
type CompressionRule ¶
type CompressionRule struct { // true: must be set as true, enables compression // Note: this field may return null, indicating that no valid values can be obtained. Compress *bool `json:"Compress,omitempty" name:"Compress"` // The minimum file size to trigger compression (in bytes) // Note: this field may return null, indicating that no valid values can be obtained. MinLength *int64 `json:"MinLength,omitempty" name:"MinLength"` // The maximum file size to trigger compression (in bytes) // The maximum value is 30 MB // Note: this field may return null, indicating that no valid values can be obtained. MaxLength *int64 `json:"MaxLength,omitempty" name:"MaxLength"` // File compression algorithm // gzip: specifies Gzip compression // brotli: specifies Brotli compression // Note: this field may return null, indicating that no valid values can be obtained. Algorithms []*string `json:"Algorithms,omitempty" name:"Algorithms"` // Compress according to the file suffix type // Such as: jpg, txt // Note: this field may return null, indicating that no valid values can be obtained. FileExtensions []*string `json:"FileExtensions,omitempty" name:"FileExtensions"` // Rule types: // `all`: effective for all files. // `file`: effective for specified file suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // `contentType`: effective when the `ContentType` is specified // If this field is specified, `FileExtensions` does not take effect. // Note: this field may return `null`, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each `CacheType`: // For `all`, enter a wildcard `*`. // For `file`, enter a suffix, e.g., `jpg` or `txt`. // For `directory`, enter a path, e.g., `/xxx/test/`. // For `path`, enter an absolute path, e.g., `/xxx/test.html`. // For `contentType`, enter `text/html`. // Note: this field may return `null`, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type CookieKey ¶
type CookieKey struct { // Whether to use `Cookie` as part of `CacheKey`. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Used cookies (separated by ';') // Note: this field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type CreateClsLogTopicRequest ¶
type CreateClsLogTopicRequest struct { *tchttp.BaseRequest // Log topic name TopicName *string `json:"TopicName,omitempty" name:"TopicName"` // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` // Domain name region information DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs"` }
func NewCreateClsLogTopicRequest ¶
func NewCreateClsLogTopicRequest() (request *CreateClsLogTopicRequest)
func (*CreateClsLogTopicRequest) FromJsonString ¶
func (r *CreateClsLogTopicRequest) FromJsonString(s string) error
FromJsonString 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 { // Topic ID // Note: This field may return null, indicating that no valid values can be obtained. TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 CreateScdnFailedLogTaskRequest ¶
type CreateScdnFailedLogTaskRequest struct { *tchttp.BaseRequest // ID of the failed task to retry TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Region. Valid values: `mainland` and `overseas`. Area *string `json:"Area,omitempty" name:"Area"` }
func NewCreateScdnFailedLogTaskRequest ¶
func NewCreateScdnFailedLogTaskRequest() (request *CreateScdnFailedLogTaskRequest)
func (*CreateScdnFailedLogTaskRequest) FromJsonString ¶
func (r *CreateScdnFailedLogTaskRequest) FromJsonString(s string) error
FromJsonString 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 { // Creation result. // 0: Creation succeeded Result *string `json:"Result,omitempty" name:"Result"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DeleteCdnDomainRequest ¶
type DeleteCdnDomainRequest struct { *tchttp.BaseRequest // Domain name // The domain name status should be `Disabled` Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewDeleteCdnDomainRequest ¶
func NewDeleteCdnDomainRequest() (request *DeleteCdnDomainRequest)
func (*DeleteCdnDomainRequest) FromJsonString ¶
func (r *DeleteCdnDomainRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` }
func NewDeleteClsLogTopicRequest ¶
func NewDeleteClsLogTopicRequest() (request *DeleteClsLogTopicRequest)
func (*DeleteClsLogTopicRequest) FromJsonString ¶
func (r *DeleteClsLogTopicRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DescribeBillingDataRequest ¶
type DescribeBillingDataRequest struct { *tchttp.BaseRequest // Query start time, e.g., 2018-09-04 10:40:00. The returned result will be later than or equal to the specified time // The time will be rounded forward based on the granularity parameter `Interval`. For example, if the query start time is 2018-09-04 10:40:00 and the query time granularity is 1-hour, the time for the first returned entry will be 2018-09-04 10:00:00 // The range between the start time and end time should be less than or equal to 90 days StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time, e.g. 2018-09-04 10:40:00. The returned result will be earlier than or equal to the specified time // The time will be rounded forward based on the granularity parameter `Interval`. For example, if the query end time is 2018-09-04 10:40:00 and the query time granularity is 1-hour, the time for the last returned entry will be 2018-09-04 10:00:00 // The range between the start time and end time should be less than or equal to 90 days EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Time granularity, which can be: // `min`: 1-minute granularity. The query period cannot exceed 24 hours. // `5min`: 5-minute granularity. The query range cannot exceed 31 days. // `hour`: 1-hour granularity. The query period cannot exceed 31 days. // `day`: 1-day granularity. The query period cannot exceed 31 days. // // Querying 1-minute granularity data is not supported if the `Area` field is `overseas`. Interval *string `json:"Interval,omitempty" name:"Interval"` // Domain name whose billing data is to be queried Domain *string `json:"Domain,omitempty" name:"Domain"` // Project ID, which can be viewed [here](https://console.cloud.tencent.com/project) // If the `Domain` parameter is populated with specific domain name information, then the billing data of this domain name instead of the specified project will be returned Project *int64 `json:"Project,omitempty" name:"Project"` // Acceleration region whose billing data is to be queried: // mainland: in the mainland of China // overseas: outside the mainland of China // If this parameter is left empty, `mainland` will be used by default Area *string `json:"Area,omitempty" name:"Area"` // Country/region to be queried if `Area` is `overseas` // For district or country/region codes, please see [District Code Mappings](https://intl.cloud.tencent.com/document/product/228/6316?from_cn_redirect=1#.E7.9C.81.E4.BB.BD.E6.98.A0.E5.B0.84) // If this parameter is left empty, all countries/regions will be queried District *int64 `json:"District,omitempty" name:"District"` // Billing statistics type // flux: bill-by-traffic // bandwidth: bill-by-bandwidth // Default value: `bandwidth` Metric *string `json:"Metric,omitempty" name:"Metric"` // Specifies the product to query, either `cdn` (default) or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` }
func NewDescribeBillingDataRequest ¶
func NewDescribeBillingDataRequest() (request *DescribeBillingDataRequest)
func (*DescribeBillingDataRequest) FromJsonString ¶
func (r *DescribeBillingDataRequest) FromJsonString(s string) error
FromJsonString 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 { // Time granularity, which is specified by the parameter passed in during the query: // min: 1-minute // 5min: 5-minute // hour: 1-hour // day: 1-day Interval *string `json:"Interval,omitempty" name:"Interval"` // Data details Data []*ResourceBillingData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Queries start time, such as 2018-09-04 10:40:00; the returned result is later than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query end time is 2018-09-04 10:40:00 and the query time granularity is 1 hour, the time for the first returned entry will be 2018-09-04 10:00:00. // The gap between the start time and end time should be less than or equal to 90 days. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Queries end time, such as 2018-09-04 10:40:00; the returned result is earlier than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query start time is 2018-09-04 10:40:00 and the query time granularity is 1 hour, the time for the last returned entry will be 2018-09-04 10:00:00. // The gap between the start time and end time should be less than or equal to 90 days. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies the metric to query, which can be: // `flux`: traffic (in bytes) // `fluxIn`: upstream traffic (in bytes), only used for the `ecdn` product // `fluxOut`: downstream traffic (in bytes), only used for the `ecdn` product // `bandwidth`: bandwidth (in bps) // `bandwidthIn`: upstream bandwidth (in bps), only used for the `ecdn` product // `bandwidthOut`: downstream bandwidth (in bps), only used for the `ecdn` product // `request`: number of requests // `hitRequest`: number of hit requests // `requestHitRate`: request hit rate (in % with two decimal digits) // `hitFlux`: hit traffic (in bytes) // `fluxHitRate`: traffic hit rate (in % with two decimal digits) // `statusCode`: status code. Number of 2xx, 3xx, 4xx, and 5xx status codes returned during the queried period. // `2xx`: lists the number of all status codes starting with **2** returned during the queried period based on the specified interval (if any) // `3xx`: lists the number of all status codes starting with **3** returned during the queried period based on the specified interval (if any) // `4xx`: lists the number of all status codes starting with **4** returned during the queried period based on the specified interval (if any) // `5xx`: lists the number of all status codes starting with **5** returned during the queried period based on the specified interval (if any) // Specifies the status code to query. The return will be empty if the status code has never been generated. Metric *string `json:"Metric,omitempty" name:"Metric"` // Queries the information of specified domain names // Specifies a domain name to query // Specifies multiple domain names to query (30 at most at a time) // Queries all Specifies an account to query all domain names Domains []*string `json:"Domains,omitempty" name:"Domains"` // Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project) // Please note that if domain names are specified, this parameter will be ignored. Project *int64 `json:"Project,omitempty" name:"Project"` // Time granularity; valid values: // `min`: data with 1-minute granularity is returned when the queried period is no longer than 24 hours. This value is not supported if the service region you want to query is outside Mainland China; // `5min`: data with 5-minute granularity is returned when the queried period is no longer than 31 days; // `hour`: data with 1-hour granularity is returned when the queried period is no longer than 31 days; // `day`: data with 1-day granularity is returned when the queried period is longer than 31 days. Interval *string `json:"Interval,omitempty" name:"Interval"` // The aggregate data for multiple domain names is returned by default (false) during a multi-domain-name query. // You can set it to true to return the details for each Domain (the statusCode metric is currently not supported) Detail *bool `json:"Detail,omitempty" name:"Detail"` // Specifies an ISP when you query the CDN data within Mainland China. If this is left blank, all ISPs will be queried. // To view ISP codes, see [ISP Code Mappings](https://intl.cloud.tencent.com/document/product/228/6316?from_cn_redirect=1#.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) // If you have specified an ISP, you cannot specify a province or an IP protocol for the same query. Isp *int64 `json:"Isp,omitempty" name:"Isp"` // Specifies a province when you query the CDN data within Mainland China. If this is left blank, all provinces will be queried. // Specifies a country/region when you query the CDN data outside Mainland China. If this is left blank, all countries/regions will be queried. // To view codes of provinces or countries/regions, see [Province Code Mappings](https://intl.cloud.tencent.com/document/product/228/6316?from_cn_redirect=1#.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) // If you have specified a province for your query on CDN data within mainland China, you cannot specify an ISP or an IP protocol for the same query. District *int64 `json:"District,omitempty" name:"District"` // Specifies the protocol to be queried; if you leave it blank, all protocols will be queried. // all: All protocols // http: specifies the HTTP metric to be queried // https: specifies the HTTPS metric to be queried Protocol *string `json:"Protocol,omitempty" name:"Protocol"` // Specifies the data source to be queried, which can be seen as the allowlist function. DataSource *string `json:"DataSource,omitempty" name:"DataSource"` // Specified IP protocol to be queried. If this parameter is left empty, all protocols will be queried // all: all protocols // ipv4: specifies to query IPv4 metrics // ipv6: specifies to query IPv6 metrics // If the IP protocol to be queried is specified, the district and ISP cannot be specified at the same time // Note: non-IPv6 allowlisted users cannot specify `ipv4` and `ipv6` for query IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` // Specifies a service region. If this value is left blank, CDN data within Mainland China will be queried. // `mainland`: specifies to query CDN data within Mainland China; // `overseas`: specifies to query CDN data outside Mainland China. Area *string `json:"Area,omitempty" name:"Area"` // Specifies a region type for your query on CDN data outside Mainland China. If this parameter is left blank, data on the service region will be queried. This parameter is valid only when `Area` is `overseas`. // `server`: specifies to query data on the service region where Tencent Cloud CDN nodes are located; // `client`: specifies to query data on the client region where the request devices are located. AreaType *string `json:"AreaType,omitempty" name:"AreaType"` // Specifies the product to query, either `cdn` (default) or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` }
func NewDescribeCdnDataRequest ¶
func NewDescribeCdnDataRequest() (request *DescribeCdnDataRequest)
func (*DescribeCdnDataRequest) FromJsonString ¶
func (r *DescribeCdnDataRequest) FromJsonString(s string) error
FromJsonString 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 { // Time granularity of the returned data. Specify one of the following during querying: // min: 1 minute // 5min: 5 minutes // hour: 1 hour // day: 1 day Interval *string `json:"Interval,omitempty" name:"Interval"` // Returned data details of the specified conditional query Data []*ResourceData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Specifies a domain name for the query Domain *string `json:"Domain,omitempty" name:"Domain"` // Starting time, such as `2019-09-04 00:00:00` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time, such as `2019-09-04 12:00:00` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paged queries. Default value: 100. Maximum value: 1,000 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Specifies a region for the query. // `mainland`: specifies to return the download link of logs on acceleration within Mainland China; // `overseas`: specifies to return the download link of logs on acceleration outside Mainland China; // `global`: specifies to return a download link of logs on acceleration within Mainland China and a link of logs on acceleration outside Mainland China. // Default value: `mainland`. Area *string `json:"Area,omitempty" name:"Area"` // The type of log to be downloaded. // access: access logs LogType *string `json:"LogType,omitempty" name:"LogType"` }
func NewDescribeCdnDomainLogsRequest ¶
func NewDescribeCdnDomainLogsRequest() (request *DescribeCdnDomainLogsRequest)
func (*DescribeCdnDomainLogsRequest) FromJsonString ¶
func (r *DescribeCdnDomainLogsRequest) FromJsonString(s string) error
FromJsonString 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 { // Download link of the log package DomainLogs []*DomainLog `json:"DomainLogs,omitempty" name:"DomainLogs"` // Total number of entries obtained TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // List of IPs to be queried Ips []*string `json:"Ips,omitempty" name:"Ips"` }
func NewDescribeCdnIpRequest ¶
func NewDescribeCdnIpRequest() (request *DescribeCdnIpRequest)
func (*DescribeCdnIpRequest) FromJsonString ¶
func (r *DescribeCdnIpRequest) FromJsonString(s string) error
FromJsonString 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 { // Node ownership details Ips []*CdnIp `json:"Ips,omitempty" name:"Ips"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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
FromJsonString 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 { // Intermediate node IP details Ips []*OriginIp `json:"Ips,omitempty" name:"Ips"` // Number of intermediate node IPs TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Base64-encoded string of certificate in PEM format Cert *string `json:"Cert,omitempty" name:"Cert"` // Managed certificate ID. `Cert` and `CertId` cannot be both empty. If they’re both filled in, `CerID` prevails. CertId *string `json:"CertId,omitempty" name:"CertId"` // Product of the domain name, either `cdn` (default) or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` }
func NewDescribeCertDomainsRequest ¶
func NewDescribeCertDomainsRequest() (request *DescribeCertDomainsRequest)
func (*DescribeCertDomainsRequest) FromJsonString ¶
func (r *DescribeCertDomainsRequest) FromJsonString(s string) error
FromJsonString 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 { // List of domain names connected to CDN // Note: this field may return null, indicating that no valid values can be obtained. Domains []*string `json:"Domains,omitempty" name:"Domains"` // List of CDN domain names with certificates configured // Note: this field may return null, indicating that no valid values can be obtained. CertifiedDomains []*string `json:"CertifiedDomains,omitempty" name:"CertifiedDomains"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DescribeDomainsConfigRequest ¶
type DescribeDomainsConfigRequest struct { *tchttp.BaseRequest // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paginated queries. Default value: 100. Maximum value: 1000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Query condition filter, complex type. Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters"` // Sorting rules Sort *Sort `json:"Sort,omitempty" name:"Sort"` }
func NewDescribeDomainsConfigRequest ¶
func NewDescribeDomainsConfigRequest() (request *DescribeDomainsConfigRequest)
func (*DescribeDomainsConfigRequest) FromJsonString ¶
func (r *DescribeDomainsConfigRequest) FromJsonString(s string) error
FromJsonString 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 { // List of domain names Domains []*DetailDomain `json:"Domains,omitempty" name:"Domains"` // The number of domain names that matched the query conditions // Used for paginated queries TotalNumber *int64 `json:"TotalNumber,omitempty" name:"TotalNumber"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paginated queries. Default value: 100. Maximum value: 1000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Query condition filter, complex type. Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeDomainsRequest ¶
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest)
func (*DescribeDomainsRequest) FromJsonString ¶
func (r *DescribeDomainsRequest) FromJsonString(s string) error
FromJsonString 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 { // List of domain names Domains []*BriefDomain `json:"Domains,omitempty" name:"Domains"` // The number of domain names that matched the query conditions // Used for paginated queries TotalNumber *int64 `json:"TotalNumber,omitempty" name:"TotalNumber"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DescribeIpStatusRequest ¶
type DescribeIpStatusRequest struct { *tchttp.BaseRequest // Acceleration domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // Node type. // edge: edge server // last: intermediate server // If this parameter is left empty, edge server information will be returned by default Layer *string `json:"Layer,omitempty" name:"Layer"` // Region to be queried. // mainland: domestic nodes // overseas: overseas nodes // global: global nodes Area *string `json:"Area,omitempty" name:"Area"` // Whether to return a value as an IP range Segment *bool `json:"Segment,omitempty" name:"Segment"` }
func NewDescribeIpStatusRequest ¶
func NewDescribeIpStatusRequest() (request *DescribeIpStatusRequest)
func (*DescribeIpStatusRequest) FromJsonString ¶
func (r *DescribeIpStatusRequest) FromJsonString(s string) error
FromJsonString 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 { // Node list Ips []*IpStatus `json:"Ips,omitempty" name:"Ips"` // Total number of nodes TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Query start time, such as 2018-09-04 10:40:10; the returned result is later than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query start time is 2018-09-04 10:40:10 and the query time granularity is 5 minutes, the time for the first returned entry will be 2018-09-04 10:40:00. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time, such as 2018-09-04 10:40:10; the returned result is earlier than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query start time is 2018-09-04 10:40:10 and the query time granularity is 5 minutes, the time for the last returned entry will be 2018-09-04 10:40:00. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies the list of domain names to be queried; up to 30 domain names can be queried at a time. Domains []*string `json:"Domains,omitempty" name:"Domains"` // Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project) // Please note that if domain names are specified, this parameter will be ignored. Project *int64 `json:"Project,omitempty" name:"Project"` // Time granularity, which can be: // 5min: 5 minutes. If the query period is within 24 hours, `5min` will be used by default. // day: 1 day. If the query period is longer than 24 hours, `day` will be used by default. Interval *string `json:"Interval,omitempty" name:"Interval"` }
func NewDescribeIpVisitRequest ¶
func NewDescribeIpVisitRequest() (request *DescribeIpVisitRequest)
func (*DescribeIpVisitRequest) FromJsonString ¶
func (r *DescribeIpVisitRequest) FromJsonString(s string) error
FromJsonString 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 { // Time granularity of data statistics, which supports 5min (5 minutes) and day (1 day). Interval *string `json:"Interval,omitempty" name:"Interval"` // Origin-pull data details of each resource. Data []*ResourceData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Query type: // `isp`: queries ISP codes // `district`: queries codes of provinces (Mainland China) or countries/regions (outside Mainland China) Name *string `json:"Name,omitempty" name:"Name"` }
func NewDescribeMapInfoRequest ¶
func NewDescribeMapInfoRequest() (request *DescribeMapInfoRequest)
func (*DescribeMapInfoRequest) FromJsonString ¶
func (r *DescribeMapInfoRequest) FromJsonString(s string) error
FromJsonString 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 { // Array of mappings. MapInfoList []*MapInfo `json:"MapInfoList,omitempty" name:"MapInfoList"` // The relationship between server region ID and sub-region ID // Note: This field may return null, indicating that no valid values can be obtained. ServerRegionRelation []*RegionMapRelation `json:"ServerRegionRelation,omitempty" name:"ServerRegionRelation"` // The relationship between client region ID and sub-region ID // Note: This field may return null, indicating that no valid values can be obtained. ClientRegionRelation []*RegionMapRelation `json:"ClientRegionRelation,omitempty" name:"ClientRegionRelation"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Query start time, such as 2018-09-04 10:40:00; the returned result is later than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query end time is 2018-09-04 10:40:00 and the query time granularity is 1 hour, the time for the first returned entry will be 2018-09-04 10:00:00. // The gap between the start time and end time should be less than or equal to 90 days. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time, such as 2018-09-04 10:40:00; the returned result is earlier than or equal to the specified time. // According to the specified time granularity, forward rounding is applied; for example, if the query start time is 2018-09-04 10:40:00 and the query time granularity is 1 hour, the time for the last returned entry will be 2018-09-04 10:00:00. // The gap between the start time and end time should be less than or equal to 90 days. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies the query metric, which can be: // flux: origin-pull traffic (in bytes) // bandwidth: origin-pull bandwidth (in bps) // request: number of origin-pull requests // failRequest: number of failed origin-pull requests // failRate: origin-pull failure rate (in %) // statusCode: origin-pull status code. The aggregate data for 2xx, 3xx, 4xx, and 5xx origin-pull status codes will be returned (in entries) // 2xx: Returns the aggregate list of 2xx origin-pull status codes and the data for origin-pull status codes starting with 2 (in entries) // 3xx: Returns the aggregate list of 3xx origin-pull status codes and the data for origin-pull status codes starting with 3 (in entries) // 4xx: Returns the aggregate list of 4xx origin-pull status codes and the data for origin-pull status codes starting with 4 (in entries) // 5xx: Returns the aggregate list of 5xx origin-pull status codes and the data for origin-pull status codes starting with 5 (in entries) // It is supported to specify a status code for query. The return will be empty if the status code has never been generated. Metric *string `json:"Metric,omitempty" name:"Metric"` // Specifies the list of domain names to be queried; up to 30 domain names can be queried at a time. Domains []*string `json:"Domains,omitempty" name:"Domains"` // Project ID, which can be viewed [here](https://console.cloud.tencent.com/project) // If the domain name is not specified, the specified project will be queried. Up to 30 acceleration domain names can be queried at a time // If the domain name information is specified, the domain name will prevail Project *int64 `json:"Project,omitempty" name:"Project"` // Time granularity; valid values: // `min`: data with 1-minute granularity is returned when the queried period is no longer than 24 hours. This value is not supported if the service region you want to query is outside Mainland China; // `5min`: data with 5-minute granularity is returned when the queried period is no longer than 31 days; // `hour`: data with 1-hour granularity is returned when the queried period is no longer than 31 days; // `day`: data with 1-day granularity is returned when the queried period is longer than 31 days. Interval *string `json:"Interval,omitempty" name:"Interval"` // The aggregate data for multiple domain names is returned by default (false) when multiple `Domains` are passed in. // You can set it to true to return the details for each Domain (the statusCode metric is currently not supported) Detail *bool `json:"Detail,omitempty" name:"Detail"` // Specifies a service region. If this value is left blank, CDN data within Mainland China will be queried. // `mainland`: specifies to query CDN data within Mainland China; // `overseas`: specifies to query CDN data outside Mainland China. Area *string `json:"Area,omitempty" name:"Area"` }
func NewDescribeOriginDataRequest ¶
func NewDescribeOriginDataRequest() (request *DescribeOriginDataRequest)
func (*DescribeOriginDataRequest) FromJsonString ¶
func (r *DescribeOriginDataRequest) FromJsonString(s string) error
FromJsonString 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 { // Time granularity of data statistics, which supports min (1 minute), 5min (5 minutes), hour (1 hour), and day (1 day). Interval *string `json:"Interval,omitempty" name:"Interval"` // Origin-pull data details of each resource. Data []*ResourceOriginData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Specifies a service region. // `mainland`: queries billing methods within Mainland China; // `overseas`: queries billing methods outside Mainland China. // Default value: `mainland`. Area *string `json:"Area,omitempty" name:"Area"` // Specifies the product to query, either `cdn` (default) or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` }
func NewDescribePayTypeRequest ¶
func NewDescribePayTypeRequest() (request *DescribePayTypeRequest)
func (*DescribePayTypeRequest) FromJsonString ¶
func (r *DescribePayTypeRequest) FromJsonString(s string) error
FromJsonString 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 { // Billing modes: // `flux`: bill-by-traffic // `bandwidth`: bill-by-bandwidth // `request`: bill-by-request // In case the billing mode is changed in the day, if there is bandwidth consumption occurred in the current day, the billing mode returned is the new billing mode for the next day. If no bandwidth consumption occurs, it indicates the current billing mode. PayType *string `json:"PayType,omitempty" name:"PayType"` // Billing cycle: // day: daily settlement // month: monthly settlement BillingCycle *string `json:"BillingCycle,omitempty" name:"BillingCycle"` // `monthMax`: billed by the monthly average of daily peak traffic (monthly settlement) // `day95`: billed by the daily 95th percentile bandwidth (monthly settlement) // `month95`: billed by the monthly 95th percentile bandwidth (monthly settlement) // `sum`: billed by the total traffic/total requests (daily or monthly settlement) // `max`: billed by the peak bandwidth (daily settlement) StatType *string `json:"StatType,omitempty" name:"StatType"` // Billing method outside Mainland China: // `all`: unified billing for all regions // `multiple`: separate billing for different regions RegionType *string `json:"RegionType,omitempty" name:"RegionType"` // The current billing mode in effect: // `flux`: bill-by-traffic // `bandwidth`: bill-by-bandwidth // `request`: bill-by-request CurrentPayType *string `json:"CurrentPayType,omitempty" name:"CurrentPayType"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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
FromJsonString 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 purge usage and quota. UrlPurge []*Quota `json:"UrlPurge,omitempty" name:"UrlPurge"` // Directory purge usage and quota. PathPurge []*Quota `json:"PathPurge,omitempty" name:"PathPurge"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Specifies a purge type: // `url`: URL purge record // `path`: Directory purge record PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"` // Specifies the starting time of the period you want to query, such as `2018-08-08 00:00:00` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Specifies the end time of the period you want to query, such as 2018-08-08 23:59:59 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies a task ID when you want to query by task ID. // You must specify either a task ID or a starting time for your query. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paged queries. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // You can filter the results by domain name or a complete URL beginning with `http(s)://` Keyword *string `json:"Keyword,omitempty" name:"Keyword"` // Specifies a task state for your query: // `fail`: purge failed // `done`: purge succeeded // `process`: purge in progress Status *string `json:"Status,omitempty" name:"Status"` // Specifies a purge region for your query: // `mainland`: within Mainland China // `overseas`: outside Mainland China // `global`: global Area *string `json:"Area,omitempty" name:"Area"` }
func NewDescribePurgeTasksRequest ¶
func NewDescribePurgeTasksRequest() (request *DescribePurgeTasksRequest)
func (*DescribePurgeTasksRequest) FromJsonString ¶
func (r *DescribePurgeTasksRequest) FromJsonString(s string) error
FromJsonString 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 { // Detailed purge record. // Note: This field may return null, indicating that no valid values can be obtained. PurgeLogs []*PurgeTask `json:"PurgeLogs,omitempty" name:"PurgeLogs"` // Total number of tasks, which is used for pagination. // Note: This field may return null, indicating that no valid values can be obtained. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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
FromJsonString 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 prefetch usage and quota. UrlPush []*Quota `json:"UrlPush,omitempty" name:"UrlPush"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Starting time, such as `2018-08-08 00:00:00` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time, such as `2018-08-08 23:59:59` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies a task ID for your query. // You must specify either a task ID or a starting time. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Specifies a keyword for your query. Please enter a domain name or a complete URL beginning with `http(s)://` Keyword *string `json:"Keyword,omitempty" name:"Keyword"` // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paged queries. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Specifies a region for your query: // `mainland`: within Mainland China // `overseas`: outside Mainland China // `global`: global Area *string `json:"Area,omitempty" name:"Area"` // Queries the status of a specified task // `fail`: prefetch failed // `done`: prefetch succeeded // `process`: prefetch in progress // `invalid`: invalid prefetch with 4XX/5XX status code returned from the origin server Status *string `json:"Status,omitempty" name:"Status"` }
func NewDescribePushTasksRequest ¶
func NewDescribePushTasksRequest() (request *DescribePushTasksRequest)
func (*DescribePushTasksRequest) FromJsonString ¶
func (r *DescribePushTasksRequest) FromJsonString(s string) error
FromJsonString 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 { // Prefetch history // Note: This field may return null, indicating that no valid values can be obtained. PushLogs []*PushTask `json:"PushLogs,omitempty" name:"PushLogs"` // Total number of tasks, which is used for pagination. // Note: This field may return null, indicating that no valid values can be obtained. TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Query the start time in the format of `yyyy-MM-dd` // If the report type is `daily`, the start time and end time must be the same day. // If the report type is `weekly`, the start time must be Monday and the end time must be the Sunday of the same week. // If the report type is `monthly`, the start time must be the first day of the calendar month and the end time must be the last day of the same calendar month. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query the end time in the format of `yyyy-MM-dd` // If the report type is `daily`, the start time and end time must be of the same day. // If the report type is `weekly`, the start time must be Monday and the end time must be the Sunday of the same week. // If the report type is `monthly`, the start time must be the first day of the calendar month and the end time must be the last day of the same calendar month. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Report type // daily: daily report // weekly: weekly report (Monday to Sunday) // monthly: monthly report (calendar month) ReportType *string `json:"ReportType,omitempty" name:"ReportType"` // Domain name acceleration region // mainland: in Mainland China // overseas: outside Mainland China Area *string `json:"Area,omitempty" name:"Area"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of data entries. Default value: 1000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filters by project ID Project *int64 `json:"Project,omitempty" name:"Project"` }
func NewDescribeReportDataRequest ¶
func NewDescribeReportDataRequest() (request *DescribeReportDataRequest)
func (*DescribeReportDataRequest) FromJsonString ¶
func (r *DescribeReportDataRequest) FromJsonString(s string) error
FromJsonString 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 { // Domain name-level data details. DomainReport []*ReportData `json:"DomainReport,omitempty" name:"DomainReport"` // Project-level data details ProjectReport []*ReportData `json:"ProjectReport,omitempty" name:"ProjectReport"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DescribeUrlViolationsRequest ¶
type DescribeUrlViolationsRequest struct { *tchttp.BaseRequest // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paginated queries. Default value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Specified domain name query Domains []*string `json:"Domains,omitempty" name:"Domains"` }
func NewDescribeUrlViolationsRequest ¶
func NewDescribeUrlViolationsRequest() (request *DescribeUrlViolationsRequest)
func (*DescribeUrlViolationsRequest) FromJsonString ¶
func (r *DescribeUrlViolationsRequest) FromJsonString(s string) error
FromJsonString 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 { // Details of URLs in violation // Note: this field may return null, indicating that no valid values can be obtained. UrlRecordList []*ViolationUrl `json:"UrlRecordList,omitempty" name:"UrlRecordList"` // Total number of records, which is used for pagination. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Domain name ID ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tencent Cloud account ID AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Acceleration domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // CNAME address of domain name // Note: this field may return null, indicating that no valid values can be obtained. Cname *string `json:"Cname,omitempty" name:"Cname"` // Acceleration service status // rejected: the domain name is rejected due to expiration/deregistration of its ICP filing // processing: deploying // online: activated // offline: disabled Status *string `json:"Status,omitempty" name:"Status"` // Project ID, which can be viewed on the Tencent Cloud project management page ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Domain name service type // web: static acceleration // download: download acceleration // media: streaming VOD acceleration ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Domain name creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Last modified time of domain name UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Origin server configuration Origin *Origin `json:"Origin,omitempty" name:"Origin"` // IP blacklist/whitelist configuration // Note: this field may return null, indicating that no valid values can be obtained. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access frequency limit configuration // Note: this field may return null, indicating that no valid values can be obtained. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Status code cache configuration // Note: this field may return null, indicating that no valid values can be obtained. StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"` // Smart compression configuration // Note: this field may return null, indicating that no valid values can be obtained. Compression *Compression `json:"Compression,omitempty" name:"Compression"` // Bandwidth cap configuration // Note: this field may return null, indicating that no valid values can be obtained. BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"` // Range GETs configuration // Note: this field may return null, indicating that no valid values can be obtained. RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"` // 301/302 origin-pull follow-redirect configuration // Note: this field may return null, indicating that no valid values can be obtained. FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"` // Configuration of custom error page // Note: this field may return `null`, indicating that no valid values can be obtained. ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // Custom request header configuration // Note: this field may return null, indicating that no valid values can be obtained. RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"` // Custom response header configuration // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Single-link downstream speed limit configuration // Note: this field may return null, indicating that no valid values can be obtained. DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"` // Configuration of cache with/without parameter // Note: this field may return null, indicating that no valid values can be obtained. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Origin server header cache configuration // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"` // Video dragging configuration // Note: this field may return null, indicating that no valid values can be obtained. VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"` // Node cache expiration rule configuration // Note: this field may return null, indicating that no valid values can be obtained. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // Cross-border linkage optimization configuration (in beta) // Note: this field may return null, indicating that no valid values can be obtained. OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"` // HTTPS acceleration configuration // Note: this field may return null, indicating that no valid values can be obtained. Https *Https `json:"Https,omitempty" name:"Https"` // Timestamp hotlink protection configuration // Note: this field may return null, indicating that no valid values can be obtained. Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"` // SEO configuration // Note: this field may return null, indicating that no valid values can be obtained. Seo *Seo `json:"Seo,omitempty" name:"Seo"` // Domain name block status // normal: normal // overdue: the domain name has been disabled due to account arrears. The acceleration service can be resumed after the account is topped up. // malicious: the acceleration service has been forcibly disabled due to detection of malicious behavior. // ddos: the acceleration service has been disabled due to large-scale DDoS attacks to the domain name // idle: no operations or data has been detected for more than 90 days. The domain name is determined to be inactive which automatically disables the acceleration service. You can restart the service. // unlicensed: the acceleration service has been automatically disabled as the domain name has no ICP filing or its ICP filing is deregistered. Service can be resumed after an ICP filing is obtained. // capping: the configured upper limit for bandwidth has been reached. // readonly: the domain name has a special configuration and has been locked. // Note: this field may return null, indicating that no valid values can be obtained. Disable *string `json:"Disable,omitempty" name:"Disable"` // Access protocol forced redirect configuration // Note: this field may return null, indicating that no valid values can be obtained. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Referer hotlink protection configuration // Note: this field may return null, indicating that no valid values can be obtained. Referer *Referer `json:"Referer,omitempty" name:"Referer"` // Browser cache expiration rule configuration (in beta) // Note: this field may return null, indicating that no valid values can be obtained. MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"` // IPv6 origin-pull configuration (in beta) // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv6 *Ipv6 `json:"Ipv6,omitempty" name:"Ipv6"` // Backwards compatibility configuration (compatibility field for internal use) // Note: this field may return null, indicating that no valid values can be obtained. Compatibility *Compatibility `json:"Compatibility,omitempty" name:"Compatibility"` // Region-specific configuration // Note: this field may return null, indicating that no valid values can be obtained. SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"` // Acceleration region // mainland: acceleration in Mainland China // overseas: acceleration outside Mainland China // global: global acceleration // Note: this field may return null, indicating that no valid values can be obtained. Area *string `json:"Area,omitempty" name:"Area"` // Domain name lock status // normal: not locked // mainland: locked in Mainland China // overseas: locked outside Mainland China // global: locked globally // Note: this field may return null, indicating that no valid values can be obtained. Readonly *string `json:"Readonly,omitempty" name:"Readonly"` // Origin-pull timeout configuration // Note: this field may return null, indicating that no valid values can be obtained. OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"` // S3 bucket origin access authentication configuration // Note: this field may return null, indicating that no valid values can be obtained. AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"` // SCDN configuration SecurityConfig *SecurityConfig `json:"SecurityConfig,omitempty" name:"SecurityConfig"` // Image Optimization configuration ImageOptimization *ImageOptimization `json:"ImageOptimization,omitempty" name:"ImageOptimization"` // `UA` blocklist/allowlist configuration UserAgentFilter *UserAgentFilter `json:"UserAgentFilter,omitempty" name:"UserAgentFilter"` // Access control AccessControl *AccessControl `json:"AccessControl,omitempty" name:"AccessControl"` // Whether to support advanced configuration items // on: supported // off: not supported // Note: this field may return null, indicating that no valid values can be obtained. Advance *string `json:"Advance,omitempty" name:"Advance"` // URL redirect configuration // Note: this field may return null, indicating that no valid values can be obtained. UrlRedirect *UrlRedirect `json:"UrlRedirect,omitempty" name:"UrlRedirect"` // Access port configuration // Note: this field may return null, indicating that no valid values can be obtained. AccessPort []*int64 `json:"AccessPort,omitempty" name:"AccessPort"` // Tag configuration // Note: this field may return null, indicating that no valid value is obtained. Tag []*Tag `json:"Tag,omitempty" name:"Tag"` // Timestamp hotlink protection advanced configuration (allowlist feature) // Note: this field may return `null`, indicating that no valid values can be obtained. AdvancedAuthentication *AdvancedAuthentication `json:"AdvancedAuthentication,omitempty" name:"AdvancedAuthentication"` // Origin-pull authentication advanced configuration (allowlist feature) // Note: this field may return `null`, indicating that no valid values can be obtained. OriginAuthentication *OriginAuthentication `json:"OriginAuthentication,omitempty" name:"OriginAuthentication"` // IPv6 access configuration // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"` // Advanced configuration settings // Note: this field may return `null`, indicating that no valid values can be obtained. AdvanceSet []*AdvanceConfig `json:"AdvanceSet,omitempty" name:"AdvanceSet"` // Offline cache (only available to beta users) // Note: this field may return `null`, indicating that no valid values can be obtained. OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"` // Merging origin-pull requests (only available to beta users) // Note: this field may return `null`, indicating that no valid values can be obtained. OriginCombine *OriginCombine `json:"OriginCombine,omitempty" name:"OriginCombine"` // POST request configuration item // Note: this field may return `null`, indicating that no valid values can be obtained. PostMaxSize *PostSize `json:"PostMaxSize,omitempty" name:"PostMaxSize"` // QUIC configuration // Note: this field may return `null`, indicating that no valid values can be obtained. Quic *Quic `json:"Quic,omitempty" name:"Quic"` // Access authentication for OSS origin // Note: this field may return `null`, indicating that no valid values can be obtained. OssPrivateAccess *OssPrivateAccess `json:"OssPrivateAccess,omitempty" name:"OssPrivateAccess"` // WebSocket configuration. // Note: this field may return `null`, indicating that no valid values can be obtained. WebSocket *WebSocket `json:"WebSocket,omitempty" name:"WebSocket"` // Remote authentication configuration // Note: this field may return `null`, indicating that no valid values can be obtained. RemoteAuthentication *RemoteAuthentication `json:"RemoteAuthentication,omitempty" name:"RemoteAuthentication"` // Note: this field may return `null`, indicating that no valid values can be obtained. ShareCname *ShareCname `json:"ShareCname,omitempty" name:"ShareCname"` }
type DisableCachesRequest ¶
type DisableCachesRequest struct { *tchttp.BaseRequest // List of URLs to be blocked (URLs must contain `http://` or `https://`). // Up to 100 entries can be submitted at a time and 3,000 entries per day. Urls []*string `json:"Urls,omitempty" name:"Urls"` }
func NewDisableCachesRequest ¶
func NewDisableCachesRequest() (request *DisableCachesRequest)
func (*DisableCachesRequest) FromJsonString ¶
func (r *DisableCachesRequest) FromJsonString(s string) error
FromJsonString 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 { // Submission result // Note: This field may return null, indicating that no valid values can be obtained. CacheOptResult *CacheOptResult `json:"CacheOptResult,omitempty" name:"CacheOptResult"` // Task ID. // Note: this field may return `null`, indicating that no valid values can be obtained. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` }
func NewDisableClsLogTopicRequest ¶
func NewDisableClsLogTopicRequest() (request *DisableClsLogTopicRequest)
func (*DisableClsLogTopicRequest) FromJsonString ¶
func (r *DisableClsLogTopicRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 DomainAreaConfig ¶
type DomainFilter ¶
type DomainFilter struct { // Filters field name, which includes: // - `origin`: primary origin server. // - `domain`: domain name. // - `resourceId`: domain name ID. // - `status`: domain name status. Valid values: `online`, `offline`, and `processing`. // - `serviceType`: service type. Valid values: `web`, `download`, and `media`. // - projectId: project ID. // - `domainType`: primary origin server type. Valid values: `cname` (external origin), `COS` (COS origin), and `third_party` (3rd-party object storage origin). // - `fullUrlCache`: whether to enable full-path cache, which can be `on` or `off`. // - `https`: whether to configure HTTPS, which can be `on`, `off` or `processing`. // - `originPullProtocol`: origin-pull protocol type, which can be `http`, `follow`, or `https`. // - `tagKey`: tag key. Name *string `json:"Name,omitempty" name:"Name"` // Filter field value. Value []*string `json:"Value,omitempty" name:"Value"` // Whether to enable fuzzy query. Only `origin` or `domain` is supported for the filter field name. // When fuzzy query is enabled, the maximum Value length is 1. When fuzzy query is disabled, the maximum Value length is 5. Fuzzy *bool `json:"Fuzzy,omitempty" name:"Fuzzy"` }
type DomainLog ¶
type DomainLog struct { // Starting time of the log package StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of the log package EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Log package download link LogPath *string `json:"LogPath,omitempty" name:"LogPath"` // Acceleration region corresponding to the log package // `mainland`: within Mainland China // `overseas`: outside Mainland China Area *string `json:"Area,omitempty" name:"Area"` // Log package filename LogName *string `json:"LogName,omitempty" name:"LogName"` }
type DownstreamCapping ¶
type DownstreamCapping struct { // Downstream speed configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Downstream speed limiting rules // Note: this field may return null, indicating that no valid values can be obtained. CappingRules []*CappingRule `json:"CappingRules,omitempty" name:"CappingRules"` }
type EnableCachesRequest ¶
type EnableCachesRequest struct { *tchttp.BaseRequest // List of unblocked URLs Urls []*string `json:"Urls,omitempty" name:"Urls"` // URL blocking date Date *string `json:"Date,omitempty" name:"Date"` }
func NewEnableCachesRequest ¶
func NewEnableCachesRequest() (request *EnableCachesRequest)
func (*EnableCachesRequest) FromJsonString ¶
func (r *EnableCachesRequest) FromJsonString(s string) error
FromJsonString 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 { // Result list // Note: This field may return null, indicating that no valid values can be obtained. CacheOptResult *CacheOptResult `json:"CacheOptResult,omitempty" name:"CacheOptResult"` // Task ID // Note: this field may return `null`, indicating that no valid values can be obtained. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` }
func NewEnableClsLogTopicRequest ¶
func NewEnableClsLogTopicRequest() (request *EnableClsLogTopicRequest)
func (*EnableClsLogTopicRequest) FromJsonString ¶
func (r *EnableClsLogTopicRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Status code redirect configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Status code redirect rules configuration // Note: this field may return null, indicating that no valid values can be obtained. PageRules []*ErrorPageRule `json:"PageRules,omitempty" name:"PageRules"` }
type ErrorPageRule ¶
type ErrorPageRule struct { // Status code // Supports 400, 403, 404, 500. StatusCode *int64 `json:"StatusCode,omitempty" name:"StatusCode"` // Redirect status code settings // Supports 301 or 302. RedirectCode *int64 `json:"RedirectCode,omitempty" name:"RedirectCode"` // Redirect URL // Requires a full redirect path, such as https://www.test.com/error.html. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` }
type ExtraLogset ¶
type ExtraLogset struct { // Logset information // Note: this field may return `null`, indicating that no valid values can be obtained. Logset *LogSetInfo `json:"Logset,omitempty" name:"Logset"` // Log topic information // Note: this field may return `null`, indicating that no valid values can be obtained. Topics []*TopicInfo `json:"Topics,omitempty" name:"Topics"` }
type FollowRedirect ¶
type FollowRedirect struct { // Origin-pull follow-redirect switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` }
type ForceRedirect ¶
type ForceRedirect struct { // Access forced redirect configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Access forced redirect types // http: forced HTTP redirect // https: forced HTTPS redirect // Note: this field may return null, indicating that no valid values can be obtained. RedirectType *string `json:"RedirectType,omitempty" name:"RedirectType"` // Status code returned for forced redirect // Supports 301, 302. // Note: this field may return null, indicating that no valid values can be obtained. RedirectStatusCode *int64 `json:"RedirectStatusCode,omitempty" name:"RedirectStatusCode"` // Whether to return the added header in forced redirection. // Note: this field may return `null`, indicating that no valid values can be obtained. CarryHeaders *string `json:"CarryHeaders,omitempty" name:"CarryHeaders"` }
type GetDisableRecordsRequest ¶
type GetDisableRecordsRequest struct { *tchttp.BaseRequest // Specifies the URL to be queried Url *string `json:"Url,omitempty" name:"Url"` // Starting time, such as `2018-12-12 10:24:00` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time, such as 2018-12-14 10:24:00 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Current URL status // disable: The URL remains disabled, and accessing it will return an error 403 // enable: The URL is enabled (unblocked) and can be normally accessed Status *string `json:"Status,omitempty" name:"Status"` // Offset for paginated queries. Default value: 0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Limit on paged queries. Default value: 20 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Task ID. The task ID and start time cannot be both left empty. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewGetDisableRecordsRequest ¶
func NewGetDisableRecordsRequest() (request *GetDisableRecordsRequest)
func (*GetDisableRecordsRequest) FromJsonString ¶
func (r *GetDisableRecordsRequest) FromJsonString(s string) error
FromJsonString 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 { // Blocking history // Note: This field may return null, indicating that no valid values can be obtained. UrlRecordList []*UrlRecord `json:"UrlRecordList,omitempty" name:"UrlRecordList"` // Total number of tasks, which is used for pagination // Note: This field may return null, indicating that no valid values can be obtained. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Switch. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type HeaderKey ¶
type HeaderKey struct { // Whether to use it as part of `CacheKey` // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Array of headers that make up the `CacheKey` (separated by ';') // Note: this field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type Hsts ¶
type Hsts struct { // Whether to enable. Valid values: on, off. Switch *string `json:"Switch,omitempty" name:"Switch"` // `MaxAge` value. // Note: this field may return null, indicating that no valid values can be obtained. MaxAge *int64 `json:"MaxAge,omitempty" name:"MaxAge"` // Whether to include subdomain names. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. IncludeSubDomains *string `json:"IncludeSubDomains,omitempty" name:"IncludeSubDomains"` }
type HttpHeaderPathRule ¶
type HttpHeaderPathRule struct { // HTTP header setting methods // `set`: sets a value for an existing header parameter, a new header parameter, or multiple header parameters. Multiple header parameters will be merged into one. // `del`: deletes a header parameter. // `add`: adds a header parameter. By default, you can repeat the same action to add the same header parameter, which may affect browser response. Please consider the set operation first. // Note: This field may return `null`, indicating that no valid values can be obtained. HeaderMode *string `json:"HeaderMode,omitempty" name:"HeaderMode"` // HTTP header name. Up to 100 characters can be set. // Note: this field may return null, indicating that no valid values can be obtained. HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"` // HTTP header value. Up to 1000 characters can be set. // Not required when Mode is del // Required when Mode is add/set // Note: this field may return null, indicating that no valid values can be obtained. HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"` // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths // Note: this field may return null, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each RuleType: // For `all`, enter an asterisk (*). // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. // Note: this field may return null, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type HttpHeaderRule ¶
type HttpHeaderRule struct { // HTTP header setting method. Valid values: `add` (add header), `set` (set header) or `del` (delete header). HeaderMode *string `json:"HeaderMode,omitempty" name:"HeaderMode"` // HTTP header name HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"` // HTTP header value HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"` }
type Https ¶
type Https struct { // HTTPS configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // HTTP2 configuration switch // on: enabled // off: disabled // Enabling HTTPS acceleration for the first time will enable HTTP2 configuration by default. // Note: this field may return null, indicating that no valid values can be obtained. Http2 *string `json:"Http2,omitempty" name:"Http2"` // OCSP configuration switch // on: enabled // off: disabled // This is disabled by default // Note: this field may return null, indicating that no valid values can be obtained. OcspStapling *string `json:"OcspStapling,omitempty" name:"OcspStapling"` // Client certificate authentication feature // on: enabled // off: disabled // This is disabled by default. The client certificate information is needed when enabled. This is still in beta and not generally available yet. // Note: this field may return null, indicating that no valid values can be obtained. VerifyClient *string `json:"VerifyClient,omitempty" name:"VerifyClient"` // Server certificate configuration information // Note: this field may return null, indicating that no valid values can be obtained. CertInfo *ServerCert `json:"CertInfo,omitempty" name:"CertInfo"` // Client certificate configuration information // Note: this field may return null, indicating that no valid values can be obtained. ClientCertInfo *ClientCert `json:"ClientCertInfo,omitempty" name:"ClientCertInfo"` // Spdy configuration switch // on: enabled // off: disabled // This is disabled by default // Note: this field may return null, indicating that no valid values can be obtained. Spdy *string `json:"Spdy,omitempty" name:"Spdy"` // HTTPS certificate deployment status // closed: already closed // deploying: in deployment // deployed: successfully deployed // failed: deployment failed // Note: this field may return null, indicating that no valid values can be obtained. SslStatus *string `json:"SslStatus,omitempty" name:"SslStatus"` // HSTS configuration Hsts *Hsts `json:"Hsts,omitempty" name:"Hsts"` // TLS version settings, which only support certain advanced domain names. Valid values: `TLSv1`, `TLSV1.1`, `TLSV1.2`, and `TLSv1.3`. Only consecutive versions can be enabled at the same time. // Note: this field may return `null`, indicating that no valid values can be obtained. TlsVersion []*string `json:"TlsVersion,omitempty" name:"TlsVersion"` }
type ImageOptimization ¶
type ImageOptimization struct { // `WebpAdapter` configuration // Note: this field may return null, indicating that no valid values can be obtained. WebpAdapter *WebpAdapter `json:"WebpAdapter,omitempty" name:"WebpAdapter"` // `TpgAdapter` configuration // Note: this field may return null, indicating that no valid values can be obtained. TpgAdapter *TpgAdapter `json:"TpgAdapter,omitempty" name:"TpgAdapter"` // `GuetzliAdapter` configuration // Note: this field may return null, indicating that no valid values can be obtained. GuetzliAdapter *GuetzliAdapter `json:"GuetzliAdapter,omitempty" name:"GuetzliAdapter"` }
type IpFilter ¶
type IpFilter struct { // IP blocklist/allowlist configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // IP blocklist/allowlist type // whitelist: allowlist // blacklist: blocklist // Note: this field may return null, indicating that no valid values can be obtained. FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // IP blocklist/allowlist list // Supports IPs in X.X.X.X format, or /8, /16, /24 format IP ranges. // Up to 50 allowlists or blocklists can be entered // Note: this field may return null, indicating that no valid values can be obtained. Filters []*string `json:"Filters,omitempty" name:"Filters"` // IP blocklist/allowlist path-based configuration. This feature is only available to selected beta customers. // Note: this field may return `null`, indicating that no valid value is obtained. FilterRules []*IpFilterPathRule `json:"FilterRules,omitempty" name:"FilterRules"` // HTTP code returned when the IP allowlist/blocklist verification fails // Valid values: 400-499 // Note: this field may return `null`, indicating that no valid values can be obtained. ReturnCode *int64 `json:"ReturnCode,omitempty" name:"ReturnCode"` }
type IpFilterPathRule ¶
type IpFilterPathRule struct { // IP blocklist/allowlist type // `whitelist`: allowlist IPs // `blacklist`: blocklist IPs // Note: this field may return `null`, indicating that no valid value is obtained. FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // IP blocklist/allowlist list // Supports IPs in X.X.X.X format, or /8, /16, /24 format IP ranges. // Up to 50 allowlists or blocklists can be entered. // Note: this field may return `null`, indicating that no valid value is obtained. Filters []*string `json:"Filters,omitempty" name:"Filters"` // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths // Note: this field may return `null`, indicating that no valid value is obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each RuleType: // For `all`, enter an asterisk (*). // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. // Note: this field may return `null`, indicating that no valid value is obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type IpFreqLimit ¶
type IpFreqLimit struct { // IP access limit configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Sets the limited number of requests per second // 514 will be returned for requests that exceed the limit // Note: this field may return null, indicating that no valid values can be obtained. Qps *int64 `json:"Qps,omitempty" name:"Qps"` }
type IpStatus ¶
type IpStatus struct { // Node IP Ip *string `json:"Ip,omitempty" name:"Ip"` // Node region District *string `json:"District,omitempty" name:"District"` // Node ISP Isp *string `json:"Isp,omitempty" name:"Isp"` // Node city City *string `json:"City,omitempty" name:"City"` // Node status // online: the node is online; scheduling service running // offline: the node is offline Status *string `json:"Status,omitempty" name:"Status"` }
type Ipv6 ¶
type Ipv6 struct { // Whether to enable the IPv6 feature for a domain name. Values include `on` or `off`. // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type Ipv6Access ¶
type Ipv6Access struct { // Whether to enable the IPv6 access feature for a domain name. Valid values: `on` and `off`. // Note: this field may return `null`, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type KeyRule ¶
type KeyRule struct { // Content for each CacheType: // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. // For `index`, enter a backslash (/). // Note: this field may return null, indicating that no valid value is obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Rule types: // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths // `index`: home page // Note: this field may return null, indicating that no valid value is obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Whether full-path cache is enaled // `on`: enables full-path cache (i.e., disables ignore query string) // `off`: disables full-path cache (i.e., enables ignore query string) // Note: this field may return `null`, indicating that no valid value can be obtained. FullUrlCache *string `json:"FullUrlCache,omitempty" name:"FullUrlCache"` // Whether caches are case insensitive // Note: this field may return null, indicating that no valid value is obtained. IgnoreCase *string `json:"IgnoreCase,omitempty" name:"IgnoreCase"` // Request parameter contained in `CacheKey` // Note: this field may return null, indicating that no valid value is obtained. QueryString *RuleQueryString `json:"QueryString,omitempty" name:"QueryString"` // Path cache key tag, the value "user" is passed. // Note: this field may return null, indicating that no valid value is obtained. RuleTag *string `json:"RuleTag,omitempty" name:"RuleTag"` }
type ListClsLogTopicsRequest ¶
type ListClsLogTopicsRequest struct { *tchttp.BaseRequest // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` }
func NewListClsLogTopicsRequest ¶
func NewListClsLogTopicsRequest() (request *ListClsLogTopicsRequest)
func (*ListClsLogTopicsRequest) FromJsonString ¶
func (r *ListClsLogTopicsRequest) FromJsonString(s string) error
FromJsonString 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 { // Information of logsets in the Shanghai region Logset *LogSetInfo `json:"Logset,omitempty" name:"Logset"` // Information of log topics in the Shanghai region // Note: this field may return `null`, indicating that no valid values can be obtained. Topics []*TopicInfo `json:"Topics,omitempty" name:"Topics"` // Information on logsets in regions except Shanghai // Note: this field may return `null`, indicating that no valid values can be obtained. ExtraLogset []*ExtraLogset `json:"ExtraLogset,omitempty" name:"ExtraLogset"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` }
func NewListClsTopicDomainsRequest ¶
func NewListClsTopicDomainsRequest() (request *ListClsTopicDomainsRequest)
func (*ListClsTopicDomainsRequest) FromJsonString ¶
func (r *ListClsTopicDomainsRequest) FromJsonString(s string) error
FromJsonString 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 { // Developer ID AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Channel Channel *string `json:"Channel,omitempty" name:"Channel"` // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Domain name region configuration, which may contain deleted domain names. If this is to be used in `ManageClsTopicDomains` API, you need to exclude deleted domain names by using the `ListCdnDomains` API. DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs"` // Log topic name TopicName *string `json:"TopicName,omitempty" name:"TopicName"` // Last modified time of log topic // Note: this field may return null, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 ListTopDataRequest ¶
type ListTopDataRequest struct { *tchttp.BaseRequest // Query start time in the format of `yyyy-MM-dd HH:mm:ss` // Only supports data query at daily granularity. The date in the input parameter is used as the start date. // Data generated after or at 00:00:00 on the start date will be returned // Only data for the last 90 days can be queried StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time in the format of `yyyy-MM-dd HH:mm:ss` // Only supports data query at daily granularity. The date in the input parameter is used as the end date. // Data generated before or at 23:59:59 on the end date will be returned // `EndTime` must be later than or equal to `StartTime` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Object representing the sort criteria. The following objects are supported: // `url`: sorts by access URL (URLs carrying no parameters). Supported filters are `flux` and `request`. // `district`: sorts by province, country, or region. Supported filters are `flux` and `request`. // `isp`: sorts by ISP. Supported filters are `flux` and `request`. // `host`: sorts by domain name access data. Supported filters are `flux`, `request`, `bandwidth`, `fluxHitRate`, and `statusCode` (2XX, 3XX, 4XX, 5XX). // `originHost`: sorts by domain name origin-pull data. Supported filters are `flux`, `request`, `bandwidth`, and `OriginStatusCode` (origin_2XX, origin_3XX, origin_4XX, origin_5XX). Metric *string `json:"Metric,omitempty" name:"Metric"` // Metric name used for sorting: // flux: If Metric is `host`, it indicates the access traffic; if Metric is `originHost`, it indicates the origin-pull traffic. // bandwidth: If Metric is `host`, it indicates the access bandwidth; if Metric is `originHost`, it indicates the origin-pull bandwidth. // request: If Metric is `host`, it indicates the number of access requests; if Metric is `originHost`, it indicates the number of origin-pull requests. // fluxHitRate: Average traffic hit rate // 2XX: access 2XX status code // 3XX: access 3XX status code // 4XX: access 4XX status code // 5XX: access 5XX status code // origin_2XX: origin-pull 2XX status code // origin_3XX: origin-pull 3XX status code // origin_4XX: origin-pull 4XX status code // origin_5XX: origin-pull 5XX status code // statusCode: statistics of a specific access status code which is specified in the `Code` parameter. // OriginStatusCode: statistics of a specific origin-pull status code which is specified in the `Code` parameter. Filter *string `json:"Filter,omitempty" name:"Filter"` // Specifies the list of domain names to be queried; up to 30 domain names can be queried at a time. Domains []*string `json:"Domains,omitempty" name:"Domains"` // Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project) // Please note that if domain names are specified, this parameter will be ignored. Project *int64 `json:"Project,omitempty" name:"Project"` // Default is `false` for multi-domain name queries, which returns sorted results of all domain names. // If `Metric` is `url`, `path`, `district`, or `isp` and `Filter` is `flux` or `request`, it can be set to `true` to return the sorted results of each domain. Detail *bool `json:"Detail,omitempty" name:"Detail"` // When Filter is `statusCode` or `OriginStatusCode`, enter a code to query and sort results. Code *string `json:"Code,omitempty" name:"Code"` // Specifies a service region for the query. If it is left blank, CDN data within Mainland China will be queried. // `mainland`: specifies to query CDN data within Mainland China; // `overseas`: specifies to query CDN data outside Mainland China. Supported metrics are `url`, `district`, `host`, and `originHost`. If `Metric` is `originHost`, supported filters are `flux`, `request`, and `bandwidth`. Area *string `json:"Area,omitempty" name:"Area"` // The region type can be specified only when you query CDN data outside Mainland China and `Metric` is `district` or `host`; if you leave it empty, data of the service region will be queried (only applicable when `Area` is `overseas` and `Metric` is `district` or `host`) // server: specifies to query data of service region (where a CDN node is located) // client: specifies to query data of the client region (where a user request device is located). If `Metric` is `host`, `Filter` can only be `flux`, `request`, or `bandwidth` AreaType *string `json:"AreaType,omitempty" name:"AreaType"` // Specifies the product to query, either `cdn` (default) or `ecdn`. Product *string `json:"Product,omitempty" name:"Product"` // Returns the first N data entries. The default value is 100 if this parameter is not specified, whereas 1000 if `Metric` is `url`. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewListTopDataRequest ¶
func NewListTopDataRequest() (request *ListTopDataRequest)
func (*ListTopDataRequest) FromJsonString ¶
func (r *ListTopDataRequest) FromJsonString(s string) error
FromJsonString 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 access data details of each resource Data []*TopData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Developer ID AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Channel // Note: this field may return null, indicating that no valid values can be obtained. Channel *string `json:"Channel,omitempty" name:"Channel"` // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Logset name LogsetName *string `json:"LogsetName,omitempty" name:"LogsetName"` // Whether it is the default logset IsDefault *uint64 `json:"IsDefault,omitempty" name:"IsDefault"` // Log retention period in days LogsetSavePeriod *uint64 `json:"LogsetSavePeriod,omitempty" name:"LogsetSavePeriod"` // Creation date CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Region Region *string `json:"Region,omitempty" name:"Region"` // Whether the logset has been removed from CLS // Note: this field may return `null`, indicating that no valid values can be obtained. Deleted *string `json:"Deleted,omitempty" name:"Deleted"` // Whether English is used in this region // Note: this field may return `null`, indicating that no valid values can be obtained. RegionEn *string `json:"RegionEn,omitempty" name:"RegionEn"` }
type MainlandConfig ¶
type MainlandConfig struct { // Timestamp hotlink protection configuration. // Note: this field may return null, indicating that no valid values can be obtained. Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"` // Bandwidth cap configuration. // Note: this field may return null, indicating that no valid values can be obtained. BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"` // Cache rules configuration. // Note: this field may return null, indicating that no valid values can be obtained. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // Cache configurations. // Note: this field may return null, indicating that no valid values can be obtained. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Smart compression configuration. // Note: this field may return null, indicating that no valid values can be obtained. Compression *Compression `json:"Compression,omitempty" name:"Compression"` // Download speed limit configuration. // Note: this field may return null, indicating that no valid values can be obtained. DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"` // Error code redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // 301 and 302 automatic origin-pull follow-redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"` // Access protocol forced redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // HTTPS configuration. // Note: this field may return null, indicating that no valid values can be obtained. Https *Https `json:"Https,omitempty" name:"Https"` // IP blocklist/allowlist configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Browser cache rules configuration. // Note: this field may return null, indicating that no valid values can be obtained. MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"` // Origin server configuration. // Note: this field may return null, indicating that no valid values can be obtained. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Cross-border optimization configuration. // Note: this field may return null, indicating that no valid values can be obtained. OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"` // Range GETs configuration. // Note: this field may return null, indicating that no valid values can be obtained. RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"` // Hotlink protection configuration. // Note: this field may return null, indicating that no valid values can be obtained. Referer *Referer `json:"Referer,omitempty" name:"Referer"` // Origin-pull request header configuration. // Note: this field may return null, indicating that no valid values can be obtained. RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"` // Origin server response header configuration. // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Follows origin server cache header configuration. // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"` // SEO configuration. // Note: this field may return null, indicating that no valid values can be obtained. Seo *Seo `json:"Seo,omitempty" name:"Seo"` // Domain name service type. `web`: static acceleration; `download`: download acceleration; `media`: streaming media acceleration. // Note: this field may return null, indicating that no valid values can be obtained. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Status code cache configuration. // Note: this field may return null, indicating that no valid values can be obtained. StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"` // Video dragging configuration. // Note: this field may return null, indicating that no valid values can be obtained. VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"` // Private access for S3 origin // Note: this field may return `null`, indicating that no valid values can be obtained. AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"` // Private access for OSS origin // Note: this field may return `null`, indicating that no valid values can be obtained. OssPrivateAccess *OssPrivateAccess `json:"OssPrivateAccess,omitempty" name:"OssPrivateAccess"` }
type ManageClsTopicDomainsRequest ¶
type ManageClsTopicDomainsRequest struct { *tchttp.BaseRequest // Logset ID LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // Log topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` // Domain name region configuration. Note: if this field is empty, it means to unbind all domain names from the corresponding topic DomainAreaConfigs []*DomainAreaConfig `json:"DomainAreaConfigs,omitempty" name:"DomainAreaConfigs"` }
func NewManageClsTopicDomainsRequest ¶
func NewManageClsTopicDomainsRequest() (request *ManageClsTopicDomainsRequest)
func (*ManageClsTopicDomainsRequest) FromJsonString ¶
func (r *ManageClsTopicDomainsRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Browser cache configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // MaxAge rule // Note: this field may return null, indicating that no valid values can be obtained. MaxAgeRules []*MaxAgeRule `json:"MaxAgeRules,omitempty" name:"MaxAgeRules"` }
type MaxAgeRule ¶
type MaxAgeRule struct { // Rule types: // `all`: effective for all files. // `file`: effective for specified file suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // `index`: effective for specified homepages. MaxAgeType *string `json:"MaxAgeType,omitempty" name:"MaxAgeType"` // Content for each `MaxAgeType`: // For `all`, enter a wildcard `*`. // For `file`, enter a suffix, e.g., `jpg` or `txt`. // For `directory`, enter a path, e.g., `/xxx/test/`. // For `path`, enter an absolute path, e.g., `/xxx/test.html`. // For `index`, enter a forward slash `/`. // Note: the rule `all` cannot be deleted. It follows origin by default and can be modified. MaxAgeContents []*string `json:"MaxAgeContents,omitempty" name:"MaxAgeContents"` // MaxAge time (in seconds) // Note: the value `0` means not to cache. MaxAgeTime *int64 `json:"MaxAgeTime,omitempty" name:"MaxAgeTime"` // Whether to follow the origin server. Valid values: `on` and `off`. If it's on, `MaxAgeTime` is ignored. // Note: this field may return `null`, indicating that no valid values can be obtained. FollowOrigin *string `json:"FollowOrigin,omitempty" name:"FollowOrigin"` }
type OfflineCache ¶
type OfflineCache struct { // Whether to enable offline cache. Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type Origin ¶
type Origin struct { // Master origin server list // When modifying the origin server, you need to enter the corresponding OriginType. // Note: this field may return null, indicating that no valid values can be obtained. Origins []*string `json:"Origins,omitempty" name:"Origins"` // Primary origin server type // Input: // `domain`: domain name // `cos`: COS bucket address // `ip`: IP address // `ipv6`: a single IPv6 address // `ip_ipv6`: multiple IPv4 addresses and one IPv6 address // `ip_domain`: both IP addresses and domain names (only available to beta users) // `ipv6_domain`: multiple IPv6 addresses and one domain name // `ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name // Output: // `image`: Cloud Infinite origin // `ftp`: FTP origin (disused) // When modifying `Origins`, you need to enter the corresponding `OriginType`. // The IPv6 feature is now only available to beta users. Please submit an application to use this feature. // Note: this field may return `null`, indicating that no valid values can be obtained. OriginType *string `json:"OriginType,omitempty" name:"OriginType"` // Host header used when accessing the master origin server. If left empty, the acceleration domain name will be used by default. // If a wildcard domain name is accessed, then the sub-domain name during the access will be used by default. // Note: this field may return null, indicating that no valid values can be obtained. ServerName *string `json:"ServerName,omitempty" name:"ServerName"` // When OriginType is COS, you can specify if access to private buckets is allowed. // Note: to enable this configuration, you need to first grant CDN access to the private bucket. // Note: this field may return null, indicating that no valid values can be obtained. CosPrivateAccess *string `json:"CosPrivateAccess,omitempty" name:"CosPrivateAccess"` // Origin-pull protocol configuration // http: forced HTTP origin-pull // follow: protocol follow origin-pull // https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull. // Note: this field may return null, indicating that no valid values can be obtained. OriginPullProtocol *string `json:"OriginPullProtocol,omitempty" name:"OriginPullProtocol"` // Backup origin server list // When modifying the backup origin server, you need to enter the corresponding BackupOriginType. // Note: this field may return null, indicating that no valid values can be obtained. BackupOrigins []*string `json:"BackupOrigins,omitempty" name:"BackupOrigins"` // Secondary origin type. Values: // `domain`: domain name // `ip`: IP address // When modifying `BackupOrigins`, you need to enter the corresponding `BackupOriginType`. // The following backup origin servers are only available to beta users. Submit an application if you want to become a beta user. // `ipv6_domain`: multiple IPv6 addresses and one domain name // `ip_ipv6`: multiple IPv4 addresses and one IPv6 address // `ipv6_domain`: multiple IPv6 addresses and one domain name // `ip_ipv6_domain`: multiple IPv4 and IPv6 addresses and one domain name // Note: this field may return `null`, indicating that no valid values can be obtained. BackupOriginType *string `json:"BackupOriginType,omitempty" name:"BackupOriginType"` // Host header used when accessing the backup origin server. If left empty, the ServerName of master origin server will be used by default. // Note: this field may return null, indicating that no valid values can be obtained. BackupServerName *string `json:"BackupServerName,omitempty" name:"BackupServerName"` // BasePath *string `json:"BasePath,omitempty" name:"BasePath"` // Origin URL rewrite rule configuration // Note: this field may return `null`, indicating that no valid values can be obtained. PathRules []*PathRule `json:"PathRules,omitempty" name:"PathRules"` // Path-based origin-pull configurations // Note: this field may return `null`, indicating that no valid values can be obtained. PathBasedOrigin []*PathBasedOriginRule `json:"PathBasedOrigin,omitempty" name:"PathBasedOrigin"` // Advanced HTTPS forwarding configuration // Note: this field may return `null`, indicating that no valid values can be obtained. AdvanceHttps *AdvanceHttps `json:"AdvanceHttps,omitempty" name:"AdvanceHttps"` }
type OriginAuthentication ¶
type OriginAuthentication struct { // Authentication switch, which can be on or off. // Note: this field may return `null`, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Authentication type configuration A // Note: this field may return `null`, indicating that no valid values can be obtained. TypeA *OriginAuthenticationTypeA `json:"TypeA,omitempty" name:"TypeA"` }
type OriginAuthenticationTypeA ¶
type OriginAuthenticationTypeA struct { // Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. // Note: this field may return `null`, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` }
type OriginCombine ¶
type OriginCombine struct { // Whether to enable the merging pull requests feature. Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type OriginIp ¶
type OriginIp struct { // Intermediate IP range/intermediate IP. The IP range information is returned by default. Ip *string `json:"Ip,omitempty" name:"Ip"` }
type OriginPullOptimization ¶
type OriginPullOptimization struct { // Cross-border origin-pull optimization configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Cross-border types // OVToCN: origin-pull from outside mainland China to inside mainland China // CNToOV: origin-pull from inside mainland China to outside mainland China // Note: this field may return null, indicating that no valid values can be obtained. OptimizationType *string `json:"OptimizationType,omitempty" name:"OptimizationType"` }
type OriginPullTimeout ¶
type OriginPullTimeout struct { // The origin-pull connection timeout (in seconds). Valid range: 5-60. // Note: this field may return null, indicating that no valid values can be obtained. ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` // The origin-pull receipt timeout (in seconds). Valid range: 10-60. // Note: this field may return null, indicating that no valid values can be obtained. ReceiveTimeout *uint64 `json:"ReceiveTimeout,omitempty" name:"ReceiveTimeout"` }
type OssPrivateAccess ¶
type OssPrivateAccess struct { // Whether to enable access authentication. Valid values: `on`, `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Access ID. // Note: this field may return `null`, indicating that no valid values can be obtained. AccessKey *string `json:"AccessKey,omitempty" name:"AccessKey"` // Key. // Note: this field may return `null`, indicating that no valid values can be obtained. SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` }
type OverseaConfig ¶
type OverseaConfig struct { // Timestamp hotlink protection configuration. // Note: this field may return null, indicating that no valid values can be obtained. Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"` // Bandwidth cap configuration. // Note: this field may return null, indicating that no valid values can be obtained. BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"` // Cache rules configuration. // Note: this field may return null, indicating that no valid values can be obtained. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // Cache configurations. // Note: this field may return null, indicating that no valid values can be obtained. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Smart compression configuration. // Note: this field may return null, indicating that no valid values can be obtained. Compression *Compression `json:"Compression,omitempty" name:"Compression"` // Download speed limit configuration. // Note: this field may return null, indicating that no valid values can be obtained. DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"` // Error code redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // 301 and 302 automatic origin-pull follow-redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"` // Access protocol forced redirect configuration. // Note: this field may return null, indicating that no valid values can be obtained. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // HTTPS configuration. // Note: this field may return null, indicating that no valid values can be obtained. Https *Https `json:"Https,omitempty" name:"Https"` // IP blocklist/allowlist configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Browser cache rules configuration. // Note: this field may return null, indicating that no valid values can be obtained. MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"` // Origin server configuration. // Note: this field may return null, indicating that no valid values can be obtained. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Cross-border optimization configuration. // Note: this field may return null, indicating that no valid values can be obtained. OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"` // Range GETs configuration. // Note: this field may return null, indicating that no valid values can be obtained. RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"` // Hotlink protection configuration. // Note: this field may return null, indicating that no valid values can be obtained. Referer *Referer `json:"Referer,omitempty" name:"Referer"` // Origin-pull request header configuration. // Note: this field may return null, indicating that no valid values can be obtained. RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"` // Origin server response header configuration. // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Follows origin server cache header configuration. // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"` // SEO configuration. // Note: this field may return null, indicating that no valid values can be obtained. Seo *Seo `json:"Seo,omitempty" name:"Seo"` // Domain name service type. `web`: static acceleration; `download`: download acceleration; `media`: streaming media acceleration. // Note: this field may return null, indicating that no valid values can be obtained. ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Status code cache configuration. // Note: this field may return null, indicating that no valid values can be obtained. StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"` // Video dragging configuration. // Note: this field may return null, indicating that no valid values can be obtained. VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"` // Private access for S3 origin // Note: this field may return `null`, indicating that no valid values can be obtained. AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"` // Private access for OSS origin // Note: this field may return `null`, indicating that no valid values can be obtained. OssPrivateAccess *OssPrivateAccess `json:"OssPrivateAccess,omitempty" name:"OssPrivateAccess"` }
type PathBasedOriginRule ¶
type PathBasedOriginRule struct { // Rule types: // `file`: effective for files with specified suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // `index`: effective for specified homepages. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each `RuleType`: // For `file`, enter a suffix, e.g., `jpg` or `txt`. // For `directory`, enter a path, e.g., `/xxx/test/`. // For `path`, enter an absolute path, e.g., `/xxx/test.html`. // For `index`, enter a forward slash `/`. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Origin server list. Domain names and IPv4 addresses are supported. Origin []*string `json:"Origin,omitempty" name:"Origin"` }
type PathRule ¶
type PathRule struct { // Whether to enable wildcard match (`*`). // false: disable // true: enable // Note: this field may return `null`, indicating that no valid values can be obtained. Regex *bool `json:"Regex,omitempty" name:"Regex"` // Matched URL. Only URLs are supported, while parameters are not. The exact match is used by default. If wildcard match is enabled, up to 5 wildcards are supported. The URL can contain up to 1,024 characters. // Note: this field may return `null`, indicating that no valid values can be obtained. Path *string `json:"Path,omitempty" name:"Path"` // Origin server when the path matches. COS origin with private read/write is not supported. The default origin server will be used by default when this field is left empty. // Note: this field may return `null`, indicating that no valid values can be obtained. Origin *string `json:"Origin,omitempty" name:"Origin"` // Origin server host header when the path matches. The default `ServerName` will be used by default when this field is left empty. // Note: this field may return `null`, indicating that no valid values can be obtained. ServerName *string `json:"ServerName,omitempty" name:"ServerName"` // Origin server region. Valid values: `CN` and `OV`. // CN: the Chinese mainland // OV: outside the Chinese mainland // Default value: `CN`. // Note: this field may return `null`, indicating that no valid values can be obtained. OriginArea *string `json:"OriginArea,omitempty" name:"OriginArea"` // Origin server URI path when the path matches, starting with `/` and excluding parameters. The path can contain up to 1,024 characters. The wildcards in the match path can be respectively captured using `$1`, `$2`, `$3`, `$4`, and `$5`. Up to 10 values can be captured. // Note: this field may return `null`, indicating that no valid values can be obtained. ForwardUri *string `json:"ForwardUri,omitempty" name:"ForwardUri"` // Origin-pull header setting when the path matches. // Note: this field may return `null`, indicating that no valid value is obtained. RequestHeaders []*HttpHeaderRule `json:"RequestHeaders,omitempty" name:"RequestHeaders"` // When `Regex` is `false`, this parameter should be `true`. // `false`: disabled // `true`: enabled // Note: this field may return `null`, indicating that no valid value can be obtained. FullMatch *bool `json:"FullMatch,omitempty" name:"FullMatch"` }
type PurgePathCacheRequest ¶
type PurgePathCacheRequest struct { *tchttp.BaseRequest // List of directories. The protocol header such as "http://" or "https://" needs to be included. Paths []*string `json:"Paths,omitempty" name:"Paths"` // Purge type: // `flush`: purges updated resources // `delete`: purges all resources FlushType *string `json:"FlushType,omitempty" name:"FlushType"` // Whether to encode Chinese characters before purge. UrlEncode *bool `json:"UrlEncode,omitempty" name:"UrlEncode"` }
func NewPurgePathCacheRequest ¶
func NewPurgePathCacheRequest() (request *PurgePathCacheRequest)
func (*PurgePathCacheRequest) FromJsonString ¶
func (r *PurgePathCacheRequest) FromJsonString(s string) error
FromJsonString 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 { // Purge task ID. Directories submitted in one request share a task ID. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Purge task ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Purged URL Url *string `json:"Url,omitempty" name:"Url"` // Purge task status // `fail`: purge failed // `done`: purge succeeded // `process`: purge in progress Status *string `json:"Status,omitempty" name:"Status"` // Purge type // `url`: URL purge // `path`: directory purge PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"` // Purge method // `flush`: purges updated resources; this type is available only for directory purges // `delete`: purges all resources FlushType *string `json:"FlushType,omitempty" name:"FlushType"` // Purge task submission time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type PurgeUrlsCacheRequest ¶
type PurgeUrlsCacheRequest struct { *tchttp.BaseRequest // List of URLs. The protocol header such as "http://" or "https://" needs to be included. Urls []*string `json:"Urls,omitempty" name:"Urls"` // Purging region // The acceleration region of the acceleration domain name will be purged if this parameter is not passed in // If `mainland` is passed in, only the content cached on nodes in the Chinese mainland will be purged // If `overseas` is passed in, only the content cached on nodes outside the Chinese mainland will be purged // The specified purging region should match the domain name acceleration region Area *string `json:"Area,omitempty" name:"Area"` // Whether to encode Chinese characters before purge. UrlEncode *bool `json:"UrlEncode,omitempty" name:"UrlEncode"` }
func NewPurgeUrlsCacheRequest ¶
func NewPurgeUrlsCacheRequest() (request *PurgeUrlsCacheRequest)
func (*PurgeUrlsCacheRequest) FromJsonString ¶
func (r *PurgeUrlsCacheRequest) FromJsonString(s string) error
FromJsonString 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 { // Purge task ID. URLs submitted in one request share a task ID. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Prefetch task ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Prefetched URL Url *string `json:"Url,omitempty" name:"Url"` // Prefetch task status // `fail`: prefetch failed // `done`: prefetch succeeded // `process`: prefetch in progress // `invalid`: invalid prefetch with 4XX/5XX status code returned from the origin server Status *string `json:"Status,omitempty" name:"Status"` // Prefetch progress in percentage Percent *int64 `json:"Percent,omitempty" name:"Percent"` // Prefetch task submission time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Prefetch region // `mainland`: within Mainland China // `overseas`: outside Mainland China // `global`: global Area *string `json:"Area,omitempty" name:"Area"` // Prefetch task update time // Note: this field may return null, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type PushUrlsCacheRequest ¶
type PushUrlsCacheRequest struct { *tchttp.BaseRequest // List of URLs. The protocol header such as "http://" or "https://" needs to be included. Urls []*string `json:"Urls,omitempty" name:"Urls"` // Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server // Default value: `TencentCdn` UserAgent *string `json:"UserAgent,omitempty" name:"UserAgent"` // Destination region for the prefetch // `mainland`: prefetches resources to nodes within Mainland China // `overseas`: prefetches resources to nodes outside Mainland China // `global`: prefetches resources to global nodes // Default value: `mainland`. You can prefetch a URL to nodes in a region provided that CDN service has been enabled for the domain name in the URL in the region. Area *string `json:"Area,omitempty" name:"Area"` // If this parameter is `middle` or left empty, prefetch will be performed onto the intermediate node. // Note: resources prefetched outside the Chinese mainland will be cached to CDN nodes outside the Chinese mainland and the traffic generated will incur costs. Layer *string `json:"Layer,omitempty" name:"Layer"` // Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it. // Notes: // 1. This feature requires that the M3U8 index file can be directly requested and obtained. // 2. In the M3U8 index file, currently only the TS shards at the first to the third level can be recursively resolved. // 3. Prefetching the TS shards obtained through recursive resolution consumes the daily prefetch quota. If the usage exceeds the quota, the feature will be disabled and TS shards will not be prefetched. ParseM3U8 *bool `json:"ParseM3U8,omitempty" name:"ParseM3U8"` }
func NewPushUrlsCacheRequest ¶
func NewPushUrlsCacheRequest() (request *PushUrlsCacheRequest)
func (*PushUrlsCacheRequest) FromJsonString ¶
func (r *PushUrlsCacheRequest) FromJsonString(s string) error
FromJsonString 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 of the submitted task TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Whether to use `QueryString` as part of `CacheKey`. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Whether to sort again // Note: this field may return null, indicating that no valid values can be obtained. Reorder *string `json:"Reorder,omitempty" name:"Reorder"` // Include/exclude query parameters. Valid values: `includeAll`, `excludeAll`, `includeCustom`, `excludeAll` // Note: this field may return null, indicating that no valid values can be obtained. Action *string `json:"Action,omitempty" name:"Action"` // Array of included/excluded URL parameters (separated by ';') // Note: this field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type Quic ¶
type Quic struct { // Whether to enable QUIC Switch *string `json:"Switch,omitempty" name:"Switch"` }
type Quota ¶
type Quota struct { // Quota limit for one batch submission request. Batch *int64 `json:"Batch,omitempty" name:"Batch"` // Daily submission quota limit. Total *int64 `json:"Total,omitempty" name:"Total"` // Remaining daily submission quota. Available *int64 `json:"Available,omitempty" name:"Available"` // Quota region. Area *string `json:"Area,omitempty" name:"Area"` }
type RangeOriginPull ¶
type RangeOriginPull struct { // Range GETs configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Range GETs configuration // Note: this field may return `null`, indicating that no valid values can be obtained. RangeRules []*RangeOriginPullRule `json:"RangeRules,omitempty" name:"RangeRules"` }
type RangeOriginPullRule ¶
type RangeOriginPullRule struct { // Specifies whether Range GETs is enabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Rule types: // `file`: effective for specified file suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // Note: this field may return `null`, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each `RuleType`: // For `file`, enter a suffix, e.g., `jpg` or `txt`. // For `directory`, enter a path, e.g., `/xxx/test/`. // For `path`, enter an absolute path, e.g., `/xxx/test.html`. // Note: this field may return `null`, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type Referer ¶
type Referer struct { // Referer blocklist/allowlist configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Referer blocklist/allowlist configuration rule // Note: this field may return null, indicating that no valid values can be obtained. RefererRules []*RefererRule `json:"RefererRules,omitempty" name:"RefererRules"` }
type RefererRule ¶
type RefererRule struct { // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each RuleType: // For `all`, enter an asterisk (*). // For `file`, enter the suffix, such as jpg, txt. // For `directory`, enter the path, such as /xxx/test/. // For `path`, enter the corresponding absolute path, such as /xxx/test.html. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Referer configuration types // whitelist: allowlist // blacklist: blocklist RefererType *string `json:"RefererType,omitempty" name:"RefererType"` // Referer content list Referers []*string `json:"Referers,omitempty" name:"Referers"` // Whether to allow empty referer // true: allow empty referer // false: do not allow empty referer AllowEmpty *bool `json:"AllowEmpty,omitempty" name:"AllowEmpty"` }
type RegionMapRelation ¶
type RemoteAuthentication ¶
type RemoteAuthentication struct { // Remote authentication switch // `on`: enable // `off`: disable // Note: this field may return `null`, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Remote authentication rule configuration // Note: this field may return `null`, indicating that no valid values can be obtained. RemoteAuthenticationRules []*RemoteAuthenticationRule `json:"RemoteAuthenticationRules,omitempty" name:"RemoteAuthenticationRules"` // Remote authentication server // Note: this field may return `null`, indicating that no valid values can be obtained. Server *string `json:"Server,omitempty" name:"Server"` }
type RemoteAuthenticationRule ¶
type RemoteAuthenticationRule struct { // Remote authentication server // The server configured in `RemoteAutherntication` is used by default. Server *string `json:"Server,omitempty" name:"Server"` // HTTP method used by the remote authentication server. Valid values: `get`, `post`, `head`, and `all`. // `all`: the remote authentication server follows the client request method. // Default: `all` AuthMethod *string `json:"AuthMethod,omitempty" name:"AuthMethod"` // Rule types: // `all`: apply to all files // `file`: apply to files with the specified suffixes // `directory`: apply to the specified directories // `path`: apply to the specified absolute paths // Default: `all`. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Content for each `RuleType`: // For `all`, enter a wildcard `*`. // For `file`, enter a suffix, e.g., `jpg` or `txt`. // For `directory`, enter a path, e.g., `/xxx/test/`. // For `path`, enter an absolute path, e.g., `/xxx/test.html`. // For `index`, enter a forward slash `/`. // Default: `*` RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Timeout period of the remote authentication server. Unit: ms. // Value range: [1, 30,000] // Default: 20000 AuthTimeout *int64 `json:"AuthTimeout,omitempty" name:"AuthTimeout"` // Whether to deny or allow the request when the remote authentication server is timed out: // `RETURN_200`: the request is allowed when the remote authentication server is timed out. // `RETURN_403`: the request is denied when the remote authentication server is timed out. // Default: `RETURN_200` AuthTimeoutAction *string `json:"AuthTimeoutAction,omitempty" name:"AuthTimeoutAction"` }
type ReportData ¶
type ReportData struct { // Project ID/domain name ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Project name/domain name. Resource *string `json:"Resource,omitempty" name:"Resource"` // Total traffic/max bandwidth in bytes and bps, respectively. Value *int64 `json:"Value,omitempty" name:"Value"` // Percentage of individual resource out of all resources. Percentage *float64 `json:"Percentage,omitempty" name:"Percentage"` // Total billable traffic/max billable bandwidth in bytes and bps, respectively. BillingValue *int64 `json:"BillingValue,omitempty" name:"BillingValue"` // Percentage of billable amount out of total amount. BillingPercentage *float64 `json:"BillingPercentage,omitempty" name:"BillingPercentage"` }
type RequestHeader ¶
type RequestHeader struct { // Custom request header configuration switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Custom request header configuration rules // Note: this field may return null, indicating that no valid values can be obtained. HeaderRules []*HttpHeaderPathRule `json:"HeaderRules,omitempty" name:"HeaderRules"` }
type ResourceBillingData ¶
type ResourceBillingData struct { // Resource name, which is categorized as follows based on different query conditions: // Specific domain name: domain name details // multiDomains: aggregated details of multiple domain names // Project ID: displays the ID of the specified project to be queried // all: the details at the account level Resource *string `json:"Resource,omitempty" name:"Resource"` // Billing data details BillingData []*CdnData `json:"BillingData,omitempty" name:"BillingData"` }
type ResourceData ¶
type ResourceData struct { // Resource name, which is classified as follows based on different query filters: // A single domain name: queries domain name details by a domain name. The details of the domain name will be displayed when the passed parameter `detail` is `true` (the `detail` parameter defaults to `false`). // Multiple domain names: queries domain name details by multiple domain names. The aggregated details of the domain names will be displayed. // Project ID: queries domain name details by a project ID. The aggregated details of the domain names of the project will be displayed. // `all`: account-level data, which is aggregated details of all domain names of an account. Resource *string `json:"Resource,omitempty" name:"Resource"` // Data details of a resource CdnData []*CdnData `json:"CdnData,omitempty" name:"CdnData"` }
type ResourceOriginData ¶
type ResourceOriginData struct { // Resource name, which is classified as follows based on different query conditions: // A specific domain name: This indicates the details of this domain name // multiDomains: This indicates the aggregate details of multiple domain names // Project ID: This displays the ID of the specifically queried project // all: This indicates the details at the account level Resource *string `json:"Resource,omitempty" name:"Resource"` // Origin-pull data details OriginData []*CdnData `json:"OriginData,omitempty" name:"OriginData"` }
type ResponseHeader ¶
type ResponseHeader struct { // Custom response header switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Custom response header rules // Note: this field may return null, indicating that no valid values can be obtained. HeaderRules []*HttpHeaderPathRule `json:"HeaderRules,omitempty" name:"HeaderRules"` }
type ResponseHeaderCache ¶
type ResponseHeaderCache struct { // Origin server header cache switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` }
type Revalidate ¶
type Revalidate struct { // Whether to always forward to the origin server for verification. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Forwards to the origin server for verification only for specific request path // Note: this field may return null, indicating that no valid values can be obtained. Path *string `json:"Path,omitempty" name:"Path"` }
type RuleCache ¶
type RuleCache struct { // Content for each `CacheType`: // For `all`, enter a wildcard `*`. // For `file`, enter the suffix, e.g., `jpg` or `txt`. // For `directory`, enter the path, e.g., `/xxx/test/`. // For `path`, enter the absolute path, e.g., `/xxx/test.html`. // For `index`, enter a forward slash `/`. // Note: This field may return `null`, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // Rule types: // `all`: effective for all files. // `file`: effective for specified file suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // `index`: homepage. // Note: This field may return `null`, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Cache configuration // Note: this field may return null, indicating that no valid value is obtained. CacheConfig *RuleCacheConfig `json:"CacheConfig,omitempty" name:"CacheConfig"` }
type RuleCacheConfig ¶
type RuleCacheConfig struct { // Cache configuration // Note: this field may return `null`, indicating that no valid value is obtained. Cache *CacheConfigCache `json:"Cache,omitempty" name:"Cache"` // No cache configuration // Note: this field may return null, indicating that no valid value is obtained. NoCache *CacheConfigNoCache `json:"NoCache,omitempty" name:"NoCache"` // Follows the origin server configuration // Note: this field may return null, indicating that no valid value is obtained. FollowOrigin *CacheConfigFollowOrigin `json:"FollowOrigin,omitempty" name:"FollowOrigin"` }
type RuleQueryString ¶
type RuleQueryString struct { // Whether to use `QueryString` as part of `CacheKey`. Valid values: on, off // Note: this field may return null, indicating that no valid value is obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // `includeCustom` will retain partial query strings // Note: this field may return null, indicating that no valid value is obtained. Action *string `json:"Action,omitempty" name:"Action"` // Array of included/excluded query strings (separated by ';') // Note: this field may return null, indicating that no valid value is obtained. Value *string `json:"Value,omitempty" name:"Value"` }
type ScdnAclConfig ¶
type ScdnAclConfig struct { // Whether to enable. Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // This field is disused. Please use `AdvancedScriptData` instead. // Note: this field may return `null`, indicating that no valid values can be obtained. ScriptData []*ScdnAclGroup `json:"ScriptData,omitempty" name:"ScriptData"` // Error page configuration // Note: this field may return `null`, indicating that no valid values can be obtained. ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // ACL rule group, which is required when the access control is on. // Note: this field may return `null`, indicating that no valid values can be obtained. AdvancedScriptData []*AdvancedScdnAclGroup `json:"AdvancedScriptData,omitempty" name:"AdvancedScriptData"` }
type ScdnAclGroup ¶
type ScdnAclGroup struct { // Rule name RuleName *string `json:"RuleName,omitempty" name:"RuleName"` // Specific configurations Configure []*ScdnAclRule `json:"Configure,omitempty" name:"Configure"` // Action. Valid values: `intercept` and `redirect`. Result *string `json:"Result,omitempty" name:"Result"` // Whether the rule is effective. Valid values: `active` and `inactive`. Status *string `json:"Status,omitempty" name:"Status"` // Error page configuration. // Note: this field may return `null`, indicating that no valid values can be obtained. ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` }
type ScdnAclRule ¶
type ScdnBotConfig ¶
type ScdnBotConfig struct { // Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Bot cookie policy // Note: this field may return `null`, indicating that no valid values can be obtained. BotCookie []*BotCookie `json:"BotCookie,omitempty" name:"BotCookie"` // Bot JS policy // Note: this field may return `null`, indicating that no valid values can be obtained. BotJavaScript []*BotJavaScript `json:"BotJavaScript,omitempty" name:"BotJavaScript"` }
type ScdnCCRules ¶
type ScdnCCRules struct { // Rule types: // `all`: effective for all files. // `file`: effective for specified file suffixes. // `directory`: effective for specified paths. // `path`: effective for specified absolute paths. // `index`: effective for web homepages and root directories. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Rule value (blocking condition) RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue"` // IP access limit rule Qps *uint64 `json:"Qps,omitempty" name:"Qps"` // Detection granularity // Note: this field may return `null`, indicating that no valid values can be obtained. DetectionTime *uint64 `json:"DetectionTime,omitempty" name:"DetectionTime"` // Frequency threshold // Note: this field may return `null`, indicating that no valid values can be obtained. FrequencyLimit *uint64 `json:"FrequencyLimit,omitempty" name:"FrequencyLimit"` // Whether to block or redirect requests from suspicious IPs. Valid values: `on` and `off`. // Note: this field may return `null`, indicating that no valid values can be obtained. PunishmentSwitch *string `json:"PunishmentSwitch,omitempty" name:"PunishmentSwitch"` // Suspicious IP restriction duration // Note: this field may return `null`, indicating that no valid values can be obtained. PunishmentTime *uint64 `json:"PunishmentTime,omitempty" name:"PunishmentTime"` // Action. Valid values: `intercept` and `redirect`. // Note: this field may return `null`, indicating that no valid values can be obtained. Action *string `json:"Action,omitempty" name:"Action"` // The redirection target URL used when the `Action` is `redirect` // Note: this field may return `null`, indicating that no valid values can be obtained. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` }
type ScdnConfig ¶
type ScdnConfig struct { // Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Custom CC attack defense rule // Note: this field may return `null`, indicating that no valid values can be obtained. Rules []*ScdnCCRules `json:"Rules,omitempty" name:"Rules"` // Advanced custom CC attack defense rule // Note: this field may return `null`, indicating that no valid values can be obtained. AdvancedRules []*AdvancedCCRules `json:"AdvancedRules,omitempty" name:"AdvancedRules"` }
type ScdnDdosConfig ¶
type ScdnDdosConfig struct { // Whether to enable DDoS defense. Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type ScdnErrorPage ¶
type ScdnErrorPage struct { // Status code // `403` is passed in when the action is `intercept`. // `301` is passed in when the action is `redirect`. RedirectCode *int64 `json:"RedirectCode,omitempty" name:"RedirectCode"` // Redirection URL RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` }
type ScdnSevenLayerRules ¶
type ScdnSevenLayerRules struct { // Whether values are case sensitive CaseSensitive *bool `json:"CaseSensitive,omitempty" name:"CaseSensitive"` // Rule types: // `protocol`: protocol. Valid values: `HTTP` and `HTTPS`. // `method`: request method. Valid values: `HEAD`, `GET`, `POST`, `PUT`, `OPTIONS`, `TRACE`, `DELETE`, `PATCH` and `CONNECT`. // `all`: domain name. The matching content is `*` and cannot be edited. // `ip`: IP in CIDR format. // `directory`: path starting with a slash (/). You can specify a directory or specific path using up to 128 characters. // `index`: default homepage, which is specified by `/;/index.html` and cannot be edited. // `path`: full path of the file, such as `/acb/test.png`. Wildcard is supported, such as `/abc/*.jpg`. // `file`: file extension, such as `jpg`, `png` and `css`. // `param`: request parameter. The value can contain up to 512 characters. // `referer`: Referer. The value can contain up to 512 characters. // `cookie`: Cookie. The value can contain up to 512 characters. // `user-agent`: User-Agent. The value can contain up to 512 characters. // `head`: custom header. The value can contain up to 512 characters. If the matching content is blank or does not exist, enter the matching parameter directly. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Logical operator, which connects the relation between RuleType and RuleValue. Valid values: // `exclude`: the rule value is not contained. // `include`: the rule value is contained. // `notequal`: the rule value is not equal to the specified rule type. // `equal`: the rule value is equal to the specified rule type. // `matching`: the rule value matches with the prefix of the specified rule type. // `null`: the rule value is empty or does not exist. LogicOperator *string `json:"LogicOperator,omitempty" name:"LogicOperator"` // Rule value // Note: this field may return `null`, indicating that no valid values can be obtained. RuleValue []*string `json:"RuleValue,omitempty" name:"RuleValue"` // Matched parameter. Only request parameters, Cookie, and custom request headers have a value. // Note: this field may return `null`, indicating that no valid values can be obtained. RuleParam *string `json:"RuleParam,omitempty" name:"RuleParam"` }
type ScdnWafConfig ¶
type ScdnWafConfig struct { // Whether to enable WAF. Valid values: `on` and `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // WAF protection mode. Valid values: `intercept` and `observe`. Default value: `intercept`. // Note: this field may return `null`, indicating that no valid values can be obtained. Mode *string `json:"Mode,omitempty" name:"Mode"` // Redirection error page // Note: this field may return `null`, indicating that no valid values can be obtained. ErrorPage *ScdnErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // Whether to enable Web shell blocking. Valid values: `on` and `off`. Default value: `off`. // Note: this field may return `null`, indicating that no valid values can be obtained. WebShellSwitch *string `json:"WebShellSwitch,omitempty" name:"WebShellSwitch"` // Attack blocking rules // Note: this field may return `null`, indicating that no valid values can be obtained. Rules []*ScdnWafRule `json:"Rules,omitempty" name:"Rules"` // WAF rule level. Valid values: 100, 200, and 300. // Note: this field may return `null`, indicating that no valid values can be obtained. Level *int64 `json:"Level,omitempty" name:"Level"` // WAF sub-rule switch // Note: this field may return `null`, indicating that no valid values can be obtained. SubRuleSwitch []*WafSubRuleStatus `json:"SubRuleSwitch,omitempty" name:"SubRuleSwitch"` }
type ScdnWafRule ¶
type SchemeKey ¶
type SchemeKey struct { // Whether to use the scheme as part of the cache key. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type SearchClsLogRequest ¶
type SearchClsLogRequest struct { *tchttp.BaseRequest // ID of logset to be queried LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` // List of IDs of log topics to be queried, separated by commas TopicIds *string `json:"TopicIds,omitempty" name:"TopicIds"` // Start time of log to be queried in the format of `YYYY-mm-dd HH:MM:SS` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time of log to be queried in the format of `YYYY-mm-dd HH:MM:SS` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Number of logs to be returned at a time. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Connection channel. Default value: cdn Channel *string `json:"Channel,omitempty" name:"Channel"` // Content to be queried. For more information, please visit https://intl.cloud.tencent.com/document/product/614/16982?from_cn_redirect=1 Query *string `json:"Query,omitempty" name:"Query"` // This field is used when loading more results. Pass through the last `context` value returned to get more log content. Up to 10,000 logs can be obtained through the cursor. Please narrow down the time range as much as possible. Context *string `json:"Context,omitempty" name:"Context"` // Sorting by log time. Valid values: asc (ascending), desc (descending). Default value: desc Sort *string `json:"Sort,omitempty" name:"Sort"` }
func NewSearchClsLogRequest ¶
func NewSearchClsLogRequest() (request *SearchClsLogRequest)
func (*SearchClsLogRequest) FromJsonString ¶
func (r *SearchClsLogRequest) FromJsonString(s string) error
FromJsonString 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 { // Query result Logs *ClsSearchLogs `json:"Logs,omitempty" name:"Logs"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type ServerCert ¶
type ServerCert struct { // Server certificate ID, which is auto-generated when the certificate is added to Tencent Cloud SSL Certificates // Note: this field may return `null`, indicating that no valid values can be obtained. CertId *string `json:"CertId,omitempty" name:"CertId"` // Server certificate name // This is auto-generated when the certificate is being hosted by the SSL Certificate Service // Note: this field may return null, indicating that no valid values can be obtained. CertName *string `json:"CertName,omitempty" name:"CertName"` // Server certificate information // This is required when uploading an external certificate, which should contain the complete certificate chain. // Note: this field may return null, indicating that no valid values can be obtained. Certificate *string `json:"Certificate,omitempty" name:"Certificate"` // Server key information // This is required when uploading an external certificate. // Note: this field may return null, indicating that no valid values can be obtained. PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"` // Certificate expiration time // Can be left blank when used as an input parameter // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Certificate issuance time // Can be left blank when used as an input parameter // Note: this field may return null, indicating that no valid values can be obtained. DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"` // Certificate remarks // Note: this field may return null, indicating that no valid values can be obtained. Message *string `json:"Message,omitempty" name:"Message"` }
type ShareCname ¶
type ShareCname struct { // // * ShareCname is only available to beta users. To use this feature, please submit a ticket for application. Switch *string `json:"Switch,omitempty" name:"Switch"` // Note: this field may return `null`, indicating that no valid values can be obtained. Cname *string `json:"Cname,omitempty" name:"Cname"` }
type SimpleCache ¶
type SimpleCache struct { // Cache expiration time rules // Note: this field may return null, indicating that no valid values can be obtained. CacheRules []*SimpleCacheRule `json:"CacheRules,omitempty" name:"CacheRules"` // Follows origin server Cache-Control: max-age configurations // on: enabled // off: disabled // If this is enabled, resources that do not match CacheRules rules will be cached by the node according to the max-age value returned by the origin server. Resources that match CacheRules rules will be cached on the node according to the cache expiration time set in CacheRules. // This conflicts with CompareMaxAge. The two cannot be enabled at the same time. // Note: this field may return null, indicating that no valid values can be obtained. FollowOrigin *string `json:"FollowOrigin,omitempty" name:"FollowOrigin"` // Forced cache // on: enable // off: disable // This is disabled by default. If enabled, the `no-store` and `no-cache` resources returned from the origin server will be cached according to `CacheRules` rules. // Note: this field may return null, indicating that no valid values can be obtained. IgnoreCacheControl *string `json:"IgnoreCacheControl,omitempty" name:"IgnoreCacheControl"` // Ignores the Set-Cookie header of the origin server // on: enabled // off: disabled // This is disabled by default // Note: this field may return null, indicating that no valid values can be obtained. IgnoreSetCookie *string `json:"IgnoreSetCookie,omitempty" name:"IgnoreSetCookie"` // Advanced cache expiration configuration. If this is enabled, the max-age value returned by the origin server will be compared with the cache expiration time set in CacheRules, and the smallest value will be cached on the node. // on: enabled // off: disabled // This is disabled by default // Note: this field may return null, indicating that no valid values can be obtained. CompareMaxAge *string `json:"CompareMaxAge,omitempty" name:"CompareMaxAge"` // Always forwards to the origin server for verification // Note: this field may return null, indicating that no valid values can be obtained. Revalidate *Revalidate `json:"Revalidate,omitempty" name:"Revalidate"` }
type SimpleCacheRule ¶
type SimpleCacheRule struct { // Rule types: // `all`: effective for all files // `file`: effective for specified file suffixes // `directory`: effective for specified paths // `path`: effective for specified absolute paths // index: home page CacheType *string `json:"CacheType,omitempty" name:"CacheType"` // Content for each CacheType: // Enter `*` for `all` // Enter an extension for `file`, such as `jpg` or `txt` // Enter a path for `directory`, such as `/xxx/test` // Enter an absolute path for `path`, such as `/xxx/test.html` // Enter `/` for `index` CacheContents []*string `json:"CacheContents,omitempty" name:"CacheContents"` // Cache expiration time settings // Unit: second. The maximum value is 365 days. CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"` }
type Sort ¶
type Sort struct { // Fields that can be sorted. Currently supports: // `createTime`: domain name creation time. // `certExpireTime`: certificate expiration time. // Default value: createTime. Key *string `json:"Key,omitempty" name:"Key"` // `asc` or `desc`. Default: `desc`. Sequence *string `json:"Sequence,omitempty" name:"Sequence"` }
type SpecificConfig ¶
type SpecificConfig struct { // Specific configuration for domain name inside mainland China. // Note: this field may return null, indicating that no valid values can be obtained. Mainland *MainlandConfig `json:"Mainland,omitempty" name:"Mainland"` // Specific configuration for domain name outside mainland China. // Note: this field may return null, indicating that no valid values can be obtained. Overseas *OverseaConfig `json:"Overseas,omitempty" name:"Overseas"` }
type StartCdnDomainRequest ¶
type StartCdnDomainRequest struct { *tchttp.BaseRequest // Domain name // The domain name status should be `Disabled` Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewStartCdnDomainRequest ¶
func NewStartCdnDomainRequest() (request *StartCdnDomainRequest)
func (*StartCdnDomainRequest) FromJsonString ¶
func (r *StartCdnDomainRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 StatusCodeCache ¶
type StatusCodeCache struct { // Status code cache expiration configuration switch // on: enabled // off: disabled // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Status code cache expiration rules details // Note: this field may return null, indicating that no valid values can be obtained. CacheRules []*StatusCodeCacheRule `json:"CacheRules,omitempty" name:"CacheRules"` }
type StatusCodeCacheRule ¶
type StopCdnDomainRequest ¶
type StopCdnDomainRequest struct { *tchttp.BaseRequest // Domain name // The domain name status should be **Enabled** Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewStopCdnDomainRequest ¶
func NewStopCdnDomainRequest() (request *StopCdnDomainRequest)
func (*StopCdnDomainRequest) FromJsonString ¶
func (r *StopCdnDomainRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 SummarizedData ¶
type SummarizedData struct { // Aggregation method, which can be: // sum: aggregate summation // max: maximum value; in bandwidth mode, the peak bandwidth is calculated based on the aggregate data with 5-minute granularity. // avg: average value Name *string `json:"Name,omitempty" name:"Name"` // Aggregate data value Value *float64 `json:"Value,omitempty" name:"Value"` }
type Tag ¶
type Tag struct { // Tag key // Note: this field may return null, indicating that no valid value is obtained. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. // Note: this field may return null, indicating that no valid value is obtained. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
type TimestampData ¶
type TimestampData struct { // Statistical point in time in forward rounding mode // Taking the 5-minute granularity as an example, 13:35:00 indicates that the statistical interval is between 13:35:00 and 13:39:59. Time *string `json:"Time,omitempty" name:"Time"` // Data value Value *float64 `json:"Value,omitempty" name:"Value"` }
type TopData ¶
type TopData struct { // Resource name, which is classified as follows based on different query conditions: // A specific domain name: This indicates the details of this domain name // multiDomains: This indicates the aggregate details of multiple domain names // Project ID: This displays the ID of the specifically queried project // all: This indicates the details at the account level Resource *string `json:"Resource,omitempty" name:"Resource"` // Detailed sorting results DetailData []*TopDetailData `json:"DetailData,omitempty" name:"DetailData"` }
type TopDetailData ¶
type TopicInfo ¶
type TopicInfo struct { // Topic ID TopicId *string `json:"TopicId,omitempty" name:"TopicId"` // Topic name TopicName *string `json:"TopicName,omitempty" name:"TopicName"` // Whether to enable publishing Enabled *int64 `json:"Enabled,omitempty" name:"Enabled"` // Creation time // Note: this field may return null, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Either `cdn` or `ecdn`. // Note: this field may return `null`, indicating that no valid values can be obtained. Channel *string `json:"Channel,omitempty" name:"Channel"` // Whether the log topic has been removed from CLS // Note: this field may return `null`, indicating that no valid values can be obtained. Deleted *string `json:"Deleted,omitempty" name:"Deleted"` }
type TpgAdapter ¶
type TpgAdapter struct { // Switch. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }
type UpdateDomainConfigRequest ¶
type UpdateDomainConfigRequest struct { *tchttp.BaseRequest // Domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // Project ID ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Origin server configuration Origin *Origin `json:"Origin,omitempty" name:"Origin"` // IP blocklist/allowlist configuration IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Status code cache configuration StatusCodeCache *StatusCodeCache `json:"StatusCodeCache,omitempty" name:"StatusCodeCache"` // Smart compression configuration Compression *Compression `json:"Compression,omitempty" name:"Compression"` // Bandwidth cap configuration BandwidthAlert *BandwidthAlert `json:"BandwidthAlert,omitempty" name:"BandwidthAlert"` // Range GETs configuration RangeOriginPull *RangeOriginPull `json:"RangeOriginPull,omitempty" name:"RangeOriginPull"` // 301/302 origin-pull follow-redirect configuration FollowRedirect *FollowRedirect `json:"FollowRedirect,omitempty" name:"FollowRedirect"` // Error code redirect configuration (This feature is in beta and not generally available yet.) ErrorPage *ErrorPage `json:"ErrorPage,omitempty" name:"ErrorPage"` // Request header configuration RequestHeader *RequestHeader `json:"RequestHeader,omitempty" name:"RequestHeader"` // Response header configuration ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Download speed configuration DownstreamCapping *DownstreamCapping `json:"DownstreamCapping,omitempty" name:"DownstreamCapping"` // Node cache key configuration CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Header cache configuration ResponseHeaderCache *ResponseHeaderCache `json:"ResponseHeaderCache,omitempty" name:"ResponseHeaderCache"` // Video dragging configuration VideoSeek *VideoSeek `json:"VideoSeek,omitempty" name:"VideoSeek"` // Cache expiration time configuration Cache *Cache `json:"Cache,omitempty" name:"Cache"` // Cross-border linkage optimization configuration OriginPullOptimization *OriginPullOptimization `json:"OriginPullOptimization,omitempty" name:"OriginPullOptimization"` // HTTPS acceleration configuration Https *Https `json:"Https,omitempty" name:"Https"` // Timestamp hotlink protection configuration Authentication *Authentication `json:"Authentication,omitempty" name:"Authentication"` // SEO configuration Seo *Seo `json:"Seo,omitempty" name:"Seo"` // Access protocol forced redirect configuration ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Referer hotlink protection configuration Referer *Referer `json:"Referer,omitempty" name:"Referer"` // Browser cache configuration (This feature is in beta and not generally available yet.) MaxAge *MaxAge `json:"MaxAge,omitempty" name:"MaxAge"` // Domain name service type // web: static acceleration // download: download acceleration // media: streaming media VOD acceleration ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"` // Specific region configuration // Applicable to cases where the acceleration domain name configuration differs for regions in and outside mainland China. SpecificConfig *SpecificConfig `json:"SpecificConfig,omitempty" name:"SpecificConfig"` // Domain name acceleration region // `mainland`: acceleration inside the Chinese mainland // `overseas`: acceleration outside the Chinese mainland // `global`: global acceleration // When you change it to from `mainland`/`overseas` to `global`, configurations of the domain name will be deployed to the region inside or outside the Chinese mainland. The deployment will take some time as this domain name has special settings. Area *string `json:"Area,omitempty" name:"Area"` // Origin-pull timeout configuration OriginPullTimeout *OriginPullTimeout `json:"OriginPullTimeout,omitempty" name:"OriginPullTimeout"` // Origin access authentication for S3 bucket AwsPrivateAccess *AwsPrivateAccess `json:"AwsPrivateAccess,omitempty" name:"AwsPrivateAccess"` // UA blocklist/allowlist Configuration UserAgentFilter *UserAgentFilter `json:"UserAgentFilter,omitempty" name:"UserAgentFilter"` // Access control AccessControl *AccessControl `json:"AccessControl,omitempty" name:"AccessControl"` // Configuration of URL rewriting UrlRedirect *UrlRedirect `json:"UrlRedirect,omitempty" name:"UrlRedirect"` // Access port configuration AccessPort []*int64 `json:"AccessPort,omitempty" name:"AccessPort"` // Timestamp hotlink protection advanced configuration (allowlist feature) AdvancedAuthentication *AdvancedAuthentication `json:"AdvancedAuthentication,omitempty" name:"AdvancedAuthentication"` // Origin-pull authentication advanced configuration (allowlist feature) OriginAuthentication *OriginAuthentication `json:"OriginAuthentication,omitempty" name:"OriginAuthentication"` // IPv6 access configuration Ipv6Access *Ipv6Access `json:"Ipv6Access,omitempty" name:"Ipv6Access"` // Offline cache OfflineCache *OfflineCache `json:"OfflineCache,omitempty" name:"OfflineCache"` // Merging pull requests OriginCombine *OriginCombine `json:"OriginCombine,omitempty" name:"OriginCombine"` // QUIC is in beta now. Please submit an application to join the beta. For more information, please see QUIC product documents. Quic *Quic `json:"Quic,omitempty" name:"Quic"` // Access authentication for OSS origin OssPrivateAccess *OssPrivateAccess `json:"OssPrivateAccess,omitempty" name:"OssPrivateAccess"` // WebSocket configuration. WebSocket *WebSocket `json:"WebSocket,omitempty" name:"WebSocket"` // Configuration of remote authentication RemoteAuthentication *RemoteAuthentication `json:"RemoteAuthentication,omitempty" name:"RemoteAuthentication"` ShareCname *ShareCname `json:"ShareCname,omitempty" name:"ShareCname"` }
func NewUpdateDomainConfigRequest ¶
func NewUpdateDomainConfigRequest() (request *UpdateDomainConfigRequest)
func (*UpdateDomainConfigRequest) FromJsonString ¶
func (r *UpdateDomainConfigRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 UpdatePayTypeRequest ¶
type UpdatePayTypeRequest struct { *tchttp.BaseRequest // Billing region, which can be mainland or overseas. Area *string `json:"Area,omitempty" name:"Area"` // Billing mode, which can be flux or bandwidth. PayType *string `json:"PayType,omitempty" name:"PayType"` }
func NewUpdatePayTypeRequest ¶
func NewUpdatePayTypeRequest() (request *UpdatePayTypeRequest)
func (*UpdatePayTypeRequest) FromJsonString ¶
func (r *UpdatePayTypeRequest) FromJsonString(s string) error
FromJsonString 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 { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 name Domain *string `json:"Domain,omitempty" name:"Domain"` // WAF configuration Waf *ScdnWafConfig `json:"Waf,omitempty" name:"Waf"` // Custom defense policy configuration Acl *ScdnAclConfig `json:"Acl,omitempty" name:"Acl"` // CC attack defense configurations. CC attack defense is enabled by default. CC *ScdnConfig `json:"CC,omitempty" name:"CC"` // DDoS defense configuration. DDoS defense is enabled by default. Ddos *ScdnDdosConfig `json:"Ddos,omitempty" name:"Ddos"` // Bot defense configuration Bot *ScdnBotConfig `json:"Bot,omitempty" name:"Bot"` }
func NewUpdateScdnDomainRequest ¶
func NewUpdateScdnDomainRequest() (request *UpdateScdnDomainRequest)
func (*UpdateScdnDomainRequest) FromJsonString ¶
func (r *UpdateScdnDomainRequest) FromJsonString(s string) error
FromJsonString 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 { // Result of the request. `Success` indicates that the configurations are updated. Result *string `json:"Result,omitempty" name:"Result"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. 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
FromJsonString 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 { // Status (disable: blocked; enable: unblocked) // Note: This field may return null, indicating that no valid values can be obtained. Status *string `json:"Status,omitempty" name:"Status"` // Corresponding URL // Note: This field may return null, indicating that no valid values can be obtained. RealUrl *string `json:"RealUrl,omitempty" name:"RealUrl"` // Creation time // Note: This field may return null, indicating that no valid values can be obtained. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Update time // Note: This field may return null, indicating that no valid values can be obtained. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type UrlRedirect ¶
type UrlRedirect struct { // Whether URL rewriting is enabled // `on`: enabled // `off`: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` // Rule of URL rewriting rule, which is required if `Switch` is `on`. There can be up to 10 rules. // Note: this field may return `null`, indicating that no valid value can be obtained. PathRules []*UrlRedirectRule `json:"PathRules,omitempty" name:"PathRules"` }
type UrlRedirectRule ¶
type UrlRedirectRule struct { // Redirect status code. Valid values: 301, 302 RedirectStatusCode *int64 `json:"RedirectStatusCode,omitempty" name:"RedirectStatusCode"` // URL to be matched. Only URLs are supported, while parameters are not. The exact match is used by default. In regex match, up to 5 wildcards `*` are supported. The URL can contain up to 1,024 characters. Pattern *string `json:"Pattern,omitempty" name:"Pattern"` // Target URL, starting with `/` and excluding parameters. The path can contain up to 1,024 characters. The wildcards in the matching path can be respectively captured using `$1`, `$2`, `$3`, `$4`, and `$5`. Up to 10 values can be captured. RedirectUrl *string `json:"RedirectUrl,omitempty" name:"RedirectUrl"` // Target host. It should be a standard domain name starting with `http://` or `https://`. If it is left empty, “http://[current domain name]” will be used by default. // Note: this field may return `null`, indicating that no valid values can be obtained. RedirectHost *string `json:"RedirectHost,omitempty" name:"RedirectHost"` // Whether to use full-path matching or arbitrary matching // Note: this field may return `null`, indicating that no valid values can be obtained. FullMatch *bool `json:"FullMatch,omitempty" name:"FullMatch"` }
type UserAgentFilter ¶
type UserAgentFilter struct { // Switch. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // UA blocklist/allowlist effect rule list // Note: this field may return null, indicating that no valid values can be obtained. FilterRules []*UserAgentFilterRule `json:"FilterRules,omitempty" name:"FilterRules"` }
type UserAgentFilterRule ¶
type UserAgentFilterRule struct { // Effective access path type // all: all access paths are effective // file: effective by file extension // directory: effective by directory // path: effective by full access path // Note: this field may return null, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // Effective access paths // Note: this field may return null, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` // `UserAgent` list // Note: this field may return null, indicating that no valid values can be obtained. UserAgents []*string `json:"UserAgents,omitempty" name:"UserAgents"` // blocklist or allowlist. Valid values: blacklist, whitelist // Note: this field may return null, indicating that no valid values can be obtained. FilterType *string `json:"FilterType,omitempty" name:"FilterType"` }
type VideoSeek ¶
type VideoSeek struct { // Video dragging switch // on: enabled // off: disabled Switch *string `json:"Switch,omitempty" name:"Switch"` }
type ViolationUrl ¶
type ViolationUrl struct { // ID Id *int64 `json:"Id,omitempty" name:"Id"` // Origin access URL of the resource in violation RealUrl *string `json:"RealUrl,omitempty" name:"RealUrl"` // Snapshot path. This is used to display a snapshot of the content in violation on the console. DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"` // Current status of the resources in violation // forbid: blocked // release: unblocked // delay: processing delayed // reject: appeal dismissed. The status is still blocked. // complain: appeal in process UrlStatus *string `json:"UrlStatus,omitempty" name:"UrlStatus"` // Creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Update time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type WafSubRuleStatus ¶
type WebSocket ¶
type WebSocket struct { // Whether to enable custom WebSocket timeout setting. When it’s `off`: WebSocket connection is supported, and the default timeout period is 15 seconds. To change the timeout period, please set it to `on`. // // * WebSocket is now only available for beta users. To use it, please submit a ticket. Switch *string `json:"Switch,omitempty" name:"Switch"` // Sets the timeout period in seconds. Maximum value: 65. // Note: this field may return `null`, indicating that no valid values can be obtained. Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` }
type WebpAdapter ¶
type WebpAdapter struct { // Switch. Valid values: on, off // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` }