Documentation ¶
Index ¶
- Constants
- type AccessSpeedRule
- type Account
- type AddCdnDomainRequest
- type AddCdnDomainResponse
- type AddCertificateV2Request
- type AddCertificateV2Response
- type AdvOriginConfig
- type AdvOriginConfigs
- type AdvanceControlRule
- type BackToOriginRewriteRule
- type BaseRequest
- type BaseResponse
- type CacheBehavior
- type CacheTimeBehavior
- type CertificateDomain
- type Client
- func (c *Client) AddCdnDomain(request AddCdnDomainRequest) (response AddCdnDomainResponse, err error)
- func (c *Client) AddCertificateV2(request AddCertificateV2Request) (response AddCertificateV2Response, err error)
- func (c *Client) DeleteApiDomain(domainId string) (response DeleteApiDomainResponse, err error)
- func (c *Client) DeleteCertificateV2(certificateId string) (response DeleteCertificateV2Response, err error)
- func (c *Client) DeleteDomainBanUrls(domainId string) (response DeleteDomainBanUrlsResponse, err error)
- func (c *Client) DisableDomain(domainId string) (response DisableDomainResponse, err error)
- func (c *Client) DoJsonApiRequest(request Request, responseBody interface{}) (*Response, error)
- func (c *Client) DoXmlApiRequest(request Request, responseBody interface{}) (*Response, error)
- func (c *Client) EditControlGroup(controlGroupCode string, request *EditControlGroupRequest) (response EditControlGroupResponse, err error)
- func (c *Client) EnableDomain(domainId string) (response EnableDomainResponse, err error)
- func (c *Client) GetDomainListOfControlGroup(request *GetDomainListOfControlGroupRequest) (response *GetDomainListOfControlGroupResponse, err error)
- func (c *Client) QueryApiDomain(domainId string) (response QueryApiDomainResponse, err error)
- func (c *Client) QueryApiDomainList(cnameLabel *string) (response QueryApiDomainListResponse, err error)
- func (c *Client) QueryBackToOriginRewriteConfig(domainId string) (response QueryBackToOriginRewriteConfigResponse, err error)
- func (c *Client) QueryCacheTimeConfig(domainId string) (response QueryCacheTimeConfigResponse, err error)
- func (c *Client) QueryCdnDomain(domainId string) (response QueryCdnDomainResponse, err error)
- func (c *Client) QueryCertificate(certificateId string) (response QueryCertificateResponse, err error)
- func (c *Client) QueryCertificateInfo(certificateId string) (response QueryCertificateInfoResponse, err error)
- func (c *Client) QueryCertificateList() (response QueryCertificateListResponse, err error)
- func (c *Client) QueryCompressionConfig(domainId string) (response QueryCompressionConfigResponse, err error)
- func (c *Client) QueryControlConfig(domainId string) (response QueryControlConfigResponse, err error)
- func (c *Client) QueryDomain(domainId string) (response QueryDomainResponse, err error)
- func (c *Client) QueryDomainBanUrls(domainId string) (response QueryDomainBanUrlsResponse, err error)
- func (c *Client) QueryHttp2SettingsConfig(domainId string) (response QueryHttp2SettingsConfigResponse, err error)
- func (c *Client) QueryHttpCodeCacheConfig(domainId string) (response QueryHttpCodeCacheConfigResponse, err error)
- func (c *Client) QueryHttpConfig(domainId string) (response QueryHttpConfigResponse, err error)
- func (c *Client) QueryIPv6Config(domainId string) (response QueryIPv6ConfigResponse, err error)
- func (c *Client) QueryIgnoreProtocol(domainId string) (response QueryIgnoreProtocolResponse, err error)
- func (c *Client) QueryOriginUriAndOriginHost(domainId string) (response QueryOriginUriAndOriginHostResponse, err error)
- func (c *Client) QueryQueryStringConfig(domainId string) (response QueryQueryStringConfigResponse, err error)
- func (c *Client) QueryRedirectConfig(domainId string) (response QueryRedirectConfigResponse, err error)
- func (c *Client) UpdateApiDomain(domainId string, request UpdateApiDomainRequest) (response UpdateApiDomainResponse, err error)
- func (c *Client) UpdateBackToOriginRewriteConfig(domainId string, request UpdateBackToOriginRewriteConfigRequest) (response UpdateBackToOriginRewriteConfigResponse, err error)
- func (c *Client) UpdateCacheTimeConfig(domainId string, request UpdateCacheTimeConfigRequest) (response UpdateCacheTimeConfigResponse, err error)
- func (c *Client) UpdateCdnDomain(domainId string, request UpdateCdnDomainRequest) (response UpdateCdnDomainResponse, err error)
- func (c *Client) UpdateCertificateV2(certificateId string, request UpdateCertificateV2Request) (response UpdateCertificateResponse, err error)
- func (c *Client) UpdateCompressionConfig(domainId string, request UpdateCompressionConfigRequest) (response UpdateCompressionConfigResponse, err error)
- func (c *Client) UpdateControlConfig(domainId string, request UpdateControlConfigRequest) (response UpdateControlConfigResponse, err error)
- func (c *Client) UpdateDomainProperty(domainId string, request UpdateDomainPropertyRequest) (response UpdateDomainPropertyResponse, err error)
- func (c *Client) UpdateHttp2SettingsConfig(domainId string, request UpdateHttp2SettingsConfigRequest) (response UpdateHttp2SettingsConfigResponse, err error)
- func (c *Client) UpdateHttpCodeCacheConfig(domainId string, request UpdateHttpCodeCacheConfigRequest) (response UpdateHttpCodeCacheConfigResponse, err error)
- func (c *Client) UpdateHttpConfig(domainId string, request UpdateHttpConfigRequest) (response UpdateHttpConfigResponse, err error)
- func (c *Client) UpdateIPv6Config(domainId string, request UpdateIPv6ConfigRequest) (response UpdateIPv6ConfigResponse, err error)
- func (c *Client) UpdateIgnoreProtocol(domainId string, request UpdateIgnoreProtocolRequest) (response UpdateIgnoreProtocolResponse, err error)
- func (c *Client) UpdateOriginUriAndOriginHost(domainId string, request UpdateOriginUriAndOriginHostRequest, ...) (response UpdateOriginUriAndOriginHostResponse, err error)
- func (c *Client) UpdateQueryStringConfig(domainId string, request UpdateQueryStringConfigRequest) (response UpdateQueryStringConfigResponse, err error)
- func (c *Client) UpdateRedirectConfig(domainId string, request UpdateRedirectConfigRequest) (response UpdateRedirectConfigResponse, err error)
- type ClientControlRule
- type CompressionSetting
- type DeleteApiDomainResponse
- type DeleteCertificateV2Response
- type DeleteDomainBanUrlsRequest
- type DeleteDomainBanUrlsResponse
- type DisableDomainResponse
- type DomainSummary
- type EditControlGroupRequest
- type EditControlGroupResponse
- type EnableDomainResponse
- type Encoding
- type ErrorPageRule
- type ErrorResponse
- type GetDomainListOfControlGroupRequest
- type GetDomainListOfControlGroupResponse
- type HeaderModifyRule
- type Http2Setting
- type HttpCodeCacheRule
- type HttpMethod
- type IgnoreProtocolRule
- type IllegalInformation
- type IpControlRule
- type OriginConfig
- type OriginConfigInApiDomain
- type OriginRulesRewrite
- type QueryApiDomainListResponse
- type QueryApiDomainResponse
- type QueryBackToOriginRewriteConfigResponse
- type QueryCacheTimeConfigResponse
- type QueryCdnDomainResponse
- type QueryCertificateInfoResponse
- type QueryCertificateInfoResponseData
- type QueryCertificateListResponse
- type QueryCertificateResponse
- type QueryCompressionConfigResponse
- type QueryControlConfigResponse
- type QueryDomainBanUrlsResponse
- type QueryDomainResponse
- type QueryHttp2SettingsConfigResponse
- type QueryHttpCodeCacheConfigResponse
- type QueryHttpConfigResponse
- type QueryIPv6ConfigResponse
- type QueryIgnoreProtocolResponse
- type QueryOriginUriAndOriginHostResponse
- type QueryQueryStringConfigResponse
- type QueryRedirectConfigResponse
- type QueryStringSetting
- type RefererControlRule
- type Request
- type Response
- type RewriteRuleSetting
- type Ssl
- type SslCertificate
- type UaControlRule
- type UpdateApiDomainRequest
- type UpdateApiDomainResponse
- type UpdateBackToOriginRewriteConfigRequest
- type UpdateBackToOriginRewriteConfigResponse
- type UpdateCacheTimeConfigRequest
- type UpdateCacheTimeConfigResponse
- type UpdateCdnDomainRequest
- type UpdateCdnDomainResponse
- type UpdateCertificateResponse
- type UpdateCertificateV2Request
- type UpdateCompressionConfigRequest
- type UpdateCompressionConfigResponse
- type UpdateControlConfigRequest
- type UpdateControlConfigResponse
- type UpdateDomainPropertyRequest
- type UpdateDomainPropertyResponse
- type UpdateHttp2SettingsConfigRequest
- type UpdateHttp2SettingsConfigResponse
- type UpdateHttpCodeCacheConfigRequest
- type UpdateHttpCodeCacheConfigResponse
- type UpdateHttpConfigRequest
- type UpdateHttpConfigResponse
- type UpdateIPv6ConfigRequest
- type UpdateIPv6ConfigResponse
- type UpdateIgnoreProtocolRequest
- type UpdateIgnoreProtocolResponse
- type UpdateOriginUriAndOriginHostRequest
- type UpdateOriginUriAndOriginHostResponse
- type UpdateQueryStringConfigRequest
- type UpdateQueryStringConfigResponse
- type UpdateRedirectConfigRequest
- type UpdateRedirectConfigResponse
- type Videodrags
- type VisitControlRule
Constants ¶
View Source
const ApiEndpoint = "https://api.cdnetworks.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessSpeedRule ¶ added in v0.4.0
type Account ¶ added in v0.5.0
type Account struct {
LoginName *string `json:"loginName,omitempty" xml:"loginName,omitempty" require:"true"`
}
type AddCdnDomainRequest ¶ added in v0.4.0
type AddCdnDomainRequest struct { Version string `json:"version,omitempty" xml:"version,omitempty"` DomainName *string `json:"domain-name,omitempty" xml:"domain-name,omitempty"` ConfigFormId *string `json:"config-form-id,omitempty" xml:"config-form-id,omitempty"` AccelerateNoChina *string `json:"accelerate-no-china,omitempty" xml:"accelerate-no-china,omitempty"` ContractId *string `json:"contract-id,omitempty" xml:"contract-id,omitempty"` ItemId *string `json:"item-id,omitempty" xml:"item-id,omitempty"` Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` HeaderOfClientIp *string `json:"header-of-clientip,omitempty" xml:"header-of-clientip,omitempty"` OriginConfig *OriginConfig `json:"origin-config,omitempty" xml:"origin-config,omitempty"` }
type AddCdnDomainResponse ¶ added in v0.4.0
type AddCertificateV2Request ¶ added in v0.4.0
type AddCertificateV2Response ¶ added in v0.4.0
type AdvOriginConfig ¶ added in v0.4.0
type AdvOriginConfigs ¶ added in v0.4.0
type AdvOriginConfigs struct { DetectUrl *string `json:"detect-url,omitempty" xml:"detect-url,omitempty"` DetectPeriod *int `json:"detect-period,omitempty" xml:"detect-period,omitempty"` AdvOriginConfig *AdvOriginConfig `json:"adv-origin-config,omitempty" xml:"adv-origin-config,omitempty"` }
type AdvanceControlRule ¶ added in v0.4.0
type BackToOriginRewriteRule ¶ added in v0.4.0
type BaseRequest ¶
type BaseResponse ¶
type CacheBehavior ¶ added in v0.4.0
type CacheTimeBehavior ¶ added in v0.4.0
type CacheTimeBehavior struct { DataId *string `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` ExceptPathPattern *string `json:"except-path-pattern,omitempty" xml:"except-path-pattern,omitempty"` CustomPattern *string `json:"custom-pattern,omitempty" xml:"custom-pattern,omitempty"` FileType *string `json:"file-type,omitempty" xml:"file-type,omitempty"` CustomFileType *string `json:"custom-file-type,omitempty" xml:"custom-file-type,omitempty"` SpecifyUrlPattern *string `json:"specify-url-pattern,omitempty" xml:"specify-url-pattern,omitempty"` Directory *string `json:"directory,omitempty" xml:"directory,omitempty"` CacheTtl *string `json:"cache-ttl,omitempty" xml:"cache-ttl,omitempty"` IgnoreCacheControl *bool `json:"ignore-cache-control,omitempty" xml:"ignore-cache-control,omitempty"` IsRespectServer *bool `json:"is-respect-server,omitempty" xml:"is-respect-server,omitempty"` IgnoreLetterCase *bool `json:"ignore-letter-case,omitempty" xml:"ignore-letter-case,omitempty"` ReloadManage *string `json:"reload-manage,omitempty" xml:"reload-manage,omitempty"` IgnoreAuthenticationHeader *bool `json:"ignore-authentication-header,omitempty" xml:"ignore-authentication-header,omitempty"` Priority *int64 `json:"priority,omitempty" xml:"priority,omitempty"` }
type CertificateDomain ¶ added in v0.4.0
type Client ¶
func NewClientFromEnv ¶
func (*Client) AddCdnDomain ¶ added in v0.4.0
func (c *Client) AddCdnDomain(request AddCdnDomainRequest) (response AddCdnDomainResponse, err error)
func (*Client) AddCertificateV2 ¶ added in v0.4.0
func (c *Client) AddCertificateV2(request AddCertificateV2Request) (response AddCertificateV2Response, err error)
func (*Client) DeleteApiDomain ¶ added in v0.4.0
func (c *Client) DeleteApiDomain(domainId string) (response DeleteApiDomainResponse, err error)
func (*Client) DeleteCertificateV2 ¶ added in v0.4.0
func (c *Client) DeleteCertificateV2(certificateId string) (response DeleteCertificateV2Response, err error)
func (*Client) DeleteDomainBanUrls ¶ added in v0.4.0
func (c *Client) DeleteDomainBanUrls(domainId string) (response DeleteDomainBanUrlsResponse, err error)
func (*Client) DisableDomain ¶ added in v0.4.0
func (c *Client) DisableDomain(domainId string) (response DisableDomainResponse, err error)
func (*Client) DoJsonApiRequest ¶
func (*Client) DoXmlApiRequest ¶
func (*Client) EditControlGroup ¶ added in v0.5.0
func (c *Client) EditControlGroup(controlGroupCode string, request *EditControlGroupRequest) (response EditControlGroupResponse, err error)
func (*Client) EnableDomain ¶ added in v0.4.0
func (c *Client) EnableDomain(domainId string) (response EnableDomainResponse, err error)
func (*Client) GetDomainListOfControlGroup ¶ added in v0.6.1
func (c *Client) GetDomainListOfControlGroup(request *GetDomainListOfControlGroupRequest) (response *GetDomainListOfControlGroupResponse, err error)
func (*Client) QueryApiDomain ¶ added in v0.4.0
func (c *Client) QueryApiDomain(domainId string) (response QueryApiDomainResponse, err error)
func (*Client) QueryApiDomainList ¶ added in v0.4.0
func (c *Client) QueryApiDomainList(cnameLabel *string) (response QueryApiDomainListResponse, err error)
func (*Client) QueryBackToOriginRewriteConfig ¶ added in v0.4.0
func (c *Client) QueryBackToOriginRewriteConfig(domainId string) (response QueryBackToOriginRewriteConfigResponse, err error)
func (*Client) QueryCacheTimeConfig ¶ added in v0.4.0
func (c *Client) QueryCacheTimeConfig(domainId string) (response QueryCacheTimeConfigResponse, err error)
func (*Client) QueryCdnDomain ¶ added in v0.4.0
func (c *Client) QueryCdnDomain(domainId string) (response QueryCdnDomainResponse, err error)
func (*Client) QueryCertificate ¶ added in v0.4.0
func (c *Client) QueryCertificate(certificateId string) (response QueryCertificateResponse, err error)
func (*Client) QueryCertificateInfo ¶ added in v0.4.0
func (c *Client) QueryCertificateInfo(certificateId string) (response QueryCertificateInfoResponse, err error)
func (*Client) QueryCertificateList ¶ added in v0.4.0
func (c *Client) QueryCertificateList() (response QueryCertificateListResponse, err error)
func (*Client) QueryCompressionConfig ¶ added in v0.4.0
func (c *Client) QueryCompressionConfig(domainId string) (response QueryCompressionConfigResponse, err error)
func (*Client) QueryControlConfig ¶ added in v0.4.0
func (c *Client) QueryControlConfig(domainId string) (response QueryControlConfigResponse, err error)
func (*Client) QueryDomain ¶
func (c *Client) QueryDomain(domainId string) (response QueryDomainResponse, err error)
func (*Client) QueryDomainBanUrls ¶ added in v0.4.0
func (c *Client) QueryDomainBanUrls(domainId string) (response QueryDomainBanUrlsResponse, err error)
func (*Client) QueryHttp2SettingsConfig ¶ added in v0.4.0
func (c *Client) QueryHttp2SettingsConfig(domainId string) (response QueryHttp2SettingsConfigResponse, err error)
func (*Client) QueryHttpCodeCacheConfig ¶ added in v0.4.0
func (c *Client) QueryHttpCodeCacheConfig(domainId string) (response QueryHttpCodeCacheConfigResponse, err error)
func (*Client) QueryHttpConfig ¶ added in v0.4.0
func (c *Client) QueryHttpConfig(domainId string) (response QueryHttpConfigResponse, err error)
func (*Client) QueryIPv6Config ¶ added in v0.8.0
func (c *Client) QueryIPv6Config(domainId string) (response QueryIPv6ConfigResponse, err error)
func (*Client) QueryIgnoreProtocol ¶ added in v0.4.0
func (c *Client) QueryIgnoreProtocol(domainId string) (response QueryIgnoreProtocolResponse, err error)
func (*Client) QueryOriginUriAndOriginHost ¶ added in v0.4.0
func (c *Client) QueryOriginUriAndOriginHost(domainId string) (response QueryOriginUriAndOriginHostResponse, err error)
func (*Client) QueryQueryStringConfig ¶ added in v0.4.0
func (c *Client) QueryQueryStringConfig(domainId string) (response QueryQueryStringConfigResponse, err error)
func (*Client) QueryRedirectConfig ¶ added in v0.4.0
func (c *Client) QueryRedirectConfig(domainId string) (response QueryRedirectConfigResponse, err error)
func (*Client) UpdateApiDomain ¶ added in v0.4.0
func (c *Client) UpdateApiDomain(domainId string, request UpdateApiDomainRequest) (response UpdateApiDomainResponse, err error)
func (*Client) UpdateBackToOriginRewriteConfig ¶ added in v0.4.0
func (c *Client) UpdateBackToOriginRewriteConfig(domainId string, request UpdateBackToOriginRewriteConfigRequest) (response UpdateBackToOriginRewriteConfigResponse, err error)
func (*Client) UpdateCacheTimeConfig ¶ added in v0.4.0
func (c *Client) UpdateCacheTimeConfig(domainId string, request UpdateCacheTimeConfigRequest) (response UpdateCacheTimeConfigResponse, err error)
func (*Client) UpdateCdnDomain ¶ added in v0.4.0
func (c *Client) UpdateCdnDomain(domainId string, request UpdateCdnDomainRequest) (response UpdateCdnDomainResponse, err error)
func (*Client) UpdateCertificateV2 ¶ added in v0.4.0
func (c *Client) UpdateCertificateV2(certificateId string, request UpdateCertificateV2Request) (response UpdateCertificateResponse, err error)
func (*Client) UpdateCompressionConfig ¶ added in v0.4.0
func (c *Client) UpdateCompressionConfig(domainId string, request UpdateCompressionConfigRequest) (response UpdateCompressionConfigResponse, err error)
func (*Client) UpdateControlConfig ¶ added in v0.4.0
func (c *Client) UpdateControlConfig(domainId string, request UpdateControlConfigRequest) (response UpdateControlConfigResponse, err error)
func (*Client) UpdateDomainProperty ¶ added in v0.4.0
func (c *Client) UpdateDomainProperty(domainId string, request UpdateDomainPropertyRequest) (response UpdateDomainPropertyResponse, err error)
func (*Client) UpdateHttp2SettingsConfig ¶ added in v0.4.0
func (c *Client) UpdateHttp2SettingsConfig(domainId string, request UpdateHttp2SettingsConfigRequest) (response UpdateHttp2SettingsConfigResponse, err error)
func (*Client) UpdateHttpCodeCacheConfig ¶ added in v0.4.0
func (c *Client) UpdateHttpCodeCacheConfig(domainId string, request UpdateHttpCodeCacheConfigRequest) (response UpdateHttpCodeCacheConfigResponse, err error)
func (*Client) UpdateHttpConfig ¶ added in v0.4.0
func (c *Client) UpdateHttpConfig(domainId string, request UpdateHttpConfigRequest) (response UpdateHttpConfigResponse, err error)
func (*Client) UpdateIPv6Config ¶ added in v0.8.0
func (c *Client) UpdateIPv6Config(domainId string, request UpdateIPv6ConfigRequest) (response UpdateIPv6ConfigResponse, err error)
In Version 2024-09-20 16:30:05, the API only supports JSON format.
func (*Client) UpdateIgnoreProtocol ¶ added in v0.4.0
func (c *Client) UpdateIgnoreProtocol(domainId string, request UpdateIgnoreProtocolRequest) (response UpdateIgnoreProtocolResponse, err error)
func (*Client) UpdateOriginUriAndOriginHost ¶ added in v0.4.0
func (c *Client) UpdateOriginUriAndOriginHost(domainId string, request UpdateOriginUriAndOriginHostRequest, dataIdsToDelete []int64) (response UpdateOriginUriAndOriginHostResponse, err error)
func (*Client) UpdateQueryStringConfig ¶ added in v0.4.0
func (c *Client) UpdateQueryStringConfig(domainId string, request UpdateQueryStringConfigRequest) (response UpdateQueryStringConfigResponse, err error)
func (*Client) UpdateRedirectConfig ¶ added in v0.4.0
func (c *Client) UpdateRedirectConfig(domainId string, request UpdateRedirectConfigRequest) (response UpdateRedirectConfigResponse, err error)
type ClientControlRule ¶ added in v0.4.0
type ClientControlRule struct {
AccessSpeedRules []*AccessSpeedRule `json:"access-speed-rules,omitempty" xml:"access-speed-rules>access-speed-rule,omitempty"`
}
type CompressionSetting ¶ added in v0.4.0
type CompressionSetting struct { CompressionEnabled *bool `json:"compression-enabled,omitempty" xml:"compression-enabled,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` IgnoreLetterCase *bool `json:"ignore-letter-case,omitempty" xml:"ignore-letter-case,omitempty"` FileTypes []*string `json:"file-types,omitempty" xml:"file-types>file-type,omitempty"` }
type DeleteApiDomainResponse ¶ added in v0.4.0
type DeleteCertificateV2Response ¶ added in v0.4.0
type DeleteDomainBanUrlsRequest ¶ added in v0.4.0
type DeleteDomainBanUrlsResponse ¶ added in v0.4.0
type DisableDomainResponse ¶ added in v0.4.0
type DomainSummary ¶ added in v0.4.0
type DomainSummary struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` ServiceType *string `json:"service-type" xml:"service-type"` Cname *string `json:"cname" xml:"cname"` Status *string `json:"status" xml:"status"` CdnServiceStatus *string `json:"cdn-service-status" xml:"cdn-service-status"` Enabled *bool `json:"enabled" xml:"enabled"` }
type EditControlGroupRequest ¶ added in v0.5.0
type EditControlGroupRequest struct { ControlGroupName *string `json:"controlGroupName,omitempty" xml:"controlGroupName,omitempty"` DomainList []*string `json:"domainList,omitempty" xml:"domainList,omitempty"` AccountList []*Account `json:"accountList,omitempty" xml:"accountList,omitempty"` IsAdd bool `json:"isAdd,omitempty" xml:"isAdd,omitempty"` }
EditControlGroup 修改ControlGroup接口, 域名才会显示在对应的账号上.
type EditControlGroupResponse ¶ added in v0.5.0
type EnableDomainResponse ¶ added in v0.4.0
type ErrorPageRule ¶ added in v0.4.0
type ErrorPageRule struct { PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` IgnoreCase *bool `json:"ignore-case,omitempty" xml:"ignore-case,omitempty"` ErrorCode *string `json:"error-code,omitempty" xml:"error-code,omitempty"` ForwardUrl *string `json:"forward-url,omitempty" xml:"forward-url,omitempty"` }
type ErrorResponse ¶
type ErrorResponse struct { Url string `json:"-" xml:"-"` RequestId string `json:"-" xml:"-"` StatusCode int `json:"-" xml:"-"` ResponseCode string `json:"code" xml:"code"` ResponseMessage string `json:"message" xml:"message"` RequestBody string `json:"-" xml:"-"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type GetDomainListOfControlGroupRequest ¶ added in v0.6.1
type GetDomainListOfControlGroupRequest struct {
ControlGroupCode []string `json:"controlGroupCode,omitempty" xml:"controlGroupCode,omitempty"`
}
type GetDomainListOfControlGroupResponse ¶ added in v0.6.1
type HeaderModifyRule ¶ added in v0.4.0
type HeaderModifyRule struct { DataId *int64 `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` ExceptPathPattern *string `json:"except-path-pattern,omitempty" xml:"except-path-pattern,omitempty"` CustomPattern *string `json:"custom-pattern,omitempty" xml:"custom-pattern,omitempty"` FileType *string `json:"file-type,omitempty" xml:"file-type,omitempty"` CustomFileType *string `json:"custom-file-type,omitempty" xml:"custom-file-type,omitempty"` Directory *string `json:"directory,omitempty" xml:"directory,omitempty"` SpecifyUrl *string `json:"specify-url,omitempty" xml:"specify-url,omitempty"` RequestMethod *string `json:"request-method,omitempty" xml:"request-method,omitempty"` RequestHeader *string `json:"request-header,omitempty" xml:"request-header,omitempty"` HeaderDirection *string `json:"header-direction,omitempty" xml:"header-direction,omitempty"` Action *string `json:"action,omitempty" xml:"action,omitempty"` AllowRegexp *bool `json:"allow-regexp,omitempty" xml:"allow-regexp,omitempty"` HeaderName *string `json:"header-name,omitempty" xml:"header-name,omitempty"` HeaderValue *string `json:"header-value,omitempty" xml:"header-value,omitempty"` }
type Http2Setting ¶ added in v0.4.0
type HttpCodeCacheRule ¶ added in v0.4.0
type HttpMethod ¶
type HttpMethod string
const ( HttpGet HttpMethod = http.MethodGet HttpPost HttpMethod = http.MethodPost HttpPut HttpMethod = http.MethodPut HttpDelete HttpMethod = http.MethodDelete )
type IgnoreProtocolRule ¶ added in v0.4.0
type IgnoreProtocolRule struct { DataId *string `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` ExceptPathPattern *string `json:"except-path-pattern,omitempty" xml:"except-path-pattern,omitempty"` CacheIgnoreProtocol *bool `json:"cache-ignore-protocol,omitempty" xml:"cache-ignore-protocol,omitempty"` PurgeIgnoreProtocol *bool `json:"purge-ignore-protocol,omitempty" xml:"purge-ignore-protocol,omitempty"` }
type IllegalInformation ¶ added in v0.4.0
type IpControlRule ¶ added in v0.4.0
type OriginConfig ¶ added in v0.4.0
type OriginConfig struct { OriginIps *string `json:"origin-ips,omitempty" xml:"origin-ips,omitempty"` OriginPort *string `json:"origin-port,omitempty" xml:"origin-port,omitempty"` OriginHost *string `json:"origin-host,omitempty" xml:"origin-host,omitempty"` DefaultOriginHostHeader *string `json:"default-origin-host-header,omitempty" xml:"default-origin-host-header,omitempty"` }
type OriginConfigInApiDomain ¶ added in v0.4.0
type OriginConfigInApiDomain struct { OriginIps *string `json:"origin-ips,omitempty" xml:"origin-ips,omitempty"` DefaultOriginHostHeader *string `json:"default-origin-host-header,omitempty" xml:"default-origin-host-header,omitempty"` OriginPort *string `json:"origin-port,omitempty" xml:"origin-port,omitempty"` AdvOriginConfigs *AdvOriginConfigs `json:"adv-origin-configs,omitempty" xml:"adv-origin-configs,omitempty"` }
type OriginRulesRewrite ¶ added in v0.4.0
type OriginRulesRewrite struct { DataId *int64 `json:"dataId,omitempty" xml:"dataId,omitempty"` PathPattern *string `json:"pathPattern,omitempty" xml:"pathPattern,omitempty"` PathPatternHttp *string `json:"pathPatternHttp,omitempty" xml:"pathPatternHttp,omitempty"` ExceptPathPattern *string `json:"exceptPathPattern,omitempty" xml:"exceptPathPattern,omitempty"` ExceptPathPatternHttp *string `json:"exceptPathPatternHttp,omitempty" xml:"exceptPathPatternHttp,omitempty"` IgnoreLetterCase *bool `json:"ignoreLetterCase,omitempty" xml:"ignoreLetterCase,omitempty"` OriginInfo *string `json:"originInfo,omitempty" xml:"originInfo,omitempty"` Priority *int64 `json:"priority,omitempty" xml:"priority,omitempty"` OriginHost *string `json:"originHost,omitempty" xml:"originHost,omitempty"` BeforeRewritedUri *string `json:"beforeRewritedUri,omitempty" xml:"beforeRewritedUri,omitempty"` // Spelled as rewrite"d" in docs & api response AfterRewritedUri *string `json:"afterRewritedUri,omitempty" xml:"afterRewritedUri,omitempty"` // Spelled as rewrite"d" in docs & api response }
type QueryApiDomainListResponse ¶ added in v0.4.0
type QueryApiDomainListResponse struct {
DomainSummaries []*DomainSummary `json:"domain-summary" xml:"domain-summary"`
}
type QueryApiDomainResponse ¶ added in v0.4.0
type QueryApiDomainResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` CreatedDate *string `json:"created-date" xml:"created-date"` LastModified *string `json:"last-modified" xml:"last-modified"` ServiceType *string `json:"service-type" xml:"service-type"` ServiceAreas *string `json:"service-areas" xml:"service-areas"` ContractId *string `json:"contract-id" xml:"contract-id"` ItemId *string `json:"item-id" xml:"item-id"` Cname *string `json:"cname" xml:"cname"` Comment *string `json:"comment" xml:"comment"` Status *string `json:"status" xml:"status"` CdnServiceStatus *string `json:"cdn-service-status" xml:"cdn-service-status"` Enabled *bool `json:"enabled" xml:"enabled"` CacheHost *string `json:"cache-host" xml:"cache-host"` HeaderOfClientIp *string `json:"header-of-clientip" xml:"header-of-clientip"` OriginConfig *OriginConfigInApiDomain `json:"origin-config" xml:"origin-config"` Ssl *Ssl `json:"ssl" xml:"ssl"` ErrorPageRules []*ErrorPageRule `json:"error-page-rules" xml:"error-page-rules>error-page-rule"` ClientControlRule *ClientControlRule `json:"client-control-rule" xml:"client-control-rule"` Videodrags *Videodrags `json:"videodrags" xml:"videodrags"` }
type QueryBackToOriginRewriteConfigResponse ¶ added in v0.4.0
type QueryBackToOriginRewriteConfigResponse struct { DomainId *string `json:"domainId" xml:"data>domainId"` DomainName *string `json:"domainName" xml:"data>domainName"` BackToOriginRewriteRule BackToOriginRewriteRule `json:"backToOriginRewriteRule" xml:"data>backToOriginRewriteRule"` }
type QueryCacheTimeConfigResponse ¶ added in v0.4.0
type QueryCacheTimeConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` CacheTimeBehaviors []*CacheTimeBehavior `json:"cache-time-behaviors" xml:"cache-time-behaviors>cache-time-behavior"` }
type QueryCdnDomainResponse ¶ added in v0.4.0
type QueryCdnDomainResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` ContractId *string `json:"contract-id" xml:"contract-id"` ItemId *string `json:"item-id" xml:"item-id"` ServiceType *string `json:"service-type" xml:"service-type"` Comment *string `json:"comment" xml:"comment"` Cname *string `json:"cname" xml:"cname"` Status *string `json:"status" xml:"status"` CdnServiceStatus *string `json:"cdn-service-status" xml:"cdn-service-status"` HeaderOfClientIp *string `json:"header-of-clientip" xml:"header-of-clientip"` Enabled *bool `json:"enabled" xml:"enabled"` CacheHost *string `json:"cache-host" xml:"cache-host"` OriginConfig *OriginConfig `json:"origin-config" xml:"origin-config"` Ssl *Ssl `json:"ssl" xml:"ssl"` CacheBehaviors []*CacheBehavior `json:"cache-behaviors" xml:"cache-behaviors>cache-behavior"` }
type QueryCertificateInfoResponse ¶ added in v0.4.0
type QueryCertificateInfoResponse struct { Code *int64 `json:"code" xml:"code"` Message *string `json:"message" xml:"message"` QueryCertificateInfoResponseData *QueryCertificateInfoResponseData `json:"data,omitempty" xml:"data,omitempty"` }
type QueryCertificateInfoResponseData ¶ added in v0.4.0
type QueryCertificateInfoResponseData struct { CertificateId *int64 `json:"certificateId,omitempty" xml:"certificateId,omitempty"` Name *string `json:"name,omitempty" xml:"name,omitempty"` Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` Serial *string `json:"serial,omitempty" xml:"serial,omitempty"` NotBefore *string `json:"notBefore,omitempty" xml:"notBefore,omitempty"` NotAfter *string `json:"notAfter,omitempty" xml:"notAfter,omitempty"` CommonName *string `json:"commonName,omitempty" xml:"commenName,omitempty"` SubjectAlternativeNames []string `json:"subjectAlternativeNames" xml:"subjectAlternativeNames"` }
QueryCertificateInfo 查看证书详情V2
type QueryCertificateListResponse ¶ added in v0.4.0
type QueryCertificateListResponse struct {
SslCertificates []*SslCertificate `json:"ssl-certificate" xml:"ssl-certificate"`
}
type QueryCertificateResponse ¶ added in v0.4.0
type QueryCertificateResponse struct { Name *string `json:"name" xml:"name"` Comment *string `json:"comment" xml:"comment"` CertificateValidityFrom *string `json:"certificate-validity-from" xml:"certificate-validity-from"` CertificateValidityTo *string `json:"certificate-validity-to" xml:"certificate-validity-to"` CertificateUpdateTime *string `json:"certificate-update-time" xml:"certificate-update-time"` CrtMd5 *string `json:"crt-md5" xml:"crt-md5"` KeyMd5 *string `json:"key-md5" xml:"key-md5"` CaMd5 *string `json:"ca-md5" xml:"ca-md5"` CertificateIssuer *string `json:"certificate-issuer" xml:"certificate-issuer"` CertificateSerial *string `json:"certificate-serial" xml:"certificate-serial"` RelatedDomains []*CertificateDomain `json:"related-domains" xml:"related-domains>related-domain"` DnsNames []*string `json:"dns-names" xml:"dns-names"` }
type QueryCompressionConfigResponse ¶ added in v0.4.0
type QueryCompressionConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` CompressionSetting *CompressionSetting `json:"compression-settings" xml:"compression-settings"` }
type QueryControlConfigResponse ¶ added in v0.4.0
type QueryControlConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` VisitControlRules []*VisitControlRule `json:"visit-control-rules" xml:"visit-control-rules>visit-control-rule"` }
type QueryDomainBanUrlsResponse ¶ added in v0.4.0
type QueryDomainBanUrlsResponse struct { DomainName string `json:"domain-name" xml:"domain-name"` DomainId string `json:"domain-id" xml:"domain-id"` CustomerCode string `json:"customer-code" xml:"customer-code"` IllegalInformations []IllegalInformation `json:"illegal-informations" xml:"illegal-informations>illegal-information"` }
type QueryDomainResponse ¶
type QueryDomainResponse struct { DomainId *string `json:"domain-id" xml:"domain-id" tfsdk:"domain_id"` DomainName *string `json:"domain-name" xml:"domain-name" tfsdk:"domain_name"` CreatedDate *string `json:"created-date" xml:"created-date" tfsdk:"created_date"` LastModified *string `json:"last-modified" xml:"last-modified" tfsdk:"last_modified"` ServiceType *string `json:"service-type" xml:"service-type" tfsdk:"service_type"` Comment *string `json:"comment" xml:"comment" tfsdk:"comment"` Cname *string `json:"cname" xml:"cname" tfsdk:"cname"` Status *string `json:"status" xml:"status" tfsdk:"status"` CdnServiceStatus *string `json:"cdn-service-status" xml:"cdn-service-status" tfsdk:"cdn_service_status"` Enabled *bool `json:"enabled" xml:"enabled" tfsdk:"enabled"` UseRange *bool `json:"useRange" xml:"useRange" tfsdk:"useRange"` Follow301 *bool `json:"follow301" xml:"follow301" tfsdk:"follow301"` Follow302 *bool `json:"follow302" xml:"follow302" tfsdk:"follow302"` OriginConfig *struct { OriginIps *string `json:"origin-ips" xml:"origin-ips" tfsdk:"origin_ips"` DefaultOriginHostHeader *string `json:"default-origin-host-header" xml:"default-origin-host-header" tfsdk:"default_origin_host_header"` AdvOriginConfigs *struct { DetectUrl *string `json:"detect-url" xml:"detect-url" tfsdk:"detect_url"` DetectPeriod *int `json:"detect-period" xml:"detect-period" tfsdk:"detect_period"` AdvOriginConfig []*struct { MasterIps *string `json:"master-ips" xml:"master-ips" tfsdk:"master_ips"` BackupIps *string `json:"backup-ips" xml:"backup-ips" tfsdk:"backup_ips"` } `json:"adv-origin-config" xml:"adv-origin-config" tfsdk:"adv_origin_config"` } `json:"adv-origin-configs" xml:"adv-origin-configs" tfsdk:"adv_origin_configs"` } `json:"origin-config" xml:"origin-config" tfsdk:"origin_config"` Ssl *struct { UseSsl *bool `json:"use-ssl" xml:"use-ssl" tfsdk:"use_ssl"` UseForSni *bool `json:"use-for-sni" xml:"use-for-sni" tfsdk:"use_for_sni"` SslCertificateId *string `json:"ssl-certificate-id" xml:"ssl-certificate-id" tfsdk:"ssl_certificate_id"` } `json:"ssl" xml:"ssl"` CacheBehaviors []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` CacheTtl *int `json:"cache-ttl" xml:"cache-ttl" tfsdk:"cache_ttl"` IgnoreCacheControl *bool `json:"ignore-cache-control" xml:"ignore-cache-control" tfsdk:"ignore_cache_control"` } `json:"cache-behaviors" xml:"cache-behaviors>cache-behavior" tfsdk:"cache_behaviors"` QueryStringSettings []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` IgnoreQueryString *bool `json:"ignore-query-string" xml:"ignore-query-string" tfsdk:"ignore_query_string"` } `json:"query-string-settings" xml:"query-string-settings>query-string-setting" tfsdk:"query_string_settings"` CacheKeyRules []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` IgnoreCase *bool `json:"ignore-case" xml:"ignore-case" tfsdk:"ignore_case"` HeaderName *string `json:"header-name" xml:"header-name" tfsdk:"header_name"` } `json:"cache-key-rules" xml:"cache-key-rules>cache-key-rule" tfsdk:"cache_key_rules"` VisitControlRules []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` AllowNullReferer *bool `json:"allownullreferer" xml:"allownullreferer" tfsdk:"allownullreferer"` InvalidReferers []*string `json:"invalid-referers" xml:"invalid-referers" tfsdk:"invalid_referers"` ForbiddenIps *string `json:"forbidden-ips" xml:"forbidden-ips" tfsdk:"forbidden_ips"` } `json:"visit-control-rules" xml:"visit-control-rules>visit-control-rule" tfsdk:"visit_control_rules"` ErrorPageRules []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` IgnoreCase *bool `json:"ignore-case" xml:"ignore-case" tfsdk:"ignore_case"` ErrorCode *string `json:"error-code" xml:"error-code" tfsdk:"error_code"` ForwardUrl *string `json:"forward-url" xml:"forward-url" tfsdk:"forward_url"` } `json:"error-page-rules" xml:"error-page-rules>error-page-rule" tfsdk:"error_page_rules"` ClientControlRule *struct { AccessSpeedRules []*struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` Speed *int `json:"speed" xml:"speed" tfsdk:"speed"` } `json:"access-speed-rules" xml:"access-speed-rules>access-speed-rule" tfsdk:"access_speed_rules"` } `json:"client-control-rule" xml:"client-control-rule" tfsdk:"client_control_rule"` VideoDrags *struct { PathPattern *string `json:"path-pattern" xml:"path-pattern" tfsdk:"path_pattern"` DragMode *string `json:"drag-mode" xml:"drag-mode" tfsdk:"drag_mode"` StartFlag *string `json:"start-flag" xml:"start-flag" tfsdk:"start_flag"` EndFlag *string `json:"end-flag" xml:"end-flag" tfsdk:"end_flag"` } `json:"videodrags" xml:"videodrags" tfsdk:"videodrags"` }
type QueryHttp2SettingsConfigResponse ¶ added in v0.4.0
type QueryHttp2SettingsConfigResponse struct { DomainId *string `json:"domainId" xml:"data>domainId"` DomainName *string `json:"domainName" xml:"data>domainName"` Http2Setting *Http2Setting `json:"http2Settings" xml:"data>http2Settings"` }
type QueryHttpCodeCacheConfigResponse ¶ added in v0.4.0
type QueryHttpCodeCacheConfigResponse struct { XMLName xml.Name `json:"-" xml:"domain"` HttpCodeCacheRules []*HttpCodeCacheRule `json:"http-code-cache-rules" xml:"http-code-cache-rules>http-code-cache-rule"` }
type QueryHttpConfigResponse ¶ added in v0.4.0
type QueryHttpConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` HeaderModifyRules []*HeaderModifyRule `json:"header-modify-rules" xml:"header-modify-rules>header-modify-rule"` }
type QueryIPv6ConfigResponse ¶ added in v0.8.0
type QueryIgnoreProtocolResponse ¶ added in v0.4.0
type QueryIgnoreProtocolResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` IgnoreProtocolRules []*IgnoreProtocolRule `json:"ignore-protocol-rules" xml:"ignore-protocol-rules>ignore-protocol-rule"` }
type QueryOriginUriAndOriginHostResponse ¶ added in v0.4.0
type QueryOriginUriAndOriginHostResponse struct { DomainId *string `json:"domain-id" xml:"data>domain-id"` DomainName *string `json:"domain-name" xml:"data>domain-name"` OriginRulesRewrites []*OriginRulesRewrite `json:"originRulesRewrites" xml:"data>originRulesRewrites>originRulesRewrite"` }
type QueryQueryStringConfigResponse ¶ added in v0.4.0
type QueryQueryStringConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` QueryStringSetting []*QueryStringSetting `json:"query-string-settings" xml:"query-string-settings>query-string-setting"` }
type QueryRedirectConfigResponse ¶ added in v0.4.0
type QueryRedirectConfigResponse struct { DomainId *string `json:"domain-id" xml:"domain-id"` DomainName *string `json:"domain-name" xml:"domain-name"` RewriteRuleSettings []*RewriteRuleSetting `json:"rewrite-rule-settings" xml:"rewrite-rule-settings>rewrite-rule-setting"` }
type QueryStringSetting ¶ added in v0.4.0
type QueryStringSetting struct { DataId *string `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` IgnoreLetterCase *bool `json:"ignore-letter-case,omitempty" xml:"ignore-letter-case,omitempty"` IgnoreQueryString *bool `json:"ignore-query-string,omitempty" xml:"ignore-query-string,omitempty"` QueryStringKept *string `json:"query-string-kept,omitempty" xml:"query-string-kept,omitempty"` QueryStringRemoved *string `json:"query-string-removed,omitempty" xml:"query-string-removed,omitempty"` SourceWithQuery *bool `json:"source-with-query,omitempty" xml:"source-with-query,omitempty"` SourceKeyKept *string `json:"source-key-kept,omitempty" xml:"source-key-kept,omitempty"` SourceKeyRemoved *string `json:"source-key-removed,omitempty" xml:"source-key-removed,omitempty"` FileTypes *string `json:"file-types,omitempty" xml:"file-types,omitempty"` CustomFileTypes *string `json:"custom-file-types,omitempty" xml:"custom-file-types,omitempty"` CustomPattern *string `json:"custom-pattern,omitempty" xml:"custom-pattern,omitempty"` SpecifyUrlPattern *string `json:"specify-url-pattern,omitempty" xml:"specify-url-pattern,omitempty"` Directories *string `json:"directories,omitempty" xml:"directories,omitempty"` Priority *int64 `json:"priority,omitempty" xml:"priority,omitempty"` }
type RefererControlRule ¶ added in v0.4.0
type RefererControlRule struct { AllowNullReferer *bool `json:"allow-null-referer,omitempty" xml:"allow-null-referer,omitempty"` ValidReferer *string `json:"valid-referers,omitempty" xml:"valid-referers,omitempty"` ValidUrl *string `json:"valid-url,omitempty" xml:"valid-url,omitempty"` ValidDomain *string `json:"valid-domain,omitempty" xml:"valid-domain,omitempty"` InvalidReferer *string `json:"invalid-referers,omitempty" xml:"invalid-referers,omitempty"` InvalidUrl *string `json:"invalid-url,omitempty" xml:"invalid-url,omitempty"` InvalidDomain *string `json:"invalid-domain,omitempty" xml:"invalid-domain,omitempty"` }
type Response ¶
type Response = BaseResponse
type RewriteRuleSetting ¶ added in v0.4.0
type RewriteRuleSetting struct { DataId *string `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` ExceptPathPattern *string `json:"except-path-pattern,omitempty" xml:"except-path-pattern,omitempty"` IgnoreLetterCase *bool `json:"ignore-letter-case,omitempty" xml:"ignore-letter-case,omitempty"` PublishType *string `json:"publish-type,omitempty" xml:"publish-type,omitempty"` Priority *int64 `json:"priority,omitempty" xml:"priority,omitempty"` BeforeValue *string `json:"before-value,omitempty" xml:"before-value,omitempty"` AfterValue *string `json:"after-value,omitempty" xml:"after-value,omitempty"` RewriteType *string `json:"rewrite-type,omitempty" xml:"rewrite-type,omitempty"` RequestHeader *string `json:"request-header,omitempty" xml:"request-header,omitempty"` ExceptionRequestHeader *string `json:"exception-request-header,omitempty" xml:"exception-request-header,omitempty"` }
type SslCertificate ¶ added in v0.4.0
type SslCertificate struct { CertificateId *string `json:"certificate-id" xml:"certificate-id"` Name *string `json:"name" xml:"name"` Comment *string `json:"comment" xml:"comment"` CertificateValidityFrom *string `json:"certificate-validity-from" xml:"certificate-validity-from"` CertificateValidityTo *string `json:"certificate-validity-to" xml:"certificate-validity-to"` CrtMd5 *string `json:"crt-md5" xml:"crt-md5"` CaMd5 *string `json:"ca-md5" xml:"ca-md5"` KeyMd5 *string `json:"key-md5" xml:"key-md5"` CertificateIssuer *string `json:"certificate-issuer" xml:"certificate-issuer"` CertificateSerial *string `json:"certificate-serial" xml:"certificate-serial"` RelatedDomains []*CertificateDomain `json:"related-domains" xml:"related-domains>related-domain"` DnsNames []*string `json:"dns-names" xml:"dns-names>dns-name"` }
type UaControlRule ¶ added in v0.4.0
type UpdateApiDomainRequest ¶ added in v0.4.0
type UpdateApiDomainRequest struct { XMLName xml.Name `xml:"domain"` Version *string `json:"version,omitempty" xml:"version,omitempty"` Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` ServiceAreas *string `json:"service-areas,omitempty" xml:"service-areas,omitempty"` CnameLabel *string `json:"cname-label,omitempty" xml:"cname-label,omitempty"` HeaderOfClientIp *string `json:"header-of-clientip,omitempty" xml:"header-of-clientip,omitempty"` OriginConfig *OriginConfigInApiDomain `json:"origin-config,omitempty" xml:"origin-config,omitempty"` Ssl *Ssl `json:"ssl,omitempty" xml:"ssl,omitempty"` ErrorPageRules []*ErrorPageRule `json:"error-page-rules,omitempty" xml:"error-page-rules>error-page-rule,omitempty"` ClientControlRule *ClientControlRule `json:"access-speed-rules,omitempty" xml:"client-control-rule,omitempty"` Videodrags *Videodrags `json:"videodrags,omitempty" xml:"videodrags,omitempty"` }
type UpdateApiDomainResponse ¶ added in v0.4.0
type UpdateBackToOriginRewriteConfigRequest ¶ added in v0.4.0
type UpdateBackToOriginRewriteConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` BackToOriginRewriteRule BackToOriginRewriteRule `json:"backToOriginRewriteRule,omitempty" xml:"backToOriginRewriteRule,omitempty"` }
type UpdateBackToOriginRewriteConfigResponse ¶ added in v0.4.0
type UpdateCacheTimeConfigRequest ¶ added in v0.4.0
type UpdateCacheTimeConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` CacheTimeBehaviors []*CacheTimeBehavior `json:"cache-time-behaviors,omitempty" xml:"cache-time-behaviors>cache-time-behavior"` }
type UpdateCacheTimeConfigResponse ¶ added in v0.4.0
type UpdateCdnDomainRequest ¶ added in v0.4.0
type UpdateCdnDomainRequest struct { Version string `json:"version,omitempty" xml:"version,omitempty"` DomainName *string `json:"domain-name,omitempty" xml:"domain-name,omitempty"` Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` CacheHost *string `json:"cache-host,omitempty" xml:"cache-host,omitempty"` HeaderOfClientIp *string `json:"header-of-clientip,omitempty" xml:"header-of-clientip,omitempty"` OriginConfig *OriginConfig `json:"origin-config,omitempty" xml:"origin-config,omitempty"` Ssl *Ssl `json:"ssl,omitempty" xml:"ssl,omitempty"` }
type UpdateCdnDomainResponse ¶ added in v0.4.0
type UpdateCertificateResponse ¶ added in v0.4.0
type UpdateCertificateV2Request ¶ added in v0.4.0
type UpdateCompressionConfigRequest ¶ added in v0.4.0
type UpdateCompressionConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` CompressionSetting *CompressionSetting `json:"compression-settings,omitempty" xml:"compression-settings,omitempty"` }
type UpdateCompressionConfigResponse ¶ added in v0.4.0
type UpdateControlConfigRequest ¶ added in v0.4.0
type UpdateControlConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` VisitControlRules []*VisitControlRule `json:"visit-control-rules,omitempty" xml:"visit-control-rules>visit-control-rule,omitempty"` }
type UpdateControlConfigResponse ¶ added in v0.4.0
type UpdateDomainPropertyRequest ¶ added in v0.4.0
type UpdateDomainPropertyRequest struct { XMLName xml.Name `json:"-" xml:"domain"` OriginConfig *OriginConfig `json:"origin-config,omitempty" xml:"origin-config,omitempty"` }
type UpdateDomainPropertyResponse ¶ added in v0.4.0
type UpdateHttp2SettingsConfigRequest ¶ added in v0.4.0
type UpdateHttp2SettingsConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` Http2Setting *Http2Setting `json:"http2Settings,omitempty" xml:"http2Settings,omitempty"` }
type UpdateHttp2SettingsConfigResponse ¶ added in v0.4.0
type UpdateHttpCodeCacheConfigRequest ¶ added in v0.4.0
type UpdateHttpCodeCacheConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` HttpCodeCacheRules []*HttpCodeCacheRule `json:"http-code-cache-rules,omitempty" xml:"http-code-cache-rules>http-code-cache-rule,omitempty"` }
type UpdateHttpCodeCacheConfigResponse ¶ added in v0.4.0
type UpdateHttpConfigRequest ¶ added in v0.4.0
type UpdateHttpConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` HeaderModifyRules []*HeaderModifyRule `json:"header-modify-rules,omitempty" xml:"header-modify-rules>header-modify-rule,omitempty"` }
type UpdateHttpConfigResponse ¶ added in v0.4.0
type UpdateIPv6ConfigRequest ¶ added in v0.8.0
type UpdateIPv6ConfigResponse ¶ added in v0.8.0
type UpdateIgnoreProtocolRequest ¶ added in v0.4.0
type UpdateIgnoreProtocolRequest struct { XMLName xml.Name `json:"-" xml:"domain"` IgnoreProtocolRules []*IgnoreProtocolRule `json:"ignore-protocol-rules,omitempty" xml:"ignore-protocol-rules>ignore-protocol-rule,omitempty"` }
type UpdateIgnoreProtocolResponse ¶ added in v0.4.0
type UpdateOriginUriAndOriginHostRequest ¶ added in v0.4.0
type UpdateOriginUriAndOriginHostRequest struct { XMLName xml.Name `json:"-" xml:"domain"` OriginRulesRewrites []*OriginRulesRewrite `json:"originRulesRewrites,omitempty" xml:"originRulesRewrites>originRulesRewrite,omitempty"` }
type UpdateOriginUriAndOriginHostResponse ¶ added in v0.4.0
type UpdateQueryStringConfigRequest ¶ added in v0.4.0
type UpdateQueryStringConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` QueryStringSettings []*QueryStringSetting `json:"query-string-settings,omitempty" xml:"query-string-settings>query-string-setting,omitempty"` }
type UpdateQueryStringConfigResponse ¶ added in v0.4.0
type UpdateRedirectConfigRequest ¶ added in v0.4.0
type UpdateRedirectConfigRequest struct { XMLName xml.Name `json:"-" xml:"domain"` RewriteRuleSettings []*RewriteRuleSetting `json:"rewrite-rule-settings,omitempty" xml:"rewrite-rule-settings>rewrite-rule-setting,omitempty"` }
type UpdateRedirectConfigResponse ¶ added in v0.4.0
type Videodrags ¶ added in v0.4.0
type Videodrags struct { PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` DragMode *string `json:"drag-mode,omitempty" xml:"drag-mode,omitempty"` StartFlag *string `json:"start-flag,omitempty" xml:"start-flag,omitempty"` EndFlag *string `json:"end-flag,omitempty" xml:"end-flag,omitempty"` }
type VisitControlRule ¶ added in v0.4.0
type VisitControlRule struct { DataId *string `json:"data-id,omitempty" xml:"data-id,omitempty"` PathPattern *string `json:"path-pattern,omitempty" xml:"path-pattern,omitempty"` ExceptPathPattern *string `json:"except-path-pattern,omitempty" xml:"except-path-pattern,omitempty"` CustomPattern *string `json:"custom-pattern,omitempty" xml:"custom-pattern,omitempty"` FileType *string `json:"file-type,omitempty" xml:"file-type,omitempty"` CustomFileType *string `json:"custom-file-type,omitempty" xml:"custom-file-type,omitempty"` SpecifyUrlPattern *string `json:"specify-url-pattern,omitempty" xml:"specify-url-pattern,omitempty"` Directory *string `json:"directory,omitempty" xml:"directory,omitempty"` ExceptFileType *string `json:"except-file-type,omitempty" xml:"except-file-type,omitempty"` ExceptCustomFileType *string `json:"except-custom-file-type,omitempty" xml:"except-custom-file-type,omitempty"` ExceptDirectory *string `json:"except-directory,omitempty" xml:"except-directory,omitempty"` ControlAction *string `json:"control-action,omitempty" xml:"control-action,omitempty"` Priority *int64 `json:"priority,omitempty" xml:"priority,omitempty"` RewriteTo *string `json:"rewrite-to,omitempty" xml:"rewrite-to,omitempty"` IpControlRule *IpControlRule `json:"ip-control-rule,omitempty" xml:"ip-control-rule,omitempty"` RefererControlRule *RefererControlRule `json:"referer-control-rule,omitempty" xml:"referer-control-rule,omitempty"` UaControlRule *UaControlRule `json:"ua-control-rule,omitempty" xml:"ua-control-rule,omitempty"` AdvanceControlRule *AdvanceControlRule `json:"advance-control-rules,omitempty" xml:"advance-control-rules,omitempty"` }
Click to show internal directories.
Click to hide internal directories.