Documentation ¶
Index ¶
- Constants
- type AddEcdnDomainRequest
- type AddEcdnDomainResponse
- type Cache
- type CacheKey
- type CacheRule
- type Client
- func (c *Client) AddEcdnDomain(request *AddEcdnDomainRequest) (response *AddEcdnDomainResponse, err error)
- func (c *Client) DeleteEcdnDomain(request *DeleteEcdnDomainRequest) (response *DeleteEcdnDomainResponse, err error)
- func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
- func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
- func (c *Client) DescribeEcdnDomainLogs(request *DescribeEcdnDomainLogsRequest) (response *DescribeEcdnDomainLogsResponse, err error)
- func (c *Client) DescribeEcdnDomainStatistics(request *DescribeEcdnDomainStatisticsRequest) (response *DescribeEcdnDomainStatisticsResponse, err error)
- func (c *Client) DescribeEcdnStatistics(request *DescribeEcdnStatisticsRequest) (response *DescribeEcdnStatisticsResponse, err error)
- func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
- func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
- func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
- func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
- func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
- func (c *Client) StartEcdnDomain(request *StartEcdnDomainRequest) (response *StartEcdnDomainResponse, err error)
- func (c *Client) StopEcdnDomain(request *StopEcdnDomainRequest) (response *StopEcdnDomainResponse, err error)
- func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
- type ClientCert
- type DeleteEcdnDomainRequest
- type DeleteEcdnDomainResponse
- type DescribeDomainsConfigRequest
- type DescribeDomainsConfigResponse
- type DescribeDomainsRequest
- type DescribeDomainsResponse
- type DescribeEcdnDomainLogsRequest
- type DescribeEcdnDomainLogsResponse
- type DescribeEcdnDomainStatisticsRequest
- type DescribeEcdnDomainStatisticsResponse
- type DescribeEcdnStatisticsRequest
- type DescribeEcdnStatisticsResponse
- type DescribeIpStatusRequest
- type DescribeIpStatusResponse
- type DescribePurgeQuotaRequest
- type DescribePurgeQuotaResponse
- type DescribePurgeTasksRequest
- type DescribePurgeTasksResponse
- type DetailData
- type DomainBriefInfo
- type DomainData
- type DomainDetailInfo
- type DomainFilter
- type DomainLogs
- type EcdnData
- type ForceRedirect
- type Hsts
- type HttpHeaderPathRule
- type Https
- type IpFilter
- type IpFreqLimit
- type IpStatus
- type Origin
- type PurgePathCacheRequest
- type PurgePathCacheResponse
- type PurgeTask
- type PurgeUrlsCacheRequest
- type PurgeUrlsCacheResponse
- type Quota
- type ResourceData
- type ResponseHeader
- type ServerCert
- type Sort
- type StartEcdnDomainRequest
- type StartEcdnDomainResponse
- type StopEcdnDomainRequest
- type StopEcdnDomainResponse
- type Tag
- type TimestampData
- type UpdateDomainConfigRequest
- type UpdateDomainConfigResponse
- type WebSocket
Constants ¶
const ( // Failed to update the domain name configuration. Please try again or contact customer service for assistance. FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" // Internal configuration service error. Please try again later or contact the customer service for assistance. INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" // Internal data error. Please submit a ticket for troubleshooting. INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" // System error. Please submit a ticket for troubleshooting. INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" // The tag key does not exist. INVALIDPARAMETER_ECDNCAMTAGKEYNOTEXIST = "InvalidParameter.EcdnCamTagKeyNotExist" // Unable to resolve the certificate information. INVALIDPARAMETER_ECDNCERTNOCERTINFO = "InvalidParameter.EcdnCertNoCertInfo" // Invalid domain name status. INVALIDPARAMETER_ECDNDOMAININVALIDSTATUS = "InvalidParameter.EcdnDomainInvalidStatus" // Internal API error. Please submit a ticket for troubleshooting. INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" // Invalid `Area` parameter. Please see the sample parameters in the documentation. INVALIDPARAMETER_ECDNINVALIDPARAMAREA = "InvalidParameter.EcdnInvalidParamArea" // Invalid statistical granularity. Please see the sample statistical analysis in the documentation. INVALIDPARAMETER_ECDNINVALIDPARAMINTERVAL = "InvalidParameter.EcdnInvalidParamInterval" // Parameter error. Please see the sample parameters in the documentation. INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" // Wildcard domain names are not supported for purging. INVALIDPARAMETER_ECDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.EcdnPurgeWildcardNotAllowed" // This domain name binds too many tag keys. INVALIDPARAMETER_ECDNRESOURCEMANYTAGKEY = "InvalidParameter.EcdnResourceManyTagKey" // Invalid date. Please see the sample date in the documentation. INVALIDPARAMETER_ECDNSTATINVALIDDATE = "InvalidParameter.EcdnStatInvalidDate" // Invalid statistical type. Please see the sample statistical analysis in the documentation. INVALIDPARAMETER_ECDNSTATINVALIDMETRIC = "InvalidParameter.EcdnStatInvalidMetric" // Invalid tag key. INVALIDPARAMETER_ECDNTAGKEYINVALID = "InvalidParameter.EcdnTagKeyInvalid" // The tag key does not exist. INVALIDPARAMETER_ECDNTAGKEYNOTEXIST = "InvalidParameter.EcdnTagKeyNotExist" // The tag key has too many values. INVALIDPARAMETER_ECDNTAGKEYTOOMANYVALUE = "InvalidParameter.EcdnTagKeyTooManyValue" // Invalid tag value. INVALIDPARAMETER_ECDNTAGVALUEINVALID = "InvalidParameter.EcdnTagValueInvalid" // The URL length exceeds the limit. INVALIDPARAMETER_ECDNURLEXCEEDLENGTH = "InvalidParameter.EcdnUrlExceedLength" // This user has too many tag keys. INVALIDPARAMETER_ECDNUSERTOOMANYTAGKEY = "InvalidParameter.EcdnUserTooManyTagKey" // Parameter error INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" // Domain name operations are too frequent. LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" // The number of directories to be purged exceeded the limit on one request. LIMITEXCEEDED_ECDNPURGEPATHEXCEEDBATCHLIMIT = "LimitExceeded.EcdnPurgePathExceedBatchLimit" // The number of directories to be purged exceeded the daily limit. LIMITEXCEEDED_ECDNPURGEPATHEXCEEDDAYLIMIT = "LimitExceeded.EcdnPurgePathExceedDayLimit" // The number of URLs to be purged exceeded the limit on one request. LIMITEXCEEDED_ECDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.EcdnPurgeUrlExceedBatchLimit" // The number of URLs to be purged exceeded the daily quota. LIMITEXCEEDED_ECDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.EcdnPurgeUrlExceedDayLimit" // The ECDN resource is being manipulated. RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" // This domain name does not exist under the account. Please check and try again. RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" // This domain name does not exist under the account. Please check and try again. RESOURCENOTFOUND_ECDNHOSTNOTEXISTS = "ResourceNotFound.EcdnHostNotExists" // The project does not exist. RESOURCENOTFOUND_ECDNPROJECTNOTEXISTS = "ResourceNotFound.EcdnProjectNotExists" // The ECDN service has not been activated. Please activate it first before using this API. RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" // The sub-account is unauthorized to query full data. UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" // No CAM policy is configured for the sub-account. UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_CDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnDomainUnauthorized" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" // The sub-account does not have the permission to access the domain name. Please try again after authorization. UNAUTHORIZEDOPERATION_CDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnNoDomainUnauthorized" // The project is not authorized for the sub-account. UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_DOMAINNOPERMISSION = "UnauthorizedOperation.DomainNoPermission" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_DOMAINSNOPERMISSION = "UnauthorizedOperation.DomainsNoPermission" // The sub-account is unauthorized to query full data. UNAUTHORIZEDOPERATION_ECDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.EcdnAccountUnauthorized" // No CAM policy is configured for the sub-account. UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" // The acceleration domain name is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = "UnauthorizedOperation.EcdnHostUnauthorized" // The sub-account does not have the permission to access the domain name. Please try again after authorization. UNAUTHORIZEDOPERATION_ECDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnNoDomainUnauthorized" // The project is not authorized for the sub-account. UNAUTHORIZEDOPERATION_ECDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.EcdnProjectUnauthorized" // The acceleration service has been suspended. Please restart it and try again. UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended" // You are not on the beta allowlist and thus have no permission to use this feature. UNAUTHORIZEDOPERATION_ECDNUSERNOWHITELIST = "UnauthorizedOperation.EcdnUserNoWhitelist" // CAM is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" // The project is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_PROJECTNOPERMISSION = "UnauthorizedOperation.ProjectNoPermission" // The project is not authorized for the ECDN sub-account. UNAUTHORIZEDOPERATION_PROJECTSNOPERMISSION = "UnauthorizedOperation.ProjectsNoPermission" )
const APIVersion = "2019-10-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEcdnDomainRequest ¶
type AddEcdnDomainRequest struct { *tchttp.BaseRequest // Domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` // Origin server configuration. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Domain name acceleration region. Valid values: mainland (acceleration in Mainland China), overseas (acceleration outside Mainland China), global (global acceleration). Area *string `json:"Area,omitempty" name:"Area"` // Project ID. Default value: 0. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // IP block/allowlist configuration. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Origin server response header configuration. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Node caching configuration. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Caching rule configuration. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // HTTPS configuration. Https *Https `json:"Https,omitempty" name:"Https"` // Forced access protocol redirection configuration. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Tag bound to a domain name. Tag []*Tag `json:"Tag,omitempty" name:"Tag"` // WebSocket configuration. WebSocket *WebSocket `json:"WebSocket,omitempty" name:"WebSocket"` }
func NewAddEcdnDomainRequest ¶
func NewAddEcdnDomainRequest() (request *AddEcdnDomainRequest)
func (*AddEcdnDomainRequest) FromJsonString ¶
func (r *AddEcdnDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddEcdnDomainRequest) ToJsonString ¶
func (r *AddEcdnDomainRequest) ToJsonString() string
type AddEcdnDomainResponse ¶
type AddEcdnDomainResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddEcdnDomainResponse ¶
func NewAddEcdnDomainResponse() (response *AddEcdnDomainResponse)
func (*AddEcdnDomainResponse) FromJsonString ¶
func (r *AddEcdnDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddEcdnDomainResponse) ToJsonString ¶
func (r *AddEcdnDomainResponse) ToJsonString() string
type Cache ¶
type Cache struct { // Caching configuration rule array. CacheRules []*CacheRule `json:"CacheRules,omitempty" name:"CacheRules"` // Whether to follow the `Cache-Control: max-age` configuration on the origin server (this feature is only available to users on the allowlist). // on: enable // off: disable // If it is enabled, resources that do not match `CacheRules` will be cached on node according to the `max-age` value returned by the origin server, while resources that match `CacheRules` will be cached on node according to the cache expiration time set in `CacheRules`. // Note: this field may return null, indicating that no valid values can be obtained. FollowOrigin *string `json:"FollowOrigin,omitempty" name:"FollowOrigin"` }
type CacheKey ¶
type CacheKey struct { // Whether to enable full path cache. Valid values: on, off. FullUrlCache *string `json:"FullUrlCache,omitempty" name:"FullUrlCache"` }
type CacheRule ¶
type CacheRule struct { // Cache type. Valid values: all (all files), file (extension type), directory (directory), path (full path), index (homepage). CacheType *string `json:"CacheType,omitempty" name:"CacheType"` // Cached content list. CacheContents []*string `json:"CacheContents,omitempty" name:"CacheContents"` // Cache time in seconds. CacheTime *int64 `json:"CacheTime,omitempty" name:"CacheTime"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddEcdnDomain ¶
func (c *Client) AddEcdnDomain(request *AddEcdnDomainRequest) (response *AddEcdnDomainResponse, err error)
AddEcdnDomain This API is used to create an acceleration domain name.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNCAMTAGKEYNOTEXIST = "InvalidParameter.EcdnCamTagKeyNotExist" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNRESOURCEMANYTAGKEY = "InvalidParameter.EcdnResourceManyTagKey" INVALIDPARAMETER_ECDNTAGKEYINVALID = "InvalidParameter.EcdnTagKeyInvalid" INVALIDPARAMETER_ECDNTAGKEYNOTEXIST = "InvalidParameter.EcdnTagKeyNotExist" INVALIDPARAMETER_ECDNTAGKEYTOOMANYVALUE = "InvalidParameter.EcdnTagKeyTooManyValue" INVALIDPARAMETER_ECDNTAGVALUEINVALID = "InvalidParameter.EcdnTagValueInvalid" INVALIDPARAMETER_ECDNUSERTOOMANYTAGKEY = "InvalidParameter.EcdnUserTooManyTagKey" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended" UNAUTHORIZEDOPERATION_ECDNUSERNOWHITELIST = "UnauthorizedOperation.EcdnUserNoWhitelist"
func (*Client) DeleteEcdnDomain ¶
func (c *Client) DeleteEcdnDomain(request *DeleteEcdnDomainRequest) (response *DeleteEcdnDomainResponse, err error)
DeleteEcdnDomain This API is used to delete a specified acceleration domain name. The acceleration domain name to be deleted must be in disabled status.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) DescribeDomains ¶
func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error)
DescribeDomains This API is used to query the basic information of a CDN domain name, including the project ID, status, business type, creation time, update time, etc.
error code that may be returned:
INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized"
func (*Client) DescribeDomainsConfig ¶
func (c *Client) DescribeDomainsConfig(request *DescribeDomainsConfigRequest) (response *DescribeDomainsConfigResponse, err error)
DescribeDomainsConfig This API is used to query the detailed configuration information of a CDN acceleration domain name.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNCERTNOCERTINFO = "InvalidParameter.EcdnCertNoCertInfo" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized"
func (*Client) DescribeEcdnDomainLogs ¶
func (c *Client) DescribeEcdnDomainLogs(request *DescribeEcdnDomainLogsRequest) (response *DescribeEcdnDomainLogsResponse, err error)
DescribeEcdnDomainLogs This API is used to query the access log download link of a domain name.
error code that may be returned:
INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNSTATINVALIDDATE = "InvalidParameter.EcdnStatInvalidDate" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNHOSTNOTEXISTS = "ResourceNotFound.EcdnHostNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.EcdnAccountUnauthorized" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = "UnauthorizedOperation.EcdnHostUnauthorized" UNAUTHORIZEDOPERATION_ECDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnNoDomainUnauthorized"
func (*Client) DescribeEcdnDomainStatistics ¶
func (c *Client) DescribeEcdnDomainStatistics(request *DescribeEcdnDomainStatisticsRequest) (response *DescribeEcdnDomainStatisticsResponse, err error)
DescribeEcdnDomainStatistics This API is used to query the statistical metrics of domain name access within a specified time period.
error code that may be returned:
INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNSTATINVALIDDATE = "InvalidParameter.EcdnStatInvalidDate" INVALIDPARAMETER_ECDNSTATINVALIDMETRIC = "InvalidParameter.EcdnStatInvalidMetric" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNPROJECTNOTEXISTS = "ResourceNotFound.EcdnProjectNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnDomainUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnNoDomainUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_DOMAINNOPERMISSION = "UnauthorizedOperation.DomainNoPermission" UNAUTHORIZEDOPERATION_DOMAINSNOPERMISSION = "UnauthorizedOperation.DomainsNoPermission" UNAUTHORIZEDOPERATION_ECDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.EcdnAccountUnauthorized" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = "UnauthorizedOperation.EcdnHostUnauthorized" UNAUTHORIZEDOPERATION_ECDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnNoDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.EcdnProjectUnauthorized" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNAUTHORIZEDOPERATION_PROJECTNOPERMISSION = "UnauthorizedOperation.ProjectNoPermission" UNAUTHORIZEDOPERATION_PROJECTSNOPERMISSION = "UnauthorizedOperation.ProjectsNoPermission"
func (*Client) DescribeEcdnStatistics ¶
func (c *Client) DescribeEcdnStatistics(request *DescribeEcdnStatisticsRequest) (response *DescribeEcdnStatisticsResponse, err error)
DescribeEcdnStatistics This API is used to query ECDN real-time access monitoring data and supports the following metrics:
+ Traffic (in bytes)
+ Bandwidth (in bps)
+ Number of requests
+ Number of 2xx status codes and details of status codes starting with 2
+ Number of 3xx status codes and details of status codes starting with 3
+ Number of 4xx status codes and details of status codes starting with 4
+ Number of 5xx status codes and details of status codes starting with 5
error code that may be returned:
INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINVALIDPARAMINTERVAL = "InvalidParameter.EcdnInvalidParamInterval" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNSTATINVALIDDATE = "InvalidParameter.EcdnStatInvalidDate" INVALIDPARAMETER_ECDNSTATINVALIDMETRIC = "InvalidParameter.EcdnStatInvalidMetric" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNHOSTNOTEXISTS = "ResourceNotFound.EcdnHostNotExists" RESOURCENOTFOUND_ECDNPROJECTNOTEXISTS = "ResourceNotFound.EcdnProjectNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_CDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.CdnAccountUnauthorized" UNAUTHORIZEDOPERATION_CDNCAMUNAUTHORIZED = "UnauthorizedOperation.CdnCamUnauthorized" UNAUTHORIZEDOPERATION_CDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnDomainUnauthorized" UNAUTHORIZEDOPERATION_CDNHOSTUNAUTHORIZED = "UnauthorizedOperation.CdnHostUnauthorized" UNAUTHORIZEDOPERATION_CDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.CdnNoDomainUnauthorized" UNAUTHORIZEDOPERATION_CDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.CdnProjectUnauthorized" UNAUTHORIZEDOPERATION_DOMAINNOPERMISSION = "UnauthorizedOperation.DomainNoPermission" UNAUTHORIZEDOPERATION_DOMAINSNOPERMISSION = "UnauthorizedOperation.DomainsNoPermission" UNAUTHORIZEDOPERATION_ECDNACCOUNTUNAUTHORIZED = "UnauthorizedOperation.EcdnAccountUnauthorized" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = "UnauthorizedOperation.EcdnHostUnauthorized" UNAUTHORIZEDOPERATION_ECDNNODOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnNoDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.EcdnProjectUnauthorized" UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission" UNAUTHORIZEDOPERATION_PROJECTNOPERMISSION = "UnauthorizedOperation.ProjectNoPermission" UNAUTHORIZEDOPERATION_PROJECTSNOPERMISSION = "UnauthorizedOperation.ProjectsNoPermission"
func (*Client) DescribeIpStatus ¶
func (c *Client) DescribeIpStatus(request *DescribeIpStatusRequest) (response *DescribeIpStatusResponse, err error)
DescribeIpStatus This API is used to query the detailed node information of the acceleration platform to which the domain name is connected.
error code that may be returned:
INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNHOSTNOTEXISTS = "ResourceNotFound.EcdnHostNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = "UnauthorizedOperation.EcdnHostUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERNOWHITELIST = "UnauthorizedOperation.EcdnUserNoWhitelist"
func (*Client) DescribePurgeQuota ¶
func (c *Client) DescribePurgeQuota(request *DescribePurgeQuotaRequest) (response *DescribePurgeQuotaResponse, err error)
DescribePurgeQuota This API is used to query the usage quota of the purge API.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) DescribePurgeTasks ¶
func (c *Client) DescribePurgeTasks(request *DescribePurgeTasksRequest) (response *DescribePurgeTasksResponse, err error)
DescribePurgeTasks This API is used to query the submission history of purge tasks and their execution progress.
error code that may be returned:
INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) PurgePathCache ¶
func (c *Client) PurgePathCache(request *PurgePathCacheRequest) (response *PurgePathCacheResponse, err error)
PurgePathCache This API is used to purge cache directories in batches. One purge task ID will be returned for each submission.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNDOMAININVALIDSTATUS = "InvalidParameter.EcdnDomainInvalidStatus" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.EcdnPurgeWildcardNotAllowed" INVALIDPARAMETER_ECDNURLEXCEEDLENGTH = "InvalidParameter.EcdnUrlExceedLength" LIMITEXCEEDED_ECDNPURGEPATHEXCEEDBATCHLIMIT = "LimitExceeded.EcdnPurgePathExceedBatchLimit" LIMITEXCEEDED_ECDNPURGEPATHEXCEEDDAYLIMIT = "LimitExceeded.EcdnPurgePathExceedDayLimit" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) PurgeUrlsCache ¶
func (c *Client) PurgeUrlsCache(request *PurgeUrlsCacheRequest) (response *PurgeUrlsCacheResponse, err error)
PurgeUrlsCache This API is used to batch purge URLs. One purge task ID will be returned for each submission.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNDOMAININVALIDSTATUS = "InvalidParameter.EcdnDomainInvalidStatus" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" INVALIDPARAMETER_ECDNPURGEWILDCARDNOTALLOWED = "InvalidParameter.EcdnPurgeWildcardNotAllowed" INVALIDPARAMETER_ECDNURLEXCEEDLENGTH = "InvalidParameter.EcdnUrlExceedLength" LIMITEXCEEDED_ECDNPURGEURLEXCEEDBATCHLIMIT = "LimitExceeded.EcdnPurgeUrlExceedBatchLimit" LIMITEXCEEDED_ECDNPURGEURLEXCEEDDAYLIMIT = "LimitExceeded.EcdnPurgeUrlExceedDayLimit" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) StartEcdnDomain ¶
func (c *Client) StartEcdnDomain(request *StartEcdnDomainRequest) (response *StartEcdnDomainResponse, err error)
StartEcdnDomain This API is used to enable an acceleration domain name. The domain name to be enabled must be in deactivated status.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) StopEcdnDomain ¶
func (c *Client) StopEcdnDomain(request *StopEcdnDomainRequest) (response *StopEcdnDomainResponse, err error)
StopEcdnDomain This API is used to disable an acceleration domain name. The domain name to be disabled must be in enabled or deploying status.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended"
func (*Client) UpdateDomainConfig ¶
func (c *Client) UpdateDomainConfig(request *UpdateDomainConfigRequest) (response *UpdateDomainConfigResponse, err error)
UpdateDomainConfig This API is used to update the configuration information of an ECDN acceleration domain name.
Note: if you need to update a complex configuration item, you must pass in all attributes of the entire object, and the default values will be used for the attributes that are not passed in. You are recommended to get the configuration attribute through the query API first and then directly modify and pass it to this API. Due to the special nature of the certificate for HTTPS configuration, you do not need to pass in the certificate and key fields during the update.
error code that may be returned:
FAILEDOPERATION_ECDNCONFIGERROR = "FailedOperation.EcdnConfigError" INTERNALERROR_ECDNCONFIGERROR = "InternalError.EcdnConfigError" INTERNALERROR_ECDNDBERROR = "InternalError.EcdnDbError" INTERNALERROR_ECDNSYSTEMERROR = "InternalError.EcdnSystemError" INVALIDPARAMETER_ECDNINTERFACEERROR = "InvalidParameter.EcdnInterfaceError" INVALIDPARAMETER_ECDNINVALIDPARAMAREA = "InvalidParameter.EcdnInvalidParamArea" INVALIDPARAMETER_ECDNPARAMERROR = "InvalidParameter.EcdnParamError" LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = "LimitExceeded.EcdnDomainOpTooOften" RESOURCEINUSE_ECDNOPINPROGRESS = "ResourceInUse.EcdnOpInProgress" RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = "ResourceNotFound.EcdnDomainNotExists" RESOURCENOTFOUND_ECDNPROJECTNOTEXISTS = "ResourceNotFound.EcdnProjectNotExists" RESOURCENOTFOUND_ECDNUSERNOTEXISTS = "ResourceNotFound.EcdnUserNotExists" UNAUTHORIZEDOPERATION_ECDNCAMUNAUTHORIZED = "UnauthorizedOperation.EcdnCamUnauthorized" UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = "UnauthorizedOperation.EcdnDomainUnauthorized" UNAUTHORIZEDOPERATION_ECDNPROJECTUNAUTHORIZED = "UnauthorizedOperation.EcdnProjectUnauthorized" UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = "UnauthorizedOperation.EcdnUserIsSuspended" UNAUTHORIZEDOPERATION_ECDNUSERNOWHITELIST = "UnauthorizedOperation.EcdnUserNoWhitelist"
type ClientCert ¶
type ClientCert struct { // Client certificate in PEM format. // Note: this field may return null, indicating that no valid values can be obtained. Certificate *string `json:"Certificate,omitempty" name:"Certificate"` // Client certificate name. // Note: this field may return null, indicating that no valid values can be obtained. CertName *string `json:"CertName,omitempty" name:"CertName"` // Certificate expiration time. // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Certificate issuance time. // Note: this field may return null, indicating that no valid values can be obtained. DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"` }
type DeleteEcdnDomainRequest ¶
type DeleteEcdnDomainRequest struct { *tchttp.BaseRequest // Domain name to be deleted. Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewDeleteEcdnDomainRequest ¶
func NewDeleteEcdnDomainRequest() (request *DeleteEcdnDomainRequest)
func (*DeleteEcdnDomainRequest) FromJsonString ¶
func (r *DeleteEcdnDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEcdnDomainRequest) ToJsonString ¶
func (r *DeleteEcdnDomainRequest) ToJsonString() string
type DeleteEcdnDomainResponse ¶
type DeleteEcdnDomainResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteEcdnDomainResponse ¶
func NewDeleteEcdnDomainResponse() (response *DeleteEcdnDomainResponse)
func (*DeleteEcdnDomainResponse) FromJsonString ¶
func (r *DeleteEcdnDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteEcdnDomainResponse) ToJsonString ¶
func (r *DeleteEcdnDomainResponse) ToJsonString() string
type DescribeDomainsConfigRequest ¶
type DescribeDomainsConfigRequest struct { *tchttp.BaseRequest // Pagination offset address. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of domain names per page. Default value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Query filter. Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters"` // Query result sorting rule. Sort *Sort `json:"Sort,omitempty" name:"Sort"` }
func NewDescribeDomainsConfigRequest ¶
func NewDescribeDomainsConfigRequest() (request *DescribeDomainsConfigRequest)
func (*DescribeDomainsConfigRequest) FromJsonString ¶
func (r *DescribeDomainsConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsConfigRequest) ToJsonString ¶
func (r *DescribeDomainsConfigRequest) ToJsonString() string
type DescribeDomainsConfigResponse ¶
type DescribeDomainsConfigResponse struct { *tchttp.BaseResponse Response *struct { // Domain name list. Domains []*DomainDetailInfo `json:"Domains,omitempty" name:"Domains"` // Number of matched domain names. This is used for paginated query. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDomainsConfigResponse ¶
func NewDescribeDomainsConfigResponse() (response *DescribeDomainsConfigResponse)
func (*DescribeDomainsConfigResponse) FromJsonString ¶
func (r *DescribeDomainsConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsConfigResponse) ToJsonString ¶
func (r *DescribeDomainsConfigResponse) ToJsonString() string
type DescribeDomainsRequest ¶
type DescribeDomainsRequest struct { *tchttp.BaseRequest // Pagination offset address. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of domain names per page. Default value: 100. Maximum value: 1000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Query filter. Filters []*DomainFilter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeDomainsRequest ¶
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest)
func (*DescribeDomainsRequest) FromJsonString ¶
func (r *DescribeDomainsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsRequest) ToJsonString ¶
func (r *DescribeDomainsRequest) ToJsonString() string
type DescribeDomainsResponse ¶
type DescribeDomainsResponse struct { *tchttp.BaseResponse Response *struct { // Domain name information list. Domains []*DomainBriefInfo `json:"Domains,omitempty" name:"Domains"` // Total number of domain names. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDomainsResponse ¶
func NewDescribeDomainsResponse() (response *DescribeDomainsResponse)
func (*DescribeDomainsResponse) FromJsonString ¶
func (r *DescribeDomainsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDomainsResponse) ToJsonString ¶
func (r *DescribeDomainsResponse) ToJsonString() string
type DescribeEcdnDomainLogsRequest ¶
type DescribeEcdnDomainLogsRequest struct { *tchttp.BaseRequest // Domain name to be queried. Domain *string `json:"Domain,omitempty" name:"Domain"` // Log start time, such as 2019-10-01 00:00:00 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Log end time, such as 2019-10-02 00:00:00. Only logs for the last 30 days can be queried. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Pagination offset for log link list. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of log links per page. Default value: 100. Maximum value: 1000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeEcdnDomainLogsRequest ¶
func NewDescribeEcdnDomainLogsRequest() (request *DescribeEcdnDomainLogsRequest)
func (*DescribeEcdnDomainLogsRequest) FromJsonString ¶
func (r *DescribeEcdnDomainLogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnDomainLogsRequest) ToJsonString ¶
func (r *DescribeEcdnDomainLogsRequest) ToJsonString() string
type DescribeEcdnDomainLogsResponse ¶
type DescribeEcdnDomainLogsResponse struct { *tchttp.BaseResponse Response *struct { // Log link list. // Note: this field may return null, indicating that no valid values can be obtained. DomainLogs []*DomainLogs `json:"DomainLogs,omitempty" name:"DomainLogs"` // Total number of log links. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEcdnDomainLogsResponse ¶
func NewDescribeEcdnDomainLogsResponse() (response *DescribeEcdnDomainLogsResponse)
func (*DescribeEcdnDomainLogsResponse) FromJsonString ¶
func (r *DescribeEcdnDomainLogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnDomainLogsResponse) ToJsonString ¶
func (r *DescribeEcdnDomainLogsResponse) ToJsonString() string
type DescribeEcdnDomainStatisticsRequest ¶
type DescribeEcdnDomainStatisticsRequest struct { *tchttp.BaseRequest // Query start time, such as 2019-12-13 00:00:00. // The time span cannot exceed 90 days. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time, such as 2019-12-13 23:59:59. // The time span cannot exceed 90 days. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Statistical metric names: // flux: traffic (in bytes) // bandwidth: bandwidth (in bps) // request: number of requests Metrics []*string `json:"Metrics,omitempty" name:"Metrics"` // Specifies the list of domain names to be queried Domains []*string `json:"Domains,omitempty" name:"Domains"` // Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project) // If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail Projects []*int64 `json:"Projects,omitempty" name:"Projects"` // Pagination offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of entries per page. Default value: 1000. Maximum value: 3,000. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Statistical areas: // mainland: Chinese mainland // oversea: outside the Chinese mainland // global: global // Default value: global Area *string `json:"Area,omitempty" name:"Area"` }
func NewDescribeEcdnDomainStatisticsRequest ¶
func NewDescribeEcdnDomainStatisticsRequest() (request *DescribeEcdnDomainStatisticsRequest)
func (*DescribeEcdnDomainStatisticsRequest) FromJsonString ¶
func (r *DescribeEcdnDomainStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnDomainStatisticsRequest) ToJsonString ¶
func (r *DescribeEcdnDomainStatisticsRequest) ToJsonString() string
type DescribeEcdnDomainStatisticsResponse ¶
type DescribeEcdnDomainStatisticsResponse struct { *tchttp.BaseResponse Response *struct { // Domain name data Data []*DomainData `json:"Data,omitempty" name:"Data"` // Quantity TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEcdnDomainStatisticsResponse ¶
func NewDescribeEcdnDomainStatisticsResponse() (response *DescribeEcdnDomainStatisticsResponse)
func (*DescribeEcdnDomainStatisticsResponse) FromJsonString ¶
func (r *DescribeEcdnDomainStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnDomainStatisticsResponse) ToJsonString ¶
func (r *DescribeEcdnDomainStatisticsResponse) ToJsonString() string
type DescribeEcdnStatisticsRequest ¶
type DescribeEcdnStatisticsRequest struct { *tchttp.BaseRequest // Query start time, such as 2019-12-13 00:00:00 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Query end time, such as 2019-12-13 23:59:59 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Specifies the query metric, which can be: // flux: traffic (in bytes) // bandwidth: bandwidth (in bps) // request: number of requests // 2xx: returns the number of 2xx status codes or details of status codes starting with 2 // 3xx: returns the number of 3xx status codes or details of status codes starting with 3 // 4xx: returns the number of 4xx status codes or details of status codes starting with 4 // 5xx: returns the number of 5xx status codes or details of status codes starting with 5 Metrics []*string `json:"Metrics,omitempty" name:"Metrics"` // Time granularity, which can be: // 1 day 1, 5, 15, 30, 60, 120, 240, 1440 // 2-3 days 15, 30, 60, 120, 240, 1440 // 4-7 days 30, 60, 120, 240, 1440 // 8-90 days 60, 120, 240, 1440 Interval *int64 `json:"Interval,omitempty" name:"Interval"` // Specifies the list of domain names to be queried // // Up to 30 acceleration domain names can be queried at a time. Domains []*string `json:"Domains,omitempty" name:"Domains"` // Specifies the project ID to be queried, which can be viewed [here](https://console.cloud.tencent.com/project) // If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail Projects []*int64 `json:"Projects,omitempty" name:"Projects"` // Statistical areas: // mainland: Chinese mainland // oversea: outside the Chinese mainland // global: global // Default value: global Area *string `json:"Area,omitempty" name:"Area"` }
func NewDescribeEcdnStatisticsRequest ¶
func NewDescribeEcdnStatisticsRequest() (request *DescribeEcdnStatisticsRequest)
func (*DescribeEcdnStatisticsRequest) FromJsonString ¶
func (r *DescribeEcdnStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnStatisticsRequest) ToJsonString ¶
func (r *DescribeEcdnStatisticsRequest) ToJsonString() string
type DescribeEcdnStatisticsResponse ¶
type DescribeEcdnStatisticsResponse struct { *tchttp.BaseResponse Response *struct { // Returned data details of the specified conditional query Data []*ResourceData `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeEcdnStatisticsResponse ¶
func NewDescribeEcdnStatisticsResponse() (response *DescribeEcdnStatisticsResponse)
func (*DescribeEcdnStatisticsResponse) FromJsonString ¶
func (r *DescribeEcdnStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEcdnStatisticsResponse) ToJsonString ¶
func (r *DescribeEcdnStatisticsResponse) ToJsonString() string
type DescribeIpStatusRequest ¶
type DescribeIpStatusRequest struct { *tchttp.BaseRequest // Acceleration domain name Domain *string `json:"Domain,omitempty" name:"Domain"` // Target region of the query: // mainland: nodes in Mainland China // overseas: nodes outside Mainland China // global: global nodes Area *string `json:"Area,omitempty" name:"Area"` }
func NewDescribeIpStatusRequest ¶
func NewDescribeIpStatusRequest() (request *DescribeIpStatusRequest)
func (*DescribeIpStatusRequest) FromJsonString ¶
func (r *DescribeIpStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpStatusRequest) ToJsonString ¶
func (r *DescribeIpStatusRequest) ToJsonString() string
type DescribeIpStatusResponse ¶
type DescribeIpStatusResponse struct { *tchttp.BaseResponse Response *struct { // Node list Ips []*IpStatus `json:"Ips,omitempty" name:"Ips"` // Total number of nodes TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeIpStatusResponse ¶
func NewDescribeIpStatusResponse() (response *DescribeIpStatusResponse)
func (*DescribeIpStatusResponse) FromJsonString ¶
func (r *DescribeIpStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeIpStatusResponse) ToJsonString ¶
func (r *DescribeIpStatusResponse) ToJsonString() string
type DescribePurgeQuotaRequest ¶
type DescribePurgeQuotaRequest struct {
*tchttp.BaseRequest
}
func NewDescribePurgeQuotaRequest ¶
func NewDescribePurgeQuotaRequest() (request *DescribePurgeQuotaRequest)
func (*DescribePurgeQuotaRequest) FromJsonString ¶
func (r *DescribePurgeQuotaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeQuotaRequest) ToJsonString ¶
func (r *DescribePurgeQuotaRequest) ToJsonString() string
type DescribePurgeQuotaResponse ¶
type DescribePurgeQuotaResponse struct { *tchttp.BaseResponse Response *struct { // URL purge usage and quota. UrlPurge *Quota `json:"UrlPurge,omitempty" name:"UrlPurge"` // Directory purge usage and quota. PathPurge *Quota `json:"PathPurge,omitempty" name:"PathPurge"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePurgeQuotaResponse ¶
func NewDescribePurgeQuotaResponse() (response *DescribePurgeQuotaResponse)
func (*DescribePurgeQuotaResponse) FromJsonString ¶
func (r *DescribePurgeQuotaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeQuotaResponse) ToJsonString ¶
func (r *DescribePurgeQuotaResponse) ToJsonString() string
type DescribePurgeTasksRequest ¶
type DescribePurgeTasksRequest struct { *tchttp.BaseRequest // Purge type to be queried. url: query URL purge records; path: query directory purge records. PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"` // Start time, such as 2018-08-08 00:00:00 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time, such as 2018-08-08 23:59:59 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Task ID returned during submission. Either `TaskId` or start time must be specified for a query. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Pagination offset. Default value: 0 (starting from entry 0). Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Pagination limit. Default value: 20. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Query keyword. Please enter a domain name or full URL beginning with `http(s)://`. Keyword *string `json:"Keyword,omitempty" name:"Keyword"` // Specified task status to be queried. fail: failed, done: succeeded, process: purging. Status *string `json:"Status,omitempty" name:"Status"` }
func NewDescribePurgeTasksRequest ¶
func NewDescribePurgeTasksRequest() (request *DescribePurgeTasksRequest)
func (*DescribePurgeTasksRequest) FromJsonString ¶
func (r *DescribePurgeTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeTasksRequest) ToJsonString ¶
func (r *DescribePurgeTasksRequest) ToJsonString() string
type DescribePurgeTasksResponse ¶
type DescribePurgeTasksResponse struct { *tchttp.BaseResponse Response *struct { // Purge history. PurgeLogs []*PurgeTask `json:"PurgeLogs,omitempty" name:"PurgeLogs"` // Total number of tasks, which is used for pagination. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePurgeTasksResponse ¶
func NewDescribePurgeTasksResponse() (response *DescribePurgeTasksResponse)
func (*DescribePurgeTasksResponse) FromJsonString ¶
func (r *DescribePurgeTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePurgeTasksResponse) ToJsonString ¶
func (r *DescribePurgeTasksResponse) ToJsonString() string
type DetailData ¶
type DomainBriefInfo ¶
type DomainBriefInfo struct { // Domain name ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tencent Cloud account ID. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // CDN acceleration domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` // Domain name CNAME. Cname *string `json:"Cname,omitempty" name:"Cname"` // Domain name status. Valid values: pending (reviewing), rejected (rejected), processing (deploying after approval), online (enabled), offline (disabled), deleted (deleted). Status *string `json:"Status,omitempty" name:"Status"` // Project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Domain name creation time. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Domain name update time. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Origin server configuration details. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Domain name blockage status. Valid values: normal (normal), overdue (service is suspended due to arrears), quota (trial traffic package is used up), malicious (malicious user), ddos (DDoS attack), idle (no traffic), unlicensed (no ICP filing), capping (bandwidth cap reached), readonly (read-only) Disable *string `json:"Disable,omitempty" name:"Disable"` // Acceleration region. Valid values: mainland, oversea, global. Area *string `json:"Area,omitempty" name:"Area"` // Domain name lock status. normal: not locked; global: globally locked Readonly *string `json:"Readonly,omitempty" name:"Readonly"` }
type DomainData ¶
type DomainData struct { // Domain name Resource *string `json:"Resource,omitempty" name:"Resource"` // Result details. DetailData []*DetailData `json:"DetailData,omitempty" name:"DetailData"` }
type DomainDetailInfo ¶
type DomainDetailInfo struct { // Domain name ID. ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Tencent Cloud account ID. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Acceleration domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` // Domain name CNAME. // Note: this field may return null, indicating that no valid values can be obtained. Cname *string `json:"Cname,omitempty" name:"Cname"` // Domain name status. Valid values: pending (reviewing), rejected (rejected), processing (deploying after approval), online (enabled), offline (disabled), deleted (deleted). Status *string `json:"Status,omitempty" name:"Status"` // Project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Domain name creation time. CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // Domain name update time. UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // Origin server configuration. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // IP blocklist/allowlist configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration. // Note: this field may return null, indicating that no valid values can be obtained. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Origin server response header configuration. // Note: this field may return null, indicating that no valid values can be obtained. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Node caching configuration. // Note: this field may return null, indicating that no valid values can be obtained. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Caching rule configuration. // Note: this field may return null, indicating that no valid values can be obtained. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // HTTPS configuration. // Note: this field may return null, indicating that no valid values can be obtained. Https *Https `json:"Https,omitempty" name:"Https"` // Domain name blockage status. Valid values: normal (normal), overdue (service is suspended due to arrears), quota (trial traffic package is used up), malicious (malicious user), ddos (DDoS attack), idle (no traffic), unlicensed (no ICP filing), capping (bandwidth cap reached), readonly (read-only). // Note: this field may return null, indicating that no valid values can be obtained. Disable *string `json:"Disable,omitempty" name:"Disable"` // Forced access protocol redirection configuration. // Note: this field may return null, indicating that no valid values can be obtained. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Acceleration region. Valid values: mainland, overseas, global. // Note: this field may return null, indicating that no valid values can be obtained. Area *string `json:"Area,omitempty" name:"Area"` // Domain name lock status. normal: not locked; global: globally locked. // Note: this field may return null, indicating that no valid values can be obtained. Readonly *string `json:"Readonly,omitempty" name:"Readonly"` // Domain name tag // Note: This field may return `null`, indicating that no valid value can be obtained. Tag []*Tag `json:"Tag,omitempty" name:"Tag"` // WebSocket configuration. // Note: This field may return `null`, indicating that no valid values can be obtained. WebSocket *WebSocket `json:"WebSocket,omitempty" name:"WebSocket"` }
type DomainFilter ¶
type DomainFilter struct { // Filter field name, which can be: // - origin: primary origin server. // - domain: domain name. // - resourceId: domain name ID. // - status: domain name status. Valid values: online, offline, processing. // - disable: domain name blockage status. Valid values: normal, unlicensed. // - projectId: project ID. // - fullUrlCache: full path cache. Valid values: on, off. // - https: whether to configure HTTPS. Valid values: on, off, processing. // - originPullProtocol: origin-pull protocol type. Valid values: http, follow, https. // - area: acceleration region. Valid values: mainland, overseas, global. Name *string `json:"Name,omitempty" name:"Name"` // Filter field value. Value []*string `json:"Value,omitempty" name:"Value"` // Whether to enable fuzzy query, which is supported only for filter fields `origin` and `domain`. Fuzzy *bool `json:"Fuzzy,omitempty" name:"Fuzzy"` }
type DomainLogs ¶
type EcdnData ¶
type EcdnData struct { // Queries the specified metric. Valid values: Bandwidth, Flux, Request, Delay, status code, LogBandwidth, LogFlux, LogRequest Metrics []*string `json:"Metrics,omitempty" name:"Metrics"` // Detailed data collection DetailData []*TimestampData `json:"DetailData,omitempty" name:"DetailData"` }
type ForceRedirect ¶
type ForceRedirect struct { // Forced access protocol redirection configuration switch. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Access protocol type for forced redirection. Valid values: http (forced redirection to HTTP protocol), https (forced redirection to HTTPS protocol). // Note: this field may return null, indicating that no valid values can be obtained. RedirectType *string `json:"RedirectType,omitempty" name:"RedirectType"` // HTTP status code returned when forced redirection is enabled. Valid values: 301, 302. // Note: this field may return null, indicating that no valid values can be obtained. RedirectStatusCode *int64 `json:"RedirectStatusCode,omitempty" name:"RedirectStatusCode"` }
type Hsts ¶
type Hsts struct { // Whether to enable. Valid values: on, off. Switch *string `json:"Switch,omitempty" name:"Switch"` // `MaxAge` value. // Note: this field may return null, indicating that no valid values can be obtained. MaxAge *int64 `json:"MaxAge,omitempty" name:"MaxAge"` // Whether to include subdomain names. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. IncludeSubDomains *string `json:"IncludeSubDomains,omitempty" name:"IncludeSubDomains"` }
type HttpHeaderPathRule ¶
type HttpHeaderPathRule struct { // HTTP header setting method. Valid values: add (add header), set (set header), del (delete header). // Request header currently does not support `set`. // Note: this field may return null, indicating that no valid values can be obtained. HeaderMode *string `json:"HeaderMode,omitempty" name:"HeaderMode"` // HTTP header name. // Note: this field may return null, indicating that no valid values can be obtained. HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"` // HTTP header value, which is optional when it is `del`. // Note: this field may return null, indicating that no valid values can be obtained. HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"` // Type of effective URL path rule. Valid values: all (all paths), file (file extension), directory (directory), path (absolute path). // Note: this field may return null, indicating that no valid values can be obtained. RuleType *string `json:"RuleType,omitempty" name:"RuleType"` // URL path or file type list // Note: this field may return null, indicating that no valid values can be obtained. RulePaths []*string `json:"RulePaths,omitempty" name:"RulePaths"` }
type Https ¶
type Https struct { // HTTPS configuration switch. Valid values: on, off. If the domain name with HTTPS configuration enabled is being deployed, this switch will be `off`. // Note: this field may return null, indicating that no valid values can be obtained. Switch *string `json:"Switch,omitempty" name:"Switch"` // Whether to enable HTTP2. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. Http2 *string `json:"Http2,omitempty" name:"Http2"` // Whether to enable the OCSP feature. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. OcspStapling *string `json:"OcspStapling,omitempty" name:"OcspStapling"` // Whether to enable the client certificate verification feature. Valid values: on, off. The client certificate information must be uploaded if this feature is enabled. // Note: this field may return null, indicating that no valid values can be obtained. VerifyClient *string `json:"VerifyClient,omitempty" name:"VerifyClient"` // Server certificate configuration information. // Note: this field may return null, indicating that no valid values can be obtained. CertInfo *ServerCert `json:"CertInfo,omitempty" name:"CertInfo"` // Client certificate configuration information. // Note: this field may return null, indicating that no valid values can be obtained. ClientCertInfo *ClientCert `json:"ClientCertInfo,omitempty" name:"ClientCertInfo"` // Whether to enable SPDY. Valid values: on, off. // Note: this field may return null, indicating that no valid values can be obtained. Spdy *string `json:"Spdy,omitempty" name:"Spdy"` // HTTPS certificate deployment status. Valid values: closed (disabled), deploying (deploying), deployed (deployment succeeded), failed (deployment failed). This parameter cannot be used as an input parameter. // Note: this field may return null, indicating that no valid values can be obtained. SslStatus *string `json:"SslStatus,omitempty" name:"SslStatus"` // HSTS configuration // Note: this field may return null, indicating that no valid values can be obtained. Hsts *Hsts `json:"Hsts,omitempty" name:"Hsts"` }
type IpFilter ¶
type IpFilter struct { // IP blocklist/allowlist switch. Valid values: on, off. Switch *string `json:"Switch,omitempty" name:"Switch"` // IP blocklist/allowlist type. Valid values: whitelist, blacklist. // Note: this field may return null, indicating that no valid values can be obtained. FilterType *string `json:"FilterType,omitempty" name:"FilterType"` // IP blocklist/allowlist list. // Note: this field may return null, indicating that no valid values can be obtained. Filters []*string `json:"Filters,omitempty" name:"Filters"` }
type IpFreqLimit ¶
type IpStatus ¶
type IpStatus struct { // Node IP Ip *string `json:"Ip,omitempty" name:"Ip"` // Node region District *string `json:"District,omitempty" name:"District"` // Node ISP Isp *string `json:"Isp,omitempty" name:"Isp"` // Node city City *string `json:"City,omitempty" name:"City"` // Node status // online: the node is online and scheduling normally // offline: the node is offline Status *string `json:"Status,omitempty" name:"Status"` // Node IP creation time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type Origin ¶
type Origin struct { // Primary origin server list. IP and the domain name of the origin server cannot be entered at the same time. Configure origin server port in the format of ["origin1:port1", "origin2:port2"]. Configure origin-pull weight in the format of ["origin1::weight1", "origin2::weight2"]. Configure both port and weight in the format of ["origin1:port1:weight1", "origin2:port2:weight2"]. Valid range of weight value: 0 - 100. Origins []*string `json:"Origins,omitempty" name:"Origins"` // Primary origin server type. Valid values: domain (domain name origin server), ip (IP origin server). // This is required when setting `Origins`. // Note: this field may return null, indicating that no valid values can be obtained. OriginType *string `json:"OriginType,omitempty" name:"OriginType"` // Host header value during origin-pull. // Note: this field may return null, indicating that no valid values can be obtained. ServerName *string `json:"ServerName,omitempty" name:"ServerName"` // Origin-pull protocol type. Valid values: http (forced HTTP origin-pull), follow (protocol follow), https (HTTPS origin-pull). // If this parameter is left empty, HTTP origin-pull will be used by default. // Note: this field may return `null`, indicating that no valid value is obtained. OriginPullProtocol *string `json:"OriginPullProtocol,omitempty" name:"OriginPullProtocol"` // Secondary origin server list. BackupOrigins []*string `json:"BackupOrigins,omitempty" name:"BackupOrigins"` // Secondary origin server type, which is the same as `OriginType`. // This is required when setting `BackupOrigins`. // Note: this field may return null, indicating that no valid values can be obtained. BackupOriginType *string `json:"BackupOriginType,omitempty" name:"BackupOriginType"` }
type PurgePathCacheRequest ¶
type PurgePathCacheRequest struct { *tchttp.BaseRequest // List of directories to be purged. The protocol header must be included. Paths []*string `json:"Paths,omitempty" name:"Paths"` // Purge type. flush: purges updated resources, delete: purges all resources. FlushType *string `json:"FlushType,omitempty" name:"FlushType"` }
func NewPurgePathCacheRequest ¶
func NewPurgePathCacheRequest() (request *PurgePathCacheRequest)
func (*PurgePathCacheRequest) FromJsonString ¶
func (r *PurgePathCacheRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgePathCacheRequest) ToJsonString ¶
func (r *PurgePathCacheRequest) ToJsonString() string
type PurgePathCacheResponse ¶
type PurgePathCacheResponse struct { *tchttp.BaseResponse Response *struct { // Purge task ID. The first ten digits are the UTC time when the task is submitted. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewPurgePathCacheResponse ¶
func NewPurgePathCacheResponse() (response *PurgePathCacheResponse)
func (*PurgePathCacheResponse) FromJsonString ¶
func (r *PurgePathCacheResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgePathCacheResponse) ToJsonString ¶
func (r *PurgePathCacheResponse) ToJsonString() string
type PurgeTask ¶
type PurgeTask struct { // Purge task ID. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // Purged URL. Url *string `json:"Url,omitempty" name:"Url"` // Purge task status. fail: failed, done: succeeded, process: purging. Status *string `json:"Status,omitempty" name:"Status"` // Purge type. url: URL purge; path: directory purge. PurgeType *string `json:"PurgeType,omitempty" name:"PurgeType"` // Resource purge method. flush: purges updated resources, delete: purges all resources. FlushType *string `json:"FlushType,omitempty" name:"FlushType"` // Purge task submission time CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type PurgeUrlsCacheRequest ¶
type PurgeUrlsCacheRequest struct { *tchttp.BaseRequest // List of URLs to be purged. The protocol header must be included. Urls []*string `json:"Urls,omitempty" name:"Urls"` }
func NewPurgeUrlsCacheRequest ¶
func NewPurgeUrlsCacheRequest() (request *PurgeUrlsCacheRequest)
func (*PurgeUrlsCacheRequest) FromJsonString ¶
func (r *PurgeUrlsCacheRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgeUrlsCacheRequest) ToJsonString ¶
func (r *PurgeUrlsCacheRequest) ToJsonString() string
type PurgeUrlsCacheResponse ¶
type PurgeUrlsCacheResponse struct { *tchttp.BaseResponse Response *struct { // Purge task ID. The first ten digits are the UTC time when the task is submitted. TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewPurgeUrlsCacheResponse ¶
func NewPurgeUrlsCacheResponse() (response *PurgeUrlsCacheResponse)
func (*PurgeUrlsCacheResponse) FromJsonString ¶
func (r *PurgeUrlsCacheResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PurgeUrlsCacheResponse) ToJsonString ¶
func (r *PurgeUrlsCacheResponse) ToJsonString() string
type Quota ¶
type Quota struct { // Quota limit for one batch submission request. Batch *int64 `json:"Batch,omitempty" name:"Batch"` // Daily submission quota limit. Total *int64 `json:"Total,omitempty" name:"Total"` // Remaining daily submission quota. Available *int64 `json:"Available,omitempty" name:"Available"` }
type ResourceData ¶
type ResourceData struct { // Resource name, which is categorized as follows based on different query conditions: // Specific domain name: indicates the details of the specific domain name // multiDomains: indicates aggregated details of multiple domain names // Project ID: displays the ID of the specified project to be queried // all: details at the account level Resource *string `json:"Resource,omitempty" name:"Resource"` // Data details of resource EcdnData *EcdnData `json:"EcdnData,omitempty" name:"EcdnData"` }
type ResponseHeader ¶
type ResponseHeader struct { // Custom response header switch. Valid values: on, off. Switch *string `json:"Switch,omitempty" name:"Switch"` // Custom response header rule array. // Note: this field may return null, indicating that no valid values can be obtained. HeaderRules []*HttpHeaderPathRule `json:"HeaderRules,omitempty" name:"HeaderRules"` }
type ServerCert ¶
type ServerCert struct { // Server certificate ID, which is required if the certificate is a Tencent Cloud-hosted certificate. // Note: this field may return null, indicating that no valid values can be obtained. CertId *string `json:"CertId,omitempty" name:"CertId"` // Server certificate name, which is required if the certificate is a Tencent Cloud-hosted certificate. // Note: this field may return null, indicating that no valid values can be obtained. CertName *string `json:"CertName,omitempty" name:"CertName"` // Server certificate information, which is required when uploading your own certificate and must contain complete certificate chain information. // Note: this field may return null, indicating that no valid values can be obtained. Certificate *string `json:"Certificate,omitempty" name:"Certificate"` // Server key information, which is required when uploading your own certificate. // Note: this field may return null, indicating that no valid values can be obtained. PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"` // Certificate expiration time. // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Certificate issuance time. // Note: this field may return null, indicating that no valid values can be obtained. DeployTime *string `json:"DeployTime,omitempty" name:"DeployTime"` // Certificate remarks. // Note: this field may return null, indicating that no valid values can be obtained. Message *string `json:"Message,omitempty" name:"Message"` }
type StartEcdnDomainRequest ¶
type StartEcdnDomainRequest struct { *tchttp.BaseRequest // Domain name to be enabled. Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewStartEcdnDomainRequest ¶
func NewStartEcdnDomainRequest() (request *StartEcdnDomainRequest)
func (*StartEcdnDomainRequest) FromJsonString ¶
func (r *StartEcdnDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartEcdnDomainRequest) ToJsonString ¶
func (r *StartEcdnDomainRequest) ToJsonString() string
type StartEcdnDomainResponse ¶
type StartEcdnDomainResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStartEcdnDomainResponse ¶
func NewStartEcdnDomainResponse() (response *StartEcdnDomainResponse)
func (*StartEcdnDomainResponse) FromJsonString ¶
func (r *StartEcdnDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartEcdnDomainResponse) ToJsonString ¶
func (r *StartEcdnDomainResponse) ToJsonString() string
type StopEcdnDomainRequest ¶
type StopEcdnDomainRequest struct { *tchttp.BaseRequest // Domain name to be disabled. Domain *string `json:"Domain,omitempty" name:"Domain"` }
func NewStopEcdnDomainRequest ¶
func NewStopEcdnDomainRequest() (request *StopEcdnDomainRequest)
func (*StopEcdnDomainRequest) FromJsonString ¶
func (r *StopEcdnDomainRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopEcdnDomainRequest) ToJsonString ¶
func (r *StopEcdnDomainRequest) ToJsonString() string
type StopEcdnDomainResponse ¶
type StopEcdnDomainResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStopEcdnDomainResponse ¶
func NewStopEcdnDomainResponse() (response *StopEcdnDomainResponse)
func (*StopEcdnDomainResponse) FromJsonString ¶
func (r *StopEcdnDomainResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopEcdnDomainResponse) ToJsonString ¶
func (r *StopEcdnDomainResponse) ToJsonString() string
type Tag ¶
type Tag struct { // Tag key. // Note: this field may return `null`, indicating that no valid value is obtained. TagKey *string `json:"TagKey,omitempty" name:"TagKey"` // Tag value. // Note: this field may return `null`, indicating that no valid value is obtained. TagValue *string `json:"TagValue,omitempty" name:"TagValue"` }
type TimestampData ¶
type TimestampData struct { // Statistical time point in forward rounding mode // Taking the 5-minute granularity as an example, 13:35:00 indicates that the statistical interval is between 13:35:00 and 13:39:59 Time *string `json:"Time,omitempty" name:"Time"` // Data value Value []*float64 `json:"Value,omitempty" name:"Value"` }
type UpdateDomainConfigRequest ¶
type UpdateDomainConfigRequest struct { *tchttp.BaseRequest // Domain name. Domain *string `json:"Domain,omitempty" name:"Domain"` // Origin server configuration. Origin *Origin `json:"Origin,omitempty" name:"Origin"` // Project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // IP blocklist/allowlist configuration. IpFilter *IpFilter `json:"IpFilter,omitempty" name:"IpFilter"` // IP access limit configuration. IpFreqLimit *IpFreqLimit `json:"IpFreqLimit,omitempty" name:"IpFreqLimit"` // Origin server response header configuration. ResponseHeader *ResponseHeader `json:"ResponseHeader,omitempty" name:"ResponseHeader"` // Node caching configuration. CacheKey *CacheKey `json:"CacheKey,omitempty" name:"CacheKey"` // Caching rule configuration. Cache *Cache `json:"Cache,omitempty" name:"Cache"` // HTTPS configuration. Https *Https `json:"Https,omitempty" name:"Https"` // Forced access protocol redirection configuration. ForceRedirect *ForceRedirect `json:"ForceRedirect,omitempty" name:"ForceRedirect"` // Domain name acceleration region. Valid values: mainland (acceleration in Mainland China), overseas (acceleration outside Mainland China), global (global acceleration). Area *string `json:"Area,omitempty" name:"Area"` // WebSocket configuration. WebSocket *WebSocket `json:"WebSocket,omitempty" name:"WebSocket"` }
func NewUpdateDomainConfigRequest ¶
func NewUpdateDomainConfigRequest() (request *UpdateDomainConfigRequest)
func (*UpdateDomainConfigRequest) FromJsonString ¶
func (r *UpdateDomainConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateDomainConfigRequest) ToJsonString ¶
func (r *UpdateDomainConfigRequest) ToJsonString() string
type UpdateDomainConfigResponse ¶
type UpdateDomainConfigResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpdateDomainConfigResponse ¶
func NewUpdateDomainConfigResponse() (response *UpdateDomainConfigResponse)
func (*UpdateDomainConfigResponse) FromJsonString ¶
func (r *UpdateDomainConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateDomainConfigResponse) ToJsonString ¶
func (r *UpdateDomainConfigResponse) ToJsonString() string
type WebSocket ¶
type WebSocket struct { // WebSocket configuration switch, which can be `on` or `off`. Switch *string `json:"Switch,omitempty" name:"Switch"` // Sets timeout period in seconds. Maximum value: 65 // Note: This field may return `null`, indicating that no valid values can be obtained. Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` }