Fetch the repository succeeded.
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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()
}
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_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"
// 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_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_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"
// 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_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()
}
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()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewCreateClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewCreateDiagnoseUrlRequest() (request *CreateDiagnoseUrlRequest) {
request = &CreateDiagnoseUrlRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateDiagnoseUrl")
return
}
func NewCreateDiagnoseUrlResponse() (response *CreateDiagnoseUrlResponse) {
response = &CreateDiagnoseUrlResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateDiagnoseUrl
// ### <font color=red>**该接口已废弃** </font><br>
//
// CreateDiagnoseUrl 用于添加域名诊断任务URL。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// 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_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateDiagnoseUrl(request *CreateDiagnoseUrlRequest) (response *CreateDiagnoseUrlResponse, err error) {
return c.CreateDiagnoseUrlWithContext(context.Background(), request)
}
// CreateDiagnoseUrl
// ### <font color=red>**该接口已废弃** </font><br>
//
// CreateDiagnoseUrl 用于添加域名诊断任务URL。
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNQUERYPARAMERROR = "InternalError.CdnQueryParamError"
// INTERNALERROR_CDNQUERYSYSTEMERROR = "InternalError.CdnQuerySystemError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNHOSTINVALIDPARAM = "InvalidParameter.CdnHostInvalidParam"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// 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_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateDiagnoseUrlWithContext(ctx context.Context, request *CreateDiagnoseUrlRequest) (response *CreateDiagnoseUrlResponse, err error) {
if request == nil {
request = NewCreateDiagnoseUrlRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateDiagnoseUrl require credential")
}
request.SetContext(ctx)
response = NewCreateDiagnoseUrlResponse()
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()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateEdgePackTask require credential")
}
request.SetContext(ctx)
response = NewCreateEdgePackTaskResponse()
err = c.Send(request, response)
return
}
func NewCreateScdnDomainRequest() (request *CreateScdnDomainRequest) {
request = &CreateScdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateScdnDomain")
return
}
func NewCreateScdnDomainResponse() (response *CreateScdnDomainResponse) {
response = &CreateScdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateScdnDomain
// CreateScdnDomain 用于创建 SCDN 加速域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage"
// RESOURCEUNAVAILABLE_SCDNUSERSUSPEND = "ResourceUnavailable.ScdnUserSuspend"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateScdnDomain(request *CreateScdnDomainRequest) (response *CreateScdnDomainResponse, err error) {
return c.CreateScdnDomainWithContext(context.Background(), request)
}
// CreateScdnDomain
// CreateScdnDomain 用于创建 SCDN 加速域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTHASSPECIALCONFIG = "InvalidParameter.CdnHostHasSpecialConfig"
// INVALIDPARAMETER_CDNHOSTINTERNALHOST = "InvalidParameter.CdnHostInternalHost"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// LIMITEXCEEDED_CDNUSERTOOMANYHOSTS = "LimitExceeded.CdnUserTooManyHosts"
// RESOURCEINUSE_CDNHOSTEXISTS = "ResourceInUse.CdnHostExists"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage"
// RESOURCEUNAVAILABLE_SCDNUSERSUSPEND = "ResourceUnavailable.ScdnUserSuspend"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized"
// UNAUTHORIZEDOPERATION_CDNUSERAUTHFAIL = "UnauthorizedOperation.CdnUserAuthFail"
// UNAUTHORIZEDOPERATION_CDNUSERISSUSPENDED = "UnauthorizedOperation.CdnUserIsSuspended"
// UNAUTHORIZEDOPERATION_CDNUSERNOWHITELIST = "UnauthorizedOperation.CdnUserNoWhitelist"
// UNAUTHORIZEDOPERATION_OPERATIONTOOOFTEN = "UnauthorizedOperation.OperationTooOften"
func (c *Client) CreateScdnDomainWithContext(ctx context.Context, request *CreateScdnDomainRequest) (response *CreateScdnDomainResponse, err error) {
if request == nil {
request = NewCreateScdnDomainRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateScdnDomain require credential")
}
request.SetContext(ctx)
response = NewCreateScdnDomainResponse()
err = c.Send(request, response)
return
}
func NewCreateScdnFailedLogTaskRequest() (request *CreateScdnFailedLogTaskRequest) {
request = &CreateScdnFailedLogTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateScdnFailedLogTask")
return
}
func NewCreateScdnFailedLogTaskResponse() (response *CreateScdnFailedLogTaskResponse) {
response = &CreateScdnFailedLogTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateScdnFailedLogTask
// CreateScdnFailedLogTask 用于重试创建失败的事件日志任务
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired"
// INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail"
// INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid"
// LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) CreateScdnFailedLogTask(request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error) {
return c.CreateScdnFailedLogTaskWithContext(context.Background(), request)
}
// CreateScdnFailedLogTask
// CreateScdnFailedLogTask 用于重试创建失败的事件日志任务
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired"
// INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail"
// INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid"
// LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) CreateScdnFailedLogTaskWithContext(ctx context.Context, request *CreateScdnFailedLogTaskRequest) (response *CreateScdnFailedLogTaskResponse, err error) {
if request == nil {
request = NewCreateScdnFailedLogTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateScdnFailedLogTask require credential")
}
request.SetContext(ctx)
response = NewCreateScdnFailedLogTaskResponse()
err = c.Send(request, response)
return
}
func NewCreateScdnLogTaskRequest() (request *CreateScdnLogTaskRequest) {
request = &CreateScdnLogTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "CreateScdnLogTask")
return
}
func NewCreateScdnLogTaskResponse() (response *CreateScdnLogTaskResponse) {
response = &CreateScdnLogTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateScdnLogTask
// CreateScdnLogTask 用于创建事件日志任务
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate"
// INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired"
// INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail"
// INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid"
// LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) CreateScdnLogTask(request *CreateScdnLogTaskRequest) (response *CreateScdnLogTaskResponse, err error) {
return c.CreateScdnLogTaskWithContext(context.Background(), request)
}
// CreateScdnLogTask
// CreateScdnLogTask 用于创建事件日志任务
//
// 可能返回的错误码:
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// INVALIDPARAMETER_CDNSTATINVALIDDATE = "InvalidParameter.CdnStatInvalidDate"
// INVALIDPARAMETER_SCDNLOGTASKEXPIRED = "InvalidParameter.ScdnLogTaskExpired"
// INVALIDPARAMETER_SCDNLOGTASKNOTFOUNDORNOTFAIL = "InvalidParameter.ScdnLogTaskNotFoundOrNotFail"
// INVALIDPARAMETER_SCDNLOGTASKTIMERANGEINVALID = "InvalidParameter.ScdnLogTaskTimeRangeInvalid"
// LIMITEXCEEDED_SCDNLOGTASKEXCEEDDAYLIMIT = "LimitExceeded.ScdnLogTaskExceedDayLimit"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) CreateScdnLogTaskWithContext(ctx context.Context, request *CreateScdnLogTaskRequest) (response *CreateScdnLogTaskResponse, err error) {
if request == nil {
request = NewCreateScdnLogTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateScdnLogTask require credential")
}
request.SetContext(ctx)
response = NewCreateScdnLogTaskResponse()
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()
}
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()
}
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()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteClsLogTopic require credential")
}
request.SetContext(ctx)
response = NewDeleteClsLogTopicResponse()
err = c.Send(request, response)
return
}
func NewDeleteScdnDomainRequest() (request *DeleteScdnDomainRequest) {
request = &DeleteScdnDomainRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DeleteScdnDomain")
return
}
func NewDeleteScdnDomainResponse() (response *DeleteScdnDomainResponse) {
response = &DeleteScdnDomainResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteScdnDomain
// 删除SCDN域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DeleteScdnDomain(request *DeleteScdnDomainRequest) (response *DeleteScdnDomainResponse, err error) {
return c.DeleteScdnDomainWithContext(context.Background(), request)
}
// DeleteScdnDomain
// 删除SCDN域名
//
// 可能返回的错误码:
// FAILEDOPERATION_CDNCONFIGERROR = "FailedOperation.CdnConfigError"
// INTERNALERROR_CDNCONFIGERROR = "InternalError.CdnConfigError"
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INTERNALERROR_SCDNUSERNOPACKAGE = "InternalError.ScdnUserNoPackage"
// INVALIDPARAMETER_CDNSTATUSINVALIDDOMAIN = "InvalidParameter.CDNStatusInvalidDomain"
// INVALIDPARAMETER_CDNHOSTINVALIDSTATUS = "InvalidParameter.CdnHostInvalidStatus"
// INVALIDPARAMETER_CDNINTERFACEERROR = "InvalidParameter.CdnInterfaceError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// LIMITEXCEEDED_CDNHOSTOPTOOOFTEN = "LimitExceeded.CdnHostOpTooOften"
// RESOURCEINUSE_CDNOPINPROGRESS = "ResourceInUse.CdnOpInProgress"
// RESOURCENOTFOUND_CDNHOSTNOTEXISTS = "ResourceNotFound.CdnHostNotExists"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// RESOURCEUNAVAILABLE_CDNHOSTISLOCKED = "ResourceUnavailable.CdnHostIsLocked"
// RESOURCEUNAVAILABLE_SCDNUSERNOPACKAGE = "ResourceUnavailable.ScdnUserNoPackage"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DeleteScdnDomainWithContext(ctx context.Context, request *DeleteScdnDomainRequest) (response *DeleteScdnDomainResponse, err error) {
if request == nil {
request = NewDeleteScdnDomainRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteScdnDomain require credential")
}
request.SetContext(ctx)
response = NewDeleteScdnDomainResponse()
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 用于查询实际计费数据明细。
//
// 可能返回的错误码:
// 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 用于查询实际计费数据明细。
//
// 可能返回的错误码:
// 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()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeBillingData require credential")
}
request.SetContext(ctx)
response = NewDescribeBillingDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeCcDataRequest() (request *DescribeCcDataRequest) {
request = &DescribeCcDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeCcData")
return
}
func NewDescribeCcDataResponse() (response *DescribeCcDataResponse) {
response = &DescribeCcDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCcData
// CC统计数据查询
//
// 可能返回的错误码:
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_DOMAINEMPTY = "UnauthorizedOperation.DomainEmpty"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) DescribeCcData(request *DescribeCcDataRequest) (response *DescribeCcDataResponse, err error) {
return c.DescribeCcDataWithContext(context.Background(), request)
}
// DescribeCcData
// CC统计数据查询
//
// 可能返回的错误码:
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_DOMAINEMPTY = "UnauthorizedOperation.DomainEmpty"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) DescribeCcDataWithContext(ctx context.Context, request *DescribeCcDataRequest) (response *DescribeCcDataResponse, err error) {
if request == nil {
request = NewDescribeCcDataRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCcData require credential")
}
request.SetContext(ctx)
response = NewDescribeCcDataResponse()
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()
}
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()
}
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()
}
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()
}
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()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCertDomains require credential")
}
request.SetContext(ctx)
response = NewDescribeCertDomainsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDDoSDataRequest() (request *DescribeDDoSDataRequest) {
request = &DescribeDDoSDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeDDoSData")
return
}
func NewDescribeDDoSDataResponse() (response *DescribeDDoSDataResponse) {
response = &DescribeDDoSDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDDoSData
// DDoS统计数据查询
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_SYSTEMDBERROR = "InternalError.SystemDBError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// LIMITEXCEEDED = "LimitExceeded"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDDoSData(request *DescribeDDoSDataRequest) (response *DescribeDDoSDataResponse, err error) {
return c.DescribeDDoSDataWithContext(context.Background(), request)
}
// DescribeDDoSData
// DDoS统计数据查询
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_SYSTEMDBERROR = "InternalError.SystemDBError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// LIMITEXCEEDED = "LimitExceeded"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDDoSDataWithContext(ctx context.Context, request *DescribeDDoSDataRequest) (response *DescribeDDoSDataResponse, err error) {
if request == nil {
request = NewDescribeDDoSDataRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDDoSData require credential")
}
request.SetContext(ctx)
response = NewDescribeDDoSDataResponse()
err = c.Send(request, response)
return
}
func NewDescribeDiagnoseReportRequest() (request *DescribeDiagnoseReportRequest) {
request = &DescribeDiagnoseReportRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeDiagnoseReport")
return
}
func NewDescribeDiagnoseReportResponse() (response *DescribeDiagnoseReportResponse) {
response = &DescribeDiagnoseReportResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDiagnoseReport
// ### <font color=red>**该接口已废弃** </font><br>
//
// DescribeDiagnoseReport 用于获取指定报告id的内容。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DescribeDiagnoseReport(request *DescribeDiagnoseReportRequest) (response *DescribeDiagnoseReportResponse, err error) {
return c.DescribeDiagnoseReportWithContext(context.Background(), request)
}
// DescribeDiagnoseReport
// ### <font color=red>**该接口已废弃** </font><br>
//
// DescribeDiagnoseReport 用于获取指定报告id的内容。
//
// 可能返回的错误码:
// INTERNALERROR_CDNDBERROR = "InternalError.CdnDbError"
// INTERNALERROR_CDNSYSTEMERROR = "InternalError.CdnSystemError"
// INVALIDPARAMETER_CDNPARAMERROR = "InvalidParameter.CdnParamError"
// RESOURCENOTFOUND_CDNUSERNOTEXISTS = "ResourceNotFound.CdnUserNotExists"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
func (c *Client) DescribeDiagnoseReportWithContext(ctx context.Context, request *DescribeDiagnoseReportRequest) (response *DescribeDiagnoseReportResponse, err error) {
if request == nil {
request = NewDescribeDiagnoseReportRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDiagnoseReport require credential")
}
request.SetContext(ctx)
response = NewDescribeDiagnoseReportResponse()
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
// 查询指定域名的区域、运营商明细数据
//
// 注意事项:接口尚未全面开放,未在内测名单中的账号不支持调用
//
// 可能返回的错误码:
// 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
// 查询指定域名的区域、运营商明细数据
//
// 注意事项:接口尚未全面开放,未在内测名单中的账号不支持调用
//
// 可能返回的错误码:
// 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()
}
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()
}
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()
}
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()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeEdgePackTaskStatus require credential")
}
request.SetContext(ctx)
response = NewDescribeEdgePackTaskStatusResponse()
err = c.Send(request, response)
return
}
func NewDescribeEventLogDataRequest() (request *DescribeEventLogDataRequest) {
request = &DescribeEventLogDataRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("cdn", APIVersion, "DescribeEventLogData")
return
}
func NewDescribeEventLogDataResponse() (response *DescribeEventLogDataResponse) {
response = &DescribeEventLogDataResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeEventLogData
// DescribeEventLogData 用于查询事件日志统计曲线
//
// 可能返回的错误码:
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_SYSTEMDBERROR = "InternalError.SystemDBError"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) DescribeEventLogData(request *DescribeEventLogDataRequest) (response *DescribeEventLogDataResponse, err error) {
return c.DescribeEventLogDataWithContext(context.Background(), request)
}
// DescribeEventLogData
// DescribeEventLogData 用于查询事件日志统计曲线
//
// 可能返回的错误码:
// INTERNALERROR_PROXYSERVER = "InternalError.ProxyServer"
// INTERNALERROR_ROUTEERROR = "InternalError.RouteError"
// INTERNALERROR_SYSTEMDBERROR = "InternalError.SystemDBError"
// INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
// UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized"
// UNAUTHORIZEDOPERATION_UNKNOWN = "UnauthorizedOperation.Unknown"
func (c *Client) DescribeEventLogDataWithContext(ctx context.Context, request *DescribeEventLogDataRequest) (response *DescribeEventLogDataResponse, err error) {
if request == nil {
request = NewDescribeEventLogDataRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeEventLogData require credential")
}
request.SetContext(ctx)
response = NewDescribeEventLogDataResponse()
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()
}
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()
}
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()
}
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()
}
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()
}
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"