代码拉取完成,页面将自动刷新
// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20180606
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2018-06-06"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewAddCLSTopicDomainsRequest() (request *AddCLSTopicDomainsRequest) {
request = &AddCLSTopicDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "AddCLSTopicDomains")
return
}
func NewAddCLSTopicDomainsResponse() (response *AddCLSTopicDomainsResponse) {
response = &AddCLSTopicDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddCLSTopicDomains
// AddCLSTopicDomains 用于新增域名到某日志主题下
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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_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_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist"
// RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist"
// RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist"
// UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNSUPPORTEDOPERATION_CLSNOTALLOWED = "UnsupportedOperation.ClsNotAllowed"
func (c *Client) AddCLSTopicDomains(request *AddCLSTopicDomainsRequest) (response *AddCLSTopicDomainsResponse, err error) {
return c.AddCLSTopicDomainsWithContext(context.Background(), request)
}
// AddCLSTopicDomains
// AddCLSTopicDomains 用于新增域名到某日志主题下
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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_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_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CLSINDEXNOTEXIST = "ResourceNotFound.ClsIndexNotExist"
// RESOURCENOTFOUND_CLSLOGSETNOTEXIST = "ResourceNotFound.ClsLogsetNotExist"
// RESOURCENOTFOUND_CLSTOPICNOTEXIST = "ResourceNotFound.ClsTopicNotExist"
// UNAUTHORIZEDOPERATION_CDNCLSNOTREGISTERED = "UnauthorizedOperation.CdnClsNotRegistered"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNSUPPORTEDOPERATION_CLSNOTALLOWED = "UnsupportedOperation.ClsNotAllowed"
func (c *Client) AddCLSTopicDomainsWithContext(ctx context.Context, request *AddCLSTopicDomainsRequest) (response *AddCLSTopicDomainsResponse, err error) {
if request == nil {
request = NewAddCLSTopicDomainsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "AddCLSTopicDomains")
if c.GetCredential() == nil {
return nil, errors.New("AddCLSTopicDomains require credential")
}
request.SetContext(ctx)
response = NewAddCLSTopicDomainsResponse()
err = c.Send(request, response)
return
}
func NewAddCdnDomainRequest() (request *AddCdnDomainRequest) {
request = &AddCdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "AddCdnDomain")
return
}
func NewAddCdnDomainResponse() (response *AddCdnDomainResponse) {
response = &AddCdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddCdnDomain
// AddCdnDomain 用于新增内容分发网络加速域名。1分钟内最多可新增100个域名。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNHOSTEXISTSINEDGEONE = "InvalidParameter.CdnHostExistsInEdgeOne"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNHOSTISCOSDEFAULTACCESS = "InvalidParameter.CdnHostIsCosDefaultAccess"
// INVALIDPARAMETER_CDNHOSTTOOLONGHOST = "InvalidParameter.CdnHostTooLongHost"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// LIMITEXCEEDED_CAMRESOURCEARRAYTOOLONG = "LimitExceeded.CamResourceArrayTooLong"
// LIMITEXCEEDED_CAMRESOURCETOOMANYTAGKEY = "LimitExceeded.CamResourceTooManyTagKey"
// LIMITEXCEEDED_CAMTAGKEYTOOLONG = "LimitExceeded.CamTagKeyTooLong"
// LIMITEXCEEDED_CAMTAGKEYTOOMANYTAGVALUE = "LimitExceeded.CamTagKeyTooManyTagValue"
// LIMITEXCEEDED_CAMTAGQUOTAEXCEEDLIMIT = "LimitExceeded.CamTagQuotaExceedLimit"
// LIMITEXCEEDED_CAMUSERTOOMANYTAGKEY = "LimitExceeded.CamUserTooManyTagKey"
// LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// OPERATIONDENIED_CDNHOSTHASDDOSRISK = "OperationDenied.CdnHostHasDDosRisk"
// OPERATIONDENIED_PRODUCTUPGRADED = "OperationDenied.ProductUpgraded"
// OPERATIONDENIED_USERMIGRATING = "OperationDenied.UserMigrating"
// RESOURCEINUSE_CDNCONFLICTHOSTEXISTS = "ResourceInUse.CdnConflictHostExists"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CAMTAGKEYNOTEXIST = "ResourceNotFound.CamTagKeyNotExist"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTEXISTSINDSA = "ResourceUnavailable.CdnHostExistsInDsa"
// RESOURCEUNAVAILABLE_CDNHOSTEXISTSINTCB = "ResourceUnavailable.CdnHostExistsInTcb"
// RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious"
// RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// RESOURCEUNAVAILABLE_CHECKUSERHIGHRISK = "ResourceUnavailable.CheckUserHighRisk"
// RESOURCEUNAVAILABLE_HOSTEXISTINVOD = "ResourceUnavailable.HostExistInVod"
// 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 (c *Client) AddCdnDomain(request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error) {
return c.AddCdnDomainWithContext(context.Background(), request)
}
// AddCdnDomain
// AddCdnDomain 用于新增内容分发网络加速域名。1分钟内最多可新增100个域名。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNHOSTEXISTSINEDGEONE = "InvalidParameter.CdnHostExistsInEdgeOne"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNHOSTISCOSDEFAULTACCESS = "InvalidParameter.CdnHostIsCosDefaultAccess"
// INVALIDPARAMETER_CDNHOSTTOOLONGHOST = "InvalidParameter.CdnHostTooLongHost"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// LIMITEXCEEDED_CAMRESOURCEARRAYTOOLONG = "LimitExceeded.CamResourceArrayTooLong"
// LIMITEXCEEDED_CAMRESOURCETOOMANYTAGKEY = "LimitExceeded.CamResourceTooManyTagKey"
// LIMITEXCEEDED_CAMTAGKEYTOOLONG = "LimitExceeded.CamTagKeyTooLong"
// LIMITEXCEEDED_CAMTAGKEYTOOMANYTAGVALUE = "LimitExceeded.CamTagKeyTooManyTagValue"
// LIMITEXCEEDED_CAMTAGQUOTAEXCEEDLIMIT = "LimitExceeded.CamTagQuotaExceedLimit"
// LIMITEXCEEDED_CAMUSERTOOMANYTAGKEY = "LimitExceeded.CamUserTooManyTagKey"
// LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// OPERATIONDENIED_CDNHOSTHASDDOSRISK = "OperationDenied.CdnHostHasDDosRisk"
// OPERATIONDENIED_PRODUCTUPGRADED = "OperationDenied.ProductUpgraded"
// OPERATIONDENIED_USERMIGRATING = "OperationDenied.UserMigrating"
// RESOURCEINUSE_CDNCONFLICTHOSTEXISTS = "ResourceInUse.CdnConflictHostExists"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CAMTAGKEYNOTEXIST = "ResourceNotFound.CamTagKeyNotExist"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTEXISTSINDSA = "ResourceUnavailable.CdnHostExistsInDsa"
// RESOURCEUNAVAILABLE_CDNHOSTEXISTSINTCB = "ResourceUnavailable.CdnHostExistsInTcb"
// RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious"
// RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// RESOURCEUNAVAILABLE_CHECKUSERHIGHRISK = "ResourceUnavailable.CheckUserHighRisk"
// RESOURCEUNAVAILABLE_HOSTEXISTINVOD = "ResourceUnavailable.HostExistInVod"
// 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 (c *Client) AddCdnDomainWithContext(ctx context.Context, request *AddCdnDomainRequest) (response *AddCdnDomainResponse, err error) {
if request == nil {
request = NewAddCdnDomainRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "AddCdnDomain")
if c.GetCredential() == nil {
return nil, errors.New("AddCdnDomain require credential")
}
request.SetContext(ctx)
response = NewAddCdnDomainResponse()
err = c.Send(request, response)
return
}
func NewCreateClsLogTopicRequest() (request *CreateClsLogTopicRequest) {
request = &CreateClsLogTopicRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateClsLogTopic")
return
}
func NewCreateClsLogTopicResponse() (response *CreateClsLogTopicResponse) {
response = &CreateClsLogTopicResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateClsLogTopic
// CreateClsLogTopic 用于创建日志主题。注意:一个日志集下至多可创建10个日志主题。
//
// 可能返回的错误码:
// 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_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateClsLogTopic(request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error) {
return c.CreateClsLogTopicWithContext(context.Background(), request)
}
// CreateClsLogTopic
// CreateClsLogTopic 用于创建日志主题。注意:一个日志集下至多可创建10个日志主题。
//
// 可能返回的错误码:
// 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_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSSERVICENOTACTIVATED = "UnauthorizedOperation.ClsServiceNotActivated"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateClsLogTopicWithContext(ctx context.Context, request *CreateClsLogTopicRequest) (response *CreateClsLogTopicResponse, err error) {
if request == nil {
request = NewCreateClsLogTopicRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "CreateClsLogTopic")
if c.GetCredential() == nil {
return nil, errors.New("CreateClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewCreateClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewCreateEdgePackTaskRequest() (request *CreateEdgePackTaskRequest) {
request = &CreateEdgePackTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateEdgePackTask")
return
}
func NewCreateEdgePackTaskResponse() (response *CreateEdgePackTaskResponse) {
response = &CreateEdgePackTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateEdgePackTask
// 动态打包任务提交接口
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) CreateEdgePackTask(request *CreateEdgePackTaskRequest) (response *CreateEdgePackTaskResponse, err error) {
return c.CreateEdgePackTaskWithContext(context.Background(), request)
}
// CreateEdgePackTask
// 动态打包任务提交接口
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) CreateEdgePackTaskWithContext(ctx context.Context, request *CreateEdgePackTaskRequest) (response *CreateEdgePackTaskResponse, err error) {
if request == nil {
request = NewCreateEdgePackTaskRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "CreateEdgePackTask")
if c.GetCredential() == nil {
return nil, errors.New("CreateEdgePackTask require credential")
}
request.SetContext(ctx)
response = NewCreateEdgePackTaskResponse()
err = c.Send(request, response)
return
}
func NewCreateVerifyRecordRequest() (request *CreateVerifyRecordRequest) {
request = &CreateVerifyRecordRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateVerifyRecord")
return
}
func NewCreateVerifyRecordResponse() (response *CreateVerifyRecordResponse) {
response = &CreateVerifyRecordResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateVerifyRecord
// CreateVerifyRecord 用于生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权。
//
// 生成的解析记录可通过 [VerifyDomainRecord](https://cloud.tencent.com/document/product/228/48117) 完成归属权校验。
//
// 注意:生成的解析记录有效期为24小时,超过24小时后,需重新生成。
//
// 具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateVerifyRecord(request *CreateVerifyRecordRequest) (response *CreateVerifyRecordResponse, err error) {
return c.CreateVerifyRecordWithContext(context.Background(), request)
}
// CreateVerifyRecord
// CreateVerifyRecord 用于生成一条子域名解析,提示客户添加到域名解析上,用于泛域名及域名取回校验归属权。
//
// 生成的解析记录可通过 [VerifyDomainRecord](https://cloud.tencent.com/document/product/228/48117) 完成归属权校验。
//
// 注意:生成的解析记录有效期为24小时,超过24小时后,需重新生成。
//
// 具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateVerifyRecordWithContext(ctx context.Context, request *CreateVerifyRecordRequest) (response *CreateVerifyRecordResponse, err error) {
if request == nil {
request = NewCreateVerifyRecordRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "CreateVerifyRecord")
if c.GetCredential() == nil {
return nil, errors.New("CreateVerifyRecord require credential")
}
request.SetContext(ctx)
response = NewCreateVerifyRecordResponse()
err = c.Send(request, response)
return
}
func NewDeleteCdnDomainRequest() (request *DeleteCdnDomainRequest) {
request = &DeleteCdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DeleteCdnDomain")
return
}
func NewDeleteCdnDomainResponse() (response *DeleteCdnDomainResponse) {
response = &DeleteCdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteCdnDomain
// DeleteCdnDomain 用于删除指定加速域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError"
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (c *Client) DeleteCdnDomain(request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error) {
return c.DeleteCdnDomainWithContext(context.Background(), request)
}
// DeleteCdnDomain
// DeleteCdnDomain 用于删除指定加速域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError"
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNSUPPORTEDOPERATION_OPNOAUTH = "UnsupportedOperation.OpNoAuth"
func (c *Client) DeleteCdnDomainWithContext(ctx context.Context, request *DeleteCdnDomainRequest) (response *DeleteCdnDomainResponse, err error) {
if request == nil {
request = NewDeleteCdnDomainRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DeleteCdnDomain")
if c.GetCredential() == nil {
return nil, errors.New("DeleteCdnDomain require credential")
}
request.SetContext(ctx)
response = NewDeleteCdnDomainResponse()
err = c.Send(request, response)
return
}
func NewDeleteClsLogTopicRequest() (request *DeleteClsLogTopicRequest) {
request = &DeleteClsLogTopicRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DeleteClsLogTopic")
return
}
func NewDeleteClsLogTopicResponse() (response *DeleteClsLogTopicResponse) {
response = &DeleteClsLogTopicResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteClsLogTopic
// DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) DeleteClsLogTopic(request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error) {
return c.DeleteClsLogTopicWithContext(context.Background(), request)
}
// DeleteClsLogTopic
// DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) DeleteClsLogTopicWithContext(ctx context.Context, request *DeleteClsLogTopicRequest) (response *DeleteClsLogTopicResponse, err error) {
if request == nil {
request = NewDeleteClsLogTopicRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DeleteClsLogTopic")
if c.GetCredential() == nil {
return nil, errors.New("DeleteClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewDeleteClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewDescribeBillingDataRequest() (request *DescribeBillingDataRequest) {
request = &DescribeBillingDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeBillingData")
return
}
func NewDescribeBillingDataResponse() (response *DescribeBillingDataResponse) {
response = &DescribeBillingDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeBillingData
// DescribeBillingData 用于查询实际计费数据明细。
//
// 注意:
//
// 受计费算法的影响,计费数据接口返回的数据均存在一定延时。小时结算客户预计延时3-5小时。月结算客户预计延迟4-28小时,在凌晨4点(不含4点)之前,仅能查询到前2天数据,4点(含)之后,能查询到前1天数据。若您对数据及时性较强的诉求,建议使用[监控访问数据](https://cloud.tencent.com/document/product/228/30986)。
//
// 可能返回的错误码:
// 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_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeBillingData(request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error) {
return c.DescribeBillingDataWithContext(context.Background(), request)
}
// DescribeBillingData
// DescribeBillingData 用于查询实际计费数据明细。
//
// 注意:
//
// 受计费算法的影响,计费数据接口返回的数据均存在一定延时。小时结算客户预计延时3-5小时。月结算客户预计延迟4-28小时,在凌晨4点(不含4点)之前,仅能查询到前2天数据,4点(含)之后,能查询到前1天数据。若您对数据及时性较强的诉求,建议使用[监控访问数据](https://cloud.tencent.com/document/product/228/30986)。
//
// 可能返回的错误码:
// 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_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeBillingDataWithContext(ctx context.Context, request *DescribeBillingDataRequest) (response *DescribeBillingDataResponse, err error) {
if request == nil {
request = NewDescribeBillingDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeBillingData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeBillingData require credential")
}
request.SetContext(ctx)
response = NewDescribeBillingDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeCdnDataRequest() (request *DescribeCdnDataRequest) {
request = &DescribeCdnDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCdnData")
return
}
func NewDescribeCdnDataResponse() (response *DescribeCdnDataResponse) {
response = &DescribeCdnDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCdnData
// DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
//
//
//
// + 流量(单位为 byte)
//
// + 带宽(单位为 bps)
//
// + 请求数(单位为 次)
//
// + 命中请求数(单位为 次)
//
// + 请求命中率(单位为 %)
//
// + 命中流量(单位为 byte)
//
// + 流量命中率(单位为 %)
//
// + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
//
// + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
//
// + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
//
// + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
//
// 可能返回的错误码:
// 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_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeCdnData(request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error) {
return c.DescribeCdnDataWithContext(context.Background(), request)
}
// DescribeCdnData
// DescribeCdnData 用于查询 CDN 实时访问监控数据,支持以下指标查询:
//
//
//
// + 流量(单位为 byte)
//
// + 带宽(单位为 bps)
//
// + 请求数(单位为 次)
//
// + 命中请求数(单位为 次)
//
// + 请求命中率(单位为 %)
//
// + 命中流量(单位为 byte)
//
// + 流量命中率(单位为 %)
//
// + 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)
//
// + 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)
//
// + 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)
//
// + 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)
//
// 可能返回的错误码:
// 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_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeCdnDataWithContext(ctx context.Context, request *DescribeCdnDataRequest) (response *DescribeCdnDataResponse, err error) {
if request == nil {
request = NewDescribeCdnDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeCdnData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCdnData require credential")
}
request.SetContext(ctx)
response = NewDescribeCdnDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeCdnDomainLogsRequest() (request *DescribeCdnDomainLogsRequest) {
request = &DescribeCdnDomainLogsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCdnDomainLogs")
return
}
func NewDescribeCdnDomainLogsResponse() (response *DescribeCdnDomainLogsResponse) {
response = &DescribeCdnDomainLogsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCdnDomainLogs
// DescribeCdnDomainLogs 用于查询访问日志下载地址,仅支持 30 天以内的境内、境外访问日志下载链接查询。
//
// 可能返回的错误码:
// 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_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeCdnDomainLogs(request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error) {
return c.DescribeCdnDomainLogsWithContext(context.Background(), request)
}
// DescribeCdnDomainLogs
// DescribeCdnDomainLogs 用于查询访问日志下载地址,仅支持 30 天以内的境内、境外访问日志下载链接查询。
//
// 可能返回的错误码:
// 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_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeCdnDomainLogsWithContext(ctx context.Context, request *DescribeCdnDomainLogsRequest) (response *DescribeCdnDomainLogsResponse, err error) {
if request == nil {
request = NewDescribeCdnDomainLogsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeCdnDomainLogs")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCdnDomainLogs require credential")
}
request.SetContext(ctx)
response = NewDescribeCdnDomainLogsResponse()
err = c.Send(request, response)
return
}
func NewDescribeCdnIpRequest() (request *DescribeCdnIpRequest) {
request = &DescribeCdnIpRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCdnIp")
return
}
func NewDescribeCdnIpResponse() (response *DescribeCdnIpResponse) {
response = &DescribeCdnIpResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCdnIp
// DescribeCdnIp 用于查询 CDN IP 归属。
//
// (注意:此接口请求频率限制以 CDN 侧限制为准:200次/10分钟)
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeCdnIp(request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error) {
return c.DescribeCdnIpWithContext(context.Background(), request)
}
// DescribeCdnIp
// DescribeCdnIp 用于查询 CDN IP 归属。
//
// (注意:此接口请求频率限制以 CDN 侧限制为准:200次/10分钟)
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeCdnIpWithContext(ctx context.Context, request *DescribeCdnIpRequest) (response *DescribeCdnIpResponse, err error) {
if request == nil {
request = NewDescribeCdnIpRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeCdnIp")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCdnIp require credential")
}
request.SetContext(ctx)
response = NewDescribeCdnIpResponse()
err = c.Send(request, response)
return
}
func NewDescribeCdnOriginIpRequest() (request *DescribeCdnOriginIpRequest) {
request = &DescribeCdnOriginIpRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCdnOriginIp")
return
}
func NewDescribeCdnOriginIpResponse() (response *DescribeCdnOriginIpResponse) {
response = &DescribeCdnOriginIpResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCdnOriginIp
// ### <font color=red>**该接口已废弃** </font><br>
//
// 本接口(DescribeCdnOriginIp)用于查询 CDN 回源节点的IP信息。(注:替换接口为DescribeIpStatus)
//
// 可能返回的错误码:
// 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 (c *Client) DescribeCdnOriginIp(request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error) {
return c.DescribeCdnOriginIpWithContext(context.Background(), request)
}
// DescribeCdnOriginIp
// ### <font color=red>**该接口已废弃** </font><br>
//
// 本接口(DescribeCdnOriginIp)用于查询 CDN 回源节点的IP信息。(注:替换接口为DescribeIpStatus)
//
// 可能返回的错误码:
// 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 (c *Client) DescribeCdnOriginIpWithContext(ctx context.Context, request *DescribeCdnOriginIpRequest) (response *DescribeCdnOriginIpResponse, err error) {
if request == nil {
request = NewDescribeCdnOriginIpRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeCdnOriginIp")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCdnOriginIp require credential")
}
request.SetContext(ctx)
response = NewDescribeCdnOriginIpResponse()
err = c.Send(request, response)
return
}
func NewDescribeCertDomainsRequest() (request *DescribeCertDomainsRequest) {
request = &DescribeCertDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCertDomains")
return
}
func NewDescribeCertDomainsResponse() (response *DescribeCertDomainsResponse) {
response = &DescribeCertDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCertDomains
// DescribeCertDomains 用于校验SSL证书并提取证书中包含的域名。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeCertDomains(request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error) {
return c.DescribeCertDomainsWithContext(context.Background(), request)
}
// DescribeCertDomains
// DescribeCertDomains 用于校验SSL证书并提取证书中包含的域名。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeCertDomainsWithContext(ctx context.Context, request *DescribeCertDomainsRequest) (response *DescribeCertDomainsResponse, err error) {
if request == nil {
request = NewDescribeCertDomainsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeCertDomains")
if c.GetCredential() == nil {
return nil, errors.New("DescribeCertDomains require credential")
}
request.SetContext(ctx)
response = NewDescribeCertDomainsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDistrictIspDataRequest() (request *DescribeDistrictIspDataRequest) {
request = &DescribeDistrictIspDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeDistrictIspData")
return
}
func NewDescribeDistrictIspDataResponse() (response *DescribeDistrictIspDataResponse) {
response = &DescribeDistrictIspDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDistrictIspData
// 查询指定域名的区域、运营商明细数据
//
// 注意事项:接口尚未全面开放,未在内测名单中的账号不支持调用
//
// 可能返回的错误码:
// FAILEDOPERATION_DATASYSTEMERROR = "FailedOperation.DataSystemError"
// 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_CDNINVALIDPARAMINTERVAL = "InvalidParameter.CdnInvalidParamInterval"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate"
// INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeDistrictIspData(request *DescribeDistrictIspDataRequest) (response *DescribeDistrictIspDataResponse, err error) {
return c.DescribeDistrictIspDataWithContext(context.Background(), request)
}
// DescribeDistrictIspData
// 查询指定域名的区域、运营商明细数据
//
// 注意事项:接口尚未全面开放,未在内测名单中的账号不支持调用
//
// 可能返回的错误码:
// FAILEDOPERATION_DATASYSTEMERROR = "FailedOperation.DataSystemError"
// 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_CDNINVALIDPARAMINTERVAL = "InvalidParameter.CdnInvalidParamInterval"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate"
// INVALIDPARAMETER_CDNSTATINVALIDMETRIC = "InvalidParameter.CdnStatInvalidMetric"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeDistrictIspDataWithContext(ctx context.Context, request *DescribeDistrictIspDataRequest) (response *DescribeDistrictIspDataResponse, err error) {
if request == nil {
request = NewDescribeDistrictIspDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeDistrictIspData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDistrictIspData require credential")
}
request.SetContext(ctx)
response = NewDescribeDistrictIspDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest) {
request = &DescribeDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeDomains")
return
}
func NewDescribeDomainsResponse() (response *DescribeDomainsResponse) {
response = &DescribeDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDomains
// DescribeDomains 用于查询内容分发网络加速域名(含境内、境外)基本配置信息,包括项目ID、服务状态,业务类型、创建时间、更新时间等信息。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) {
return c.DescribeDomainsWithContext(context.Background(), request)
}
// DescribeDomains
// DescribeDomains 用于查询内容分发网络加速域名(含境内、境外)基本配置信息,包括项目ID、服务状态,业务类型、创建时间、更新时间等信息。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) {
if request == nil {
request = NewDescribeDomainsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeDomains")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDomains require credential")
}
request.SetContext(ctx)
response = NewDescribeDomainsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDomainsConfigRequest() (request *DescribeDomainsConfigRequest) {
request = &DescribeDomainsConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeDomainsConfig")
return
}
func NewDescribeDomainsConfigResponse() (response *DescribeDomainsConfigResponse) {
response = &DescribeDomainsConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDomainsConfig
// DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
//
// 可能返回的错误码:
// 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_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error) {
return c.DescribeDomainsConfigWithContext(context.Background(), request)
}
// DescribeDomainsConfig
// DescribeDomainsConfig 用于查询内容分发网络加速域名(含境内、境外)的所有配置信息。
//
// 可能返回的错误码:
// 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_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeDomainsConfigWithContext(ctx context.Context, request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error) {
if request == nil {
request = NewDescribeDomainsConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeDomainsConfig")
if c.GetCredential() == nil {
return nil, errors.New("DescribeDomainsConfig require credential")
}
request.SetContext(ctx)
response = NewDescribeDomainsConfigResponse()
err = c.Send(request, response)
return
}
func NewDescribeEdgePackTaskStatusRequest() (request *DescribeEdgePackTaskStatusRequest) {
request = &DescribeEdgePackTaskStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeEdgePackTaskStatus")
return
}
func NewDescribeEdgePackTaskStatusResponse() (response *DescribeEdgePackTaskStatusResponse) {
response = &DescribeEdgePackTaskStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeEdgePackTaskStatus
// DescribeEdgePackTaskStatus 用于查询动态打包任务状态列表
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// INTERNALERROR = "InternalError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DescribeEdgePackTaskStatus(request *DescribeEdgePackTaskStatusRequest) (response *DescribeEdgePackTaskStatusResponse, err error) {
return c.DescribeEdgePackTaskStatusWithContext(context.Background(), request)
}
// DescribeEdgePackTaskStatus
// DescribeEdgePackTaskStatus 用于查询动态打包任务状态列表
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// INTERNALERROR = "InternalError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DescribeEdgePackTaskStatusWithContext(ctx context.Context, request *DescribeEdgePackTaskStatusRequest) (response *DescribeEdgePackTaskStatusResponse, err error) {
if request == nil {
request = NewDescribeEdgePackTaskStatusRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeEdgePackTaskStatus")
if c.GetCredential() == nil {
return nil, errors.New("DescribeEdgePackTaskStatus require credential")
}
request.SetContext(ctx)
response = NewDescribeEdgePackTaskStatusResponse()
err = c.Send(request, response)
return
}
func NewDescribeHttpsPackagesRequest() (request *DescribeHttpsPackagesRequest) {
request = &DescribeHttpsPackagesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeHttpsPackages")
return
}
func NewDescribeHttpsPackagesResponse() (response *DescribeHttpsPackagesResponse) {
response = &DescribeHttpsPackagesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeHttpsPackages
// DescribeHttpsPackages 用于查询 CDN HTTPS请求包详情。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeHttpsPackages(request *DescribeHttpsPackagesRequest) (response *DescribeHttpsPackagesResponse, err error) {
return c.DescribeHttpsPackagesWithContext(context.Background(), request)
}
// DescribeHttpsPackages
// DescribeHttpsPackages 用于查询 CDN HTTPS请求包详情。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeHttpsPackagesWithContext(ctx context.Context, request *DescribeHttpsPackagesRequest) (response *DescribeHttpsPackagesResponse, err error) {
if request == nil {
request = NewDescribeHttpsPackagesRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeHttpsPackages")
if c.GetCredential() == nil {
return nil, errors.New("DescribeHttpsPackages require credential")
}
request.SetContext(ctx)
response = NewDescribeHttpsPackagesResponse()
err = c.Send(request, response)
return
}
func NewDescribeImageConfigRequest() (request *DescribeImageConfigRequest) {
request = &DescribeImageConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeImageConfig")
return
}
func NewDescribeImageConfigResponse() (response *DescribeImageConfigResponse) {
response = &DescribeImageConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeImageConfig
// DescribeImageConfig 用于获取域名图片优化的当前配置,支持Webp、TPG、 Guetzli 和 Avif。
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeImageConfig(request *DescribeImageConfigRequest) (response *DescribeImageConfigResponse, err error) {
return c.DescribeImageConfigWithContext(context.Background(), request)
}
// DescribeImageConfig
// DescribeImageConfig 用于获取域名图片优化的当前配置,支持Webp、TPG、 Guetzli 和 Avif。
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeImageConfigWithContext(ctx context.Context, request *DescribeImageConfigRequest) (response *DescribeImageConfigResponse, err error) {
if request == nil {
request = NewDescribeImageConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeImageConfig")
if c.GetCredential() == nil {
return nil, errors.New("DescribeImageConfig require credential")
}
request.SetContext(ctx)
response = NewDescribeImageConfigResponse()
err = c.Send(request, response)
return
}
func NewDescribeIpStatusRequest() (request *DescribeIpStatusRequest) {
request = &DescribeIpStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeIpStatus")
return
}
func NewDescribeIpStatusResponse() (response *DescribeIpStatusResponse) {
response = &DescribeIpStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeIpStatus
// DescribeIpStatus 用于查询域名所在加速平台的边缘节点、回源节点明细。注意事项:暂不支持查询边缘节点信息并且数据会存在一定延迟。
//
//
//
// >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/41954"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。
//
// 可能返回的错误码:
// 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"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// 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 (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error) {
return c.DescribeIpStatusWithContext(context.Background(), request)
}
// DescribeIpStatus
// DescribeIpStatus 用于查询域名所在加速平台的边缘节点、回源节点明细。注意事项:暂不支持查询边缘节点信息并且数据会存在一定延迟。
//
//
//
// >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/41954"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。
//
// 可能返回的错误码:
// 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"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// 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 (c *Client) DescribeIpStatusWithContext(ctx context.Context, request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error) {
if request == nil {
request = NewDescribeIpStatusRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeIpStatus")
if c.GetCredential() == nil {
return nil, errors.New("DescribeIpStatus require credential")
}
request.SetContext(ctx)
response = NewDescribeIpStatusResponse()
err = c.Send(request, response)
return
}
func NewDescribeIpVisitRequest() (request *DescribeIpVisitRequest) {
request = &DescribeIpVisitRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeIpVisit")
return
}
func NewDescribeIpVisitResponse() (response *DescribeIpVisitResponse) {
response = &DescribeIpVisitResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeIpVisit
// DescribeIpVisit 用于查询 5 分钟活跃用户数,及日活跃用户数明细
//
//
//
// + 5 分钟活跃用户数:根据日志中客户端 IP,5 分钟粒度去重统计
//
// + 日活跃用户数:根据日志中客户端 IP,按天粒度去重统计
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// 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 (c *Client) DescribeIpVisit(request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error) {
return c.DescribeIpVisitWithContext(context.Background(), request)
}
// DescribeIpVisit
// DescribeIpVisit 用于查询 5 分钟活跃用户数,及日活跃用户数明细
//
//
//
// + 5 分钟活跃用户数:根据日志中客户端 IP,5 分钟粒度去重统计
//
// + 日活跃用户数:根据日志中客户端 IP,按天粒度去重统计
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// 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 (c *Client) DescribeIpVisitWithContext(ctx context.Context, request *DescribeIpVisitRequest) (response *DescribeIpVisitResponse, err error) {
if request == nil {
request = NewDescribeIpVisitRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeIpVisit")
if c.GetCredential() == nil {
return nil, errors.New("DescribeIpVisit require credential")
}
request.SetContext(ctx)
response = NewDescribeIpVisitResponse()
err = c.Send(request, response)
return
}
func NewDescribeMapInfoRequest() (request *DescribeMapInfoRequest) {
request = &DescribeMapInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeMapInfo")
return
}
func NewDescribeMapInfoResponse() (response *DescribeMapInfoResponse) {
response = &DescribeMapInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeMapInfo
// DescribeMapInfo 用于查询省份对应的 ID,运营商对应的 ID 信息。
//
// 可能返回的错误码:
// 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_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeMapInfo(request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error) {
return c.DescribeMapInfoWithContext(context.Background(), request)
}
// DescribeMapInfo
// DescribeMapInfo 用于查询省份对应的 ID,运营商对应的 ID 信息。
//
// 可能返回的错误码:
// 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_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeMapInfoWithContext(ctx context.Context, request *DescribeMapInfoRequest) (response *DescribeMapInfoResponse, err error) {
if request == nil {
request = NewDescribeMapInfoRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeMapInfo")
if c.GetCredential() == nil {
return nil, errors.New("DescribeMapInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeMapInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeOriginDataRequest() (request *DescribeOriginDataRequest) {
request = &DescribeOriginDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeOriginData")
return
}
func NewDescribeOriginDataResponse() (response *DescribeOriginDataResponse) {
response = &DescribeOriginDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeOriginData
// DescribeOriginData 用于查询 CDN 实时回源监控数据,支持以下指标查询:
//
//
//
// + 回源流量(单位为 byte)
//
// + 回源带宽(单位为 bps)
//
// + 回源请求数(单位为 次)
//
// + 回源失败请求数(单位为 次)
//
// + 回源失败率(单位为 %,小数点后保留两位)
//
// + 回源状态码 2xx 汇总及各 2 开头回源状态码明细(单位为 个)
//
// + 回源状态码 3xx 汇总及各 3 开头回源状态码明细(单位为 个)
//
// + 回源状态码 4xx 汇总及各 4 开头回源状态码明细(单位为 个)
//
// + 回源状态码 5xx 汇总及各 5 开头回源状态码明细(单位为 个)
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeOriginData(request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error) {
return c.DescribeOriginDataWithContext(context.Background(), request)
}
// DescribeOriginData
// DescribeOriginData 用于查询 CDN 实时回源监控数据,支持以下指标查询:
//
//
//
// + 回源流量(单位为 byte)
//
// + 回源带宽(单位为 bps)
//
// + 回源请求数(单位为 次)
//
// + 回源失败请求数(单位为 次)
//
// + 回源失败率(单位为 %,小数点后保留两位)
//
// + 回源状态码 2xx 汇总及各 2 开头回源状态码明细(单位为 个)
//
// + 回源状态码 3xx 汇总及各 3 开头回源状态码明细(单位为 个)
//
// + 回源状态码 4xx 汇总及各 4 开头回源状态码明细(单位为 个)
//
// + 回源状态码 5xx 汇总及各 5 开头回源状态码明细(单位为 个)
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// 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 (c *Client) DescribeOriginDataWithContext(ctx context.Context, request *DescribeOriginDataRequest) (response *DescribeOriginDataResponse, err error) {
if request == nil {
request = NewDescribeOriginDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeOriginData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeOriginData require credential")
}
request.SetContext(ctx)
response = NewDescribeOriginDataResponse()
err = c.Send(request, response)
return
}
func NewDescribePayTypeRequest() (request *DescribePayTypeRequest) {
request = &DescribePayTypeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribePayType")
return
}
func NewDescribePayTypeResponse() (response *DescribePayTypeResponse) {
response = &DescribePayTypeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePayType
// DescribePayType 用于查询用户的计费类型,计费周期等信息。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePayType(request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error) {
return c.DescribePayTypeWithContext(context.Background(), request)
}
// DescribePayType
// DescribePayType 用于查询用户的计费类型,计费周期等信息。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePayTypeWithContext(ctx context.Context, request *DescribePayTypeRequest) (response *DescribePayTypeResponse, err error) {
if request == nil {
request = NewDescribePayTypeRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribePayType")
if c.GetCredential() == nil {
return nil, errors.New("DescribePayType require credential")
}
request.SetContext(ctx)
response = NewDescribePayTypeResponse()
err = c.Send(request, response)
return
}
func NewDescribePurgeQuotaRequest() (request *DescribePurgeQuotaRequest) {
request = &DescribePurgeQuotaRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribePurgeQuota")
return
}
func NewDescribePurgeQuotaResponse() (response *DescribePurgeQuotaResponse) {
response = &DescribePurgeQuotaResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePurgeQuota
// DescribePurgeQuota 用于查询账户刷新配额和每日可用量。
//
// 可能返回的错误码:
// 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 (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error) {
return c.DescribePurgeQuotaWithContext(context.Background(), request)
}
// DescribePurgeQuota
// DescribePurgeQuota 用于查询账户刷新配额和每日可用量。
//
// 可能返回的错误码:
// 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 (c *Client) DescribePurgeQuotaWithContext(ctx context.Context, request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error) {
if request == nil {
request = NewDescribePurgeQuotaRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribePurgeQuota")
if c.GetCredential() == nil {
return nil, errors.New("DescribePurgeQuota require credential")
}
request.SetContext(ctx)
response = NewDescribePurgeQuotaResponse()
err = c.Send(request, response)
return
}
func NewDescribePurgeTasksRequest() (request *DescribePurgeTasksRequest) {
request = &DescribePurgeTasksRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribePurgeTasks")
return
}
func NewDescribePurgeTasksResponse() (response *DescribePurgeTasksResponse) {
response = &DescribePurgeTasksResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePurgeTasks
// DescribePurgeTasks 用于查询提交的 URL 刷新、目录刷新记录及执行进度,通过 PurgePathCache 与 PurgeUrlsCache 接口提交的任务均可通过此接口进行查询。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error) {
return c.DescribePurgeTasksWithContext(context.Background(), request)
}
// DescribePurgeTasks
// DescribePurgeTasks 用于查询提交的 URL 刷新、目录刷新记录及执行进度,通过 PurgePathCache 与 PurgeUrlsCache 接口提交的任务均可通过此接口进行查询。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePurgeTasksWithContext(ctx context.Context, request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error) {
if request == nil {
request = NewDescribePurgeTasksRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribePurgeTasks")
if c.GetCredential() == nil {
return nil, errors.New("DescribePurgeTasks require credential")
}
request.SetContext(ctx)
response = NewDescribePurgeTasksResponse()
err = c.Send(request, response)
return
}
func NewDescribePushQuotaRequest() (request *DescribePushQuotaRequest) {
request = &DescribePushQuotaRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribePushQuota")
return
}
func NewDescribePushQuotaResponse() (response *DescribePushQuotaResponse) {
response = &DescribePushQuotaResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePushQuota
// DescribePushQuota 用于查询预热配额和每日可用量。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePushQuota(request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error) {
return c.DescribePushQuotaWithContext(context.Background(), request)
}
// DescribePushQuota
// DescribePushQuota 用于查询预热配额和每日可用量。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePushQuotaWithContext(ctx context.Context, request *DescribePushQuotaRequest) (response *DescribePushQuotaResponse, err error) {
if request == nil {
request = NewDescribePushQuotaRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribePushQuota")
if c.GetCredential() == nil {
return nil, errors.New("DescribePushQuota require credential")
}
request.SetContext(ctx)
response = NewDescribePushQuotaResponse()
err = c.Send(request, response)
return
}
func NewDescribePushTasksRequest() (request *DescribePushTasksRequest) {
request = &DescribePushTasksRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribePushTasks")
return
}
func NewDescribePushTasksResponse() (response *DescribePushTasksResponse) {
response = &DescribePushTasksResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePushTasks
// DescribePushTasks 用于查询预热任务提交历史记录及执行进度。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePushTasks(request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error) {
return c.DescribePushTasksWithContext(context.Background(), request)
}
// DescribePushTasks
// DescribePushTasks 用于查询预热任务提交历史记录及执行进度。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribePushTasksWithContext(ctx context.Context, request *DescribePushTasksRequest) (response *DescribePushTasksResponse, err error) {
if request == nil {
request = NewDescribePushTasksRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribePushTasks")
if c.GetCredential() == nil {
return nil, errors.New("DescribePushTasks require credential")
}
request.SetContext(ctx)
response = NewDescribePushTasksResponse()
err = c.Send(request, response)
return
}
func NewDescribeReportDataRequest() (request *DescribeReportDataRequest) {
request = &DescribeReportDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeReportData")
return
}
func NewDescribeReportDataResponse() (response *DescribeReportDataResponse) {
response = &DescribeReportDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeReportData
// DescribeReportData 用于查询域名/项目维度的日/周/月报表数据。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeReportData(request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error) {
return c.DescribeReportDataWithContext(context.Background(), request)
}
// DescribeReportData
// DescribeReportData 用于查询域名/项目维度的日/周/月报表数据。
//
// 可能返回的错误码:
// 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 (c *Client) DescribeReportDataWithContext(ctx context.Context, request *DescribeReportDataRequest) (response *DescribeReportDataResponse, err error) {
if request == nil {
request = NewDescribeReportDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeReportData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeReportData require credential")
}
request.SetContext(ctx)
response = NewDescribeReportDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeTopDataRequest() (request *DescribeTopDataRequest) {
request = &DescribeTopDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeTopData")
return
}
func NewDescribeTopDataResponse() (response *DescribeTopDataResponse) {
response = &DescribeTopDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeTopData
// DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
//
//
//
// + 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP
//
// + 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer
//
// + 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型
//
// + 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统
//
// + 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器
//
//
//
// 注意:
//
// + 仅支持 90 天内数据查询,且从2021年09月20日开始有数据
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// 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_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 (c *Client) DescribeTopData(request *DescribeTopDataRequest) (response *DescribeTopDataResponse, err error) {
return c.DescribeTopDataWithContext(context.Background(), request)
}
// DescribeTopData
// DescribeTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
//
//
//
// + 依据总流量、总请求数对访问 IP 排序,从大至小返回 TOP 100 IP
//
// + 依据总流量、总请求数对访问 Refer 排序,从大至小返回 TOP 100 Refer
//
// + 依据总流量、总请求数对访问 设备 排序,从大至小返回 设备类型
//
// + 依据总流量、总请求数对访问 操作系统 排序,从大至小返回 操作系统
//
// + 依据总流量、总请求数对访问 浏览器 排序,从大至小返回 浏览器
//
//
//
// 注意:
//
// + 仅支持 90 天内数据查询,且从2021年09月20日开始有数据
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// 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_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 (c *Client) DescribeTopDataWithContext(ctx context.Context, request *DescribeTopDataRequest) (response *DescribeTopDataResponse, err error) {
if request == nil {
request = NewDescribeTopDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeTopData")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTopData require credential")
}
request.SetContext(ctx)
response = NewDescribeTopDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeTrafficPackagesRequest() (request *DescribeTrafficPackagesRequest) {
request = &DescribeTrafficPackagesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeTrafficPackages")
return
}
func NewDescribeTrafficPackagesResponse() (response *DescribeTrafficPackagesResponse) {
response = &DescribeTrafficPackagesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeTrafficPackages
// DescribeTrafficPackages 用于查询 CDN 流量包详情。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeTrafficPackages(request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error) {
return c.DescribeTrafficPackagesWithContext(context.Background(), request)
}
// DescribeTrafficPackages
// DescribeTrafficPackages 用于查询 CDN 流量包详情。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeTrafficPackagesWithContext(ctx context.Context, request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error) {
if request == nil {
request = NewDescribeTrafficPackagesRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeTrafficPackages")
if c.GetCredential() == nil {
return nil, errors.New("DescribeTrafficPackages require credential")
}
request.SetContext(ctx)
response = NewDescribeTrafficPackagesResponse()
err = c.Send(request, response)
return
}
func NewDescribeUrlViolationsRequest() (request *DescribeUrlViolationsRequest) {
request = &DescribeUrlViolationsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeUrlViolations")
return
}
func NewDescribeUrlViolationsResponse() (response *DescribeUrlViolationsResponse) {
response = &DescribeUrlViolationsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeUrlViolations
// DescribeUrlViolations 用于查询被 CDN 系统扫描到的域名违规 URL 列表及当前状态。
//
// 对应内容分发网络控制台【内容合规】页面。
//
// 可能返回的错误码:
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeUrlViolations(request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error) {
return c.DescribeUrlViolationsWithContext(context.Background(), request)
}
// DescribeUrlViolations
// DescribeUrlViolations 用于查询被 CDN 系统扫描到的域名违规 URL 列表及当前状态。
//
// 对应内容分发网络控制台【内容合规】页面。
//
// 可能返回的错误码:
// 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"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) DescribeUrlViolationsWithContext(ctx context.Context, request *DescribeUrlViolationsRequest) (response *DescribeUrlViolationsResponse, err error) {
if request == nil {
request = NewDescribeUrlViolationsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DescribeUrlViolations")
if c.GetCredential() == nil {
return nil, errors.New("DescribeUrlViolations require credential")
}
request.SetContext(ctx)
response = NewDescribeUrlViolationsResponse()
err = c.Send(request, response)
return
}
func NewDisableClsLogTopicRequest() (request *DisableClsLogTopicRequest) {
request = &DisableClsLogTopicRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DisableClsLogTopic")
return
}
func NewDisableClsLogTopicResponse() (response *DisableClsLogTopicResponse) {
response = &DisableClsLogTopicResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DisableClsLogTopic
// DisableClsLogTopic 用于停止日志主题投递。注意:停止后,所有绑定该日志主题域名的日志将不再继续投递至该主题,已经投递的日志将会继续保留。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) DisableClsLogTopic(request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error) {
return c.DisableClsLogTopicWithContext(context.Background(), request)
}
// DisableClsLogTopic
// DisableClsLogTopic 用于停止日志主题投递。注意:停止后,所有绑定该日志主题域名的日志将不再继续投递至该主题,已经投递的日志将会继续保留。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) DisableClsLogTopicWithContext(ctx context.Context, request *DisableClsLogTopicRequest) (response *DisableClsLogTopicResponse, err error) {
if request == nil {
request = NewDisableClsLogTopicRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DisableClsLogTopic")
if c.GetCredential() == nil {
return nil, errors.New("DisableClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewDisableClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewDuplicateDomainConfigRequest() (request *DuplicateDomainConfigRequest) {
request = &DuplicateDomainConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DuplicateDomainConfig")
return
}
func NewDuplicateDomainConfigResponse() (response *DuplicateDomainConfigResponse) {
response = &DuplicateDomainConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DuplicateDomainConfig
// 拷贝参考域名的配置至新域名。暂不支持自有证书以及定制化配置
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR = "InternalError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// LIMITEXCEEDED_CAMTAGQUOTAEXCEEDLIMIT = "LimitExceeded.CamTagQuotaExceedLimit"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINUSE_CDNCONFLICTHOSTEXISTS = "ResourceInUse.CdnConflictHostExists"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCEINUSE_TCBHOSTEXISTS = "ResourceInUse.TcbHostExists"
// RESOURCENOTFOUND_CAMTAGKEYNOTEXIST = "ResourceNotFound.CamTagKeyNotExist"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCENOTFOUND_CDNUSERTOOMANYHOSTS = "ResourceNotFound.CdnUserTooManyHosts"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious"
// RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNDOMAINRECORDNOTVERIFIED = "UnauthorizedOperation.CdnDomainRecordNotVerified"
// UNAUTHORIZEDOPERATION_CDNHOSTEXISTSININTERNAL = "UnauthorizedOperation.CdnHostExistsInInternal"
// UNAUTHORIZEDOPERATION_CDNHOSTISOWNEDBYOTHER = "UnauthorizedOperation.CdnHostIsOwnedByOther"
// UNAUTHORIZEDOPERATION_CDNHOSTISTOAPPLYHOST = "UnauthorizedOperation.CdnHostIsToApplyHost"
// UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNINVALIDUSERSTATUS = "UnauthorizedOperation.CdnInvalidUserStatus"
// UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail"
// UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) DuplicateDomainConfig(request *DuplicateDomainConfigRequest) (response *DuplicateDomainConfigResponse, err error) {
return c.DuplicateDomainConfigWithContext(context.Background(), request)
}
// DuplicateDomainConfig
// 拷贝参考域名的配置至新域名。暂不支持自有证书以及定制化配置
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR = "InternalError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// LIMITEXCEEDED_CAMTAGQUOTAEXCEEDLIMIT = "LimitExceeded.CamTagQuotaExceedLimit"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINUSE_CDNCONFLICTHOSTEXISTS = "ResourceInUse.CdnConflictHostExists"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCEINUSE_TCBHOSTEXISTS = "ResourceInUse.TcbHostExists"
// RESOURCENOTFOUND_CAMTAGKEYNOTEXIST = "ResourceNotFound.CamTagKeyNotExist"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCENOTFOUND_CDNUSERTOOMANYHOSTS = "ResourceNotFound.CdnUserTooManyHosts"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_CDNHOSTISMALICIOUS = "ResourceUnavailable.CdnHostIsMalicious"
// RESOURCEUNAVAILABLE_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNDOMAINRECORDNOTVERIFIED = "UnauthorizedOperation.CdnDomainRecordNotVerified"
// UNAUTHORIZEDOPERATION_CDNHOSTEXISTSININTERNAL = "UnauthorizedOperation.CdnHostExistsInInternal"
// UNAUTHORIZEDOPERATION_CDNHOSTISOWNEDBYOTHER = "UnauthorizedOperation.CdnHostIsOwnedByOther"
// UNAUTHORIZEDOPERATION_CDNHOSTISTOAPPLYHOST = "UnauthorizedOperation.CdnHostIsToApplyHost"
// UNAUTHORIZEDOPERATION_CDNHOSTISUSEDBYOTHER = "UnauthorizedOperation.CdnHostIsUsedByOther"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNINVALIDUSERSTATUS = "UnauthorizedOperation.CdnInvalidUserStatus"
// UNAUTHORIZEDOPERATION_CDNTAGUNAUTHORIZED = "UnauthorizedOperation.CdnTagUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail"
// UNAUTHORIZEDOPERATION_CDNUSERISISOLATED = "UnauthorizedOperation.CdnUserIsIsolated"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
// UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) DuplicateDomainConfigWithContext(ctx context.Context, request *DuplicateDomainConfigRequest) (response *DuplicateDomainConfigResponse, err error) {
if request == nil {
request = NewDuplicateDomainConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "DuplicateDomainConfig")
if c.GetCredential() == nil {
return nil, errors.New("DuplicateDomainConfig require credential")
}
request.SetContext(ctx)
response = NewDuplicateDomainConfigResponse()
err = c.Send(request, response)
return
}
func NewEnableClsLogTopicRequest() (request *EnableClsLogTopicRequest) {
request = &EnableClsLogTopicRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "EnableClsLogTopic")
return
}
func NewEnableClsLogTopicResponse() (response *EnableClsLogTopicResponse) {
response = &EnableClsLogTopicResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// EnableClsLogTopic
// EnableClsLogTopic 用于启动日志主题投递。注意:启动后,所有绑定该日志主题域名的日志将继续投递至该主题。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) EnableClsLogTopic(request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error) {
return c.EnableClsLogTopicWithContext(context.Background(), request)
}
// EnableClsLogTopic
// EnableClsLogTopic 用于启动日志主题投递。注意:启动后,所有绑定该日志主题域名的日志将继续投递至该主题。生效时间约为 5~15 分钟。
//
// 可能返回的错误码:
// 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_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 (c *Client) EnableClsLogTopicWithContext(ctx context.Context, request *EnableClsLogTopicRequest) (response *EnableClsLogTopicResponse, err error) {
if request == nil {
request = NewEnableClsLogTopicRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "EnableClsLogTopic")
if c.GetCredential() == nil {
return nil, errors.New("EnableClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewEnableClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewListClsLogTopicsRequest() (request *ListClsLogTopicsRequest) {
request = &ListClsLogTopicsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ListClsLogTopics")
return
}
func NewListClsLogTopicsResponse() (response *ListClsLogTopicsResponse) {
response = &ListClsLogTopicsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ListClsLogTopics
// ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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 (c *Client) ListClsLogTopics(request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error) {
return c.ListClsLogTopicsWithContext(context.Background(), request)
}
// ListClsLogTopics
// ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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 (c *Client) ListClsLogTopicsWithContext(ctx context.Context, request *ListClsLogTopicsRequest) (response *ListClsLogTopicsResponse, err error) {
if request == nil {
request = NewListClsLogTopicsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ListClsLogTopics")
if c.GetCredential() == nil {
return nil, errors.New("ListClsLogTopics require credential")
}
request.SetContext(ctx)
response = NewListClsLogTopicsResponse()
err = c.Send(request, response)
return
}
func NewListClsTopicDomainsRequest() (request *ListClsTopicDomainsRequest) {
request = &ListClsTopicDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ListClsTopicDomains")
return
}
func NewListClsTopicDomainsResponse() (response *ListClsTopicDomainsResponse) {
response = &ListClsTopicDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ListClsTopicDomains
// ListClsTopicDomains 用于获取某日志主题下绑定的域名列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) ListClsTopicDomains(request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error) {
return c.ListClsTopicDomainsWithContext(context.Background(), request)
}
// ListClsTopicDomains
// ListClsTopicDomains 用于获取某日志主题下绑定的域名列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) ListClsTopicDomainsWithContext(ctx context.Context, request *ListClsTopicDomainsRequest) (response *ListClsTopicDomainsResponse, err error) {
if request == nil {
request = NewListClsTopicDomainsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ListClsTopicDomains")
if c.GetCredential() == nil {
return nil, errors.New("ListClsTopicDomains require credential")
}
request.SetContext(ctx)
response = NewListClsTopicDomainsResponse()
err = c.Send(request, response)
return
}
func NewListTopClsLogDataRequest() (request *ListTopClsLogDataRequest) {
request = &ListTopClsLogDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ListTopClsLogData")
return
}
func NewListTopClsLogDataResponse() (response *ListTopClsLogDataResponse) {
response = &ListTopClsLogDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ListTopClsLogData
// 通过CLS日志计算Top信息。支持近7天的日志数据。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_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_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_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) ListTopClsLogData(request *ListTopClsLogDataRequest) (response *ListTopClsLogDataResponse, err error) {
return c.ListTopClsLogDataWithContext(context.Background(), request)
}
// ListTopClsLogData
// 通过CLS日志计算Top信息。支持近7天的日志数据。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_CLSINTERNALERROR = "InternalError.ClsInternalError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_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_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_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) ListTopClsLogDataWithContext(ctx context.Context, request *ListTopClsLogDataRequest) (response *ListTopClsLogDataResponse, err error) {
if request == nil {
request = NewListTopClsLogDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ListTopClsLogData")
if c.GetCredential() == nil {
return nil, errors.New("ListTopClsLogData require credential")
}
request.SetContext(ctx)
response = NewListTopClsLogDataResponse()
err = c.Send(request, response)
return
}
func NewListTopDataRequest() (request *ListTopDataRequest) {
request = &ListTopDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ListTopData")
return
}
func NewListTopDataResponse() (response *ListTopDataResponse) {
response = &ListTopDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ListTopData
// ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
//
//
//
// + 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL
//
// + 依据总流量、总请求数对客户端省份排序,从大至小返回省份列表
//
// + 依据总流量、总请求数对客户端运营商排序,从大至小返回运营商列表
//
// + 依据总流量、峰值带宽、总请求数、平均命中率、2XX/3XX/4XX/5XX 状态码对域名排序,从大至小返回域名列表
//
// + 依据总回源流量、回源峰值带宽、总回源请求数、平均回源失败率、2XX/3XX/4XX/5XX 回源状态码对域名排序,从大至小返回域名列表
//
//
//
// 注意:仅支持 90 天内数据查询
//
// 可能返回的错误码:
// 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_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError"
// 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 (c *Client) ListTopData(request *ListTopDataRequest) (response *ListTopDataResponse, err error) {
return c.ListTopDataWithContext(context.Background(), request)
}
// ListTopData
// ListTopData 通过入参 Metric 和 Filter 组合不同,可以查询以下排序数据:
//
//
//
// + 依据总流量、总请求数对访问 URL 排序,从大至小返回 TOP 1000 URL
//
// + 依据总流量、总请求数对客户端省份排序,从大至小返回省份列表
//
// + 依据总流量、总请求数对客户端运营商排序,从大至小返回运营商列表
//
// + 依据总流量、峰值带宽、总请求数、平均命中率、2XX/3XX/4XX/5XX 状态码对域名排序,从大至小返回域名列表
//
// + 依据总回源流量、回源峰值带宽、总回源请求数、平均回源失败率、2XX/3XX/4XX/5XX 回源状态码对域名排序,从大至小返回域名列表
//
//
//
// 注意:仅支持 90 天内数据查询
//
// 可能返回的错误码:
// 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_DATASYSTEMERROR = "InternalError.DataSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_TAGSYSTEMERROR = "InternalError.TagSystemError"
// 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 (c *Client) ListTopDataWithContext(ctx context.Context, request *ListTopDataRequest) (response *ListTopDataResponse, err error) {
if request == nil {
request = NewListTopDataRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ListTopData")
if c.GetCredential() == nil {
return nil, errors.New("ListTopData require credential")
}
request.SetContext(ctx)
response = NewListTopDataResponse()
err = c.Send(request, response)
return
}
func NewManageClsTopicDomainsRequest() (request *ManageClsTopicDomainsRequest) {
request = &ManageClsTopicDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ManageClsTopicDomains")
return
}
func NewManageClsTopicDomainsResponse() (response *ManageClsTopicDomainsResponse) {
response = &ManageClsTopicDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ManageClsTopicDomains
// ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
//
// 可能返回的错误码:
// 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_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 (c *Client) ManageClsTopicDomains(request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error) {
return c.ManageClsTopicDomainsWithContext(context.Background(), request)
}
// ManageClsTopicDomains
// ManageClsTopicDomains 用于管理某日志主题下绑定的域名列表。
//
// 可能返回的错误码:
// 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_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 (c *Client) ManageClsTopicDomainsWithContext(ctx context.Context, request *ManageClsTopicDomainsRequest) (response *ManageClsTopicDomainsResponse, err error) {
if request == nil {
request = NewManageClsTopicDomainsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ManageClsTopicDomains")
if c.GetCredential() == nil {
return nil, errors.New("ManageClsTopicDomains require credential")
}
request.SetContext(ctx)
response = NewManageClsTopicDomainsResponse()
err = c.Send(request, response)
return
}
func NewModifyDomainConfigRequest() (request *ModifyDomainConfigRequest) {
request = &ModifyDomainConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ModifyDomainConfig")
return
}
func NewModifyDomainConfigResponse() (response *ModifyDomainConfigResponse) {
response = &ModifyDomainConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDomainConfig
// ModifyDomainConfig 用于修改内容分发网络加速域名配置信息
//
// 注意:
//
// Route 字段,使用点分隔,最后一段称为叶子节点,非叶子节点配置保持不变;
//
// Value 字段,使用 json 进行序列化,其中固定 update 作为 key,配置路径值参考 https://cloud.tencent.com/document/product/228/41116 接口各配置项复杂类型,为配置路径对应复杂类型下的节点。
//
// 操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
//
// 可能返回的错误码:
// 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_ERROR = "InternalError.Error"
// INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// INVALIDPARAMETER_PATHREGEXTOOMANYSUBPATTERN = "InvalidParameter.PathRegexTooManySubPattern"
// 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_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) ModifyDomainConfig(request *ModifyDomainConfigRequest) (response *ModifyDomainConfigResponse, err error) {
return c.ModifyDomainConfigWithContext(context.Background(), request)
}
// ModifyDomainConfig
// ModifyDomainConfig 用于修改内容分发网络加速域名配置信息
//
// 注意:
//
// Route 字段,使用点分隔,最后一段称为叶子节点,非叶子节点配置保持不变;
//
// Value 字段,使用 json 进行序列化,其中固定 update 作为 key,配置路径值参考 https://cloud.tencent.com/document/product/228/41116 接口各配置项复杂类型,为配置路径对应复杂类型下的节点。
//
// 操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
//
// 可能返回的错误码:
// 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_ERROR = "InternalError.Error"
// INTERNALERROR_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// INVALIDPARAMETER_PATHREGEXTOOMANYSUBPATTERN = "InvalidParameter.PathRegexTooManySubPattern"
// 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_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) ModifyDomainConfigWithContext(ctx context.Context, request *ModifyDomainConfigRequest) (response *ModifyDomainConfigResponse, err error) {
if request == nil {
request = NewModifyDomainConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ModifyDomainConfig")
if c.GetCredential() == nil {
return nil, errors.New("ModifyDomainConfig require credential")
}
request.SetContext(ctx)
response = NewModifyDomainConfigResponse()
err = c.Send(request, response)
return
}
func NewModifyPurgeFetchTaskStatusRequest() (request *ModifyPurgeFetchTaskStatusRequest) {
request = &ModifyPurgeFetchTaskStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "ModifyPurgeFetchTaskStatus")
return
}
func NewModifyPurgeFetchTaskStatusResponse() (response *ModifyPurgeFetchTaskStatusResponse) {
response = &ModifyPurgeFetchTaskStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyPurgeFetchTaskStatus
// ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) ModifyPurgeFetchTaskStatus(request *ModifyPurgeFetchTaskStatusRequest) (response *ModifyPurgeFetchTaskStatusResponse, err error) {
return c.ModifyPurgeFetchTaskStatusWithContext(context.Background(), request)
}
// ModifyPurgeFetchTaskStatus
// ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) ModifyPurgeFetchTaskStatusWithContext(ctx context.Context, request *ModifyPurgeFetchTaskStatusRequest) (response *ModifyPurgeFetchTaskStatusResponse, err error) {
if request == nil {
request = NewModifyPurgeFetchTaskStatusRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "ModifyPurgeFetchTaskStatus")
if c.GetCredential() == nil {
return nil, errors.New("ModifyPurgeFetchTaskStatus require credential")
}
request.SetContext(ctx)
response = NewModifyPurgeFetchTaskStatusResponse()
err = c.Send(request, response)
return
}
func NewPurgePathCacheRequest() (request *PurgePathCacheRequest) {
request = &PurgePathCacheRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "PurgePathCache")
return
}
func NewPurgePathCacheResponse() (response *PurgePathCacheResponse) {
response = &PurgePathCacheResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PurgePathCache
// PurgePathCache 用于批量提交目录刷新,根据域名的加速区域进行对应区域的刷新。
//
// 默认情况下境内、境外加速区域每日目录刷新额度为各 100 条,每次最多可提交 500 条。
//
// 可能返回的错误码:
// 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"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNPURGEEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeExceedBatchLimit"
// LIMITEXCEEDED_CDNPURGEEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeExceedDayLimit"
// 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 (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error) {
return c.PurgePathCacheWithContext(context.Background(), request)
}
// PurgePathCache
// PurgePathCache 用于批量提交目录刷新,根据域名的加速区域进行对应区域的刷新。
//
// 默认情况下境内、境外加速区域每日目录刷新额度为各 100 条,每次最多可提交 500 条。
//
// 可能返回的错误码:
// 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"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNPURGEEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeExceedBatchLimit"
// LIMITEXCEEDED_CDNPURGEEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeExceedDayLimit"
// 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 (c *Client) PurgePathCacheWithContext(ctx context.Context, request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error) {
if request == nil {
request = NewPurgePathCacheRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "PurgePathCache")
if c.GetCredential() == nil {
return nil, errors.New("PurgePathCache require credential")
}
request.SetContext(ctx)
response = NewPurgePathCacheResponse()
err = c.Send(request, response)
return
}
func NewPurgeUrlsCacheRequest() (request *PurgeUrlsCacheRequest) {
request = &PurgeUrlsCacheRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "PurgeUrlsCache")
return
}
func NewPurgeUrlsCacheResponse() (response *PurgeUrlsCacheResponse) {
response = &PurgeUrlsCacheResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PurgeUrlsCache
// PurgeUrlsCache 用于批量提交 URL 进行刷新,根据 URL 中域名的当前加速区域进行对应区域的刷新。
//
// 默认情况下境内、境外加速区域每日 URL 刷新额度各为 10000 条,每次最多可提交 1000 条。
//
// 可能返回的错误码:
// 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"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// 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_CDNPURGEEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeExceedBatchLimit"
// LIMITEXCEEDED_CDNPURGEEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeExceedDayLimit"
// 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_ECDNMIGRATEDCDN = "UnauthorizedOperation.EcdnMigratedCdn"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error) {
return c.PurgeUrlsCacheWithContext(context.Background(), request)
}
// PurgeUrlsCache
// PurgeUrlsCache 用于批量提交 URL 进行刷新,根据 URL 中域名的当前加速区域进行对应区域的刷新。
//
// 默认情况下境内、境外加速区域每日 URL 刷新额度各为 10000 条,每次最多可提交 1000 条。
//
// 可能返回的错误码:
// 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"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// 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_CDNPURGEEXCEEDBATCHLIMIT = "LimitExceeded.CdnPurgeExceedBatchLimit"
// LIMITEXCEEDED_CDNPURGEEXCEEDDAYLIMIT = "LimitExceeded.CdnPurgeExceedDayLimit"
// 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_ECDNMIGRATEDCDN = "UnauthorizedOperation.EcdnMigratedCdn"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) PurgeUrlsCacheWithContext(ctx context.Context, request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error) {
if request == nil {
request = NewPurgeUrlsCacheRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "PurgeUrlsCache")
if c.GetCredential() == nil {
return nil, errors.New("PurgeUrlsCache require credential")
}
request.SetContext(ctx)
response = NewPurgeUrlsCacheResponse()
err = c.Send(request, response)
return
}
func NewPushUrlsCacheRequest() (request *PushUrlsCacheRequest) {
request = &PushUrlsCacheRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "PushUrlsCache")
return
}
func NewPushUrlsCacheResponse() (response *PushUrlsCacheResponse) {
response = &PushUrlsCacheResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PushUrlsCache
// PushUrlsCache 用于将指定 URL 资源列表加载至 CDN 节点,支持指定加速区域预热。
//
// 默认情况下境内、境外每日预热 URL 限额为各 1000 条,每次最多可提交 500 条 URL,每次提交的数量会消耗配额总数。如:1次提交500条URL全球预热,此时境内、境外预热 URL 各剩余 500条。注意:中国境外区域预热,资源默认加载至中国境外边缘节点。
//
// 可能返回的错误码:
// 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_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_ECDNMIGRATEDCDN = "UnauthorizedOperation.EcdnMigratedCdn"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) PushUrlsCache(request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error) {
return c.PushUrlsCacheWithContext(context.Background(), request)
}
// PushUrlsCache
// PushUrlsCache 用于将指定 URL 资源列表加载至 CDN 节点,支持指定加速区域预热。
//
// 默认情况下境内、境外每日预热 URL 限额为各 1000 条,每次最多可提交 500 条 URL,每次提交的数量会消耗配额总数。如:1次提交500条URL全球预热,此时境内、境外预热 URL 各剩余 500条。注意:中国境外区域预热,资源默认加载至中国境外边缘节点。
//
// 可能返回的错误码:
// 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_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_ECDNMIGRATEDCDN = "UnauthorizedOperation.EcdnMigratedCdn"
// UNAUTHORIZEDOPERATION_OPNOAUTH = "UnauthorizedOperation.OpNoAuth"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) PushUrlsCacheWithContext(ctx context.Context, request *PushUrlsCacheRequest) (response *PushUrlsCacheResponse, err error) {
if request == nil {
request = NewPushUrlsCacheRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "PushUrlsCache")
if c.GetCredential() == nil {
return nil, errors.New("PushUrlsCache require credential")
}
request.SetContext(ctx)
response = NewPushUrlsCacheResponse()
err = c.Send(request, response)
return
}
func NewSearchClsLogRequest() (request *SearchClsLogRequest) {
request = &SearchClsLogRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "SearchClsLog")
return
}
func NewSearchClsLogResponse() (response *SearchClsLogResponse) {
response = &SearchClsLogResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchClsLog
// SearchClsLog 用于 CLS 日志检索。支持检索今天,24小时(可选近7中的某一天),近7天的日志数据。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_CLSINVALIDLOGSETID = "InvalidParameter.ClsInvalidLogsetId"
// 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 (c *Client) SearchClsLog(request *SearchClsLogRequest) (response *SearchClsLogResponse, err error) {
return c.SearchClsLogWithContext(context.Background(), request)
}
// SearchClsLog
// SearchClsLog 用于 CLS 日志检索。支持检索今天,24小时(可选近7中的某一天),近7天的日志数据。
//
// 可能返回的错误码:
// INTERNALERROR_CAMSYSTEMERROR = "InternalError.CamSystemError"
// 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_CLSINVALIDLOGSETID = "InvalidParameter.ClsInvalidLogsetId"
// 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 (c *Client) SearchClsLogWithContext(ctx context.Context, request *SearchClsLogRequest) (response *SearchClsLogResponse, err error) {
if request == nil {
request = NewSearchClsLogRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "SearchClsLog")
if c.GetCredential() == nil {
return nil, errors.New("SearchClsLog require credential")
}
request.SetContext(ctx)
response = NewSearchClsLogResponse()
err = c.Send(request, response)
return
}
func NewStartCdnDomainRequest() (request *StartCdnDomainRequest) {
request = &StartCdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "StartCdnDomain")
return
}
func NewStartCdnDomainResponse() (response *StartCdnDomainResponse) {
response = &StartCdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// StartCdnDomain
// StartCdnDomain 用于启用已停用域名的加速服务
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound"
// 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_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) StartCdnDomain(request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error) {
return c.StartCdnDomainWithContext(context.Background(), request)
}
// StartCdnDomain
// StartCdnDomain 用于启用已停用域名的加速服务
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNCERTINFONOTFOUND = "InvalidParameter.CdnCertInfoNotFound"
// 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_CDNHOSTNOICP = "ResourceUnavailable.CdnHostNoIcp"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) StartCdnDomainWithContext(ctx context.Context, request *StartCdnDomainRequest) (response *StartCdnDomainResponse, err error) {
if request == nil {
request = NewStartCdnDomainRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "StartCdnDomain")
if c.GetCredential() == nil {
return nil, errors.New("StartCdnDomain require credential")
}
request.SetContext(ctx)
response = NewStartCdnDomainResponse()
err = c.Send(request, response)
return
}
func NewStopCdnDomainRequest() (request *StopCdnDomainRequest) {
request = &StopCdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "StopCdnDomain")
return
}
func NewStopCdnDomainResponse() (response *StopCdnDomainResponse) {
response = &StopCdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// StopCdnDomain
// StopCdnDomain 用于停止域名的加速服务。
//
// 注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig"
// INVALIDPARAMETER_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// OPERATIONDENIED_PRODUCTUPDATING = "OperationDenied.ProductUpdating"
// OPERATIONDENIED_PRODUCTUPGRADED = "OperationDenied.ProductUpgraded"
// 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 (c *Client) StopCdnDomain(request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error) {
return c.StopCdnDomainWithContext(context.Background(), request)
}
// StopCdnDomain
// StopCdnDomain 用于停止域名的加速服务。
//
// 注意:停止加速服务后,访问至加速节点的请求将会直接返回 404。为避免对您的业务造成影响,请在停止加速服务前将解析切走。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ERROR = "InternalError.Error"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig"
// INVALIDPARAMETER_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// OPERATIONDENIED_PRODUCTUPDATING = "OperationDenied.ProductUpdating"
// OPERATIONDENIED_PRODUCTUPGRADED = "OperationDenied.ProductUpgraded"
// 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 (c *Client) StopCdnDomainWithContext(ctx context.Context, request *StopCdnDomainRequest) (response *StopCdnDomainResponse, err error) {
if request == nil {
request = NewStopCdnDomainRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "StopCdnDomain")
if c.GetCredential() == nil {
return nil, errors.New("StopCdnDomain require credential")
}
request.SetContext(ctx)
response = NewStopCdnDomainResponse()
err = c.Send(request, response)
return
}
func NewUpdateDomainConfigRequest() (request *UpdateDomainConfigRequest) {
request = &UpdateDomainConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "UpdateDomainConfig")
return
}
func NewUpdateDomainConfigResponse() (response *UpdateDomainConfigResponse) {
response = &UpdateDomainConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// UpdateDomainConfig
// UpdateDomainConfig 用于修改内容分发网络加速域名配置信息。
//
// 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口;如果仅修改单独配置项只传对应配置参数即可。
//
// 操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// FAILEDOPERATION_SSLCERTCANNOTGETORDER = "FailedOperation.SslCertCannotGetOrder"
// FAILEDOPERATION_SSLCERTNOTFOUND = "FailedOperation.SslCertNotFound"
// 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_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// INVALIDPARAMETER_PATHREGEXTOOMANYSUBPATTERN = "InvalidParameter.PathRegexTooManySubPattern"
// INVALIDPARAMETER_REMOTEAUTHINVALIDPLATFORM = "InvalidParameter.RemoteAuthInvalidPlatform"
// INVALIDPARAMETER_REMOTEAUTHINVALIDPROTOCOL = "InvalidParameter.RemoteAuthInvalidProtocol"
// INVALIDPARAMETER_SSLCERTCHAINERROR = "InvalidParameter.SslCertChainError"
// INVALIDPARAMETER_SSLCERTMATCHERROR = "InvalidParameter.SslCertMatchError"
// INVALIDPARAMETER_SSLCERTPARSEERROR = "InvalidParameter.SslCertParseError"
// LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_SSLCERTREQUESTLIMITEXCEEDED = "LimitExceeded.SslCertRequestLimitExceeded"
// OPERATIONDENIED_SHARECACHEAREADNSNOTMATCH = "OperationDenied.ShareCacheAreaDnsNotMatch"
// 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_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error) {
return c.UpdateDomainConfigWithContext(context.Background(), request)
}
// UpdateDomainConfig
// UpdateDomainConfig 用于修改内容分发网络加速域名配置信息。
//
// 注意:如果需要更新复杂类型的配置项,必须传递整个对象的所有属性,未传递的属性将使用默认值,建议通过查询接口获取配置属性后,直接修改后传递给本接口;如果仅修改单独配置项只传对应配置参数即可。
//
// 操作审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到操作审计。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// FAILEDOPERATION_SSLCERTCANNOTGETORDER = "FailedOperation.SslCertCannotGetOrder"
// FAILEDOPERATION_SSLCERTNOTFOUND = "FailedOperation.SslCertNotFound"
// 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_INVALIDERRORCODE = "InternalError.InvalidErrorCode"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// 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_CDNKEYRULESEXCLUDECUSTOMREQUIRESFULLLEGO = "InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego"
// INVALIDPARAMETER_CDNKEYRULESINVALIDQUERYSTRINGVALUE = "InvalidParameter.CdnKeyRulesInvalidQueryStringValue"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDPROJECTID = "InvalidParameter.CdnStatInvalidProjectId"
// INVALIDPARAMETER_CDNSTATTOOMANYDOMAINS = "InvalidParameter.CdnStatTooManyDomains"
// INVALIDPARAMETER_PATHREGEXTOOMANYSUBPATTERN = "InvalidParameter.PathRegexTooManySubPattern"
// INVALIDPARAMETER_REMOTEAUTHINVALIDPLATFORM = "InvalidParameter.RemoteAuthInvalidPlatform"
// INVALIDPARAMETER_REMOTEAUTHINVALIDPROTOCOL = "InvalidParameter.RemoteAuthInvalidProtocol"
// INVALIDPARAMETER_SSLCERTCHAINERROR = "InvalidParameter.SslCertChainError"
// INVALIDPARAMETER_SSLCERTMATCHERROR = "InvalidParameter.SslCertMatchError"
// INVALIDPARAMETER_SSLCERTPARSEERROR = "InvalidParameter.SslCertParseError"
// LIMITEXCEEDED_CDNCONFIGTOOMANYCACHERULES = "LimitExceeded.CdnConfigTooManyCacheRules"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_SSLCERTREQUESTLIMITEXCEEDED = "LimitExceeded.SslCertRequestLimitExceeded"
// OPERATIONDENIED_SHARECACHEAREADNSNOTMATCH = "OperationDenied.ShareCacheAreaDnsNotMatch"
// 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_CDNHOSTINICPBLACKLIST = "UnauthorizedOperation.CdnHostInIcpBlacklist"
// 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 (c *Client) UpdateDomainConfigWithContext(ctx context.Context, request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error) {
if request == nil {
request = NewUpdateDomainConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "UpdateDomainConfig")
if c.GetCredential() == nil {
return nil, errors.New("UpdateDomainConfig require credential")
}
request.SetContext(ctx)
response = NewUpdateDomainConfigResponse()
err = c.Send(request, response)
return
}
func NewUpdateImageConfigRequest() (request *UpdateImageConfigRequest) {
request = &UpdateImageConfigRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "UpdateImageConfig")
return
}
func NewUpdateImageConfigResponse() (response *UpdateImageConfigResponse) {
response = &UpdateImageConfigResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// UpdateImageConfig
// UpdateImageConfig 用于更新控制台图片优化的相关配置,支持Webp、TPG、 Guetzli 和 Avif。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError"
// 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_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) UpdateImageConfig(request *UpdateImageConfigRequest) (response *UpdateImageConfigResponse, err error) {
return c.UpdateImageConfigWithContext(context.Background(), request)
}
// UpdateImageConfig
// UpdateImageConfig 用于更新控制台图片优化的相关配置,支持Webp、TPG、 Guetzli 和 Avif。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_DATASYSTEMERROR = "InternalError.DataSystemError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError"
// 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_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CLSINVALIDAUTHORIZATION = "UnauthorizedOperation.ClsInvalidAuthorization"
// UNAUTHORIZEDOPERATION_CLSUNAUTHORIZED = "UnauthorizedOperation.ClsUnauthorized"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) UpdateImageConfigWithContext(ctx context.Context, request *UpdateImageConfigRequest) (response *UpdateImageConfigResponse, err error) {
if request == nil {
request = NewUpdateImageConfigRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "UpdateImageConfig")
if c.GetCredential() == nil {
return nil, errors.New("UpdateImageConfig require credential")
}
request.SetContext(ctx)
response = NewUpdateImageConfigResponse()
err = c.Send(request, response)
return
}
func NewUpdatePayTypeRequest() (request *UpdatePayTypeRequest) {
request = &UpdatePayTypeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "UpdatePayType")
return
}
func NewUpdatePayTypeResponse() (response *UpdatePayTypeResponse) {
response = &UpdatePayTypeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// UpdatePayType
// 本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
//
// 可能返回的错误码:
// 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 (c *Client) UpdatePayType(request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error) {
return c.UpdatePayTypeWithContext(context.Background(), request)
}
// UpdatePayType
// 本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
//
// 可能返回的错误码:
// 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 (c *Client) UpdatePayTypeWithContext(ctx context.Context, request *UpdatePayTypeRequest) (response *UpdatePayTypeResponse, err error) {
if request == nil {
request = NewUpdatePayTypeRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "UpdatePayType")
if c.GetCredential() == nil {
return nil, errors.New("UpdatePayType require credential")
}
request.SetContext(ctx)
response = NewUpdatePayTypeResponse()
err = c.Send(request, response)
return
}
func NewVerifyDomainRecordRequest() (request *VerifyDomainRecordRequest) {
request = &VerifyDomainRecordRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "VerifyDomainRecord")
return
}
func NewVerifyDomainRecordResponse() (response *VerifyDomainRecordResponse) {
response = &VerifyDomainRecordResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// VerifyDomainRecord
// VerifyDomainRecord 用于验证域名解析值。
//
// 验证域名解析记录值前,您需要通过 [CreateVerifyRecord](https://cloud.tencent.com/document/product/228/48118) 生成校验解析值,验证通过后,24小时有效。
//
// 具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
//
// 可能返回的错误码:
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNTXTRECORDVALUENOTMATCH = "UnauthorizedOperation.CdnTxtRecordValueNotMatch"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) VerifyDomainRecord(request *VerifyDomainRecordRequest) (response *VerifyDomainRecordResponse, err error) {
return c.VerifyDomainRecordWithContext(context.Background(), request)
}
// VerifyDomainRecord
// VerifyDomainRecord 用于验证域名解析值。
//
// 验证域名解析记录值前,您需要通过 [CreateVerifyRecord](https://cloud.tencent.com/document/product/228/48118) 生成校验解析值,验证通过后,24小时有效。
//
// 具体流程可参考:[使用API接口进行域名归属校验](https://cloud.tencent.com/document/product/228/61702#.E6.96.B9.E6.B3.95.E4.B8.89.EF.BC.9Aapi-.E6.8E.A5.E5.8F.A3.E6.93.8D.E4.BD.9C)
//
// 可能返回的错误码:
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNCONFIGINVALIDHOST = "InvalidParameter.CdnConfigInvalidHost"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNTXTRECORDVALUENOTMATCH = "UnauthorizedOperation.CdnTxtRecordValueNotMatch"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) VerifyDomainRecordWithContext(ctx context.Context, request *VerifyDomainRecordRequest) (response *VerifyDomainRecordResponse, err error) {
if request == nil {
request = NewVerifyDomainRecordRequest()
}
c.InitBaseRequest(&request.BaseRequest, "cdn", APIVersion, "VerifyDomainRecord")
if c.GetCredential() == nil {
return nil, errors.New("VerifyDomainRecord require credential")
}
request.SetContext(ctx)
response = NewVerifyDomainRecordResponse()
err = c.Send(request, response)
return
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。