Request header and request URL access control
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable access control based on the request header and request URL. Values:on : Enableoff : Disable |
AccessControlRules | Array of AccessControlRule | No | Request header and request URL access rule Note: This field may return null , indicating that no valid value can be obtained. |
ReturnCode | Integer | No | Returns status code Note: This field may return null , indicating that no valid value can be obtained. |
Access control rule
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | requestHeader: access control over request header url: access control over access URL Note: This field may return null , indicating that no valid value can be obtained. |
RuleContent | String | Yes | Blocked content Note: This field may return null , indicating that no valid value can be obtained. |
Regex | String | Yes | on: regular match off: exact match Note: This field may return null , indicating that no valid value can be obtained. |
RuleHeader | String | No | This parameter is required only if RuleType is requestHeader Note: This field may return null , indicating that no valid value can be obtained. |
Advanced cache configuration rules
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CacheType | String | Yes | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.default : the cache rules when the origin server has not returned max-ageNote: This field may return null , indicating that no valid value can be obtained. |
CacheContents | Array of String | Yes | Content for each CacheType: For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .For default , enter "no max-age".Note: This field may return null , indicating that no valid value can be obtained. |
CacheTime | Integer | Yes | Cache expiration time Unit: second. The maximum value is 365 days. Note: This field may return null , indicating that no valid value can be obtained. |
Advanced configuration settings
Used by actions: DescribeDomainsConfig.
Name | Type | Description |
---|---|---|
Name | String | Advanced configuration name Note: This field may return null , indicating that no valid value can be obtained. |
Value | String | Whether to support advanced configurationon : Supportedoff : Not supportedNote: This field may return null , indicating that no valid value can be obtained. |
Custom HTTPS configuration for origin-pull
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CustomTlsStatus | String | No | Custom TLS data switch Note: this field may return null , indicating that no valid values can be obtained. |
TlsVersion | Array of String | No | TLS version settings. Valid values: TLSv1 , TLSV1.1 , TLSV1.2 , and TLSv1.3 . Only consecutive versions can be enabled at the same time.Note: this field may return null , indicating that no valid values can be obtained. |
Cipher | String | No | Custom encryption suite Note: this field may return null , indicating that no valid values can be obtained. |
VerifyOriginType | String | No | Origin-pull verification statusoff : Disables origin-pull verificationoneWay : Only verify the origintwoWay : Enables two-way origin-pull verificationNote: this field may return null , indicating that no valid values can be obtained. |
CertInfo | ServerCert | No | Configuration information of the origin-pull certificate Note: this field may return null , indicating that no valid values can be obtained. |
OriginCertInfo | ClientCert | No | Configuration information of the origin server certificate Note: this field may return null , indicating that no valid values can be obtained. |
Timestamp hotlink protection advanced configuration (allowlist feature)
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable hot linking protection. Values:on : Enableoff : DisableOnly one advanced configuration can be enabled. Set the rests to null . |
TypeA | AdvancedAuthenticationTypeA | No | Timestamp hotlink protection advanced configuration mode A Note: this field may return null , indicating that no valid values can be obtained. |
TypeB | AdvancedAuthenticationTypeB | No | Timestamp hotlink protection advanced configuration mode B Note: this field may return null , indicating that no valid values can be obtained. |
TypeC | AdvancedAuthenticationTypeC | No | Timestamp hotlink protection advanced configuration mode C Note: this field may return null , indicating that no valid values can be obtained. |
TypeD | AdvancedAuthenticationTypeD | No | Timestamp hotlink protection advanced configuration mode D Note: this field may return null , indicating that no valid values can be obtained. |
TypeE | AdvancedAuthenticationTypeE | No | Timestamp hotlink protection advanced configuration mode E Note: this field may return null , indicating that no valid values can be obtained. |
TypeF | AdvancedAuthenticationTypeF | No | Timestamp hotlink protection advanced configuration mode F Note: this field may return null , indicating that no valid values can be obtained. |
Timestamp hotlink protection advanced configuration mode A
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. |
SignParam | String | Yes | Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
TimeParam | String | Yes | Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
ExpireTime | Integer | Yes | Expiration time in seconds |
ExpireTimeRequired | Boolean | Yes | Whether the expiration time parameter is required |
Format | String | Yes | URL composition, e.g., ${private_key}${schema}${host}${full_uri} . |
TimeFormat | String | Yes | Time format. Valid values: dec (decimal), hex (hexadecimal). |
FailCode | Integer | Yes | Status code returned when the authentication failed |
ExpireCode | Integer | Yes | Status code returned when the URL expired |
RulePaths | Array of String | Yes | List of URLs to be authenticated |
Transformation | Integer | No | Reserved field |
Timestamp hotlink protection advanced configuration mode B
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
KeyAlpha | String | Yes | Alpha key name |
KeyBeta | String | Yes | Beta key name |
KeyGamma | String | Yes | Gamma key name |
SignParam | String | Yes | Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
TimeParam | String | Yes | Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
ExpireTime | Integer | Yes | Expiration time in seconds |
TimeFormat | String | Yes | Time format. Valid values: dec (decimal), hex (hexadecimal). |
FailCode | Integer | Yes | Status code returned when the authentication failed |
ExpireCode | Integer | Yes | Status code returned when the URL expired |
RulePaths | Array of String | Yes | List of URLs to be authenticated |
Timestamp hotlink protection advanced configuration mode C
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
AccessKey | String | Yes | Access key |
SecretKey | String | Yes | Authentication key |
Timestamp hotlink protection advanced configuration mode D
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. |
BackupSecretKey | String | Yes | Alternative key used for authentication after the authentication key (SecretKey ) failed |
SignParam | String | Yes | Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
TimeParam | String | Yes | Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. |
ExpireTime | Integer | Yes | Expiration time in seconds |
TimeFormat | String | Yes | Time format. Valid values: dec (decimal), hex (hexadecimal). |
Timestamp hotlink protection advanced configuration mode E
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. Note: this field may return null , indicating that no valid values can be obtained. |
SignParam | String | Yes | Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
AclSignParam | String | Yes | ACL signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
StartTimeParam | String | Yes | Start time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
ExpireTimeParam | String | Yes | Expiration time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
TimeFormat | String | Yes | Time format (dec) Note: this field may return null , indicating that no valid values can be obtained. |
Timestamp hotlink protection advanced authentication configuration mode F (TypeF)
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SignParam | String | Yes | Signature field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
TimeParam | String | Yes | Time field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
TransactionParam | String | Yes | Transaction field name in the URI string, starting with a letter, and consisting of letters, digits, and underscores. Note: this field may return null , indicating that no valid values can be obtained. |
SecretKey | String | Yes | CMK used for signature calculation, allowing 6 to 32 bytes of letters and digits. Note: this field may return null , indicating that no valid values can be obtained. |
BackupSecretKey | String | No | Alternative key used for signature calculation, which is used after the CMK fails in authentication. It allows 6 to 32 bytes of letters and digits. Note: this field may return null , indicating that no valid values can be obtained. |
SCDN custom CC rules
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
RuleName | String | No | Rule name |
DetectionTime | Integer | No | Detection duration Note: this field may return null , indicating that no valid values can be obtained. |
FrequencyLimit | Integer | No | Detection frequency threshold Note: this field may return null , indicating that no valid values can be obtained. |
PunishmentSwitch | String | No | Whether to enable IP blocking. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
PunishmentTime | Integer | No | IP penalty duration Note: this field may return null , indicating that no valid values can be obtained. |
Action | String | No | Action. Valid values: intercept and redirect .Note: this field may return null , indicating that no valid values can be obtained. |
RedirectUrl | String | No | A redirection URL used when Action is redirect Note: this field may return null , indicating that no valid values can be obtained. |
Configure | Array of ScdnSevenLayerRules | No | Layer-7 rule configuration for CC frequency limiting Note: this field may return null , indicating that no valid values can be obtained. |
Switch | String | No | Whether to enable custom CC rules. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
(Disused) Advanced cache validity configuration. You can use RuleCache
instead.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CacheRules | Array of AdvanceCacheRule | Yes | Cache expiration rule Note: this field may return null , indicating that no valid values can be obtained. |
IgnoreCacheControl | String | Yes | Forced cache configuration on: enabled off: disabled When this is enabled, if the origin server returns no-cache, no-store headers, node caching will still be performed according to the cache expiration rules. This is disabled by default Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreSetCookie | String | Yes | Whether to ignore the header and body on cache nodes if the origin server returns the header Set-Cookie .on : Ignore; do not cache the header and body.off : Do not ignore; follow the custom cache rules of cache nodes.It is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
SCDN precise access control configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
RuleName | String | Yes | Rule name |
Configure | Array of AdvancedScdnAclRule | Yes | Specific configurations |
Result | String | Yes | Action. Valid values: intercept and redirect . |
Status | String | No | Whether the rule is activated. Valid values: active and inactive . |
ErrorPage | ScdnErrorPage | No | Error page configuration |
Precise access control rule
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
MatchKey | String | Yes | Keyword. Valid values:protocol : HTTP protocolhttpVersion : HTTP versionmethod : request methodip : requester IPipAsn : ASN of the requester IPipCountry : country/region of the requester IPipArea : region of the requester IPxForwardFor : X-Forward-For request headerdirectory : Pathindex : Homepagepath : Full path of a filefile : File extensionparam : Request parameterreferer : Referer request headercookie : Cookie request headeruserAgent : User-Agent request headerhead : Custom request header |
LogicOperator | String | Yes | Logical operator. Valid values:exclude : The keyword is not includedinclude : The keyword is includednotequal : Not the same as the keywordequal : The same as the keywordmatching : The prefix is matchednull : Empty or does not exist |
MatchValue | Array of String | Yes | Matched value. When MatchKey is protocol ,Values: HTTP and HTTPS .When MatchKey is httpVersion ,Values: HTTP/1.0 , HTTP/1.1 , HTTP/1.2 , HTTP/2 , and HTTP/3 .When MatchKey is method ,Values: HEAD , GET , POST , PUT , OPTIONS , TRACE , DELETE , PATCH and CONNECT .When MatchKey is ipCountry , valid values include:OTHER : Other areasVE : VenezuelaUY : UruguaySR : SurinamePY : ParaguayPE : PeruGY : GuyanaEC : EcuadorCO : ColombiaCL : ChileBR : BrazilBO : BoliviaAR : ArgentinaNZ : New ZealandWS : SamoaVU : VanuatuTV : TuvaluTO : TongaTK : TokelauPW : PalauNU : NiueNR : NauruKI : KiribatiGU : GuamFM : MicronesiaAU : AustraliaUS : United StatesPR : Puerto RicoDO : Dominican RepublicCR : Costa RicaAS : American SamoaAG : Antigua and BarbudaPA : PanamaNI : NicaraguaMX : MexicoJM : JamaicaHT : HaitiHN : HondurasGT : GuatemalaGP : GuadeloupeGL : GreenlandGD : GrenadaCU : CubaCA : CanadaBZ : BelizeBS : BahamasBM : BermudaBB : BarbadosAW : ArubaAI : AnguillaVA : VaticanSK : SlovakiaGB : United KingdomCZ : Czech RepublicUA : UkraineTR : TürkiyeSI : SloveniaSE : SwedenRS : Republic of SerbiaRO : RomaniaPT : PortugalPL : PolandNO : NorwayNL : NetherlandsMT : MaltaMK : MacedoniaME : MontenegroMD : MoldovaMC : MonacoLV : LatviaLU : LuxembourgLT : LithuaniaLI : LiechtensteinKZ : KazakhstanIT : ItalyIS : IcelandIE : IrelandHU : HungaryHR : CroatiaGR : GreeceGI : GibraltarGG : GuernseyGE : GeorgiaFR : FranceFI : FinlandES : SpainEE : EstoniaDK : DenmarkDE : GermanyCY : CyprusCH : SwitzerlandBY : BelarusBG : BulgariaBE : BelgiumAZ : AzerbaijanAT : AustriaAM : ArmeniaAL : AlbaniaAD : AndorraTL : East TimorSY : SyriaSA : Saudi ArabiaPS : PalestineLK : Sri LankaLK : Sri LankaKP : North KoreaKG : KyrgyzstanHK : Hong Kong, ChinaBN : BruneiBD : BangladeshAE : United Arab EmiratesYE : YemenVN : VietnamUZ : UzbekistanTW : Taiwan, ChinaTM : TurkmenistanTJ : TajikistanTH : ThailandSG : SingaporeQA : QatarPK : PakistanPH : PhilippinesOM : OmanNP : NepalMY : MalaysiaMV : MaldivesMO : Macao, ChinaMN : MongoliaMM : MyanmarLB : LebanonKW : KuwaitKR : South KoreaKH : CambodiaJP : JapanJO : JordanIR : IranIQ : IraqIN : IndiaIL : IsraelID : IndonesiaCN : ChinaBT : BhutanBH : BahrainAF : AfghanistanLY : LibyaCD : Democratic Republic of the CongoRE : La RéunionSZ : SwazilandZW : ZimbabweZM : ZambiaYT : MayotteUG : UgandaTZ : TanzaniaTN : TunisiaTG : TogoTD : ChadSO : SomaliaSN : SenegalSD : SudanSC : SeychellesRW : RwandaNG : NigeriaNE : NigerNA : NamibiaMZ : MozambiqueMW : MalawiMU : MauritiusMR : MauritaniaML : MaliMG : MadagascarMA : MoroccoLS : LesothoLR : LiberiaKM : ComorosKE : KenyaGN : GuineaGM : GambiaGH : GhanaGA : GabonET : EthiopiaER : EritreaEG : EgyptDZ : AlgeriaDJ : DjiboutiCM : CameroonCG : Republic of the CongoBW : BotswanaBJ : BeninBI : BurundiAO : AngolaWhen MatchKey is ipArea , valid values include:OTHER : Other areasAS : AsiaEU : EuropeAN : AntarcticaAF : AfricaOC : OceaniaNA : North AmericaSA : South AmericaWhen MatchKey is index ,valid value is /;/index.html . |
CaseSensitive | Boolean | No | Whether to distinguish uppercase or lowercase letters. true : case sensitive; false : case insensitive. |
MatchKeyParam | String | No | This field is required when MatchKey is param or cookie . For param , it indicates a key value of the request parameter if MatchKey is param , while a key value of the Cookie request header if MatchKey is cookie . |
Timestamp hotlink protection configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable hot linking protection. Values:on : Enableoff : DisableOnly one advanced configuration can be enabled. Set the rests to null . |
AuthAlgorithm | String | No | Authentication algorithm. Values:md5 : Calculate the hash using MD5.sha256 : Calculate the hash using SHA-256.Default value: md5 .Note: This field may return· null , indicating that no valid values can be obtained. |
TypeA | AuthenticationTypeA | No | Timestamp hotlink protection mode A configuration Note: This field may return null , indicating that no valid value can be obtained. |
TypeB | AuthenticationTypeB | No | Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported) Note: This field may return null , indicating that no valid value can be obtained. |
TypeC | AuthenticationTypeC | No | Timestamp hotlink protection mode C configuration Note: This field may return null , indicating that no valid value can be obtained. |
TypeD | AuthenticationTypeD | No | Timestamp hotlink protection mode D configuration Note: This field may return null , indicating that no valid value can be obtained. |
Timestamp hotlink protection mode A configuration
The access URL format of timestamp hotlink protection mode A is as follows: http://DomainName/Filename?sign=timestamp-rand-uid-md5hash
Here, timestamp is a decimal timestamp in Unix format;
rand is a random string composed of 0-100 characters, including digits, upper and lower-case letters.
uid is 0;
md5hash: MD5 (file path-timestamp-rand-uid-custom key)
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | The key for signature calculation 6-32 characters. Only digits and letters are allowed. Note: this field may return null , indicating that no valid values can be obtained. |
SignParam | String | Yes | Signature parameter name Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. |
ExpireTime | Integer | Yes | Signature expiration time Unit: second. The maximum value is 630720000. |
FileExtensions | Array of String | Yes | File extension list settings determining if authentication should be performed If it contains an asterisk (*), this indicates all files. |
FilterType | String | Yes | whitelist : All file types apart from the FileExtensions list are authenticated.blacklist : Only the file types in the FileExtensions list are authenticated. |
BackupSecretKey | String | No | Backup key, which is used to calculate a signature. 6-32 characters. Only digits and letters are allowed. Note: This field may return null , indicating that no valid value can be obtained. |
Timestamp hotlink protection mode B configuration (mode B is being upgraded and is currently not supported)
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | The key for signature calculation 6-32 characters. Only digits and letters are allowed. Note: this field may return null , indicating that no valid values can be obtained. |
ExpireTime | Integer | Yes | Signature expiration time Unit: second. The maximum value is 630720000. |
FileExtensions | Array of String | Yes | File extension list settings determining if authentication should be performed If it contains an asterisk (*), this indicates all files. |
FilterType | String | Yes | whitelist: indicates that all file types apart from the FileExtensions list are authenticated blacklist: indicates that only the file types in the FileExtensions list are authenticated |
BackupSecretKey | String | No | Backup key, which is used to calculate a signature. 6-32 characters. Only digits and letters are allowed. Note: This field may return null , indicating that no valid value can be obtained. |
Timestamp hotlink protection mode C configuration
The access URL format of timestamp hotlink protection mode C is as follows: http://DomainName/md5hash/timestamp/FileName
Here, timestamp is a hexadecimal timestamp in Unix format;md5hash
: MD5 (custom key + file path + timestamp)
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | The key for signature calculation 6-32 characters. Only digits and letters are allowed. Note: this field may return null , indicating that no valid values can be obtained. |
ExpireTime | Integer | Yes | Signature expiration time Unit: second. The maximum value is 630720000. |
FileExtensions | Array of String | Yes | File extension list settings determining if authentication should be performed If it contains an asterisk (*), this indicates all files. |
FilterType | String | Yes | whitelist : All file types apart from the FileExtensions list are authenticated.blacklist : Only the file types in the FileExtensions list are authenticated. |
TimeFormat | String | No | Timestamp settingsdec : Decimalhex : HexadecimalNote: This field may return null , indicating that no valid value can be obtained. |
BackupSecretKey | String | No | Backup key, which is used to calculate a signature. 6-32 characters. Only digits and letters are allowed. Note: This field may return null , indicating that no valid value can be obtained. |
Timestamp hotlink protection mode D configuration
The access URL format of timestamp hotlink protection mode D is as follows: http://DomainName/FileName?sign=md5hash&t=timestamp
Here, timestamp is a decimal or hexadecimal timestamp in Unix format;md5hash
: MD5 (custom key + file path + timestamp)
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | The key for signature calculation 6-32 characters. Only digits and letters are allowed. Note: this field may return null , indicating that no valid values can be obtained. |
ExpireTime | Integer | Yes | Signature expiration time Unit: second. The maximum value is 630720000. |
FileExtensions | Array of String | Yes | File extension list settings determining if authentication should be performed If it contains an asterisk (*), this indicates all files. |
FilterType | String | Yes | whitelist : All file types apart from the FileExtensions list are authenticated.blacklist : Only the file types in the FileExtensions list are authenticated. |
SignParam | String | Yes | Signature parameter name Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. |
TimeParam | String | Yes | Timestamp parameter name Only upper and lower-case letters, digits, and underscores (_) are allowed. It cannot start with a digit. Length limit: 1-100 characters. |
TimeFormat | String | Yes | Timestamp settingsdec : Decimalhex : Hexadecimal |
BackupSecretKey | String | No | Backup key, which is used to calculate a signature. 6-32 characters. Only digits and letters are allowed. Note: This field may return null , indicating that no valid value can be obtained. |
AVIF adapter, used for image optimization
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | No | Whether to enable AvifAdapter for image optimization. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
Origin access authentication for S3 bucket.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull authentication for S3 buckets.on : Enableoff : Disable |
AccessKey | String | No | Access ID. Note: This field may return null , indicating that no valid value can be obtained. |
SecretKey | String | No | Key. Note: This field may return null , indicating that no valid value can be obtained. |
Region | String | No | Region. Note: This field may return null , indicating that no valid value can be obtained. |
Bucket | String | No | BucketName Note: This field may return null , indicating that no valid value can be obtained. |
Bandwidth cap configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable usage limit. Values:on : Enableoff : Disable |
BpsThreshold | Integer | No | The upper limit of bandwidth usage (in bps) or traffic usage (in bytes). Note: this field may return null , indicating that no valid values can be obtained. |
CounterMeasure | String | No | Action taken when threshold is reachedRETURN_404 : A 404 error will be returned for all requests.Note: this field may return null , indicating that no valid values can be obtained. |
LastTriggerTime | Timestamp | No | The last time when the usage upper limit in the Chinese mainland was reached Note: this field may return null , indicating that no valid values can be obtained. |
AlertSwitch | String | No | Whether to enable alerts for usage limit. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
AlertPercentage | Integer | No | Triggers alarms when the ratio of bandwidth or traffic usage to the usage upper limit reaches the specified value Note: this field may return null , indicating that no valid values can be obtained. |
LastTriggerTimeOverseas | Timestamp | No | The last time when the usage outside the Chinese mainland reached the upper limit Note: this field may return null , indicating that no valid values can be obtained. |
Metric | String | No | Dimension of the usage limitbandwidth : Bandwidthflux : TrafficNote: This field may return null , indicating that no valid value can be obtained. |
StatisticItems | Array of StatisticItem | No | Usage limit configuration Note: This field may return null , indicating that no valid value can be obtained. |
Bot cookie policy
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable bot cookie policies. Values:on : Enableoff : Disable |
RuleType | String | Yes | Rule type, which can only be all currently. |
RuleValue | Array of String | Yes | Rule value. Valid value: * . |
Action | String | Yes | Action. Valid values: monitor , intercept , redirect , and captcha . |
RedirectUrl | String | No | Redirection target page Note: This field may return null, indicating that no valid values can be obtained. |
UpdateTime | Timestamp | No | Update time Note: This field may return null, indicating that no valid values can be obtained. |
Bot JS policy
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable bot JS policies. Values:on : Enableoff : Disable |
RuleType | String | Yes | Rule type, which can only be file currently. |
RuleValue | Array of String | Yes | Rule value. Valid values: html and htm . |
Action | String | Yes | Action. Valid values: monitor , intercept , redirect , and captcha . |
RedirectUrl | String | No | Redirection target page Note: This field may return null, indicating that no valid values can be obtained. |
UpdateTime | Timestamp | No | Update time Note: This field may return null, indicating that no valid values can be obtained. |
Basic domain configuration information, including CNAME, status, service type, acceleration region, creation time, last modified time, and origin server configuration.
Used by actions: DescribeDomains.
Name | Type | Description |
---|---|---|
ResourceId | String | Domain name ID |
AppId | Integer | Tencent Cloud account ID |
Domain | String | Acceleration domain name |
Cname | String | CNAME address of domain name |
Status | String | Acceleration service statusrejected : The domain name is rejected due to expiration/deregistration of its ICP filingprocessing : Deployingclosing : Disablingonline : Enabledoffline : Disabled |
ProjectId | Integer | Project ID, which can be viewed on the Tencent Cloud project management page |
ServiceType | String | Domain name service typeweb : Static accelerationdownload : Download accelerationmedia : Streaming media VOD acceleration |
CreateTime | Timestamp | Domain name creation time. |
UpdateTime | Timestamp | Domain name update time. |
Origin | Origin | Origin server configuration details. |
Disable | String | Domain name block statusnormal : Normaloverdue : The domain name has been disabled due to account arrears. The acceleration service can be resumed after the account is topped up.malicious : The acceleration service has been forcibly disabled due to detection of malicious behavior.ddos : The acceleration service has been disabled due to large-scale DDoS attacks to the domain nameidle : No operations or data has been detected for more than 90 days. The domain name is determined to be inactive which automatically disables the acceleration service. You can restart the service.unlicensed : The acceleration service has been automatically disabled as the domain name has no ICP filing or its ICP filing is deregistered. Service can be resumed after an ICP filing is obtained.capping : The configured upper limit for bandwidth has been reached.readonly : The domain name has a special configuration and has been locked. |
Area | String | Acceleration regionmainland : Acceleration inside the Chinese mainlandoverseas : Acceleration outside the Chinese mainlandglobal : Acceleration over the globe |
Readonly | String | Domain name lock statusnormal : Not lockedmainland : Locked in the Chinese mainlandoverseas: Locked outside the Chinese mainland global: Locked globally |
Product | String | Product of the domain name, either cdn or ecdn . |
ParentHost | String | Primary domain name |
Node cache expiration time configuration. There are two types of configuration:
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SimpleCache | SimpleCache | No | Basic cache expiration time configuration Note: this field may return null , indicating that no valid values can be obtained. |
AdvancedCache | AdvancedCache | No | (Disused) Advanced cache validity configuration Note: This field may return null , indicating that no valid value can be obtained. |
RuleCache | Array of RuleCache | No | Advanced path cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
Heuristic cache validity configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
HeuristicCacheTimeSwitch | String | Yes | Whether to enable heuristic cache validity. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
HeuristicCacheTime | Integer | Yes | Unit: Second Note: This field may return· null , indicating that no valid values can be obtained. |
Path cache configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable path cache. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
CacheTime | Integer | Yes | Cache expiration time settings Unit: second. The maximum value is 365 days. Note: This field may return null , indicating that no valid value can be obtained. |
CompareMaxAge | String | Yes | Advanced cache expiration configuration. If this is enabled, the max-age value returned by the origin server will be compared with the cache expiration time set in CacheRules, and the smallest value will be cached on the node.on : Enableoff : DisableThis is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreCacheControl | String | Yes | Force cacheon : Enableoff : DisableThis is disabled by default. If enabled, the no-store and no-cache resources returned from the origin server will be cached according to CacheRules rules.Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreSetCookie | String | Yes | Whether to ignore the header and body on cache nodes if the origin server returns the header Set-Cookie .on : Ignore; do not cache the header and body.off : Do not ignore; follow the custom cache rules of cache nodes.It is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
Path cache configuration follows the origin server configuration.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to follow the origin configuration for path cache. Values:on : Enableoff : Disable |
HeuristicCache | HeuristicCache | No | Heuristic cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
Path cache/no cache configuration.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable no-caching at the path. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Revalidate | String | Yes | Always forwards to the origin server for verificationon : Enableoff : DisableIt is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
Cache key configuration (Ignore Query String configuration)
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
FullUrlCache | String | No | Whether to enable full-path cacheon : Enable full-path cache (i.e., disable Ignore Query String)off : Disable full-path cache (i.e., enable Ignore Query String) |
IgnoreCase | String | No | Specifies whether the cache key is case sensitive Note: This field may return null , indicating that no valid value can be obtained. |
QueryString | QueryStringKey | No | Request parameter contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
Cookie | CookieKey | No | Cookie contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
Header | HeaderKey | No | Request header contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
CacheTag | CacheTagKey | No | Custom string contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
Scheme | SchemeKey | No | Request protocol contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
KeyRules | Array of KeyRule | No | Path-specific cache key configuration Note: This field may return null , indicating that no valid value can be obtained. |
Result of blocking/unblocking URLs
Used by actions: DisableCaches, EnableCaches.
Name | Type | Description |
---|---|---|
SuccessUrls | Array of String | List of succeeded URLs Note: This field may return null , indicating that no valid value can be obtained. |
FailUrls | Array of String | List of failed URLs Note: This field may return null , indicating that no valid value can be obtained. |
A part of CacheKey
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to include CacheTag as part of CacheKey . Values:on : Yesoff : NoNote: This field may return null , indicating that no valid values can be obtained. |
Value | String | No | Value of custom CacheTag Note: This field may return null , indicating that no valid value can be obtained. |
Downstream speed limit configuration rules. Up to 100 entries can be configured.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths. |
RulePaths | Array of String | Yes | Content for each RuleType : For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html . |
KBpsThreshold | Integer | Yes | Downstream speed value settings (in KB/s) |
Detailed access data
Used by actions: DescribeBillingData, DescribeCdnData, DescribeIpVisit, DescribeOriginData.
Name | Type | Description |
---|---|---|
Metric | String | Queries by the specified metric:flux : Traffic (in bytes)bandwidth : Bandwidth (in bps)request : Number of requestsfluxHitRate : Traffic hit rate (in %)statusCode : Status code. The aggregate data for 2xx, 3xx, 4xx, and 5xx status codes will be returned (in entries)2XX : Returns the aggregate list of 2xx status codes and the data for status codes starting with 2 (in entries)3XX : Returns the aggregate list of 3xx status codes and the data for status codes starting with 3 (in entries)4XX : Returns the aggregate list of 4xx status codes and the data for status codes starting with 4 (in entries)5XX : Returns the aggregate list of 5xx status codes and the data for status codes starting with 5 (in entries)You can also specify a status code for querying. |
DetailData | Array of TimestampData | Detailed data combination |
SummarizedData | SummarizedData | Aggregate data combination |
IP attribute information
Used by actions: DescribeCdnIp.
Name | Type | Description |
---|---|---|
Ip | String | IP to be queried |
Platform | String | IP ownership: yes: Tencent Cloud CDN node no: non-Tencent Cloud CDN node |
Location | String | Node district/country unknown: unknown node location |
History | Array of CdnIpHistory | Activation and deactivation history of the node. |
Area | String | Node regionmainland : Acceleration nodes inside the Chinese mainlandoverseas : Acceleration nodes outside the Chinese mainlandunknown : Service region unknown |
City | String | City where the nodes reside Note: This field may return null , indicating that no valid value can be obtained. |
CDN node activation and deactivation history
Used by actions: DescribeCdnIp.
Name | Type | Description |
---|---|---|
Status | String | Operation typeonline : Nodes activatedoffline : Nodes deactivated |
Datetime | Timestamp | Operation time corresponding to operation type If its value is null , it means there is no status change record.Note: This field may return null , indicating that no valid value can be obtained. |
HTTPS client certificate configuration
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Certificate | String | Yes | Client certificate PEM format, requires Base64 encoding. Note: This field may return null , indicating that no valid value can be obtained. |
CertName | String | No | Client certificate name Note: This field may return null , indicating that no valid value can be obtained. |
ExpireTime | Timestamp | No | Certificate expiration time When this is used as an input parameter, it can be left blank. Note: This field may return null , indicating that no valid value can be obtained. |
DeployTime | Timestamp | No | Certificate issuance time When this is used as an input parameter, it can be left blank. Note: This field may return null , indicating that no valid value can be obtained. |
CLS log search object
Used by actions: SearchClsLog.
Name | Type | Description |
---|---|---|
TopicId | String | Topic ID |
TopicName | String | Topic name |
Timestamp | String | Log time |
Content | String | Log content |
Filename | String | Capture path |
Source | String | Log source device |
CLS log search result
Used by actions: SearchClsLog.
Name | Type | Description |
---|---|---|
Context | String | Cursor for more search results |
Listover | Boolean | Whether all search results have been returned |
Results | Array of ClsLogObject | Log content information |
Old configuration compatibility check
Used by actions: DescribeDomainsConfig.
Name | Type | Description |
---|---|---|
Code | Integer | Compatibility flag status code. Note: This field may return null , indicating that no valid value can be obtained. |
Smart compression configuration. By default, Gzip compression is performed for files with js, html, css, xml, json, shtml, and htm suffixes, and with sizes between 256 and 2097152 bytes.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable smart compression. Values:on : Enableoff : Disable |
CompressionRules | Array of CompressionRule | No | Compression rules array Note: This field may return null , indicating that no valid value can be obtained. |
Intelligent compression rule configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Compress | Boolean | Yes | true: must be set as true, enables compression Note: this field may return null , indicating that no valid values can be obtained. |
MinLength | Integer | Yes | The minimum file size to trigger compression (in bytes) Note: this field may return null , indicating that no valid values can be obtained. |
MaxLength | Integer | Yes | The maximum file size to trigger compression (in bytes). The maximum value is 30 MB. Note: This field may return null , indicating that no valid value can be obtained. |
Algorithms | Array of String | Yes | File compression algorithmgzip : Gzip compressionbrotli : Brotli compressionNote: This field may return null , indicating that no valid value can be obtained. |
FileExtensions | Array of String | No | Compress based on file suffix. File suffixes such as jpg and txt are supported. Note: This field may return null , indicating that no valid value can be obtained. |
RuleType | String | No | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.contentType : Apply when the ContentType is specified.If this field is specified, FileExtensions does not take effect.Note: This field may return null , indicating that no valid value can be obtained. |
RulePaths | Array of String | No | Content for each CacheType :For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .For contentType , enter text/html .Note: This field may return null , indicating that no valid value can be obtained. |
A part of CacheKey
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to include Cookie as part of CacheKey. Values:on : Yesoff : NoNote: This field may return null , indicating that no valid values can be obtained. |
Value | String | No | Used cookies (separated by ';') Note: This field may return null , indicating that no valid value can be obtained. |
Complete acceleration domain configuration information
Used by actions: DescribeDomainsConfig.
Name | Type | Description |
---|---|---|
ResourceId | String | Domain name ID |
AppId | Integer | Tencent Cloud account ID |
Domain | String | Accelerated domain name. |
Cname | String | CNAME address of domain name Note: this field may return null , indicating that no valid values can be obtained. |
Status | String | Acceleration service statusrejected : The domain name is rejected due to expiration/deregistration of its ICP filingprocessing : Deployingclosing : Disablingonline : Enabledoffline : Disabled |
ProjectId | Integer | Project ID, which can be viewed on the Tencent Cloud project management page |
ServiceType | String | Acceleration domain name service typeweb : Webpage file downloadsdownload : Large file downloadsmedia : Audio and video on demand accelerationhybrid : Dynamic and static content accelerationdynamic : Dynamic content acceleration |
CreateTime | Timestamp | Domain name creation time |
UpdateTime | Timestamp | Domain name update time |
Origin | Origin | Origin server configuration. |
IpFilter | IpFilter | IP blocklist/allowlist configuration Note: This field may return null , indicating that no valid value can be obtained. |
IpFreqLimit | IpFreqLimit | IP access limit configuration Note: This field may return null , indicating that no valid value can be obtained. |
StatusCodeCache | StatusCodeCache | Status code cache configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Compression | Compression | Smart compression configuration. Note: This field may return null , indicating that no valid value can be obtained. |
BandwidthAlert | BandwidthAlert | Bandwidth cap configuration Note: This field may return null , indicating that no valid value can be obtained. |
RangeOriginPull | RangeOriginPull | Range GETs configuration Note: This field may return null , indicating that no valid value can be obtained. |
FollowRedirect | FollowRedirect | 301/302 origin-pull follow-redirect configuration Note: This field may return null , indicating that no valid value can be obtained. |
ErrorPage | ErrorPage | Custom error page configuration Note: This field may return null , indicating that no valid value can be obtained. |
RequestHeader | RequestHeader | Custom request header configuration Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeader | ResponseHeader | Custom response header configuration Note: This field may return null , indicating that no valid value can be obtained. |
DownstreamCapping | DownstreamCapping | Single-link downstream speed limit configuration Note: This field may return null , indicating that no valid value can be obtained. |
CacheKey | CacheKey | Configuration of cache with/without parameter Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeaderCache | ResponseHeaderCache | Origin server header cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
VideoSeek | VideoSeek | Video dragging configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Cache | Cache | Node cache expiration rule configuration Note: This field may return null , indicating that no valid value can be obtained. |
OriginPullOptimization | OriginPullOptimization | Cross-border linkage optimization configuration (in beta) Note: This field may return null , indicating that no valid value can be obtained. |
Https | Https | HTTPS Acceleration Configuration Guide Note: This field may return null , indicating that no valid value can be obtained. |
Authentication | Authentication | Timestamp hotlink protection configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Seo | Seo | SEO configuration Note: This field may return null , indicating that no valid value can be obtained. |
Disable | String | Domain name block statusnormal : Normaloverdue : The domain name has been disabled due to account arrears. The acceleration service can be resumed after the account is topped up.malicious : The acceleration service has been forcibly disabled due to detection of malicious behavior.ddos : The acceleration service has been disabled due to large-scale DDoS attacks to the domain nameidle : No operations or data has been detected for more than 90 days. The domain name is determined to be inactive which automatically disables the acceleration service. You can restart the service.unlicensed : The acceleration service has been automatically disabled as the domain name has no ICP filing or its ICP filing is deregistered. Service can be resumed after an ICP filing is obtained.capping : The configured upper limit for bandwidth has been reached.readonly : The domain name has a special configuration and has been locked.Note: This field may return null , indicating that no valid value can be obtained. |
ForceRedirect | ForceRedirect | Access protocol forced redirect configuration Note: This field may return null , indicating that no valid value can be obtained. |
Referer | Referer | Referer configuration Note: This field may return null , indicating that no valid value can be obtained. |
MaxAge | MaxAge | Browser cache expiration rule configuration (in beta) Note: This field may return null , indicating that no valid value can be obtained. |
Ipv6 | Ipv6 | IPv6 origin-pull configuration (in beta) Note: This field may return null , indicating that no valid value can be obtained. |
Compatibility | Compatibility | Backwards compatibility configuration (compatibility field for internal use) Note: This field may return null , indicating that no valid value can be obtained. |
SpecificConfig | SpecificConfig | Region-specific configuration Note: This field may return null , indicating that no valid value can be obtained. |
Area | String | Acceleration regionmainland : Acceleration inside the Chinese mainlandoverseas : Acceleration outside the Chinese mainlandglobal : Acceleration over the globeNote: This field may return null , indicating that no valid value can be obtained. |
Readonly | String | Domain name lock statusnormal : Not lockedmainland : Locked in the Chinese mainlandoverseas : Locked outside the Chinese mainlandglobal: Locked globally Note: This field may return null , indicating that no valid value can be obtained. |
OriginPullTimeout | OriginPullTimeout | Origin-pull timeout configuration Note: This field may return null , indicating that no valid value can be obtained. |
AwsPrivateAccess | AwsPrivateAccess | S3 bucket origin access authentication configuration Note: This field may return null , indicating that no valid value can be obtained. |
SecurityConfig | SecurityConfig | SCDN configuration Note: This field may return null , indicating that no valid value can be obtained. |
ImageOptimization | ImageOptimization | Image optimization configuration Note: This field may return null , indicating that no valid value can be obtained. |
UserAgentFilter | UserAgentFilter | UA blocklist/allowlist configuration Note: This field may return null , indicating that no valid value can be obtained. |
AccessControl | AccessControl | Access control Note: This field may return null , indicating that no valid value can be obtained. |
Advance | String | Whether to support advanced configuration itemson : Supportedoff : Not supportedNote: This field may return null , indicating that no valid value can be obtained. |
UrlRedirect | UrlRedirect | URL redirect configuration Note: This field may return null , indicating that no valid value can be obtained. |
AccessPort | Array of Integer | Access port configuration Note: This field may return null , indicating that no valid value can be obtained. |
Tag | Array of Tag | Tag configuration Note: This field may return null , indicating that no valid value can be obtained. |
AdvancedAuthentication | AdvancedAuthentication | Timestamp hotlink protection advanced configuration (allowlist feature) Note: This field may return null , indicating that no valid value can be obtained. |
OriginAuthentication | OriginAuthentication | Origin-pull authentication advanced configuration (allowlist feature) Note: This field may return null , indicating that no valid value can be obtained. |
Ipv6Access | Ipv6Access | IPv6 access configuration Note: This field may return null , indicating that no valid value can be obtained. |
AdvanceSet | Array of AdvanceConfig | Advanced configuration settings Note: This field may return null , indicating that no valid value can be obtained. |
OfflineCache | OfflineCache | Offline cache (only available to beta users) Note: This field may return null , indicating that no valid value can be obtained. |
OriginCombine | OriginCombine | Merging origin-pull requests (only available to beta users) Note: This field may return null , indicating that no valid value can be obtained. |
PostMaxSize | PostSize | POST request configuration item Note: This field may return null , indicating that no valid value can be obtained. |
Quic | Quic | QUIC configuration Note: This field may return null , indicating that no valid value can be obtained. |
OssPrivateAccess | OssPrivateAccess | Access authentication for OSS origin Note: This field may return null , indicating that no valid value can be obtained. |
WebSocket | WebSocket | WebSocket configuration. Note: This field may return null , indicating that no valid value can be obtained. |
RemoteAuthentication | RemoteAuthentication | Remote authentication configuration Note: This field may return null , indicating that no valid value can be obtained. |
ShareCname | ShareCname | Shared CNAME configuration (only available to beta users) Note: This field may return null , indicating that no valid value can be obtained. |
RuleEngine | RuleEngine | Rule engine Note: This field may return null , indicating that no valid value can be obtained. |
ParentHost | String | Primary domain name Note: This field may return null , indicating that no valid value can be obtained. |
HwPrivateAccess | HwPrivateAccess | Access authentication for Huawei Cloud OBS origin Note: This field may return null , indicating that no valid value can be obtained. |
QnPrivateAccess | QnPrivateAccess | Access authentication for QiNiu Cloud Kodo origin Note: This field may return null , indicating that no valid value can be obtained. |
HttpsBilling | HttpsBilling | HTTPS (enabled by default) Note: This field may return null , indicating that no valid values can be obtained. |
OthersPrivateAccess | OthersPrivateAccess | Origin-pull authentication for other origins Note: this field may return null , indicating that no valid values can be obtained. |
Region configuration for domain names
Used by actions: AddCLSTopicDomains, CreateClsLogTopic, ListClsTopicDomains, ManageClsTopicDomains.
Name | Type | Required | Description |
---|---|---|---|
Domain | String | Yes | Domain name |
Area | Array of String | Yes | Region list, where the element can be mainland /overseas |
Filter conditions for domain name query.
Used by actions: DescribeDomains, DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Name | String | Yes | Filter filter. Values: - origin : Primary origin server.- domain : Domain name.- resourceId : Domain name ID.- status : Domain name status. Values: online , offline , and processing .- serviceType : Service type. Values: web , download , media , hybrid and dynamic .- projectId : Project ID.- domainType : Primary origin type. Values: cname (customer origin), COS (COS origin), third_party (third-party object storage origin), and igtm (IGTM origin).- fullUrlCache : Whether to enable path cache. Values: on , off .- https : Whether to configure HTTPS. Values: on , off and processing .- originPullProtocol : Origin-pull protocol type. Value: http , follow , and https .- tagKey : Tag key. |
Value | Array of String | Yes | Filter field value. |
Fuzzy | Boolean | No | Whether to enable fuzzy query. Only origin or domain is supported for the filter field name.When fuzzy query is enabled, the maximum Value length is 1. When fuzzy query is disabled, the maximum Value length is 5. |
Details about a log package download link
Used by actions: DescribeCdnDomainLogs.
Name | Type | Description |
---|---|---|
StartTime | Timestamp | Starting time of the log package |
EndTime | Timestamp | End time of the log package |
LogPath | String | Log package download link |
Area | String | Acceleration region corresponding to the log packagemainland : Within the Chinese mainlandoverseas : Outside the Chinese mainland |
LogName | String | Log package filename |
FileSize | Integer | File size, in bytes. Note: This field may return null , indicating that no valid values can be obtained. |
Single link downstream speed limit configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable downstream speed limit. Values:on : Enableoff : Disable |
CappingRules | Array of CappingRule | No | Downstream speed limiting rules Note: This field may return null , indicating that no valid value can be obtained. |
Status code redirect configuration, which is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable status code-based redirection. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
PageRules | Array of ErrorPageRule | No | Status code redirect rules configuration Note: This field may return null , indicating that no valid value can be obtained. |
Status code redirect rules configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
StatusCode | Integer | Yes | Status code Supports 400, 403, 404, 500. |
RedirectCode | Integer | Yes | Redirect status code settings Supports 301 or 302. |
RedirectUrl | String | Yes | Redirect URL Requires a full redirect path, such as https://www.test.com/error.html. |
Information of logsets and log topics (except those created in the Shanghai region)
Used by actions: ListClsLogTopics.
Name | Type | Description |
---|---|---|
Logset | LogSetInfo | Logset information Note: this field may return null , indicating that no valid values can be obtained. |
Topics | Array of TopicInfo | Log topic information Note: this field may return null , indicating that no valid values can be obtained. |
301/302 automatic origin-pull follow-redirect configuration. It is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull to follow the origin configuration. Values:on : Enableoff : Disable |
RedirectConfig | RedirectConfig | No | Specifies a host header for 302 redirects. This feature is only available to beta users. To join the beta, please submit a ticket. Note: This field may return null, indicating that no valid values can be obtained. |
Access protocol forced redirect configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable forced HTTPS redirects. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
RedirectType | String | No | Access forced redirect types http: forced HTTP redirect https: forced HTTPS redirect Note: This field may return null , indicating that no valid value can be obtained. |
RedirectStatusCode | Integer | No | Status code returned for forced redirect Supports 301, 302. Note: This field may return null , indicating that no valid value can be obtained. |
CarryHeaders | String | No | Whether to return the newly added header during force redirection Note: This field may return null , indicating that no valid value can be obtained. |
Image optimization - GuetzliAdapter
configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | No | Whether to enable AvifAdapter for image optimization. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
HTTP request header
Used by actions: PushUrlsCache.
Name | Type | Required | Description |
---|---|---|---|
Name | String | Yes | Request header name |
Value | String | Yes | Request header value |
A part of CacheKey
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | No | Whether to enable Cachekey control. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Value | String | No | Array of headers that make up the CacheKey (separated by ';')Note: This field may return null , indicating that no valid value can be obtained. |
Heuristic cache configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable heuristic caching. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
CacheConfig | CacheConfig | No | Heuristic cache validity configuration Note: This field may return· null , indicating that no valid values can be obtained. |
HSTS configuration.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable HSTS. Values:on : Enableoff : Disable |
MaxAge | Integer | No | MaxAge value.Note: This field may return null , indicating that no valid value can be obtained. |
IncludeSubDomains | String | No | Whether to include subdomain names. Valid values: on, off. Note: This field may return null , indicating that no valid value can be obtained. |
HTTP header setting rules. Up to 100 entries can be set.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
HeaderMode | String | Yes | HTTP header setting methodsset : sets a value for an existing header parameter, a new header parameter, or multiple header parameters. Multiple header parameters will be merged into one.del : deletes a header parameter.add : adds a header parameter. By default, you can repeat the same action to add the same header parameter, which may affect browser response. Please consider the set operation first.Note: This field may return null , indicating that no valid values can be obtained. |
HeaderName | String | Yes | HTTP header name. Up to 100 characters can be set. Note: This field may return null , indicating that no valid value can be obtained. |
HeaderValue | String | Yes | HTTP header value. Up to 1000 characters can be set. Not required when Mode is del Required when Mode is add/set Note: This field may return null , indicating that no valid value can be obtained. |
RuleType | String | Yes | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.Note: This field may return null , indicating that no valid value can be obtained. |
RulePaths | Array of String | Yes | Content for each RuleType :For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .Note: This field may return null , indicating that no valid value can be obtained. |
HTTP header setting rules.
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
HeaderMode | String | Yes | HTTP header setting method. Valid values: add (add header), set (set header) or del (delete header). |
HeaderName | String | Yes | HTTP header name |
HeaderValue | String | Yes | HTTP header value |
Domain name HTTPS acceleration configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable HTTPS. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Http2 | String | No | Whether to enable HTTP2on : Enableoff : DisableNote: this field may return null , indicating that no valid values can be obtained. |
OcspStapling | String | No | OCSP configuration switchon : Enableoff : DisableIt is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
VerifyClient | String | No | Client certificate authentication featureon : Enableoff : DisableThis is disabled by default. The client certificate information is needed when enabled. This is still in beta and not generally available yet. Note: This field may return null , indicating that no valid value can be obtained. |
CertInfo | ServerCert | No | Server certificate configuration information Note: This field may return null , indicating that no valid value can be obtained. |
ClientCertInfo | ClientCert | No | Client certificate configuration information Note: This field may return null , indicating that no valid value can be obtained. |
Spdy | String | No | Spdy configuration switchon : Enableoff : DisableIt is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
SslStatus | String | No | HTTPS certificate deployment status closed: already closed deploying: in deployment deployed: successfully deployed failed: deployment failed Note: This field may return null , indicating that no valid value can be obtained. |
Hsts | Hsts | No | HSTS configuration Note: This field may return null , indicating that no valid value can be obtained. |
TlsVersion | Array of String | No | TLS version settings, which only support certain advanced domain names. Valid values: TLSv1 , TLSV1.1 , TLSV1.2 , and TLSv1.3 . Only consecutive versions can be enabled at the same time.Note: This field may return null , indicating that no valid value can be obtained. |
HTTPS. When it’s disabled, HTTPS requests are blocked.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable HTTPS. Values:on : When it's enabled, HTTPS requests are allowed and incur charges. If not specified, his field uses the default value on .off : When it's disabled, HTTPS requests are blocked. |
Origin-pull authentication for Huawei Cloud OBS origin
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull authentication for Huawei Cloud OBS origin. Values:on : Enableoff : Disable |
AccessKey | String | No | Access ID Note: This field may return null , indicating that no valid value can be obtained. |
SecretKey | String | No | Key Note: This field may return null , indicating that no valid value can be obtained. |
Bucket | String | No | BucketName Note: This field may return null , indicating that no valid value can be obtained. |
Image optimization configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Description |
---|---|---|
WebpAdapter | WebpAdapter | WebpAdapter configurationNote: This field may return null , indicating that no valid value can be obtained. |
TpgAdapter | TpgAdapter | TpgAdapter configurationNote: This field may return null , indicating that no valid value can be obtained. |
GuetzliAdapter | GuetzliAdapter | GuetzliAdapter configurationNote: This field may return null , indicating that no valid value can be obtained. |
AvifAdapter | AvifAdapter | AVIF adapter configuration Note: This field may return null , indicating that no valid value can be obtained. |
IP blocklist/allowlist configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable IP blocklist/allowlist. Values:on : Enableoff : Disable |
FilterType | String | No | IP blocklist/allowlist typewhitelist : IP allowlistblacklist : IP blocklistNote: This field may return null , indicating that no valid value can be obtained. |
Filters | Array of String | No | IP blocklist/allowlist Supports IPs in X.X.X.X format, or IP ranges in /8, /16, /24 format. Up to 50 whitelists or blacklists can be entered Note: This field may return null , indicating that no valid value can be obtained. |
FilterRules | Array of IpFilterPathRule | No | IP blocklist/allowlist path-based configuration. This feature is only available to selected beta customers. Note: This field may return null , indicating that no valid value can be obtained. |
ReturnCode | Integer | No | (Disused) Expected HTTP code to return when the IP allowlist/blocklist verification fails. The 514 code is used instead. Note: this field may return null , indicating that no valid values can be obtained. |
IP blocklist/allowlist path-based configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
FilterType | String | Yes | IP blocklist/allowlist typewhitelist : allowlist IPsblacklist : blocklist IPsNote: This field may return null , indicating that no valid value can be obtained. |
Filters | Array of String | Yes | IP blocklist/allowlist list Supports IPs in X.X.X.X format, or /8, /16, /24 format IP ranges. Up to 50 allowlists or blocklists can be entered. Note: This field may return null , indicating that no valid value can be obtained. |
RuleType | String | Yes | Rule types:all : Effective for all filesfile : Effective for specified file suffixesdirectory : Effective for specified pathspath : Effective for specified absolute pathsNote: This field may return null , indicating that no valid value can be obtained. |
RulePaths | Array of String | Yes | Content for each RuleType: For all , enter an asterisk (*).For file , enter the suffix, such as jpg, txt.For directory , enter the path, such as /xxx/test/.For path , enter the corresponding absolute path, such as /xxx/test.html.Note: This field may return null , indicating that no valid value can be obtained. |
Access limit configuration for a single IP of a single node. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable IP rate limit. Values:on : Enableoff : Disable |
Qps | Integer | No | Sets the limited number of requests per second 514 will be returned for requests that exceed the limit Note: This field may return null , indicating that no valid value can be obtained. |
Node IP information
Used by actions: DescribeIpStatus.
Name | Type | Description |
---|---|---|
Ip | String | Node IP |
District | String | Region of the node |
Isp | String | ISP of the node |
City | String | City of the node |
Status | String | Status of the nodeonline : The node is active and scheduling normally.offline : The node is inactive. |
IPv6 origin configuration (changes not allowed).
Used by actions: AddCdnDomain, DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable an IPv6 address for the origin server. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
IPv6 access configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable IPv6 access. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Path-based cache key configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RulePaths | Array of String | Yes | Content for each CacheType: For file , enter a suffix, e.g., jpg or txt .For directory , enter the path, such as /xxx/test/.For path , enter an absolute path, e.g., /xxx/test.html .For index , enter a backslash (/).Note: this field may return null , indicating that no valid value can be obtained. |
RuleType | String | Yes | Rule types:file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.index : home pageNote: This field may return null , indicating that no valid value can be obtained. |
FullUrlCache | String | Yes | Whether to enable full-path cacheon : Enable full-path cache (i.e., disable Ignore Query String).off : Disable full-path cache (i.e., enable Ignore Query String).Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreCase | String | Yes | Whether caches are case insensitive Note: This field may return null , indicating that no valid value can be obtained. |
QueryString | RuleQueryString | Yes | Request parameter contained in CacheKey Note: This field may return null , indicating that no valid value can be obtained. |
RuleTag | String | Yes | Path cache key tag, the value "user" is passed. Note: This field may return null , indicating that no valid value can be obtained. |
Logset information
Used by actions: ListClsLogTopics.
Name | Type | Description |
---|---|---|
AppId | Integer | Developer ID |
Channel | String | Channel Note: this field may return null , indicating that no valid values can be obtained. |
LogsetId | String | Logset ID |
LogsetName | String | Logset name |
IsDefault | Integer | Whether it is the default logset |
LogsetSavePeriod | Integer | Log retention period in days |
CreateTime | Timestamp | Creation time |
Region | String | Region |
Deleted | String | Whether the logset has been removed from CLS Note: This field may return null , indicating that no valid value can be obtained. |
RegionEn | String | Whether English is used in this region Note: This field may return null , indicating that no valid value can be obtained. |
Specific configuration for domain names in the Chinese mainland. Specific configuration by region. The UpdateDomainConfig
API only supports modification of some region configurations. A list of differences that may exist for older configurations will be provided for a compatibility check. The supported configuration list is as follows:
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Authentication | Authentication | No | Timestamp hotlink protection configuration. Note: this field may return null , indicating that no valid values can be obtained. |
BandwidthAlert | BandwidthAlert | No | Bandwidth cap configuration. Note: this field may return null , indicating that no valid values can be obtained. |
Cache | Cache | No | Cache rule configuration. Note: This field may return null , indicating that no valid value can be obtained. |
CacheKey | CacheKey | No | Cache configurations. Note: This field may return null , indicating that no valid value can be obtained. |
Compression | Compression | No | Smart compression configuration. Note: This field may return null , indicating that no valid value can be obtained. |
DownstreamCapping | DownstreamCapping | No | Download speed limit configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ErrorPage | ErrorPage | No | Error code redirect configuration. Note: This field may return null , indicating that no valid value can be obtained. |
FollowRedirect | FollowRedirect | No | 301 and 302 automatic origin-pull follow-redirect configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ForceRedirect | ForceRedirect | No | Force redirect by access protocol. Note: This field may return null , indicating that no valid value can be obtained. |
Https | Https | No | HTTPS configuration. Note: This field may return null , indicating that no valid value can be obtained. |
IpFilter | IpFilter | No | IP blocklist/allowlist configuration. Note: This field may return null , indicating that no valid value can be obtained. |
IpFreqLimit | IpFreqLimit | No | IP access limiting configuration. Note: This field may return null , indicating that no valid value can be obtained. |
MaxAge | MaxAge | No | Browser cache rules configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Origin | Origin | No | Origin server configuration. Note: This field may return null , indicating that no valid value can be obtained. |
OriginPullOptimization | OriginPullOptimization | No | Cross-border optimization configuration. Note: This field may return null , indicating that no valid value can be obtained. |
RangeOriginPull | RangeOriginPull | No | Range GETs configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Referer | Referer | No | Hotlink protection configuration. Note: This field may return null , indicating that no valid value can be obtained. |
RequestHeader | RequestHeader | No | Origin-pull request header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeader | ResponseHeader | No | Origin server response header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeaderCache | ResponseHeaderCache | No | Follows origin server cache header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Seo | Seo | No | SEO configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ServiceType | String | No | Domain name service type. Values: web (static acceleration); download (download acceleration); media (streaming media acceleration).Note: This field may return null , indicating that no valid value can be obtained. |
StatusCodeCache | StatusCodeCache | No | Status code cache configuration. Note: This field may return null , indicating that no valid value can be obtained. |
VideoSeek | VideoSeek | No | Video dragging configuration. Note: This field may return null , indicating that no valid value can be obtained. |
AwsPrivateAccess | AwsPrivateAccess | No | Access authentication for S3 origin Note: This field may return null , indicating that no valid value can be obtained. |
OssPrivateAccess | OssPrivateAccess | No | Access authentication for OSS origin Note: This field may return null , indicating that no valid value can be obtained. |
HwPrivateAccess | HwPrivateAccess | No | Access authentication for Huawei Cloud OBS origin Note: This field may return null , indicating that no valid value can be obtained. |
QnPrivateAccess | QnPrivateAccess | No | Access authentication for QiNiu Cloud Kodo origin Note: This field may return null , indicating that no valid value can be obtained. |
Mapping between a name and an ID
Used by actions: DescribeMapInfo.
Name | Type | Description |
---|---|---|
Id | Integer | Object ID |
Name | String | Object name |
Browser cache rule configuration, which is used to set the default value of MaxAge
and is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable browser caching. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
MaxAgeRules | Array of MaxAgeRule | No | MaxAge rule Note: This field may return null , indicating that no valid value can be obtained. |
MaxAgeCodeRule | MaxAgeCodeRule | No | MaxAge status code Note: This field may return null , indicating that no valid value can be obtained. |
MaxAge status code
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Action | String | Yes | Action to execute.clear : Clear the cache-control header. |
StatusCodes | Array of String | Yes | Specifies the HTTP status code in the range 400-599. |
MaxAge rules configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
MaxAgeType | String | Yes | Rule types:all : effective for all files.file : effective for specified file suffixes.directory : effective for specified paths.path : effective for specified absolute paths.index : effective for specified homepages. |
MaxAgeContents | Array of String | Yes | Content for each MaxAgeType :For all , enter a wildcard * .For file , enter the suffix, e.g., jpg or txt .For directory , enter the path, e.g., /xxx/test/ .For path , enter the absolute path, e.g., /xxx/test.html .For index , enter a forward slash / .Note: The rule all cannot be deleted. It follows origin by default and can be modified. |
MaxAgeTime | Integer | Yes | MaxAge time (in seconds) Note: The value 0 means not to cache. |
FollowOrigin | String | No | Whether to follow the origin server. Valid values: on and off . If it's on, MaxAgeTime is ignored.Note: This field may return null , indicating that no valid value can be obtained. |
Offline cache feature status switch.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable offline caching. Values:on : Enableoff : Disable |
Complex origin server configurations. The following configurations are supported:
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Origins | Array of String | No | List of primary origin servers When modifying the origins, you need to specify OriginType .Note: This field may return null , indicating that no valid values can be obtained. |
OriginType | String | No | Primary origin server type This field is used together with Origins .Input: domain : Domain namedomainv6 : IPv6 domain namecos : COS bucket addressthird_party : Third-party object storage originigtm : IGTM originip : IP addressipv6 : One IPv6 addressip_ipv6 : Multiple IPv4 addresses and one IPv6 addressip_domain : IP addresses and domain names (only available to beta users)ip_domainv6 : Multiple IPv4 addresses and one IPv6 domain nameipv6_domain : Multiple IPv6 addresses and one domain nameipv6_domainv6 : Multiple IPv6 addresses and one IPv6 domain namedomain_domainv6 : Multiple IPv4 domain names and one IPv6 domain nameip_ipv6_domain : Multiple IPv4 and IPv6 addresses and one domain nameip_ipv6_domainv6 : Multiple IPv4 and IPv6 addresses and one IPv6 domain nameip_domain_domainv6 : Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain nameipv6_domain_domainv6 : Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain nameip_ipv6_domain_domainv6 : Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain nameOutput: image : Cloud Infinite originftp : FTP origin (disused)When modifying Origins , you need to specify OriginType .The IPv6 feature is now only available to beta users. Submit a ticket if you need it. Note: This field may return null , indicating that no valid values can be obtained. |
ServerName | String | No | Origin-pull host header. This field is required when OriginType=cos/third-party .If not specified, this field defaults to the acceleration domain name. For a wildcard domain name, the sub-domain name during the access is used by default. Note: This field may return null , indicating that no valid values can be obtained. |
CosPrivateAccess | String | No | When OriginType is COS, you can specify if access to private buckets is allowed. Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: on and off .Note: This field may return null , indicating that no valid value can be obtained. |
OriginPullProtocol | String | No | Origin-pull protocol configuration http: forced HTTP origin-pull follow: protocol follow origin-pull https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull. Note: This field may return null , indicating that no valid value can be obtained. |
BackupOrigins | Array of String | No | List of secondary origin servers This field is used together with BackupOriginType .Note: This field may return null , indicating that no valid values can be obtained. |
BackupOriginType | String | No | Secondary origin type This field is used together with BackupOrigins .Values: domain : Domain nameip : IP addressThe following secondary origin types are only available to beta users. Submit a ticket to use it. ipv6_domain : Multiple IPv6 addresses and one domain nameip_ipv6 : Multiple IPv4 addresses and one IPv6 addressipv6_domain : Multiple IPv6 addresses and one domain nameip_ipv6_domain : Multiple IPv4 and IPv6 addresses and one domain nameNote: This field may return null , indicating that no valid values can be obtained. |
BackupServerName | String | No | Host header used when accessing the backup origin server. If it is left empty, the ServerName of primary origin server will be used by default.Note: This field may return null , indicating that no valid value can be obtained. |
BasePath | String | No | Origin-pull path Note: This field may return null , indicating that no valid value can be obtained. |
PathRules | Array of PathRule | No | Origin-pull path rewriting configuration Note: This field may return null , indicating that no valid value can be obtained. |
PathBasedOrigin | Array of PathBasedOriginRule | No | Path-based origin-pull configuration Note: This field may return null , indicating that no valid value can be obtained. |
Sni | OriginSni | No | HTTPS origin-pull SNI Note: This field may return null , indicating that no valid values can be obtained. |
AdvanceHttps | AdvanceHttps | No | HTTPS advanced origin-pull configuration Note: This field may return null , indicating that no valid value can be obtained. |
OriginCompany | String | No | Third-party object storage service vendor This field is required when OriginType=third-party .Values: aws_s3 : AWS S3ali_oss : Alibaba Cloud OSShw_obs : Huawei Cloud OBSQiniu_kodo : Qiniu KodoOthers : Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.Note: This field may return null , indicating that no valid values can be obtained. |
Origin-pull authentication advanced configuration
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable advanced origin-pull authentication. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
TypeA | OriginAuthenticationTypeA | No | Authentication type configuration A Note: this field may return null , indicating that no valid values can be obtained. |
Origin-pull authentication advanced configuration TypeA
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
SecretKey | String | Yes | Key used for signature calculation, allowing 6 to 32 bytes of letters and digits. Note: this field may return null , indicating that no valid values can be obtained. |
Merging pull requests configuration item
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull merge. Values:on : Enableoff : Disable |
IP information of CDN intermediate nodes
Used by actions: DescribeCdnOriginIp.
Name | Type | Description |
---|---|---|
Ip | String | Intermediate IP range/intermediate IP. The IP range information is returned by default. |
(Disused) Cross-border origin-pull optimization
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable cross-MLC-border origin-pull optimization. Values:on : Enableoff : Disable |
OptimizationType | String | No | Cross-border types OVToCN: origin-pull from outside mainland China to inside mainland China CNToOV: origin-pull from inside mainland China to outside mainland China Note: This field may return null , indicating that no valid value can be obtained. |
Origin-pull timeout configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
ConnectTimeout | Integer | Yes | The origin-pull connection timeout (in seconds). Valid range: 5-60. Note: This field may return null , indicating that no valid value can be obtained. |
ReceiveTimeout | Integer | Yes | The origin-pull receipt timeout (in seconds). Valid range: 10-300. Note: This field may return null , indicating that no valid value can be obtained. |
HTTPS origin-pull SNI
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable HTTPS origin-pull SNI. Values:on : Enableoff : Disable |
ServerName | String | Yes | Origin-pull domain name. Note: This field may return null , indicating that no valid values can be obtained. |
Access authentication configuration for OSS origin
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable OSS origin-pull authentication. Values:on : Enableoff : Disable |
AccessKey | String | No | Access ID. Note: this field may return null , indicating that no valid values can be obtained. |
SecretKey | String | No | Key. Note: this field may return null , indicating that no valid values can be obtained. |
Region | String | No | Region Note: This field may return null , indicating that no valid value can be obtained. |
Bucket | String | No | BucketName Note: This field may return null , indicating that no valid value can be obtained. |
Origin-pull authentication for other origins
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull authentication for other object storage origins. Values:on : Enableoff : Disable |
AccessKey | String | No | Access ID. Note: This field may return null , indicating that no valid values can be obtained. |
SecretKey | String | No | Key. Note: This field may return null , indicating that no valid values can be obtained. |
Region | String | No | Region. Note: This field may return null , indicating that no valid values can be obtained. |
Bucket | String | No | Bucket name Note: This field may return null , indicating that no valid values can be obtained. |
Specific configuration for domain names outside the Chinese mainland. The UpdateDomainConfig
API only supports modification of some region configurations. A list of differences that may exist for older configurations will be provided for a compatibility check. The supported configuration list is as follows:
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Authentication | Authentication | No | Timestamp hotlink protection configuration. Note: this field may return null , indicating that no valid values can be obtained. |
BandwidthAlert | BandwidthAlert | No | Bandwidth cap configuration. Note: this field may return null , indicating that no valid values can be obtained. |
Cache | Cache | No | Cache rule configuration. Note: This field may return null , indicating that no valid value can be obtained. |
CacheKey | CacheKey | No | Cache configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Compression | Compression | No | Smart compression configuration. Note: This field may return null , indicating that no valid value can be obtained. |
DownstreamCapping | DownstreamCapping | No | Download speed limit configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ErrorPage | ErrorPage | No | Error code redirect configuration. Note: This field may return null , indicating that no valid value can be obtained. |
FollowRedirect | FollowRedirect | No | 301 and 302 automatic origin-pull follow-redirect configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ForceRedirect | ForceRedirect | No | Protocol redirect configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Https | Https | No | HTTPS configuration. Note: This field may return null , indicating that no valid value can be obtained. |
IpFilter | IpFilter | No | IP blocklist/allowlist configuration. Note: This field may return null , indicating that no valid value can be obtained. |
IpFreqLimit | IpFreqLimit | No | IP access limit configuration. Note: This field may return null , indicating that no valid value can be obtained. |
MaxAge | MaxAge | No | Browser cache rules configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Origin | Origin | No | Origin server configuration. Note: This field may return null , indicating that no valid value can be obtained. |
OriginPullOptimization | OriginPullOptimization | No | Cross-border optimization configuration. Note: This field may return null , indicating that no valid value can be obtained. |
RangeOriginPull | RangeOriginPull | No | Range GETs configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Referer | Referer | No | Hotlink protection configuration. Note: This field may return null , indicating that no valid value can be obtained. |
RequestHeader | RequestHeader | No | Origin-pull request header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeader | ResponseHeader | No | Origin server response header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ResponseHeaderCache | ResponseHeaderCache | No | Follows origin server cache header configuration. Note: This field may return null , indicating that no valid value can be obtained. |
Seo | Seo | No | SEO configuration. Note: This field may return null , indicating that no valid value can be obtained. |
ServiceType | String | No | Domain name service type. Values: web (static acceleration); download (download acceleration); media (streaming media acceleration).Note: This field may return null , indicating that no valid value can be obtained. |
StatusCodeCache | StatusCodeCache | No | Status code cache configuration. Note: This field may return null , indicating that no valid value can be obtained. |
VideoSeek | VideoSeek | No | Video dragging configuration. Note: This field may return null , indicating that no valid value can be obtained. |
AwsPrivateAccess | AwsPrivateAccess | No | Access authentication for S3 origin Note: This field may return null , indicating that no valid value can be obtained. |
OssPrivateAccess | OssPrivateAccess | No | Access authentication for OSS origin Note: This field may return null , indicating that no valid value can be obtained. |
HwPrivateAccess | HwPrivateAccess | No | Access authentication for Huawei Cloud OBS origin Note: This field may return null , indicating that no valid value can be obtained. |
QnPrivateAccess | QnPrivateAccess | No | Access authentication for QiNiu Cloud Kodo origin Note: This field may return null , indicating that no valid value can be obtained. |
Path-based origin-pull rule
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | Rule types:file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.index : Apply to specified homepages. |
RulePaths | Array of String | Yes | Content for each RuleType :For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .For index , enter a forward slash / . |
Origin | Array of String | Yes | Origin server list. Domain name and IPv4 addresses are supported. |
Path-based origin-pull configuration rules
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Regex | Boolean | Yes | Whether to enable wildcard match (* ).false : disabledtrue : enabledNote: this field may return null , indicating that no valid value can be obtained. |
Path | String | Yes | Matched URL. Only URLs are supported, while parameters are not. The exact match is used by default. If wildcard match is enabled, up to 5 wildcards are supported. The URL can contain up to 1,024 characters. Note: this field may return null , indicating that no valid values can be obtained. |
Origin | String | No | Origin server when the path matches. COS origin with private read/write is not supported. The default origin server will be used by default when this field is left empty. Note: this field may return null , indicating that no valid values can be obtained. |
ServerName | String | No | Origin server host header when the path matches. The default ServerName will be used by default when this field is left empty.Note: this field may return null , indicating that no valid values can be obtained. |
OriginArea | String | No | Region of the origin server. Valid values: CN and OV .CN : Within the Chinese mainlandOV : Outside the Chinese mainlandDefault value: CN .Note: this field may return null , indicating that no valid values can be obtained. |
ForwardUri | String | No | Origin server URI path when the path matches, starting with / and excluding parameters. The path can contain up to 1,024 characters. The wildcards in the match path can be respectively captured using $1 , $2 , $3 , $4 , and $5 . Up to 10 values can be captured.Note: This field may return null , indicating that no valid value can be obtained. |
RequestHeaders | Array of HttpHeaderRule | No | Origin-pull header setting when the path matches. Note: This field may return null , indicating that no valid value can be obtained. |
FullMatch | Boolean | No | When Regex is false , this parameter should be true .false : Disabledtrue : enabledNote: This field may return null , indicating that no valid value can be obtained. |
Maximum size of the file uploaded for streaming via a POST request
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Maximum size of the file uploaded for streaming via a POST request. Values:on : Enable. When enabled, it is set to 32 MB by default.off : Disable |
MaxSize | Integer | No | Maximum size. Value range: 1 MB to 200 MB. |
Purge task details.
Used by actions: DescribePurgeTasks.
Name | Type | Description |
---|---|---|
TaskId | String | Purge task ID |
Url | String | Purged URL |
Status | String | Purge task statusfail : Purge faileddone : Purge succeededprocess : Purge in progress |
PurgeType | String | Purge typeurl : URL purgepath : directory purge |
FlushType | String | Purge methodflush : purges updated resources; this type is available only for directory purgesdelete : Purge all resources |
CreateTime | Timestamp | Purge task submission time |
Prefetch task details.
Used by actions: DescribePushTasks.
Name | Type | Description |
---|---|---|
TaskId | String | Prefetch task ID |
Url | String | Prefetched URL |
Status | String | Prefetch task statusfail : Prefetch faileddone : Prefetch succeededprocess : Prefetch in progressinvalid : Invalid prefetch with 4XX/5XX status code returned from the origin server |
Percent | Integer | Prefetch progress in percentage |
CreateTime | Timestamp | Prefetch task submission time |
Area | String | Prefetch regionmainland : Within the Chinese mainlandoverseas : Outside the Chinese mainlandglobal : Globe |
UpdateTime | Timestamp | Prefetch task update time Note: This field may return null , indicating that no valid value can be obtained. |
Access authentication for QiNiu Cloud Kodo origin
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull authentication for QiNiu Cloud Kodo. Values:on : Enableoff : Disable |
AccessKey | String | No | Access ID Note: This field may return null , indicating that no valid value can be obtained. |
SecretKey | String | No | Key |
A part of CacheKey
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to include QueryString as part of CacheKey . Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Reorder | String | No | Whether to sort again Note: This field may return null , indicating that no valid value can be obtained. |
Action | String | No | Whether to include URL parameters. Values:includeAll : Include all parameters.excludeAll : Exclude all parameters.includeCustom : Include custom parameters.excludeCustom : Exclude custom parameters.Note: This field may return null , indicating that no valid values can be obtained. |
Value | String | No | Array of included/excluded query strings (separated by ';') Note: This field may return null , indicating that no valid value can be obtained. |
QUIC configuration item
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable QUIC. Values:on : Enableoff : Disable |
Purge/Prefetch available usage and quota
Used by actions: DescribePurgeQuota, DescribePushQuota.
Name | Type | Description |
---|---|---|
Batch | Integer | Quota limit for one batch submission request. |
Total | Integer | Daily submission quota limit. |
Available | Integer | Remaining daily submission quota. |
Area | String | Quota region. |
Range GETs configuration which is enabled by default
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable Range GETs. Values:on : Enableoff : Disable |
RangeRules | Array of RangeOriginPullRule | No | Range GETs configuration Note: This field may return null , indicating that no valid value can be obtained. |
Range GETs configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable Range GETs. Values:on : Enableoff : Disable |
RuleType | String | Yes | Rule types:file : effective for specified file suffixes.directory : effective for specified paths.path : effective for specified absolute paths.Note: this field may return null , indicating that no valid values can be obtained. |
RulePaths | Array of String | Yes | Content for each RuleType :For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .Note: this field may return null , indicating that no valid values can be obtained. |
Host header for 302 redirects
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable the custom origin-pull request to follow the host when a 302 code is returned. Values:on : Enableoff : Disable |
FollowRedirectHost | String | Yes | The custom host header that is sent when the primary origin server follows 302 redirects |
FollowRedirectBackupHost | String | No | The custom host header that is sent when the secondary origin server follows 302 redirects |
Referer blacklist/whitelist configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable referer blocklist/allowlist. Values:on : Enableoff : Disable |
RefererRules | Array of RefererRule | No | Referer blacklist/whitelist configuration rule Note: This field may return null , indicating that no valid value can be obtained. |
Referer blacklist/whitelist configuration rules, which is effective for specific resources.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths. |
RulePaths | Array of String | Yes | Content for each RuleType :For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html . |
RefererType | String | Yes | Referer configuration typeswhitelist : Allowlistblacklist : Blocklist |
Referers | Array of String | Yes | Referer content list |
AllowEmpty | Boolean | Yes | Whether to allow empty referertrue : Allow empty referer when RefererType = whitelist .false : Reject empty refer when RefererType = blacklist . |
Association between a region ID and sub-region IDs.
Used by actions: DescribeMapInfo.
Name | Type | Description |
---|---|---|
RegionId | Integer | Region ID |
SubRegionIdList | Array of Integer | List of sub-region IDs |
Configuration of remote authentication rules. Setting up multiple rules is supported.RemoteAuthenticationRules
and Server
cannot be configured at the same time.
If only Server
is configured, all parameters of RemoteAuthenticationRules
will be set to the default values. The default values are described in each configuration parameter.
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable remote authentication. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
RemoteAuthenticationRules | Array of RemoteAuthenticationRule | No | Remote authentication rule configuration Note: this field may return null , indicating that no valid values can be obtained. |
Server | String | No | Remote authentication server Note: this field may return null , indicating that no valid values can be obtained. |
Remote authentication rule
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Server | String | Yes | Remote authentication server The server configured in RemoteAutherntication is used by default. |
AuthMethod | String | Yes | HTTP method used by the remote authentication server. Valid values: get , post , head , and all . all : the remote authentication server follows the client request method.Default: all |
RuleType | String | Yes | Rule types:all : apply to all filesfile : apply to files with the specified suffixesdirectory : apply to the specified directoriespath : apply to the specified absolute pathsDefault: all . |
RulePaths | Array of String | Yes | Content for each RuleType :For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .For index , enter a forward slash / .Default: * |
AuthTimeout | Integer | Yes | Timeout period of the remote authentication server. Unit: ms. Value range: [1, 30,000] Default: 20000 |
AuthTimeoutAction | String | Yes | Whether to deny or allow the request when the remote authentication server is timed out:RETURN_200 : the request is allowed when the remote authentication server is timed out.RETURN_403 : the request is denied when the remote authentication server is timed out.Default: RETURN_200 |
CDN report data
Used by actions: DescribeReportData.
Name | Type | Description |
---|---|---|
ResourceId | String | Project ID/domain name ID. |
Resource | String | Project name/domain name. |
Value | Integer | Total traffic/max bandwidth in bytes and bps, respectively. |
Percentage | Float | Percentage of individual resource out of all resources. |
BillingValue | Integer | Total billable traffic/max billable bandwidth in bytes and bps, respectively. |
BillingPercentage | Float | Percentage of billable amount out of total amount. |
Custom request header configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable custom request headers. Values:on : Enableoff : Disable |
HeaderRules | Array of HttpHeaderPathRule | No | Custom request header configuration rules Note: This field may return null , indicating that no valid value can be obtained. |
Billing data details
Used by actions: DescribeBillingData.
Name | Type | Description |
---|---|---|
Resource | String | Resource name, which is classified as follows based on different query filters: When a domain name is specified: Details of the domain name multiDomains : Aggregated details of multiple domain namesA specific project ID: ID of the specifically queried project all : Details at the account level |
BillingData | Array of CdnData | Billing data details |
This API is used to query an object and its access details.
Used by actions: DescribeCdnData, DescribeIpVisit.
Name | Type | Description |
---|---|---|
Resource | String | Resource name. A single domain name: Queries domain name details by a domain name. The details of the domain name will be displayed when the passed parameter detail is true .Multiple domain names: Queries domain name details by multiple domain names. The aggregated details of the domain names will be displayed. Project ID: Queries domain name details by a project ID. The aggregated details of the domain names of the project will be displayed. all : Account-level data, which is aggregated details of all domain names of an account. |
CdnData | Array of CdnData | Data details of a resource |
This API is used to query an object and its origin-pull details.
Used by actions: DescribeOriginData.
Name | Type | Description |
---|---|---|
Resource | String | Resource name, which is classified as follows based on different query filters: A specific domain name: Details of the domain name multiDomains : Aggregated details of multiple domain namesProject ID: ID of the specifically queried project all : Details at the account level |
OriginData | Array of CdnData | Origin-pull data details |
Custom response header configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable custom response headers. Values:on : Enableoff : Disable |
HeaderRules | Array of HttpHeaderPathRule | No | Custom response header rules Note: This field may return null , indicating that no valid value can be obtained. |
Origin server header cache configuration. This is enabled by default and caches all the header information.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable response header caching. Values:on : Enableoff : Disable |
Whether to forward to the origin server for verification
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable origin-pull authentication. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Path | String | No | Forwards to the origin server for verification only for specific request path Note: This field may return null , indicating that no valid value can be obtained. |
Path-based cache rule configuration
The cache expiration time for all files is 30 days by default.
Static acceleration type domain names .php, .jsp, .asp, and .aspx are not cached by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RulePaths | Array of String | Yes | Content for each CacheType :For all , enter a wildcard * .For file , enter the suffix, e.g., jpg or txt .For directory , enter the path, e.g., /xxx/test/ .For path , enter the absolute path, e.g., /xxx/test.html .For index , enter a forward slash / .Note: This field may return null , indicating that no valid values can be obtained. |
RuleType | String | Yes | Rule types:all : effective for all files.file : effective for specified file suffixes.directory : effective for specified paths.path : effective for specified absolute paths.index : homepage.Note: This field may return null , indicating that no valid values can be obtained. |
CacheConfig | RuleCacheConfig | Yes | Cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
Path cache configuration, choose one from the following three cache modes.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Cache | CacheConfigCache | Yes | Cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
NoCache | CacheConfigNoCache | Yes | No cache configuration Note: This field may return null , indicating that no valid value can be obtained. |
FollowOrigin | CacheConfigFollowOrigin | Yes | Follows the origin server configuration Note: This field may return null , indicating that no valid value can be obtained. |
Rule engine configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable rule engine. Values:on : Enableoff : Disable |
Content | String | No | Rule Note: This field may return null , indicating that no valid values can be obtained. |
Configuration to retain query strings for this path
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to include query string parameters. Values:on : Include QueryString as part of CacheKey .off : Do not include QueryString as part of CacheKey .Note: This field may return null , indicating that no valid values can be obtained. |
Action | String | Yes | includeCustom will retain partial query stringsNote: This field may return null , indicating that no valid value can be obtained. |
Value | String | Yes | Array of included/excluded query strings (separated by ';') Note: This field may return null , indicating that no valid value can be obtained. |
SCDN access control
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SCDN access. Values:on : Enableoff : Disable |
ScriptData | Array of ScdnAclGroup | No | This field is disused. Please use AdvancedScriptData instead.Note: this field may return null , indicating that no valid values can be obtained. |
ErrorPage | ScdnErrorPage | No | Error page configuration Note: this field may return null , indicating that no valid values can be obtained. |
AdvancedScriptData | Array of AdvancedScdnAclGroup | No | ACL rule group, which is required when the access control is on. Note: This field may return null , indicating that no valid value can be obtained. |
SCDN precise access control configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
RuleName | String | Yes | Rule name |
Configure | Array of ScdnAclRule | Yes | Specific configurations |
Result | String | Yes | Action. Valid values: intercept and redirect . |
Status | String | No | Whether the rule is activated. Valid values: active and inactive . |
ErrorPage | ScdnErrorPage | No | Error page configuration Note: This field may return null , indicating that no valid value can be obtained. |
Precise access control match rule
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
MatchKey | String | Yes | Keyword |
LogiOperator | String | Yes | Logical operator. Valid values: |
MatchValue | String | Yes | Matched value |
Bot configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SCDN bot configuration. Values:on : Enableoff : Disable |
BotCookie | Array of BotCookie | No | Bot cookie policy Note: this field may return null , indicating that no valid values can be obtained. |
BotJavaScript | Array of BotJavaScript | No | Bot JS policy Note: this field may return null , indicating that no valid values can be obtained. |
SCDN custom CC rules
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | Rule types:all : effective for all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.index : effective for web homepages and root directories. |
RuleValue | Array of String | Yes | Rule value (blocking condition) |
Qps | Integer | No | IP access limit rule |
DetectionTime | Integer | No | Detection granularity Note: this field may return null , indicating that no valid values can be obtained. |
FrequencyLimit | Integer | No | Frequency threshold Note: this field may return null , indicating that no valid values can be obtained. |
PunishmentSwitch | String | No | Whether to enable IP blocking. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
PunishmentTime | Integer | No | Suspicious IP restriction duration Note: this field may return null , indicating that no valid values can be obtained. |
Action | String | No | Action. Valid values: intercept and redirect .Note: this field may return null , indicating that no valid values can be obtained. |
RedirectUrl | String | No | The redirection target URL used when the Action is redirect Note: this field may return null , indicating that no valid values can be obtained. |
CC attack defense configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SCDN CC configuration. Values:on : Enableoff : Disable |
Rules | Array of ScdnCCRules | No | Custom CC attack defense rule Note: this field may return null , indicating that no valid values can be obtained. |
AdvancedRules | Array of AdvancedCCRules | No | Advanced custom CC attack defense rule Note: This field may return null , indicating that no valid value can be obtained. |
GlobalAdvancedRules | Array of AdvancedCCRules | No | Global advanced CC protection rules Note: This field may return null , indicating that no valid values can be obtained. |
DDoS configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SCDN DDoS configuration. Values:on : Enableoff : Disable |
ACL error page
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
RedirectCode | Integer | Yes | Status code403 is passed in when the action is intercept .301 is passed in when the action is redirect . |
RedirectUrl | String | Yes | URL to be redirected |
SCDN layer-7 rule configuration for CC frequency limiting
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
CaseSensitive | Boolean | Yes | Whether values are case sensitive |
RuleType | String | Yes | Rule types:protocol : protocol. Valid values: HTTP and HTTPS .method : request method. Valid values: HEAD , GET , POST , PUT , OPTIONS , TRACE , DELETE , PATCH and CONNECT .all : domain name. The matching content is * and cannot be edited.ip : IP in CIDR format.directory : path starting with a slash (/). You can specify a directory or specific path using up to 128 characters.index : default homepage, which is specified by /;/index.html and cannot be edited.path : full path of the file, such as /acb/test.png . Wildcard is supported, such as /abc/*.jpg .file : file extension, such as jpg , png and css .param : request parameter. The value can contain up to 512 characters.referer : Referer. The value can contain up to 512 characters.cookie : Cookie. The value can contain up to 512 characters.user-agent : User-Agent. The value can contain up to 512 characters.head : custom header. The value can contain up to 512 characters. If the matching content is blank or does not exist, enter the matching parameter directly. |
LogicOperator | String | Yes | Logical operator, which connects the relation between RuleType and RuleValue. Valid values:exclude : the rule value is not contained. include : the rule value is contained. notequal : the rule value is not equal to the specified rule type. equal : the rule value is equal to the specified rule type. matching : the rule value matches with the prefix of the specified rule type.null : the rule value is empty or does not exist. |
RuleValue | Array of String | No | Rule value Note: this field may return null , indicating that no valid values can be obtained. |
RuleParam | String | No | Matched parameter. Only request parameters, Cookie, and custom request headers have a value. Note: this field may return null , indicating that no valid values can be obtained. |
WAF configuration
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SCDN WAF configuration. Values:on : Enableoff : Disable |
Mode | String | No | WAF protection mode. Valid values: intercept and observe . Default value: intercept .Note: this field may return null , indicating that no valid values can be obtained. |
ErrorPage | ScdnErrorPage | No | Redirection error page Note: this field may return null , indicating that no valid values can be obtained. |
WebShellSwitch | String | No | Whether to enable webshell blocking. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Rules | Array of ScdnWafRule | No | Attack blocking rules Note: this field may return null , indicating that no valid values can be obtained. |
Level | Integer | No | WAF rule level. Valid values: 100, 200, and 300. Note: This field may return null , indicating that no valid value can be obtained. |
SubRuleSwitch | Array of WafSubRuleStatus | No | Whether to enable WAF sub-rules. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
WAF rule information
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
AttackType | String | Yes | Attack type |
Operate | String | Yes | Defense action. Valid value: observe . |
A part of CacheKey
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable scheme as part of the cache key. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
SCDN configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Description |
---|---|---|
Switch | String | Whether to enable SCDN. Values:on : Enableoff : Disable |
SEO configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable SEO. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
HTTPS acceleration server certificate configuration:
Used by actions: AddCdnDomain, DescribeDomains, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CertId | String | No | Server certificate ID, which is auto-generated when the certificate is being managed by the SSL Certificate Service Note: This field may return null , indicating that no valid values can be obtained. |
CertName | String | No | Server certificate name This is auto-generated when the certificate is being hosted by the SSL Certificate Service Note: This field may return null , indicating that no valid value can be obtained. |
Certificate | String | No | Server certificate information This is required when uploading an external certificate, which should contain the complete certificate chain. Note: This field may return null , indicating that no valid value can be obtained. |
PrivateKey | String | No | Server key information This is required when uploading an external certificate. Note: This field may return null , indicating that no valid value can be obtained. |
ExpireTime | Timestamp | No | Time when the certificate expires Can be left blank when used as an input parameter Note: This field may return null , indicating that no valid value can be obtained. |
DeployTime | Timestamp | No | Certificate issuance time Can be left blank when used as an input parameter Note: This field may return null , indicating that no valid value can be obtained. |
Message | String | No | Certificate remarks Note: This field may return null , indicating that no valid value can be obtained. |
From | String | No | Certificate source Note: This field may return null , indicating that no valid value can be obtained. |
Shared CNAME configuration
ShareCname is only available to beta users. Submit a ticket if you need it.
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable Shared CNAME. Values:on : Enable. When enabled, it uses a shared CNAME.off : Disable. When disabled, it uses a default CNAME. |
Cname | String | No | Shared CNAME to be configured Note: this field may return null , indicating that no valid values can be obtained. |
Cache configuration basic version
The cache expiration time for all files is 30 days by default.
Static acceleration type domain names .php, .jsp, .asp, and .aspx are not cached by default
Note: this version does not support setting cache expiration rules if the origin server does not return max-age
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CacheRules | Array of SimpleCacheRule | Yes | Cache expiration time rules Note: This field may return null , indicating that no valid value can be obtained. |
FollowOrigin | String | Yes | Follows origin server Cache-Control: max-age configurationson : Enableoff : DisableIf this is enabled, resources that do not match CacheRules rules will be cached by the node according to the max-age value returned by the origin server. Resources that match CacheRules rules will be cached on the node according to the cache expiration time set in CacheRules. This conflicts with CompareMaxAge. The two cannot be enabled at the same time. Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreCacheControl | String | Yes | Forced cacheon : Enableoff : DisableThis is disabled by default. If enabled, the no-store and no-cache resources returned from the origin server will be cached according to CacheRules rules.Note: This field may return null , indicating that no valid value can be obtained. |
IgnoreSetCookie | String | Yes | Ignores the Set-Cookie header of the origin serveron : Enableoff : DisableIt is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
CompareMaxAge | String | Yes | Advanced cache expiration configuration. If this is enabled, the max-age value returned by the origin server will be compared with the cache expiration time set in CacheRules, and the smallest value will be cached on the node.on : Enableoff : DisableIt is disabled by default. Note: This field may return null , indicating that no valid value can be obtained. |
Revalidate | Revalidate | No | Always forwards to the origin server for verification Note: This field may return null , indicating that no valid value can be obtained. |
Cache expiration rules configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
CacheType | String | Yes | Rule types:all : Apply to all files.file : Apply to files with the specified suffixes.directory : Apply to specified paths.path : Apply to specified absolute paths.index: home page |
CacheContents | Array of String | Yes | Content for each CacheType :For all , enter a wildcard * .For file , enter a suffix, e.g., jpg or txt .For directory , enter a path, e.g., /xxx/test/ .For path , enter an absolute path, e.g., /xxx/test.html .For index , enter a forward slash / . |
CacheTime | Integer | Yes | Cache expiration time settings Unit: second. The maximum value is 365 days. |
Sorting conditions for query results.
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Key | String | No | Fields that can be sorted. Currently supports:createTime : domain name creation time.certExpireTime : certificate expiration time.Default value: createTime. |
Sequence | String | No | asc/desc. Default value: desc. |
Specific configuration for domain names inside and outside mainland China by regions.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Mainland | MainlandConfig | No | Specific configuration for domain name inside mainland China. Note: This field may return null , indicating that no valid value can be obtained. |
Overseas | OverseaConfig | No | Specific configuration for domain name outside mainland China. Note: This field may return null , indicating that no valid value can be obtained. |
Usage limit configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Type | String | No | Type of usage limit. total : Cumulative usage; moment : Instantaneous usage.Note: This field may return null , indicating that no valid value can be obtained. |
UnBlockTime | Integer | No | Unblocking time Note: This field may return null , indicating that no valid value can be obtained. |
BpsThreshold | Integer | No | Bandwidth/Traffic threshold Note: This field may return null , indicating that no valid value can be obtained. |
CounterMeasure | String | No | Specifies how to disable CDN service when the threshold is exceeded. RETURN_404 : Return 404; RESOLVE_DNS_TO_ORIGIN : Forward to origin server.Note: This field may return null , indicating that no valid value can be obtained. |
AlertPercentage | Integer | No | Threshold (in percentage) that triggers alarms Note: This field may return null , indicating that no valid value can be obtained. |
AlertSwitch | String | No | Whether to enable alerts for cumulative usage limit. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Metric | String | No | Metric type. flux : Traffic; bandwidth : Bandwidth.Note: This field may return null , indicating that no valid value can be obtained. |
Cycle | Integer | No | |
Switch | String | No | Whether to enable cumulative usage limit. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Status code cache expiration configuration. 404 status codes are cached for 10 seconds by default
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable status code caching. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
CacheRules | Array of StatusCodeCacheRule | No | Status code cache expiration rules details Note: This field may return null , indicating that no valid value can be obtained. |
Status code cache expiration time rule configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
StatusCode | String | Yes | HTTP status code Supports 403 and 404 status codes |
CacheTime | Integer | Yes | Status code cache expiration time (in seconds) |
Aggregated value, which is aggregated from all data of each metric. Aggregation methods are used depending on the metric attributes.
Used by actions: DescribeBillingData, DescribeCdnData, DescribeIpVisit, DescribeOriginData.
Name | Type | Description |
---|---|---|
Name | String | Aggregation method, which can be:sum : Aggregate summationmax : Maximum value. In bandwidth mode, the peak bandwidth is calculated based on the data aggregated in 5 minutes.avg : Average value |
Value | Float | Aggregated value |
Domain name tag configuration
Used by actions: AddCdnDomain, DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
TagKey | String | Yes | Tag key Note: This field may return null , indicating that no valid value can be obtained. |
TagValue | String | Yes | Tag value Note: This field may return null , indicating that no valid value can be obtained. |
Timestamp and its corresponding value
Used by actions: DescribeBillingData, DescribeCdnData, DescribeIpVisit, DescribeOriginData.
Name | Type | Description |
---|---|---|
Time | Timestamp | The start point of the sampling period. For example, if the time is set to 13:35:00, and interval is 5min , the data returned is collected between 13:35:00 and 13:39:59 |
Value | Float | Data value |
Data structure of sorted data
Used by actions: ListTopData.
Name | Type | Description |
---|---|---|
Resource | String | Resource name, which is classified as follows based on different query conditions: A specific domain name: This indicates the details of this domain name multiDomains: This indicates the aggregate details of multiple domain names Project ID: This displays the ID of the specifically queried project all: This indicates the details at the account level |
DetailData | Array of TopDetailData | Detailed sorting results |
Data structure of sorted data
Used by actions: ListTopData.
Name | Type | Description |
---|---|---|
Name | String | Datatype name |
Value | Float | Data value |
CLS topic information
Used by actions: ListClsLogTopics.
Name | Type | Description |
---|---|---|
TopicId | String | Topic ID |
TopicName | String | Topic name |
Enabled | Integer | Whether to enable publishing |
CreateTime | Timestamp | Creation time Note: This field may return null , indicating that no valid value can be obtained. |
Channel | String | Either cdn or ecdn .Note: This field may return null , indicating that no valid value can be obtained. |
Deleted | String | Whether the logset has been removed from CLS Note: This field may return null , indicating that no valid value can be obtained. |
Image optimization - TpgAdapter
configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | No | Whether to enable TpgAdapter for image optimization. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
Details of the blocked URLs
Used by actions: GetDisableRecords.
Name | Type | Description |
---|---|---|
Status | String | Status. disable : Blocked; enable : Unblocked.Note: This field may return null , indicating that no valid value can be obtained. |
RealUrl | String | Corresponding URL Note: This field may return null , indicating that no valid value can be obtained. |
CreateTime | String | Creation time Note: This field may return null , indicating that no valid value can be obtained. |
UpdateTime | String | Update time. Note: This field may return null , indicating that no valid value can be obtained. |
Configuration of URL rewriting
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable URL rewriting. Values:on : Enableoff : Disable |
PathRules | Array of UrlRedirectRule | No | Rule of URL rewriting rule, which is required if Switch is on . There can be up to 10 rules.Note: this field may return null , indicating that no valid value can be obtained. |
URL redirect rule configuration
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RedirectStatusCode | Integer | Yes | Redirect status code. Valid values: 301, 302 |
Pattern | String | Yes | URL to be matched. Only URLs are supported, while parameters are not. The exact match is used by default. In regex match, up to 5 wildcards * are supported. The URL can contain up to 1,024 characters. |
RedirectUrl | String | Yes | Target URL, starting with / and excluding parameters. The path can contain up to 1,024 characters. The wildcards in the matching path can be respectively captured using $1 , $2 , $3 , $4 , and $5 . Up to 10 values can be captured. |
RedirectHost | String | No | Target host. It should be a standard domain name starting with http:// or https:// . If it is left empty, “http://[current domain name]” will be used by default.Note: This field may return null , indicating that no valid value can be obtained. |
FullMatch | Boolean | No | Whether to use full-path matching or arbitrary matching Note: This field may return null , indicating that no valid value can be obtained. |
UserAgent
blacklist/whitelist configuration
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable User-Agent blocklist/allowlist. Values:on : Enableoff : DisableNote: This field may return null , indicating that no valid values can be obtained. |
FilterRules | Array of UserAgentFilterRule | No | UA blacklist/whitelist effect rule list Note: This field may return null , indicating that no valid value can be obtained. |
UserAgent
blacklist/whitelist rule configuration
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
RuleType | String | Yes | Effective access path typeall : All access paths are effectivefile : Effective by file extensiondirectory : Effective by directorypath : Effective by full access pathNote: This field may return null , indicating that no valid value can be obtained. |
RulePaths | Array of String | Yes | Effective access paths Note: This field may return null , indicating that no valid value can be obtained. |
UserAgents | Array of String | Yes | UserAgent listNote: This field may return null , indicating that no valid value can be obtained. |
FilterType | String | Yes | Blocklist or allowlist. Valid values: blacklist , whitelist Note: This field may return null , indicating that no valid value can be obtained. |
Video dragging configuration. This is disabled by default.
Used by actions: AddCdnDomain, DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable video dragging. Values:on : Enableoff : Disable |
Details of URLs in violation
Used by actions: DescribeUrlViolations.
Name | Type | Description |
---|---|---|
Id | Integer | ID |
RealUrl | String | Origin access URL of the resource in violation |
DownloadUrl | String | Snapshot path. This is used to display a snapshot of the content in violation on the console. |
UrlStatus | String | Current status of non-compliant resourceforbid : Blockedrelease : Unblockeddelay : Processing delayedreject : Appeal dismissed. It is still in forbid status.complain : Appeal in process |
CreateTime | Timestamp | Creation time |
UpdateTime | Timestamp | Update time |
WAF sub-rule switch status
Used by actions: UpdateScdnDomain.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable WAF sub-rules. Values:on : Enableoff : Disable |
SubIds | Array of Integer | Yes | List of rule IDs |
WebSocket configuration.
WebSocket is an ECDN feature. You can enable it in the ECDN domain name configuration.
Used by actions: DescribeDomainsConfig, UpdateDomainConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | Yes | Whether to enable WebSocket connection timeout. Values:on : When it's enabled, the connection timeout can be configured.off : When it's disabled, the connection timeout is set to 15 seconds by default. |
Timeout | Integer | No | Sets timeout period in seconds. Maximum value: 300 Note: this field may return null , indicating that no valid values can be obtained. |
Image optimization - WebpAdapter
configuration
Used by actions: DescribeDomainsConfig.
Name | Type | Required | Description |
---|---|---|---|
Switch | String | No | Whether to enable WebpAdapter for image optimization. Values:on : Enableoff : DisableNote: This field may return· null , indicating that no valid values can be obtained. |
문제 해결에 도움이 되었나요?