tencent cloud

DocumentaçãoTencent Cloud EdgeOne

Data Types

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-27 15:40:34

AICrawlerDetection

Specific configuration for AI crawler detection.

Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

Name Type Required Description
Enabled String No Whether AI crawler detection is enabled. Valid values:
  • on: Enable;
  • off: Disable.

  • Action SecurityAction No Execution action of AI crawler detection. Required if Enabled is on. Name of SecurityAction only supports:
  • Deny: block;
  • Monitor: observation;
  • Allow: Allow access;
  • Challenge: Among them, ChallengeOption in ChallengeActionParameters only supports JSChallenge and ManagedChallenge.
  • APIResource

    API resource.

    Used by actions: CreateSecurityAPIResource, DescribeSecurityAPIResource, ModifySecurityAPIResource.

    Name Type Required Description
    Id String No Resource ID.
    Name String No Resource name.
    APIServiceIds Array of String No List of API service IDs associated with the API resource.
    Path String No Resource path.
    Methods Array of String No Request method list. Supports the following values: GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE.
    RequestConstraint String No Specific content of the request content matching rule. It must comply with the expression syntax. For detailed specifications, see the product document.

    APIService

    API service configuration.

    Used by actions: CreateSecurityAPIService, DescribeSecurityAPIService, ModifySecurityAPIService.

    Name Type Required Description
    Id String No API service ID.
    Name String No API service name.
    BasePath String No Base path.

    AWSS3

    Destination information of the AWS S3 bucket. EdgeOne is authorized to deliver real-time logs to your AWS S3 bucket through an IAM role and an external ID, with no need to provide a long-term access key. For details, see Delivering Logs to AWS S3.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Endpoint String Yes Service endpoint domain name of the AWS S3 bucket. For valid values, see AWS Endpoints. Example: s3.us-west-2.amazonaws.com.
    BucketName String Yes

    Name of the AWS S3 bucket. You can view the bucket name in the Buckets list in the AWS S3 console.

    It must be 3 to 63 characters in length, contain only lowercase letters, digits, periods (.), and hyphens (-), and start and end with a letter or a digit.

    Path String Yes

    Directory path where log files are stored in the AWS S3 bucket. Multiple directory levels can be created by separating with /. It cannot contain relative path segments such as ./.., and the total path length cannot exceed 1024 bytes.

    If the directory path exists, it is used directly; if it does not exist, it is automatically created.

    Directory names can only consist of letters, digits, and !-_.*'().

    Example: eo-logs/l7-access-logs.

    RoleARN String Yes

    ARN of the IAM role that authorizes EdgeOne to access the AWS S3 bucket.

    You need to first create an IAM role in your AWS account that grants EdgeOne write permissions (for how to create it, see Delivering Logs to AWS S3). After creation, you can view and copy the ARN at the top of the role details page in the AWS IAM console.

    Example: arn:aws:iam::123456789012:role/eo-logs.

    CompressType String No

    Data compression type. Valid values:

    • gzip: gzip compression.
    If left empty, compression is disabled.

    AccelerateMainland

    Acceleration optimization configuration for the Chinese mainland.

    Used by actions: CreateApplicationProxy, DescribeApplicationProxies, DescribeZoneSetting, ModifyApplicationProxy.

    Name Type Required Description
    Switch String Yes Whether acceleration optimization configuration is enabled for the Chinese mainland. Valid values:
  • on: Enable;
  • off: Disable.
  • AccelerateMainlandParameters

    Acceleration optimization configuration in Chinese mainland.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Mainland China acceleration optimization configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • AccelerateType

    Acceleration type

    Used by actions: DescribeHostsSetting.

    Name Type Required Description
    Switch String Yes Acceleration switch. Value range:
  • on: Enable;
  • off: Disable.
  • AccelerationDomain

    Acceleration domain name

    Used by actions: DescribeAccelerationDomains.

    Name Type Description
    ZoneId String

    Site ID.

    DomainName String

    Acceleration domain name.

    DomainStatus String

    Acceleration domain name status

    Enumeration values:

    • online: effective
    • process: deploying
    • offline: disabled
    • init: not applied, site to be activated
    Cname String

    CNAME address.

    IPv6Status String

    IPv6 status. Valid values:

  • follow: Follow the site IPv6 configuration;
  • on: Enabled;
  • off: Disabled.
  • IdentificationStatus String

    Acceleration domain ownership verification status. Valid values:

  • pending: to be verified;
  • finished: verified.
  • OwnershipVerification OwnershipVerification

    When the acceleration domain name needs to perform ownership verification to continue providing services, this object will carry the information required for the corresponding verification method.

    OriginDetail OriginDetail

    Origin server information.

    OriginProtocol String

    Origin-pull protocol. Valid values:

  • FOLLOW: follow protocol;
  • HTTP: origin-pull over HTTP protocol;
  • HTTPS: origin-pull over HTTPS protocol.
  • HttpOriginPort Integer

    HTTP origin port.

    HttpsOriginPort Integer

    HTTPS origin port.

    Certificate AccelerationDomainCertificate

    Acceleration domain name certificate information.

    CreatedOn Timestamp ISO8601

    Creation time.

    ModifiedOn Timestamp ISO8601

    Last modified.

    ComplianceRestrictions Array of ComplianceRestriction

    List of region access restrictions on a domain name due to compliance issues.

    AccelerationDomainCertificate

    Certificate information of the acceleration domain name.

    Used by actions: DescribeAccelerationDomains.

    Name Type Required Description
    Mode String No Mode for configuring the server certificate. Valid values:
    • disable: Do not configure a server certificate.
    • eofreecert: Apply for a free certificate through automatic verification and deploy it. For details on the verification method, see Supported Verification Methods for Free Certificate Application. - In NS or DNSPod hosting access mode, free certificates can only be applied for through automatic verification. - If the free certificate application fails, the certificate deployment will fail. You can obtain the failure reason through the Check Free Certificate Application Result API.
    • eofreecert_manual: Deploy a free certificate applied for through DNS delegated verification or file verification. Before deploying a free certificate, you need to trigger the Apply for Free Certificate API to apply for a free certificate. After the free certificate application succeeds, you can use this enumeration value to deploy the free certificate.
      • Note: When deploying a free certificate, ensure that a successfully applied free certificate already exists. You can check whether a successfully applied free certificate already exists through the Check Free Certificate Application Result API.
    • sslcert: Configure an SSL managed server certificate.
    List Array of CertificateInfo No List of server certificates. The related certificates are deployed at the EO entry side.
    ClientCertInfo MutualTLS No In the edge mutual authentication scenario, this field represents the client's CA certificate, which is deployed inside the EO node and used for EO node authentication of the client certificate.
    UpstreamCertInfo UpstreamCertInfo No Used to enable or disable origin-pull mutual authentication and origin certificate verification. The certificate for origin-pull mutual authentication is carried during EO origin-pull. The origin server can choose to verify this certificate to ensure the request originates from a trusted EO node. When origin certificate verification is enabled, the certificate configuration is used for EO nodes to verify whether the origin certificate is trustworthy.

    AccessURLRedirectParameters

    Access URL redirection configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    StatusCode Integer No

    Status code, value is one of 301, 302, 303, 307, 308.

    Protocol String No

    Target request protocol.

    Enumeration values:

    • http: The target request protocol is HTTP.
    • https: The target request protocol is HTTPS.
    • follow: Follow request.
    HostName HostName No

    Target HostName.

    URLPath URLPath No

    Target path.

    QueryString AccessURLRedirectQueryString No

    Query string.

    Port AccessURLRedirectPort No

    Target port configuration.

    If this parameter is not specified, it is processed in FollowProtocol mode, meaning the redirect address does not explicitly specify a port. The target protocol uses the default port: 80 for HTTP and 443 for HTTPS.

    AccessURLRedirectPort

    Access URL redirected destination port configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String No

    Target port configuration

    Enumeration values:

    • FollowProtocol: Use the default port of the target protocol. The port is not explicitly specified in the redirect address. The target protocol uses its default port: 80 for HTTP and 443 for HTTPS.
    • FollowRequest: Follow the target port of the client request. If the request address explicitly carries a port, continue to use that port. If not, the redirect address does not carry a port.
    • Custom: Use the designated custom port.
    Value Integer No

    Custom destination port.

    Value range: [1, 65535]

    Required when Action is Custom. It is ineffective when Action is FollowProtocol or FollowRequest.

    AccessURLRedirectQueryString

    Access URL redirection configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String No Execution action. Valid values:
  • full: retain all;
  • ignore: Ignore all.
  • AccountProtectionSettings

    Account protection configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No

    Account protection feature switch.

    Enumeration values:

    • on: Enable;
    • off: Disable.

    Default value: off.

    RequestPurpose String No

    Request target. Used to identify the business operation scenario the request belongs to.

    Enumeration values:

    • ACCOUNT.CHANGE_PASSWORD: request to change the password when the original password is known;
    • ACCOUNT.CHANGE_SECURITY_QUESTION: request to modify the account security question;
    • ACCOUNT.CHECK_EXISTENCE: request to verify whether the account exists, commonly used for pre-verification after entering an email or phone number on the login or registration page;
    • ACCOUNT.LOGIN: request to log in to an account;
    • ACCOUNT.REGISTER: request to sign up for a new account;
    • ACCOUNT.RESET_PASSWORD: request to reset the password, usually by verifying identity through email or SMS and then setting a new password;
    • ACCOUNT.UPDATE: request to modify account association information, such as phone number, email, payment card number, shipping address, etc.;
    • ASSET.CHECK_GIFTCARD_BALANCE: request to query the gift card balance by card number and other information;
    • ASSET.CHECK_LOYALTY_POINTS: request to query the account point balance;
    • ASSET.REDEEM_CODE: request to exchange rights and interests using a redemption code;
    • BROWSE.QUERY: request for in-site search of products or services;
    • PAYMENT.ADD_TO_CART: request to add merchandise to the shopping cart;
    • PAYMENT.GET_METHODS: request to obtain the list of payment methods bound to the account;
    • PAYMENT.MAKE_PAYMENT: request to submit a payment, settlement, or fund transfer.
    UserIDSource String No

    The location of the user identity in the request source, where key is replaced with the actual parameter name.

    Valid values:

    • http.request.cookies["key"]: Obtain the Cookie value named key from the Cookie;
    • http.request.headers["key"]: Obtain the header value named key from the request header;
    • http.request.uri.args["key"]: Obtain the parameter value named key from the URL query parameter.
    UserRiskProfile UserRiskProfile No

    User Risk Level configuration.

    AclCondition

    Precise protection condition

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    MatchFrom String Yes Matching field. Valid values:
  • host: request domain name;
  • sip: Client IP;
  • ua:User-Agent;
  • cookie: Session cookie;
  • cgi: CGI script;
  • xff: XFF extension header;
  • url: Request URL;
  • accept: request content type;
  • method: request method;
  • header: request header;
  • app_proto: application layer protocol;
  • sip_proto: network layer protocol;
  • uabot: UA feature rule, available only for bot custom rules;
  • idcid: IDC rule, only available for bot custom rules;
  • sipbot: search engine rule, available only for bot custom rules;
  • portrait: profile analysis, available only for bot custom rules;
  • header_seq: Request header sequence, only available for bot custom rules;
  • hdr: Request body, available only for custom rules in Web protection.
  • MatchParam String Yes Matching string. When MatchFrom is header, the key of the header can be set to this parameter.
    Operator String Yes Matching relationship. Valid values:
  • equal: string equals;
  • not_equal: value not equal to;
  • include: string containing;
  • not_include: string does not contain;
  • match: ip match;
  • not_match: ip not matched;
  • include_area: region inclusion;
  • is_empty: field with null value;
  • not_exists: key field not found;
  • regexp: regular expression matching;
  • len_gt: value greater than;
  • len_lt: value is less than;
  • len_eq: value equal to;
  • match_prefix: prefix match;
  • match_suffix: suffix matching;
  • wildcard: wildcard.
  • MatchContent String Yes Matching content.

    AclConfig

    ACL configurations.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • AclUserRules Array of AclUserRule Yes User-defined rules.
    Customizes Array of AclUserRule No Managed custom rule

    AclUserRule

    User-defined rules

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    RuleName String Yes Rule name.
    Action String Yes Penalty action. Valid values:
  • trans: pass;
  • drop: block;
  • monitor: observation;
  • ban: IP block;
  • redirect: Redirection;
  • page: Specified page;
  • alg: JavaScript challenge.
  • RuleStatus String Yes Rule status. Valid values:
  • on: Take effect;
  • off: Disable.
  • AclConditions Array of AclCondition Yes Custom rule.
    RulePriority Integer Yes Rule priority. Value range: 0-100.
    RuleID Integer No Rule Id. Output only.
    UpdateTime String No Update time. For output usage only.
    PunishTime Integer No Penalty duration for ip blocking. Required when Action is ban. It cannot be empty and the value ranges from 0 to 2 days.
    PunishTimeUnit String No Penalty time unit for ip blocking. Valid values:
  • second: second;
  • minutes: minute;
  • hour: hour.
  • Default: second.
    Name String No Name of the custom return page. Required when Action is page, and cannot be empty.
    PageId Integer No Instance Id for the custom return page. Default value: 0, which means the system default blocking page is used. This parameter is deprecated.
    CustomResponseId String No Custom response Id, which can be obtained through the API for querying the custom error page list. The default value is default, which uses the system default page. Required and cannot be empty when Action is page.
    ResponseCode Integer No code of the custom return page. Required when Action is page. The value cannot be empty. Value range: 100-600. 3xx response codes are unsupported. Default value: 567.
    RedirectUrl String No Address for redirection. Required when Action is redirect and cannot be empty.

    Action

    Rule engine feature item operations. For a feature, it corresponds to only one of the following three types. Each item in the RuleAction array can only be one of these types. For more feature item completion specifications, call the API to query the rule engine parameter settings (https://www.tencentcloud.com/document/product/1552/80618?from_cn_redirect=1).

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    NormalAction NormalAction No Normal feature operation. Feature items of this type:
  • Access URL rewrite (AccessUrlRedirect);
  • Origin-pull URL rewrite (UpstreamUrlRedirect);
  • QUIC(QUIC);
  • WebSocket (WebSocket);
  • Video dragging (VideoSeek);
  • Token authentication (Authentication);
  • Custom CacheKey (CacheKey);
  • Node cache TTL (Cache);
  • Browser caching TTL (MaxAge);
  • Offline caching (OfflineCache);
  • Smart acceleration (SmartRouting);
  • Range-based origin pull (RangeOriginPull);
  • HTTP/2 origin pull (UpstreamHttp2);
  • Host header overriding (HostHeader);
  • Force HTTPS (ForceRedirect);
  • HTTPS origin pull (OriginPullProtocol);
  • Single connection download speed limit (ResponseSpeedLimit);
  • Cache pre-refresh (CachePrefresh);
  • Intelligent compression (Compression);
  • Hsts;
  • ClientIpHeader;
  • SslTlsSecureConf;
  • OcspStapling;
  • HTTP/2 access (Http2);
  • Redirection during origin pull (UpstreamFollowRedirect);
  • Modifying origin server (Origin);
  • Layer 7 origin pull timeout (HTTPUpstreamTimeout).
  • HTTP response (HttpResponse).
  • RewriteAction RewriteAction No Feature operations with request/response headers. Feature items of this type include:
  • HTTP request header modification (RequestHeader).
  • HTTP response header modification (ResponseHeader).
  • CodeAction CodeAction No Feature operation with a status code. Feature items of this type:
  • Custom error page (ErrorPage);
  • Status code cache TTL (StatusCodeCache).
  • AdaptiveFrequencyControl

    Adaptive frequency control

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String Yes Whether adaptive frequency control is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • Id String No Rule ID of adaptive frequency control, returned only as an output parameter.
    Sensitivity String No The limitation level of adaptive frequency control. This field is required when Enabled is on. Valid values:
  • Loose: loose;
  • Moderate: moderate;
  • Strict: strict.
  • Action SecurityAction No Handling method of adaptive frequency control. This field is required when Enabled is on. Supported values for SecurityAction Name:
  • Monitor: monitor;
  • Deny: block;
  • Challenge: challenge. ChallengeActionParameters.Name only supports JSChallenge.
  • Addresses

    IP range details.

    Used by actions: DescribeAvailableOriginACLFamily, DescribeMultiPathGatewayOriginACL, DescribeOriginACL.

    Name Type Required Description
    IPv4 Array of String No IPv4 IP range list.
    IPv6 Array of String No IPv6 IP range list.

    AdvancedFilter

    Description key-value pair filter, which is used for conditional filtering queries and supports fuzzy query. For example, filter by ID, name, and status.
    If there are multiple Filters, the logical relationship between them is AND.
    If there are multiple Values in the same Filter, the logical relationship between the Values under the same Filter is OR.

    Used by actions: DescribeAccelerationDomains, DescribeAliasDomains, DescribeAvailableCustomActionsForRuleEngine, DescribeConfigGroupVersions, DescribeContentIdentifiers, DescribeCustomErrorPages, DescribeDeployHistory, DescribeDnsRecords, DescribeEdgeKVNamespaces, DescribeFunctionComponentBindings, DescribeFunctionReplicas, DescribeInferenceServices, DescribeLogAnalysisDownloadTasks, DescribeOriginGroup, DescribePrefetchTasks, DescribePurgeTasks, DescribeRealtimeLogDeliveryTasks, DescribeSharedCNAME, DescribeZones.

    Name Type Required Description
    Name String Yes Fields to be filtered.
    Values Array of String Yes Filter value of the field.
    Fuzzy Boolean No Whether to enable fuzzy query.

    AdvancedOriginRoutingParameters

    Advanced origin optimization configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Direction String Yes

    Origin optimization direction. Valid values:

  • MainlandChinaAndGlobalAdaptive: self-adaptation. The domain name needs to enable "smart acceleration" simultaneously to take effect. EdgeOne will automatically match the optimal origin-pull optimization direction based on the actual geographical locations of the client and the origin server, with no need to manually specify. For example, if www.example.com enables "advanced origin optimization", but "smart acceleration" is turned off or only partially enabled for match conditions, "advanced origin optimization" will not be effective.
  • AiRule

    AI rule engine protection

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Mode String Yes AI rule engine status. Valid values:
  • smart_status_close: off;
  • smart_status_open: block;
  • smart_status_observe: observation and disposition.
  • AlgDetectJS

    Bot proactive feature recognition client behavior validation.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Name String No Operation name.
    WorkLevel String No Proof of Work (proof_Of-Work) verification strength. Default value: low. Valid values:
  • low: low;
  • middle: Medium;
  • high: high.
  • ExecuteMode Integer No Execution mode. The time when js delay execution is triggered. Unit: ms. Default value: 500. Value range: 0–1000.
    InvalidStatTime Integer No Statistical cycle for clients that do not have JS enabled (test not completed). Unit: seconds. Default: 10. Value range: 5–3600.
    InvalidThreshold Integer No Client JS not enabled (test not completed) trigger threshold. Count. Default: 300. Value: 1–100000000.
    AlgDetectResults Array of AlgDetectResult No Bot proactive feature recognition client behavior validation result.

    AlgDetectResult

    Proactive feature recognition check results for Bot.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Result String No Check results. Valid values:
  • invalid: invalid Cookie;
  • cookie_empty: No cookie carried or the cookie has expired;
  • js_empty: JS is not enabled on the client (test not completed);
  • low: low risk in session rate and periodic feature verification;
  • middle: medium-risk in session rate and periodic feature verification;
  • high: high-risk session rate and periodic feature verification;
  • timeout: Timeout duration for detection;
  • not_browser: invalid browser;
  • is_bot: Bot Client.
  • Action String No Penalty action. Valid values:
  • drop: block;
  • monitor: observation;
  • silence: silence;
  • shortdelay: respond after a short time;
  • longdelay: respond after a long wait.
  • AlgDetectRule

    Bot active feature detection rule.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    RuleID Integer No Rule id.
    RuleName String No Rule name.
    Switch String No Rule switch.
    AlgConditions Array of AclCondition No Custom rule.
    AlgDetectSession AlgDetectSession No Cookie checksum and session behavior analysis.
    AlgDetectJS Array of AlgDetectJS No Client behavior validation.
    UpdateTime String No Update time. For output usage only.

    AlgDetectSession

    Cookie verification and session tracking.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Name String No Operation name.
    DetectMode String No Verification method. Default value: update_detect. Valid values:
  • detect: verify;
  • update_detect: refresh the Cookie and validate it.
  • SessionAnalyzeSwitch String No Switch for session rate and periodic feature verification. Default value: off. Valid values:
  • off: Disable;
  • on: Enable.
  • InvalidStatTime Integer No Statistical cycle for the check result indicating no Cookie is carried or the Cookie has expired. Unit: seconds. Default: 10. Value range: 5–3600.
    InvalidThreshold Integer No Trigger threshold for the check result indicating no Cookie is carried or the Cookie has expired. Unit: count. Default: 300. Value range: 1–100000000.
    AlgDetectResults Array of AlgDetectResult No Cookie verification result.
    SessionBehaviors Array of AlgDetectResult No Session rate and periodic feature verification result.

    AliasDomain

    Alias domain information.

    Used by actions: DescribeAliasDomains.

    Name Type Description
    AliasName String Alias domain name.
    ZoneId String Zone ID.
    TargetName String Target domain name.
    Status String Status of the alias domain name. Valid values:
  • active: effective;
  • pending: deploying.
  • conflict: Retrieved.
  • stop: deactivated;
  • ForbidMode Integer Blocking mode. Valid values:
  • 0: not blocked;
  • 11: Block due to regulatory compliance;
  • 14: Banned for non-filing.
  • CreatedOn Timestamp ISO8601 Alias domain creation time.
    ModifiedOn Timestamp ISO8601 Alias domain name modification time.

    AllowActionParameters

    Additional parameter when the executed action is allow.

    This parameter is used to specify the extra handling action taken by the system when a security rule is hit and the Allow action is executed.
    Different handling actions are configured with different fixed parameter combinations. The system will determine the actually effective handling action type according to the configured parameter combination.
    During the same release execution, only one handling action can be configured and made effective. Parameters for multiple handling actions cannot appear at the same time. Otherwise, it is deemed as an invalid configuration. If empty, the default release action is used.
    AllowActionParameters supports the following additional handling actions:

  • Default: When AllowActionParameters is empty, immediately skip the remaining rules of the current security module and continue matching subsequent security modules.
  • Delayed release: Add response delay to the request and continue matching the remaining rules of the current module. Corresponding parameters: MinDelayTime, MaxDelayTime.
  • Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    MinDelayTime String No Minimum delayed response time. When configured as 0s, it means no delay and direct response. Supported units:
  • s: second, value ranges from 0 to 5.
  • MaxDelayTime String No Maximum delayed response time. Supported units:
  • s: seconds, value range: 5–10.
  • ApplicationProxy

    Application proxy instance

    Used by actions: DescribeApplicationProxies.

    Name Type Description
    ZoneId String Site ID.
    ZoneName String Site name.
    ProxyId String Proxy ID.
    ProxyName String When ProxyType=hostname, it indicates a domain name or subdomain.
    When ProxyType=instance, it indicates the proxy name.
    ProxyType String L4 proxy mode. Valid values:
  • hostname: Create by subdomain name;
  • instance: Create by instance.
  • PlatType String Scheduling mode. Valid values:
  • ip: Anycast IP;
  • domain: CNAME.
  • Area String Acceleration region. Valid values:
  • mainland: within the Chinese mainland;
  • overseas: global (excluding the Chinese mainland).

  • Default value: overseas
    SecurityType Integer Whether security is enabled. Valid values:
  • 0: Disable security;
  • 1: Enable security.
  • AccelerateType Integer Whether to enable acceleration. Valid values:
  • 0: disable acceleration;
  • 1: Enable acceleration.
  • SessionPersistTime Integer Session hold time, in seconds.
    Status String Status. Valid values:
  • online: Enable;
  • offline: Disable;
  • progress: deploying;
  • stopping: disabling;
  • fail: deployment or disabling failed.
  • BanStatus String Blocking status. Valid values:
  • banned: blocked;
  • banning: Being banned;
  • recover: unblocked;
  • recovering: The name server is being unblocked.
  • ScheduleValue Array of String Scheduling information.
    HostId String When ProxyType=hostname:
    Indicates the unique ID of the proxy acceleration.
    Ipv6 Ipv6 Ipv6 access configuration.
    UpdateTime Timestamp ISO8601 Update time.
    ApplicationProxyRules Array of ApplicationProxyRule Rule list.
    AccelerateMainland AccelerateMainland Acceleration optimization configuration for the Chinese mainland.

    ApplicationProxyRule

    Application proxy rule

    Used by actions: CreateApplicationProxy, DescribeApplicationProxies.

    Name Type Required Description
    Proto String Yes Protocol. Valid values:
  • TCP: TCP protocol;
  • UDP: UDP protocol.
  • Port Array of String Yes Port. Supported formats:
  • A single port, such as 80.
  • A port range, such as 81-82, indicating two ports 81 and 82.

  • Note: Up to 20 ports can be input for each rule.
    OriginType String Yes Origin server type. Valid values:
  • custom: Manually added;
  • loadbalancer: load balancing;
  • origins: origin server group.
  • OriginValue Array of String Yes Details of the origin server:
  • When OriginType is custom, it indicates one or more origin servers, such as ["8.8.8.8","9.9.9.9"] or OriginValue=["test.com"];
  • When OriginType is loadbalancer, it indicates a cloud load balancer, such as ["lb-3pbiw4d9iqz0"];
  • When OriginType is origins, it requires one and only one element, indicating the origin server group ID, such as ["origin-537f5b41-162a-11ed-abaa-525400c5da15"].
  • RuleId String No Rule ID.
    Status String No Status. Valid values:
  • online: Enable;
  • offline: Disable;
  • progress: deploying;
  • stopping: disabling;
  • fail: deployment or disabling failed.
  • ForwardClientIp String No Passing the client IP address. Valid values:
  • TOA: passing via TOA, available only when Proto = TCP;
  • PPV1: passing via Proxy Protocol V1, available only when Proto = TCP;
  • PPV2: passing via Proxy Protocol V2;
  • OFF: no passing.
  • Default value: OFF.
    SessionPersist Boolean No Whether to enable session persistence. Valid values:
  • true: Enable;
  • false: Disable.
  • Default value: false.
    SessionPersistTime Integer No Duration for session persistence, in seconds. The value takes effect only when SessionPersist is true.
    OriginPort String No Origin server port. Supported formats:
  • A single port, such as 80.
  • A port range, such as 81-82, indicating two ports 81 and 82.
  • RuleTag String No Rule tag.

    AscriptionInfo

    Site ownership information

    Used by actions: DescribeIdentifications, IdentifyZone.

    Name Type Description
    Subdomain String Host record.
    RecordType String Record type.
    RecordValue String Record value.

    AudioTemplateInfo

    Audio stream configuration parameters.

    Used by actions: CreateJustInTimeTranscodeTemplate, DescribeJustInTimeTranscodeTemplates.

    Name Type Required Description
    Codec String Yes Audio stream encoding format. Optional values:
  • libfdk_aac.
  • AudioChannel Integer No Audio channel quantity. Available values:
  • 2: dual-channel.
  • Default value: 2.

    AuthenticationParameters

    Token authentication configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    AuthType String No Authentication type. Valid values:

  • TypeA: authentication method type A. For its specific meaning, refer to Authentication Method A;
  • TypeB: authentication method B type. For its specific meaning, refer to Authentication Method B;
  • TypeC: authentication method C type. For its specific meaning, refer to Authentication Method C;
  • TypeD: authentication method D type. For its specific meaning, refer to Authentication Method D;
  • TypeVOD: authentication method V type. For its specific meaning, refer to Authentication Method V.
  • SecretKey String No Primary authentication key. It contains 6–40 uppercase/lowercase letters or digits and cannot contain " or $.
    Timeout Integer No Valid duration of the authentication URL, in seconds. Value range: 1–630720000. It is used to determine whether the client access request is expired:
  • If the current time exceeds the "timestamp + valid duration" time, the request is expired and 403 is returned directly.
  • If the current time has not exceeded the "timestamp + valid duration" time, the request is not expired. Proceed to validate the md5 string.
  • Note: This field is required when AuthType is one of TypeA, TypeB, TypeC, or TypeD.
    BackupSecretKey String No Backup authentication key. It contains 6–40 uppercase/lowercase letters or digits and cannot contain " or $.
    AuthParam String No Authentication parameter name. The node will validate the value corresponding to this parameter name. It consists of 1–100 upper- and lower-case letters, digits, or underscores.
    Note: This field is required when AuthType is one of TypeA and TypeD.
    TimeParam String No Authentication timestamp. It cannot be the same as the AuthParam field value.
    Note: This field is required when AuthType is TypeD.
    TimeFormat String No Authentication time format. Valid values:
  • dec: decimal;
  • hex: hexadecimal.
  • Note: This field is required when AuthType is TypeD. Default value: hex.

    BandwidthAbuseDefense

    Bandwidth abuse protection configuration (only applicable to the Chinese mainland).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String Yes Whether bandwidth abuse protection (only applicable to the Chinese mainland) is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • Id String No Rule ID for bandwidth abuse protection. Returned as an output parameter only.
    Action SecurityAction No Handling method for bandwidth abuse protection (applicable to Chinese mainland only). This field is required when Enabled is on. Supported values for SecurityAction Name:
  • Monitor: monitor;
  • Deny: block;
  • Challenge: challenge. ChallengeActionParameters.Name only supports JSChallenge.
  • BasicBotSettings

    Basic configuration of Bot management, which takes effect for all domain names associated with the policy. Fine-grained customization can be done through CustomRules.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    SourceIDC SourceIDC No Source IDC configuration of the client IP, used for handling access requests from client IPs in IDCs (data centers). This type of source request is not directly accessed from a mobile terminal or browser side.
    SearchEngineBots SearchEngineBots No Search engine crawler configuration, used for handling requests from search engine crawlers. The IP, User-Agent, or rDNS results of such requests match known search engine crawlers.
    KnownBotCategories KnownBotCategories No UA feature configuration for commercial or open-source tools (formerly UA feature rules), used for handling access requests from known commercial or open-source tools. The User-Agent header of such requests matches the features of known commercial or open-source tools.
    IPReputation IPReputation No IP threat intelligence database (formerly client profile analysis) configuration, used for handling client IP addresses with specific risk characteristics in recent access behavior.
    BotIntelligence BotIntelligence No Specific configuration for Bot intelligent analysis.

    BillingData

    Billing data item.

    Used by actions: DescribeBillingData.

    Name Type Description
    Time Timestamp ISO8601 Data timestamp.
    Value Integer Numeric value.
    ZoneId String Site ID to which the data point belongs. If the content identifier feature is used, the value of this item is the content identifier.
    Host String Domain name to which the data point belongs.
    ProxyId String ID of the Layer 4 Proxy instance to which the data point belongs.
    RegionId String ID of the billing region to which the data point belongs. The billing region is determined by the region of the EdgeOne node that actually serves the user client. Valid values:
  • CH: Chinese mainland
  • AF: Africa
  • AS1: Asia Pacific zone 1
  • AS2: Asia Pacific zone 2
  • AS3: Asia Pacific zone 3
  • EU: Europe
  • MidEast: Middle East
  • NA: North America
  • SA: South America
  • BillingDataFilter

    Billing data filter criteria.

    Used by actions: DescribeBillingData.

    Name Type Required Description
    Type String Yes Parameter name.
    Value String Yes Parameter value.

    BindDomainInfo

    Domain name info bound to the policy template

    Used by actions: DescribeWebSecurityTemplates.

    Name Type Description
    Domain String Domain name.
    ZoneId String Site ID of the domain name.
    Status String Binding status. Valid values:
  • process: binding;
  • online: binding succeeded;
  • fail: Binding failed.
  • BindSharedCNAMEMap

    Binding relationship between the shared CNAME and domain name.

    Used by actions: BindSharedCNAME.

    Name Type Required Description
    SharedCNAME String Yes Shared CNAME to bind or unbind.
    DomainNames Array of String Yes Acceleration domain names. You can pass multiple ones, up to 20.

    BlockIPActionParameters

    Additional parameter for IP blocking in Web Security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Duration String Yes Penalty duration for blocked IPs. Supported units:
  • s: second, value ranges from 1 to 120;
  • m: minute, value ranges from 1 to 120;
  • h: hour, value ranges from 1 to 48.
  • BotConfig

    Security Bot configuration

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes bot switch. Valid values:
  • on: Enable;
  • off: Disable.
  • BotManagedRule BotManagedRule No Common detailed basic rules. If it is null, use the last set configuration by default.
    BotPortraitRule BotPortraitRule No User profiling rule. If it is null, use the last set configuration by default.
    IntelligenceRule IntelligenceRule No Bot intelligent analysis. If it is null, use the last set configuration by default.
    BotUserRules Array of BotUserRule No Bot custom rule. If it is null, the last set configuration is used by default.
    AlgDetectRule Array of AlgDetectRule No Bot active feature detection rule.
    Customizes Array of BotUserRule No Bot managed custom policy. This input parameter is optional and is only used as an output parameter.

    BotExtendAction

    Bot extension handling method, a composite of multiple disposal actions.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Action String Yes Disposal actions. Valid values:
  • monitor: observation;
  • alg: JavaScript challenge;
  • captcha: hosted challenge;
  • random: random, allocate handling actions and proportions according to ExtendActions;
  • silence: silence;
  • shortdelay: short-term response;
  • longdelay: long-time response.
  • Percent Integer No Probability for triggering the handling method. Value range: 0-100.

    BotIntelligence

    Specific configuration for Bot intelligent analysis.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No Specific configuration switch for Bot intelligent analysis. Valid values:

    on: enable;
    off: Disable.
    Id String No Rule ID of Bot intelligent analysis, returned only as an output parameter.
    BotRatings BotRatings No Based on the client and request features, divide the request source into human requests, valid Bot requests, suspected Bot requests, and high-risk Bot requests, and provide request handling options.

    BotManagedRule

    Bot Rules. The following rule IDs can be found in the ID information returned by the DescribeBotManagedRules API.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Action String Yes Handling method after the trigger rule is triggered. Valid values:
  • drop: block;
  • trans: pass;
  • alg: Javascript challenge;
  • monitor: observation.
  • RuleID Integer No Rule ID. Output only.
    TransManagedIds Array of Integer No Rule ID to allow. By default, no rule is allowed.
    AlgManagedIds Array of Integer No Rule ID of the JS challenge. By default, no JS challenge is configured for all rules.
    CapManagedIds Array of Integer No Rule ID of the digit verification code. By default, no digit verification code is configured for all rules.
    MonManagedIds Array of Integer No Rule ID to observe. By default, no rule is configured for observation.
    DropManagedIds Array of Integer No Rule ID to intercept. By default, no rule is intercepted.

    BotManagement

    BOT rule structure for Web security.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No Whether Bot management is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • CustomRules BotManagementCustomRules No Custom rule for Bot management combines various types of crawlers and request behavior characteristics to precisely define bots and configure customized handling methods.
    BasicBotSettings BasicBotSettings No Basic configuration of Bot management, which takes effect on all domains associated with the policy. It can be customized through CustomRules.
    ClientAttestationRules ClientAttestationRules No Definition list of client authentication rules. This feature is in beta test. If needed, submit a ticket.
    BrowserImpersonationDetection BrowserImpersonationDetection No Configure browser spoofing identification rules (formerly active feature detection rules). Set the response page range for JavaScript injection, browser check options, and handling method for non-browser clients.

    BotManagementActionOverrides

    Configuration of a Bot rule item, used to overwrite the upper-layer default configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Ids Array of String No Specific item under the Bot rule group, used to rewrite the configuration content of this individual rule item. For detailed information corresponding to the Ids, see the returned message of the DescribeBotManagedRules API.
    Action SecurityAction No Handling action for the Bot rule item specified in Ids. Supported values for SecurityAction Name:
  • Deny: block;
  • Monitor: observe;
  • Disabled: not enabled, disable the specified rule;
  • Challenge: challenge. ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge;
  • Allow: allow (only for basic feature management of Bot).

  • BotManagementCustomRule

    Custom Bot rules for Web security.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Id String No

    ID of the bot custom rule.
    Different rule configuration operations are supported via the rule ID:

  • Add a new rule: leave the ID empty or do not specify the ID parameter;
  • Modify an existing rule: specify the rule ID that needs to be updated/modified;
  • Delete an existing rule: existing rules not included in the Rules list in the BotManagementCustomRules parameter will be deleted.
  • Name String No

    Name of the Bot custom rule.

    Enabled String No

    Whether the custom Bot rule is enabled. Valid values:

  • on: enable;
  • off: disable.
  • Priority Integer No

    Priority of Bot custom rules, ranging from 1 to 100, with a default value of 50.

    Condition String No

    For specific content of the Bot custom rule, it must comply with the expression grammar. For detailed specifications, see the product document.

    Action Array of SecurityWeightedAction No

    List of safe execution actions by weight assignment.

    BotManagementCustomRules

    Configuration of the Bot custom rule.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of BotManagementCustomRule No List of Bot custom Rules. When using ModifySecurityPolicy to modify the Web protection configuration:
  • If the Rules parameter in SecurityPolicy.BotManagement.CustomRules is not specified, or the Rules parameter length is zero: clear all Bot custom rule configurations.
  • If the CustomRules parameter value is not specified in the SecurityPolicy.BotManagement parameters: keep the existing Bot custom rule configuration without modification.
  • BotManagementLite

    Structure of BOT rules for Web security.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    CAPTCHAPageChallenge CAPTCHAPageChallenge No Configuration of the CAPTCHA page.
    AICrawlerDetection AICrawlerDetection No Specific configuration for AI crawler detection.

    BotPortraitRule

    bot user profiling rules

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Feature switch. Valid values:
  • on: Enable;
  • off: Disable.
  • RuleID Integer No Rule ID. Output only.
    AlgManagedIds Array of Integer No Rule ID of the JS challenge. All rules have no JS challenge configured by default.
    CapManagedIds Array of Integer No Rule ID of the digit verification code. By default, no digit verification code is configured for all rules.
    MonManagedIds Array of Integer No Rule ID for observation. By default, no rule is configured for observation.
    DropManagedIds Array of Integer No Rule ID for interception. By default, no interception is configured for all rules.

    BotRatings

    Based on client and request features, request sources are divided into human requests, legal Bot requests, suspected Bot requests, and high-risk Bot requests, with request handling options provided.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    HighRiskBotRequestsAction SecurityAction No Execution action for malicious Bot requests. Supported values for the Name parameter of SecurityAction:
  • Deny: Block;
  • Monitor: Observe;
  • Allow: Allow;
  • Challenge: Challenge. Among them, ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge.
  • LikelyBotRequestsAction SecurityAction No Execution action for suspected Bot requests. Supported values for the Name parameter of SecurityAction:
  • Deny: Block;
  • Monitor: Observe;
  • Allow: Allow;
  • Challenge: Challenge. The ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge.
  • VerifiedBotRequestsAction SecurityAction No Execution action of friendly Bot requests. The Name parameter of SecurityAction supports the following values:
  • Deny: block;
  • Monitor: observe;
  • Allow: Allow;
  • Challenge: Challenge. The ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge.
  • HumanRequestsAction SecurityAction No Execution action for normal Bot requests. Valid values of SecurityAction Name:
  • Allow: Allow.
  • BotSessionValidation

    Cookie verification and session tracking behavior configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    IssueNewBotSessionCookie String No Whether to update the Cookie and verify. Valid values:
  • on: update the Cookie and verify;
  • off: verify only.
  • MaxNewSessionTriggerConfig MaxNewSessionTriggerConfig No Update threshold for cookie update and validation. Valid only when IssueNewBotSessionCookie is on.
    SessionExpiredAction SecurityAction No Execution action without a Cookie or with an expired Cookie. Supported Name values for SecurityAction:
  • Deny: block. DenyActionParameters supports Stall configuration.
  • Monitor: observe.
  • Allow: respond after waiting. AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • SessionInvalidAction SecurityAction No Execution action for invalid Cookie. The Name parameter of SecurityAction supports the following values:
  • Deny: block. DenyActionParameters supports the Stall configuration.
  • Monitor: observe.
  • Allow: respond after waiting. AllowActionParameters requires the MinDelayTime and MaxDelayTime configurations.
  • SessionRateControl SessionRateControl No Specific configuration for session rate and periodic feature verification.

    BotUserRule

    Bot custom rule

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    RuleName String Yes Rule name can only contain English characters, digits, and underscores, and cannot begin with an underscore.
    Action String Yes Disposal actions. Valid values:
  • drop: block;
  • monitor: observation;
  • trans: pass;
  • redirect: Redirection;
  • page: Specified page;
  • alg: JavaScript challenge;
  • captcha: hosted challenge;
  • random: Random disposal;
  • silence: silence;
  • shortdelay: short-term response;
  • longdelay: long-time response.
  • RuleStatus String Yes Rule status. Valid values:
  • on: Take effect;
  • off: Not effective.
  • Default on takes effect.
    AclConditions Array of AclCondition Yes Rule details.
    RulePriority Integer Yes Rule weight. Value range: 0-100.
    RuleID Integer No Rule Id. Output only.
    ExtendActions Array of BotExtendAction No Disposal method and proportion of random disposal. Optional for non-random disposal. Not currently supported.
    FreqFields Array of String No Filter word. Valid values:
  • sip: Client IP.

  • Defaults to an empty string.
    UpdateTime String No Update time. For output usage only.
    FreqScope Array of String No Statistical scope. Valid values:
  • source_to_eo: (Response) Origin server to EdgeOne;
  • client_to_eo: (request) Client to EdgeOne.

  • Default value: source_to_eo.
    Name String No Name of the custom return page. Required when Action is page, and cannot be empty.
    CustomResponseId String No Custom response Id, which can be obtained through the customized error page list interface. The default value is default, which uses the system default page. Required and cannot be empty when Action is page.
    ResponseCode Integer No Custom response code for the return to page. Required when Action is page, and cannot be empty. Value range: 100–600. 3xx response codes are not supported. Default value: 567.
    RedirectUrl String No Address for redirection. Required when Action is redirect and cannot be empty.

    BrowserImpersonationDetection

    Configuration of browser spoofing identification rules (formerly active feature detection rules).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of BrowserImpersonationDetectionRule No List of browser spoofing identification rules. When using ModifySecurityPolicy to modify Web protection configuration:
  • If the Rules parameter in SecurityPolicy.BotManagement.BrowserImpersonationDetection is not specified, or the parameter length is zero: clear all browser spoofing identification rule configurations.
  • If the BrowserImpersonationDetection parameter value is not specified in the SecurityPolicy.BotManagement parameter: keep the existing browser spoofing identification rule configuration without modification.
  • BrowserImpersonationDetectionAction

    Action of the Bot browser verification rule (formerly active feature detection rule).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BotSessionValidation BotSessionValidation No Cookie verification and session tracking configuration.
    ClientBehaviorDetection ClientBehaviorDetection No Client behavior validation configuration.

    BrowserImpersonationDetectionRule

    Browser spoofing identification rule (formerly active feature detection rule).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Id String No ID of the browser spoofing identification rule.
    You can perform different rule configuration operations by rule ID:
  • Add a new rule: leave the ID empty or unspecified;
  • Modify an existing rule: specify the rule ID that needs to be updated/modified;
  • Delete an existing rule: existing rules not included in the Rules list in the BrowserImpersonationDetection parameter will be deleted.
  • Name String No Name of the browser spoofing identification rule.
    Enabled String No Whether to enable the browser forgery identification rule. Valid values:
  • on: enable;
  • off: disable.
  • Condition String No Specific content of the browser spoofing identification rule. It only supports the configuration of request Method, request Path, and request URL, which must comply with expression syntax. For detailed specifications, see the product document.
    Action BrowserImpersonationDetectionAction No Handling method for browser spoofing identification rules, including Cookie verification, session tracking configuration, and client behavior validation configuration.

    CAPTCHAPageChallenge

    Specific configuration of the CAPTCHA page.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No Whether human-machine verification is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • CC

    cc configuration item.

    Used by actions: DescribeHostsSetting.

    Name Type Required Description
    Switch String Yes Waf switch. Value:
  • on: Enable;
  • off: Disable.
  • PolicyId Integer No Policy ID.

    CLSTopic

    Configuration information of real-time log delivery to Tencent Cloud CLS.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks.

    Name Type Required Description
    LogSetId String Yes Tencent Cloud CLS log set ID.
    TopicId String Yes Tencent Cloud CLS log topic ID.
    LogSetRegion String Yes Region of the Tencent Cloud CLS log set.

    CNAMEDetail

    Details of the site parameters for the CNAME access type.

    Used by actions: DescribeZones.

    Name Type Description
    IsFake Integer Whether it is a fake site. Valid values:
  • 0: non-fake site
  • 1: Fake site.

  • OwnershipVerification OwnershipVerification Ownership verification information. For details, see Site/Domain Ownership Verification.

    Cache

    Cache time setting

    Used by actions: DescribeHostsSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Cache configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • CacheTime Integer No Cache expiration time settings.
    Unit: seconds. Maximum settable to 365 days.

    CacheConfig

    Cache rule configuration.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Cache Cache No Cache configuration.
    NoCache NoCache No No cache configuration.
    FollowOrigin FollowOrigin No Follow the origin server configuration.

    CacheConfigCustomTime

    Node cache TTL custom cache time config.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Custom cache time switch. Valid values:
  • on: Enable;
  • off: Disable.
  • CacheTime Integer No Custom cache time value, in seconds. Value range: 0-315360000.
    Note: This field is required when Switch is on. When Switch is off, no need to specify this field, and it does not take effect if specified.

    CacheConfigParameters

    Node cache TTL config.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    FollowOrigin FollowOrigin No Cache configuration follows the origin site. At most one of FollowOrigin, NoCache, and CustomTime can be configured with Switch on.
    NoCache NoCache No No cache configuration. For FollowOrigin, NoCache, and CustomTime, at most one Switch can be set to on.
    CustomTime CacheConfigCustomTime No Custom cache time configuration. For FollowOrigin, NoCache, and CustomTime, at most one can have Switch set to on.

    CacheKey

    Cache key configuration.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    FullUrlCache String No Whether to enable full path cache. Valid values:
  • on: Turn on full path cache (that is, disable parameter ignoring);
  • off: Disable full path cache (parameter ignorable enabled).
  • IgnoreCase String No Whether to ignore case-insensitive cache. Valid values:
  • on: Ignore;
  • off: Do not ignore.
  • QueryString QueryString No CacheKey contains request parameters.

    CacheKeyConfigParameters

    Cache key configuration.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    FullURLCache String No Whether to enable full path cache. Valid values:
  • on: enable full path cache (i.e., disable parameter ignoring);
  • off: Disable full path cache (parameter ignorable enabled).
  • IgnoreCase String No Whether to ignore case-insensitive cache. Valid values:
  • on: Ignore;
  • off: Not ignore.
  • QueryString CacheKeyQueryString No Query string retention configuration parameter. This field and FullURLCache must be set simultaneously, but cannot both be on.

    CacheKeyCookie

    Configuration parameters for custom Cache Key Cookie.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Function switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Action String No Cache action, with values:
  • full: retain all;
  • ignore: ignore all;
  • includeCustom: retain specified parameters;
  • excludeCustom: ignore specified parameter.
  • Note: When Switch is on, this field is required; when Switch is off, no need to specify this field. If specified, it does not take effect.
    Values Array of String No List of custom Cache Key Cookie names.
    Note: This field is required when Action is includeCustom or excludeCustom. It is not required when Action is full or ignore, and will not take effect if specified.

    CacheKeyHeader

    Custom Cache Key HTTP request header configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Function switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Values Array of String No List of custom Cache Key HTTP request headers.
    Note: This field is required when Switch is on. It is not required when Switch is off, and will not take effect if specified.

    CacheKeyParameters

    Custom Cache Key configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    FullURLCache String No Switch to retain all query strings. Valid values:
  • on: Enable;
  • off: disabled.
  • Note: At least one configuration must be set for FullURLCache, IgnoreCase, Header, Scheme, and Cookie. This field and QueryString.Switch must be set both at the same time, but they cannot both be on.
    QueryString CacheKeyQueryString No Query string reserved configuration parameter. This field and FullURLCache must be set simultaneously, but cannot both be on.
    IgnoreCase String No Case-insensitive switch. Valid values:
  • on: Enable;
  • off: disabled.
  • Note: Configure at least one of FullURLCache, IgnoreCase, Header, Scheme, and Cookie.
    Header CacheKeyHeader No HTTP request header configuration parameters. Set at least one configuration for FullURLCache, IgnoreCase, Header, Scheme, or Cookie.
    Scheme String No Request protocol switch. Valid values:
  • on: Enable;
  • off: disabled.
  • Note: Configure at least one of FullURLCache, IgnoreCase, Header, Scheme, and Cookie.
    Cookie CacheKeyCookie No Cookie configuration parameters. Set at least one configuration for FullURLCache, IgnoreCase, Header, Scheme, or Cookie.

    CacheKeyQueryString

    Parameter for custom Cache Key query string configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Switch to reserve or ignore specified parameters in the query string. Valid values:
  • on: Enable;
  • off: Disable.
  • Action String No Action to reserve or ignore specified parameters in the query string. Valid values:
  • includeCustom: means to reserve some parameters;
  • excludeCustom: means to ignore some parameters.
  • Note: This field is required when Switch is on. When Switch is off, this field is not required and does not take effect if filled in.
    Values Array of String No List of parameter names to reserve/ignore in the query string.
    Note: When Switch is on, this field is required; when Switch is off, no need to specify this field, and if specified, it does not take effect.

    CacheParameters

    Node cache TTL config.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    FollowOrigin FollowOrigin No Cache follows the origin site. Leave unset means this configuration is not set. At most one of FollowOrigin, NoCache, and CustomTime can be configured with Switch on.
    NoCache NoCache No No cache. If left empty, this configuration is not set. Among FollowOrigin, NoCache, and CustomTime, only one can have Switch set to on.
    CustomTime CustomTime No Custom cache time. Leave it unset means this configuration is not set. A maximum of one of FollowOrigin, NoCache, and CustomTime can be configured with Switch on.

    CachePrefresh

    Cache pre-refresh

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Cache pre-refresh configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Percent Integer No Cache pre-refresh percentage. Value range: 1-99.

    CachePrefreshParameters

    Cache pre-refresh configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Cache pre-refresh switch. Valid values:
  • on: Enable;
  • off: Disable.
  • CacheTimePercent Integer No The pre-refresh time is set to a percentage value of the node cache time. Value range: 1–99.
    Note: When Switch is on, this field is required. When Switch is off, no need to specify this field. If specified, it does not take effect.

    CacheTag

    The information attached when the node cache purge type is set to purge_cache_tag.

    Used by actions: CreatePurgeTask.

    Name Type Required Description
    Domains Array of String Yes List of domain names to purge cache for.

    CertificateInfo

    https certificate configuration.

    Used by actions: DescribeAccelerationDomains, ModifyHostsCertificate.

    Name Type Required Description
    CertId String Yes Certificate ID, which originates from the SSL side. You can check the CertId from the SSL Certificate List.
    Alias String No Certificate remark name.
    Type String No Certificate type. Valid values:
  • default: default certificate;
  • upload: user upload;
  • managed: Tencent Cloud hosted.
  • ExpireTime Timestamp ISO8601 No Certificate expiration time.
    DeployTime Timestamp ISO8601 No Deployment time of the certificate.
    SignAlgo String No Signature algorithm.
    Status String No Certificate status. Valid values:
  • deployed: Deployed;
  • processing: deploying;
  • applying: application in progress.
  • failed: Application failed;
  • issued: failed to bind.
  • ChallengeActionParameters

    Additional parameter for the safe execution action when it is a challenge.

    This parameter is used to specify the extra handling action taken by the system when a security rule is hit and a challenge action is executed.
    Challenge disposal actions are segmented through ChallengeOption. Different challenge types correspond to different interaction forms and parameter requirements. The system will bring the corresponding parameter configuration into effect according to the selected challenge type.
    ChallengeActionParameters supports the following challenge disposition types:

  • Interstitial challenge: responds with a new page and runs the authentication mechanism within the new page. The corresponding ChallengeOption value is InterstitialChallenge.
  • Inline challenge: responds with an SDK challenge. The corresponding ChallengeOption value is InlineChallenge.
  • JavaScript challenge: invisible verification in the browser. The browser automatically performs verification and shows the requested resource. The corresponding ChallengeOption value is JSChallenge.
  • Managed challenge: responds with a redirect page containing a JavaScript program, used for verification of the browser runtime environment. The corresponding ChallengeOption value is ManagedChallenge.
  • Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    ChallengeOption String Yes

    Specific challenge action for safe execution.

    Enumeration values:

    • InterstitialChallenge: Interstitial challenge;
    • InlineChallenge: Embedded challenge (SDK challenge);
    • ManagedChallenge: Managed challenge. Applicable only to HTML web pages directly accessed by users through a browser. API interfaces, XHR/AJAX asynchronous requests within web pages, mobile apps, command line tools, and other scenarios cannot complete the verification. Do not configure;
    • JSChallenge: JavaScript challenge. Applicable only to HTML web pages directly accessed by users through a browser. API interfaces, XHR/AJAX asynchronous requests within web pages, mobile apps, command line tools, and other scenarios cannot complete the verification. Do not configure.
    Interval String No

    Time interval for repeating the challenge. This field is required when ChallengeOption is InterstitialChallenge/InlineChallenge. Default value: 300s. Supported units:

  • s: second, value ranges from 1 to 60;
  • m: minute, value ranges from 1 to 60;
  • h: hour, value ranges from 1 to 24.
  • AttesterId String No

    Client authentication method ID. This field is required when Name is InterstitialChallenge/InlineChallenge.

    CheckRegionHealthStatus

    Health status of origin servers in each health check region.

    Used by actions: DescribeOriginGroupHealthStatus.

    Name Type Description
    Region String Health check region, which is a two-letter code according to ISO-3166-1.
    Healthy String Health status of origin servers in a single health check region. Valid values:
  • Healthy: healthy.
  • Unhealthy: unhealthy;
  • Undetected: no data detected.
  • Note: If all origin servers in a single health check region are healthy, the status is healthy; otherwise, it is unhealthy.
    OriginHealthStatus Array of OriginHealthStatus Origin server health status.

    ClientAttestationRule

    Client authentication rules

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Id String No

    ID of the client authentication rule.
    Different rule configuration operations are supported by rule ID:

  • Add a new rule: leave ID empty or do not specify the ID parameter;
  • Modify an existing rule: specify the rule ID to be updated/modified;
  • Delete an existing rule: existing rules not included in the ClientAttestationRule list in the BotManagement parameter will be deleted.
  • Name String No

    Name of the client authentication rule.

    Enabled String No

    Whether the rule is enabled. Valid values:

  • on: enabled;
  • off: disabled.
  • Priority Integer No

    Priority of rules. A smaller value indicates higher priority. Value range: 0-100. Default value: 0.

    Condition String No

    The specific content of the rule must comply with the expression syntax. For detailed specifications, see the product document.

    AttesterId String No

    Client authentication option ID.

    InvalidAttestationAction SecurityAction No

    Handling method when client authentication fails. SecurityAction.Name values are as follows:

    • Allow: allow, where AllowActionParameters supports MinDelayTime and MaxDelayTime configuration;
    • Deny: block, where DenyActionParameters supports BlockIp, ReturnCustomPage, and Stall configuration;
    • Monitor: observe;
    • Challenge: challenge, where ChallengeActionParameters.ChallengeOption supports JSChallenge, ManagedChallenge, InterstitialChallenge, and InlineChallenge;
    • Redirect: redirect to a URL.
    DeviceProfiles Array of DeviceProfile No

    Client device configuration. If the DeviceProfiles parameter value is not specified in the ClientAttestationRules parameter: keep the existing client device configuration without modification.

    AccountProtectionSettings AccountProtectionSettings No

    Account protection configuration.

    ClientAttestationRules

    Client authentication configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of ClientAttestationRule No List of client authentication. When using ModifySecurityPolicy to modify Web protection configuration:
  • If the Rules parameter in SecurityPolicy.BotManagement.ClientAttestationRules is not specified, or the Rules parameter length is zero: clear all client authentication rule configurations.
  • If the ClientAttestationRules parameter value is not specified in the SecurityPolicy.BotManagement parameter: keep the existing client authentication rule configuration without modification.
  • ClientAttester

    Authentication option configuration.

    Used by actions: CreateSecurityClientAttester, DescribeSecurityClientAttester, ModifySecurityClientAttester.

    Name Type Required Description
    Id String No

    Authentication option ID.

    Name String No

    Authentication option name.

    Type String No

    Authentication rule type. Returned only as an output parameter. Valid values:

  • PRESET: system preset rule. Only AttesterDuration can be modified;
  • CUSTOM: user-defined rule.
  • AttesterSource String No

    Authentication method. Valid values:

  • TC-RCE: Use risk identification RCE for authentication;
  • TC-CAPTCHA: Use Tencent Cloud CAPTCHA for authentication;
  • TC-EO-CAPTCHA: Use EdgeOne human-machine verification for authentication.
  • AttesterDuration String No

    Authentication validity time. Default is 60s. Supported units:

  • s: second, value ranges from 60 to 43200;
  • m: minute, value ranges from 1 to 720;
  • h: hour, value ranges from 1 to 12.
  • UsageLimit String No

    Whether to enable usage limits on authentication results.

    Enumeration values:

    • on: Enable
    • off: Disable

    Default value: off

    MaxUsageCount Integer No

    Maximum number of uses for the authentication result. This field is required when UsageLimit is on.

    Value range: [1, 100000]

    TCRCEOption TCRCEOption No

    Configuration message for TC-RCE certification.

  • This field is required when the AttesterSource parameter value is TC-RCE.
  • TCCaptchaOption TCCaptchaOption No

    Configuration message for TC-CAPTCHA authentication.

  • Required when the AttesterSource parameter value is TC-CAPTCHA.
  • TCEOCaptchaOption TCEOCaptchaOption No

    Configuration message for TC-EO-CAPTCHA authentication.

  • Required when the AttesterSource parameter value is TC-EO-CAPTCHA.
  • ClientBehaviorDetection

    Client behavior validation

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    CryptoChallengeIntensity String No Proof-of-work strength. Valid values:
  • low: Low;
  • medium: Medium;
  • high: High.
  • CryptoChallengeDelayBefore String No Execution mode of client behavior validation. Valid values:
  • 0ms: immediately execute;
  • 100ms: execute after a 100ms delay;
  • 200ms: execute after a 200ms delay;
  • 300ms: execute after a 300ms delay;
  • 400ms: execute after a 400ms delay;
  • 500ms: execute after a 500ms delay;
  • 600ms: execute after a 600ms delay;
  • 700ms: execute after a 700ms delay;
  • 800ms: execute after an 800ms delay;
  • 900ms: execute after a 900ms delay;
  • 1000ms: execute after a 1000ms delay.
  • MaxChallengeCountInterval String No Time window for trigger threshold statistics. Valid values:
  • 5s: within 5 seconds;
  • 10s: within 10 seconds;
  • 15s: within 15 seconds;
  • 30s: within 30 seconds;
  • 60s: within 60 seconds;
  • 5m: within 5 minutes;
  • 10m: within 10 minutes;
  • 30m: within 30 minutes;
  • 60m: within 60 minutes.
  • MaxChallengeCountThreshold Integer No Cumulative count of trigger threshold statistics. Value range: 1-100000000.
    ChallengeNotFinishedAction SecurityAction No Execution action when client-side JavaScript is not enabled (test not completed). Supported values for SecurityAction Name:
  • Deny: block. DenyActionParameters supports Stall configuration;
  • Monitor: observe;
  • Allow: respond after waiting. AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • ChallengeTimeoutAction SecurityAction No Execution action for client-side detection timeout. Supported values of SecurityAction Name:
  • Deny: block, where DenyActionParameters supports Stall configuration;
  • Monitor: observe;
  • Allow: respond after waiting, where AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • BotClientAction SecurityAction No Execution action of the Bot client. Supported values of Name in SecurityAction:
  • Deny: block, where Stall configuration is supported in DenyActionParameters;
  • Monitor: observe;
  • Allow: respond after waiting, where MinDelayTime and MaxDelayTime configuration is required in AllowActionParameters.
  • ClientFiltering

    Intelligent client filtering

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String Yes Whether intelligent client filtering is enabled. Valid values:
  • on: Enable;
  • off: Disable.
  • Id String No Rule ID of intelligent client filtering. Output only.
    Action SecurityAction No Handling method for intelligent client filtering. This field is required when Enabled is on. Supported values for SecurityAction Name:
  • Monitor: observe;
  • Deny: block;
  • Challenge: challenge, where ChallengeActionParameters.Name only supports JSChallenge.
  • ClientIPCountryParameters

    Carry the regional information of the client IP during origin-pull. The value format is an ISO-3166-1 two-letter code.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HeaderName String No Request header name for storing the region of the client IP address. Valid when Switch is on. If empty, the default value EO-Client-IPCountry is used.

    ClientIPHeaderParameters

    Header configuration for storing client request IPs.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HeaderName String No Name of the request header containing the client IP address for origin-pull. When Switch is on, this parameter is required. X-Forwarded-For is not allowed for this parameter.

    ClientIpCountry

    Carry the regional information of the client IP during origin-pull. The value format is an ISO-3166-1 two-letter code.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HeaderName String No Request header name for storing the region of the client IP. Valid when Switch is on.
    If it is empty, use the default value: EO-Client-IPCountry.

    ClientIpHeader

    Header configuration for storing client request IPs

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HeaderName String No Name of the request header containing the client IP address for origin-pull. When Switch is on, this parameter is required. X-Forwarded-For is not allowed for this parameter.

    CnameStatus

    CNAME configuration status of the integration domain

    Used by actions: CheckCnameStatus.

    Name Type Description
    RecordName String Domain name.
    Cname String CNAME assigned to the domain name integrated with EdgeOne.
    Status String CNAME configuration status check results. Valid values:
  • active: means the domain name is correctly configured to the designated CNAME assigned by EdgeOne;
  • moved: indicates that the domain name is not configured to the designated CNAME assigned by EdgeOne;
  • invalid: indicates that the CNAME in the access domain configuration is assigned by EdgeOne to another domain, which will cause service exception. Change it to the designated CNAME provided by EdgeOne for this access domain. You can get the CNAME provided by EdgeOne for this access domain from the Cname field of this struct.
  • CodeAction

    Action with a status code for the rule engine

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Action String Yes Feature name. For completion specifications, call the API to query the parameter settings of the rule engine (https://www.tencentcloud.com/document/product/1552/80618?from_cn_redirect=1).
    Parameters Array of RuleCodeActionParams Yes Operation parameter.

    ComplianceRestriction

    Information on regional access restrictions for resources due to government laws and regulations, user agreements, and other requirements.

    Used by actions: DescribeAccelerationDomains, DescribeFunctions.

    Name Type Description
    Reason String

    The causes for access restriction.

    Enumeration values:

    • ICP_RECORD_REQUIRED: unlicensed (no ICP filing);
    • GOVERNMENT_ORDER: government directive.
    Region String

    Restrict access to specific country/region codes using the "ISO 3166 country/region code standard".

    Parameter format: view link: https://www.iso.org/iso-3166-country-codes.html.

    ComponentReference

    Instance information referenced by the component, used to show the binding relationship between the component and resources such as edge functions. When an edge function needs to access a component (such as a KV namespace), a reference relationship is created. This struct allows you to view the specific instance details and associated site information.

    Used by actions: DescribeEdgeKVNamespaces.

    Name Type Description
    ReferenceType String Instance type to refer. Valid values:
  • edge-function: edge function.
  • ReferenceId String ID of the referenced instance. Based on the value of ReferenceType, return the corresponding instance ID:
  • When ReferenceType is edge-function: return the edge function ID in the format of ef-2vc5oe9mzqhm.

  • ReferenceName String Name of the referenced instance. Based on the value of ReferenceType, the corresponding instance name is returned:
  • When ReferenceType is edge-function: return the edge function name.

  • ZoneId String Zone ID. Site identifier of the instance that references the namespace.
    ZoneName String Site name. The name of the site to which the instances in this namespace belong.
    AliasZoneName String Alias of the site that the instance in the namespace belongs to. If no site alias is set, an empty string is returned.

    Compression

    Intelligent compression configuration.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Intelligent compression configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Algorithms Array of String No List of supported compression algorithms. Valid values:
  • brotli: brotli algorithm;
  • gzip: gzip algorithm.
  • CompressionParameters

    Intelligent compression configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Intelligent compression configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Algorithms Array of String No List of supported compression algorithms. Required if Switch is on, unless it is ineffective. Valid values:
  • brotli: brotli algorithm;
  • gzip: gzip algorithm.
  • ConfigGroupFunctionRegionSelection

    Region policy settings.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    Function String Yes

    Specify the function executed. The value is the unique identifier of the function in the site. This parameter is valid only when TriggerType is direct.

    Regions Array of String Yes

    List of countries/regions. Example value: CN: China, CN.GD: Guangdong, China. For values, see Countries/Regions and Corresponding Codes.

    ConfigGroupFunctionTrigger

    Trigger rules for an edge function

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    Condition String Yes

    Match condition.

    TriggerType String No

    Function selection configuration type:

    Enumeration values:

    • direct: directly specify the execution function
    • weight: select a function based on weight ratio
    • region: select a function based on the client IP country/region
    Function String No

    Specify the function executed. The value is the unique identifier of the function in the site. This parameter is valid only when TriggerType is direct.

    RegionMappingSelections Array of ConfigGroupFunctionRegionSelection No

    Function selection configuration based on client IP country/region.

    WeightedSelections Array of ConfigGroupFunctionWeightedSelection No

    Weight-based function selection configuration.

    Remark String No

    Rule description.

    ConfigGroupFunctionWeightedSelection

    Weight strategy configuration.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    Function String Yes

    Specify the function executed. The value is the unique identifier of the function in the site. This parameter is valid only when TriggerType is direct.

    Weight Integer Yes

    Select the weight. The value ranges from 0 to 100, and the sum of all weights must be 100. The probability of being selected is calculated as: weight/100. For example, if two functions A and B are set, where the weight of A is 30, then the weight of B must be 70. Finally, the probability of selecting A is 30%, and the probability of selecting B is 70%.

    ConfigGroupRuleEngineItem

    L7 acceleration rules. The execution order is determined by the array sequence.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    RuleName String No

    Rule name. The name must be no more than 255 characters.

    Description Array of String No

    Rule note. Multiple notes can be filled.

    Branches Array of RuleBranch No

    Sub-rule branch. This list currently only supports filling in one rule. Additional entries are invalid.

    ConfigGroupVersionInfo

    Configuration group version information.

    Used by actions: DeployConfigGroupVersion, DescribeConfigGroupVersionDetail, DescribeConfigGroupVersions, DescribeDeployHistory, DescribeEnvironments.

    Name Type Required Description
    VersionId String Yes

    Configuration group version ID, a unique resource ID assigned by EdgeOne when creating a configuration group version.

    Parameter format: ver-2kplomhisdcb

    For reference:

    VersionNumber String No

    Configuration group version number. This parameter is only for display. Each time a new version is created for the configuration group, the version number increases by one. The initial version number is "0".

    For reference: DescribeConfigGroupVersions return value ConfigGroupVersionInfos

    SourceVersion String No

    The source version ID on which the configuration group version is based. Specify the source version ID when creating a configuration group version. The new version will be derived from the configuration of the source version.

    Parameter format: ver-2kplomhisdcb

    Parameter values for reference:

    GroupType String No

    Configuration group type to which the version belongs.

    Enumeration values:

    • l7_acceleration: layer-7 acceleration configuration group
    • edge_functions: edge function configuration group
    • web_security: web protection configuration group
    GroupId String No

    ID of the configuration group to which the version belongs.

    Parameter format: cg-2kplomhisdcb

    Description String No

    Version description.

    Status String No

    Version effective status.

    Enumeration values:

    • creating: version creating
    • inactive: version not in effect
    • active: version effective
    CreateTime Timestamp ISO8601 No

    Version creation time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.

    ConfigGroupWorkModeInfo

    Version management configuration group working mode information.

    Used by actions: DescribeZones, ModifyZoneWorkMode.

    Name Type Required Description
    ConfigGroupType String Yes Configuration group type. Options are as follows:
  • l7_acceleration: layer-7 acceleration configuration group;
  • edge_functions: edge function configuration group.
  • web_security: web protection configuration group.
  • WorkMode String Yes Working mode. Options are as follows:
  • immediate_effect: immediate effect mode;
  • version_control: version management mode.
  • ContentCompressionParameters

    Content compression configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String Yes Content compression configuration switch. Valid values:
  • on: Enable;
  • off: Disable.

  • When Switch is on, brotli and gzip compression algorithms are simultaneously supported.

    ContentIdentifier

    Content identifier. The feature is open only in the allowlist.

    Used by actions: DescribeContentIdentifiers.

    Name Type Description
    ContentId String Content identifier ID.
    Description String Content identifier description.
    ReferenceCount Integer Number of times referenced by the rule engine.
    PlanId String Bound package ID.
    Tags Array of Tag Bound tag.
    Status String Content identifier status. Valid values:
  • active: effective;
  • deleted: Deleted.
  • CreatedOn Timestamp ISO8601 Creation time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.
    ModifiedOn Timestamp ISO8601 Latest update time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.
    DeletedOn Timestamp ISO8601 Deletion time. It is empty when the status is not "deleted". The time is in Coordinated Universal Time (UTC), following the ISO 8601 date and time format.

    CurrentOriginACL

    Currently effective origin-pull IP range.

    Used by actions: DescribeOriginACL.

    Name Type Required Description
    EntireAddresses Addresses No Origin-pull IP range details.
    Version String No Version.
    ActiveTime String No Version effective time, which adopts Beijing time (UTC+8) and follows the date and time format of the ISO 8601 standard.
    IsPlaned String No This parameter is used to record whether "I have updated to the latest origin-pull IP range" is confirmed before the current version takes effect. Valid values:
  • true: When the version takes effect, the confirmation of updating to the latest origin-pull IP is completed;
  • false: When the version takes effect, the confirmation of updating to the latest origin-pull IP is not completed, and the origin-pull IP range is forcibly updated to the latest version by the backend.
  • Note: When this parameter returns false, confirm in time whether your origin server firewall configuration has been updated to the latest origin-pull IP range to avoid origin-pull failure.

    CustomAction

    Custom configuration

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    ActionId String Yes

    Configuration item ID for custom configuration.

    You can get it through the returned value CustomActionSet[].ActionId of the DescribeAvailableCustomActionsForRuleEngine API.

    Parameters Array of CustomActionParameter Yes

    Values of each parameter field under this custom configuration item.

    You can obtain them through the CustomActionSet[].Parameters field in the return value of the DescribeAvailableCustomActionsForRuleEngine API.

    CustomActionParameter

    Parameter content of a single field in the custom configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Name String Yes

    Field names of Parameters under custom configuration.

    You can get them through the API return value CustomActionSet[].Parameters[].Name of DescribeAvailableCustomActionsForRuleEngine, for example, "Seconds", "Ports", "StatusCode".

    ValueType String Yes

    Data type of each parameter field in the custom configuration.

    Enumeration values:

    • String: string type.
    • Integer: integer type.
    • Float: floating-point type.
    • Boolean: boolean type.
    • ArrayOfString: array of strings type.
    • ArrayOfInteger: array of integers type.
    • ArrayOfFloat: array of floating-point numbers type.

    You can obtain it through the API return value CustomActionSet[].Parameters[].Type of DescribeAvailableCustomActionsForRuleEngine.

    StringValue String No

    String type parameter value. This parameter is required when ValueType is String.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters API return value of DescribeAvailableCustomActionsForRuleEngine.

    IntegerValue Integer No

    Integer type parameter value. This parameter is required when ValueType is Integer.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters return value of the DescribeAvailableCustomActionsForRuleEngine API.

    FloatValue Float No

    Floating-point parameter value. This parameter is required when ValueType is Float.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters API return value of DescribeAvailableCustomActionsForRuleEngine.

    BooleanValue Boolean No

    Boolean parameter value. This parameter is required when ValueType is Boolean.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters API return value of DescribeAvailableCustomActionsForRuleEngine.

    StringArrayValue Array of String No

    Array of strings type parameter value. This parameter is required when ValueType is ArrayOfString.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters API return value of DescribeAvailableCustomActionsForRuleEngine.

    IntegerArrayValue Array of Integer No

    Integer array type parameter value. This parameter is required when ValueType is ArrayOfInteger.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters API return value of DescribeAvailableCustomActionsForRuleEngine.

    FloatArrayValue Array of Float No

    Floating-point array type parameter value. This parameter is required when ValueType is ArrayOfFloat.

    You can get the default value, unit, limit, and other descriptions of the parameter value through the CustomActionSet[].Parameters return value of the DescribeAvailableCustomActionsForRuleEngine API.

    CustomActionParameters

    Custom configuration operation parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    CustomActions Array of CustomAction Yes

    List of custom configurations that need to be configured.

    CustomEndpoint

    The configuration information of real-time log delivery to a custom HTTP(S) interface

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Url String Yes Address of the custom HTTP API for real-time log shipping. Currently, only HTTP and HTTPS protocols are supported.
    AccessId String No Custom SecretId used for generating an encrypted signature. This parameter is required if the origin server needs authentication.
    AccessKey String No Custom SecretKey used for generating an encrypted signature. This parameter is required if the origin server needs authentication.
    CompressType String No Type of data compression. Valid values:
  • gzip: gzip compression.
  • If this parameter is not input, compression is disabled.
    Protocol String No Type of the application layer protocol used in POST requests for log shipping. Valid values:
  • http: HTTP protocol;
  • https: HTTPS protocol.
  • If this parameter is not input, the protocol type is parsed from the URL field.
    Headers Array of Header No Custom request header carried in log shipping. For a header carried by default in EdgeOne log pushing, such as Content-Type, the header value you input will overwrite the default value. The header value references a single variable ${batchSize} to obtain the number of log entries included in each POST request.

    CustomErrorPage

    Custom error code page structure.

    Used by actions: DescribeCustomErrorPages.

    Name Type Description
    PageId String Custom error page ID.
    ZoneId String Zone ID.
    Name String Custom error page name.
    ContentType String Custom error page type.
    Description String Custom error page description.
    Content String Custom error page content.
    References Array of ErrorPageReference Custom error page reference.

    CustomExpressionField

    Custom log field in a real-time log delivery task. You can define a custom field name and configure a value expression for it. For details, see Custom Log Field Expressions.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Name String Yes

    Custom log field name. Enter 1-100 characters. Allowed characters are letters, digits, and _. It must start with a letter. This name must be unique.

    Expression String Yes

    The value expression of a custom log field. The maximum length of the expression is 4KB. For syntax details, see Custom Log Field Expression.

    Enabled Boolean No

    Whether to deliver this field. If left blank, it means not to deliver this field.

    CustomField

    The custom log field in a real-time log delivery task.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Name String Yes Type of the custom log field, which indicates extracting data from specified positions in HTTP requests and responses. Valid values:
  • ReqHeader: extract the value of a specified field from an HTTP request header;
  • RspHeader: extracts the value of a specified field from an HTTP response header.
  • Cookie: extract the specified field value from a cookie;
  • ReqBody: extract specified content from an HTTP request body using a Google RE2 regular expression.
  • Value String Yes Enter the field value definition based on the field type (Name). This parameter is case-sensitive.
  • When the field type is ReqHeader, RspHeader, or Cookie, enter the parameter name for value extraction, such as Accept-Language. You can enter 1-100 characters. the name must start with a letter, contain letters, digits, or hyphens (-) in the middle, and end with a letter or digit.
  • When the field type is ReqBody, enter the Google RE2 regular expression. The maximum length of the regular expression is 4 KB.
  • Enabled Boolean No Whether to deliver this field. Leave blank to skip delivery.

    CustomGroup

    A security custom group is used to centrally manage a set of reusable security matching entries. For example, you can save multiple JA3/JA4 TLS fingerprints as a TLS fingerprint group and directly reference the group in security rules, avoiding the need to maintain the same fingerprint list in multiple rules.

    Used by actions: DescribeCustomGroups.

    Name Type Required Description
    GroupId String No

    The unique ID of the custom group.

    GroupName String No

    Custom group name.

    GroupType String No

    Custom group type.

    Valid values:

    • TLSFingerprint: TLS fingerprint group
    • UA: UA group
    • Referer: Referer group
    GroupItems Array of CustomGroupItem No

    List of custom group entries.

    GroupItemTotalCount Integer No

    Total number of custom group entries.

    RefCount Integer No

    Number of times the custom group is referenced.

    CustomGroupItem

    Custom group entry.

    Used by actions: CreateCustomGroup, DescribeCustomGroup, DescribeCustomGroups, ModifyCustomGroup.

    Name Type Required Description
    Content String Yes

    Entry content.

    ItemType String Yes

    Entry type.

    Valid values:

    • JA3: JA3 fingerprint, available only when the GroupType of the group is TLSFingerprint
    • JA4: JA4 fingerprint, available only when the GroupType of the group is TLSFingerprint
    • UA: UA value, available only when the GroupType of the group is UA
    • Referer: Referer value, available only when the GroupType of the group is Referer

    CustomGroupReference

    Security module that references the custom group

    Used by actions: DescribeCustomGroupReferences.

    Name Type Required Description
    ZoneId String No

    Site ID.

    EntityType String No

    Entity type.

    Valid values:

    • WebSec.ZonePolicy: Site-level protection policy
    • WebSec.HostPolicy: Domain-level protection policy
    • WebSec.Template: Policy template
    • WebSec.APIResource: API resource
    • WebSec.JSInjectionRule: Injection rule
    • DDoS.L4Proxy: Layer-4 proxy DDoS protection
    • DDoS.L3Transit: Layer-3 transit DDoS protection
    EntityId String No

    Entity identifier, which has different meanings depending on EntityType:

    • WebSec.ZonePolicy: Site ID
    • WebSec.HostPolicy: Domain
    • WebSec.Template: Template ID
    • WebSec.APIResource: API resource ID
    • WebSec.JSInjectionRule: JavaScript injection rule ID
    • DDoS.L4Proxy: Instance ID
    • DDoS.L3Transit: Instance ID
    EntityName String No

    Entity identifier, which has different meanings depending on EntityType:

    • WebSec.ZonePolicy: Empty
    • WebSec.HostPolicy: Empty
    • WebSec.Template: Template name
    • WebSec.APIResource: API resource name
    • WebSec.JSInjectionRule: JavaScript injection rule name
    • DDoS.L4Proxy: Empty
    • DDoS.L3Transit: Empty
    SubEntityType String No

    Sub-entity type.

    Valid values:

    • WebSec.ExceptionRule: Protection exception rule
    • WebSec.BasicAccessRule: Basic access control
    • WebSec.PreciseMatchRule: Precise match rule
    • WebSec.RateLimitRule: Precise rate limiting
    • WebSec.BotCustomRule: Advanced Bot management - Custom rule
    • DDoS.L4Proxy.IpAccessControl: Layer-4 proxy DDoS protection - IP allowlist/blocklist
    • DDoS.L3Transit.IpAccessControl: Layer-3 transit DDoS protection - IP allowlist/blocklist
    SubEntityId String No

    Sub-entity identifier, which has different meanings depending on SubEntityType:

    • WebSec.ExceptionRule: Rule ID
    • WebSec.BasicAccessRule: Rule ID
    • WebSec.PreciseMatchRule: Rule ID
    • WebSec.RateLimitRule: Rule ID
    • WebSec.BotCustomRule: Rule ID
    • DDoS.L4Proxy.IpAccessControl: Empty
    • DDoS.L3Transit.IpAccessControl: Empty

    EntityType and SubEntityType are in a mapping relationship. Different EntityTypes support different SubEntityTypes.
    WebSec.ZonePolicy, WebSec.HostPolicy, and WebSec.Template support the following SubEntityTypes:

    • WebSec.ExceptionRule
    • WebSec.BasicAccessRule
    • WebSec.PreciseMatchRule
    • WebSec.RateLimitRule
    • WebSec.BotCustomRule
    DDoS.L4Proxy supports the following SubEntityType:
    • DDoS.L4Proxy.IpAccessControl
    DDoS.L3Transit supports the following SubEntityType:
    • DDoS.L3Transit.IpAccessControl
    SubEntityName String No

    Sub-entity name, which has different meanings depending on SubEntityType:

    • WebSec.ExceptionRule: Rule name
    • WebSec.BasicAccessRule: Rule name
    • WebSec.PreciseMatchRule: Rule name
    • WebSec.RateLimitRule: Rule name
    • WebSec.BotCustomRule: Rule name
    • DDoS.L4Proxy.IpAccessControl: Empty
    • DDoS.L3Transit.IpAccessControl: Empty

    CustomRule

    Custom rule under the Web protection feature.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Name String Yes

    Name of the custom rule.

    Condition String Yes

    The specific content of the custom rule must comply with the expression grammar. For detailed specifications, see the product document.

    Action SecurityAction Yes

    Handling action of the custom rule. SecurityAction.Name values are as follows:

    • Allow: allow, where AllowActionParameters supports MinDelayTime and MaxDelayTime configuration;
    • Deny: block, where DenyActionParameters supports BlockIp, ReturnCustomPage, and Stall configuration;
    • Monitor: observe;
    • Challenge: challenge, where ChallengeActionParameters.ChallengeOption supports JSChallenge and ManagedChallenge;
    • Redirect: redirect to a URL.
    Enabled String Yes

    Whether the custom rule is enabled. Valid values:

    • on: Enable;
    • off: Disable.

    Id String No

    ID of the custom rule. You can perform different rule configuration operations by rule ID:

    • Add a new rule: leave the ID empty or do not specify the ID parameter;
    • Modify an existing rule: specify the rule ID that needs to be updated/modified;
    • Delete an existing rule: existing rules not included in the Rules list in the CustomRules parameter will be deleted.

    RuleType String No

    Type of the custom rule. Valid values:

    • BasicAccessRule: basic access control;
    • PreciseMatchRule: exact matching rule;
    • ManagedAccessRule: expert customized rule, supported only for output parameters.
    Note: If RuleType is not specified, it defaults to PreciseMatchRule.

    Priority Integer No

    Priority of custom rules, ranging from 0 to 100, with a default value of 0. Only exact matching rules (PreciseMatchRule) are supported.

    CustomRules

    Custom rule structure for Web security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of CustomRule No Definition list of custom rules.
    When using ModifySecurityPolicy to modify Web protection configuration:
    - If the Rules parameter is not specified, or the parameter length of Rules is zero: clear ALL custom rule configurations.
    - If the CustomRules parameter value is not specified in the SecurityPolicy parameter: keep the existing custom rule configuration and do not modify it.

    CustomTime

    Node cache TTL custom cache time parameter configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Custom cache time switch. Valid values:
  • on: Enable;
  • off: Disable.
  • IgnoreCacheControl String No Ignore the origin-pull CacheControl switch. Valid values:
  • on: Enable;
  • off: disabled.
  • Note: When Switch is on, this field is required; when Switch is off, no need to specify this field, and if specified, it does not take effect.
    CacheTime Integer No Custom cache time value, in seconds. Value range: 0–315360000.
    Note: This field is required when Switch is on. When Switch is off, this field is not required and does not take effect if specified.

    CustomVariable

    Custom variable details.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Name String Yes

    Variable name. The complete prefix must be filled in: user.zone.* refers to a site-level custom variable, and user.rule.* refers to a rule-level custom variable. The custom part after the prefix supports only uppercase and lowercase letters, digits, and underscores. Variable names are case-sensitive and cannot exceed 50 characters in length. Once a variable is created successfully, its name cannot be modified.

    InitialValue String No

    Initial value of the variable. Supports the use of constant strings, variables, and formulas. Length cannot exceed 255 characters.

    Description String No

    Variable description. Length limited to no more than 60 characters.

    CustomVariableOperation

    Operation details of custom variables.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Branches Array of CustomVariableOperationRuleBranch No

    Sub-rule branch. This list currently only supports filling in one rule. Additional rules are invalid.

    Description Array of String No

    Rule annotation. Multiple annotations can be filled.

    CustomVariableOperationRuleAction

    Custom Variable rule operation.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Name String Yes

    Operation name. The name should correspond to the parameter structure. For example, if Name=Set, SetParameters is required. Currently only support filling in Set.

  • Set: Custom Variable settings;
  • SetParameters SetParameters No

    Custom Variable parameter settings. If there are multiple operations in this parameter, they are executed in sequence according to the array order. When the value of Name is Set, this parameter is required.

    CustomVariableOperationRuleBranch

    Custom Variable operation sub-rule branch.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Condition String No

    Match condition.

    Actions Array of CustomVariableOperationRuleAction No

    Operate.
    Note: Actions and SubRules cannot be empty at the same time.

    SubRules Array of CustomVariableOperationSubRule No

    Sub-rule list. If there are multiple rules in the list, they are executed in order from top to bottom.
    Note: SubRules and Actions cannot be empty at the same time. Currently, only one level of SubRules is supported.

    CustomVariableOperationSubRule

    Custom Variable operation sub-rule.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Branches Array of CustomVariableOperationRuleBranch No

    Sub-rule branch

    Description Array of String No

    Rule note.

    CustomizedHeader

    Custom header that can be configured for HTTP/HTTPS health check policies under a LoadBalancer.

    Used by actions: CreateLoadBalancer, ModifyLoadBalancer.

    Name Type Required Description
    Key String Yes Custom header Key.
    Value String Yes Value of the custom header.

    DDoS

    DDoS configuration

    Used by actions: DescribeHostsSetting.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • DDoSAttackEvent

    DDoS attack event objects

    Used by actions: DescribeDDoSAttackEvent.

    Name Type Description
    EventId String

    Event ID.

    AttackType String

    Attack type.

    AttackStatus Integer

    Attack status.

    Enumeration values:

    • 0: Observing
    • 1: Attacking
    • 2: Attack ended
    AttackMaxBandWidth Integer

    Maximum attack bandwidth, in bps.

    AttackPacketMaxRate Integer

    Peak attack packet rate, unit: pps.

    AttackStartTime Integer

    Attack start timestamp.

    Unit: second

    AttackEndTime Integer

    Attack end timestamp.

    Unit: second

    PolicyId Integer

    DDoS policy group ID.

    ZoneId String

    Zone ID.

    Area String

    Region of the attack event.

    Enumeration values:

    • overseas: global (excluding the Chinese mainland) data;
    • mainland: Chinese mainland data.
    DDoSBlockData Array of DDoSBlockData

    Block and unblock info.

    DDoSAttackDips Array of String

    List of target IPs under DDoS attack.

    DDoSBlockData

    DDoS unblocking information

    Used by actions: DescribeDDoSAttackEvent.

    Name Type Description
    StartTime Integer Start time in unix timestamp.
    EndTime Integer Termination time in unix timestamp. 0 means the ban is still in effect.
    BlockArea String Block the affected area.

    DDoSProtection

    Exclusive DDoS protection configuration.

    Used by actions: DescribeDDoSProtection, ModifyDDoSProtection.

    Name Type Required Description
    ProtectionOption String Yes Specify the protection scope of standalone DDoS. Value:
  • protect_all_domains: exclusive DDoS protection takes effect for all domains in the site. Newly added domain names automatically enable exclusive DDoS protection. When the input parameter is protect_all_domains, the input parameter DomainDDoSProtections will not be processed;
  • protect_specified_domains: only applicable to specified domains. The specific scope can be specified via the DomainDDoSProtection parameter.
  • DomainDDoSProtections Array of DomainDDoSProtection No Exclusive DDoS protection configuration of the domain. In the input parameter scenario:
  • When ProtectionOption remains protect_specified_domains: domains not filled in keep their exclusive DDoS protection configuration unchanged, and explicitly specified domains are updated based on the input parameter;
  • When ProtectionOption is switched from protect_all_domains to protect_specified_domains: if DomainDDoSProtections is empty, exclusive DDoS protection is disabled for all domain names under the site; if DomainDDoSProtections is not empty, exclusive DDoS protection is disabled or retained for the specified domain names in the parameter, and exclusive DDoS protection is disabled for the rest of the unlisted domain names.
  • SharedCNAMEDDoSProtections Array of DomainDDoSProtection No Configuration of exclusive DDoS protection with a shared CNAME. Used only as an output parameter.

    DNSPodDetail

    Details of the DNSPod managed type site parameters.

    Used by actions: DescribeZones.

    Name Type Description
    IsFake Integer Whether it is a fake site, with values:
  • 0: non-fake site
  • 1: Fake site.

  • DefaultDenySecurityActionParameters

    Default block action configuration. When a security rule is hit and triggers a block action, if SecurityAction specifies only Name as Deny and DenyActionParameters is not specified, the default parameter configuration defined here is matched by feature module dimension and used:

  • Default interception disposition action configuration for ManagedRules.
  • OtherModules: default block disposition action configuration for security protection rules other than managed rules (custom rules, rate limit, and Bot management function).
  • Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    ManagedRules DenyActionParameters No Default interception disposition action configuration for managed rules. Supported configuration parameters of DenyActionParameters:
  • ReturnCustomPage: whether to use a custom page.
  • ResponseCode: status code of the custom page.
  • ErrorPageId: PageId of the custom page.
  • OtherModules DenyActionParameters No Security protection rules other than managed rules (custom rules, rate limit, and Bot management function) default interception disposition action configuration. Configuration parameters supported by DenyActionParameters:
  • ReturnCustomPage: whether to use a custom page.
  • ResponseCode: status code of the custom page.
  • ErrorPageId: PageId of the custom page.
  • DefaultServerCertInfo

    https server certificate configuration

    Used by actions: DescribeDefaultCertificates.

    Name Type Required Description
    CertId String Yes Server certificate ID.
    Alias String No Certificate remark name.
    Type String No Certificate type. Valid values:
  • default: Default certificate;
  • upload: External certificate;
  • managed: Tencent Cloud managed certificate.
  • ExpireTime Timestamp ISO8601 No Certificate expiration time.
    EffectiveTime Timestamp ISO8601 No Certificate Validation Time.
    CommonName String No Certificate common name.
    SubjectAltName Array of String No SAN domain of the certificate.
    Status String No Deployment status. Valid values:
  • processing: under deployment;
  • deployed: deployed;
  • failed: Deployment failed.
  • Message String No If the Status is failed, this field returns the failure reason.
    SignAlgo String No Certificate algorithm.

    DeliveryCondition

    Real-time log delivery conditions, used to define the scope of delivered logs. Multiple items in the DeliveryCondition array are in an "OR" relationship, and multiple items in the inner Conditions array are in an "AND" relationship.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Conditions Array of QueryCondition No

    Log filter conditions. The supported conditions are as follows:

    • EdgeResponseStatusCode: filters by the status code that the EdgeOne node returns to the client.
      • Supported operators: equal, great, less, great_equal, less_equal
      • Value range: any integer greater than or equal to 0
    • OriginResponseStatusCode: filters by the status code returned by the origin server.
      • Supported operators: equal, great, less, great_equal, less_equal
      • Value range: any integer greater than or equal to -1
    • SecurityAction: filters by the final action taken after the request hits a security rule.
      • Supported operators: equal
      • Valid values:
        • -: unknown or no rule hit
        • Monitor: Monitor
        • JSChallenge: JavaScript Challenge
        • Deny: Deny
        • Allow: Allow
        • BlockIP: Block IP
        • Redirect: Redirect
        • ReturnCustomPage: Return custom page
        • ManagedChallenge: Managed Challenge
        • Silence: Silence
        • LongDelay: Respond after a long delay
        • ShortDelay: Respond after a short delay
    • SecurityModule: filters by the name of the security module that finally handled the request.
      • Supported operators: equal
      • Valid values:
        • -: unknown or no rule hit
        • CustomRule: Web Security - Custom Rules
        • RateLimitingCustomRule: Web Security - Rate Limiting Rules
        • ManagedRule: Web Security - Managed Rules
        • L7DDoS: Web Security - CC Attack Defense
        • BotManagement: Bot Management - Basic Bot Management
        • BotClientReputation: Bot Management - Client Reputation Analysis
        • BotBehaviorAnalysis: Bot Management - Intelligent Bot Analysis
        • BotCustomRule: Bot Management - Custom Bot Rules
        • BotActiveDetection: Bot Management - Active Detection

    DenyActionParameters

    Additional parameter for the safe execution action when it is interception.

    This parameter is used to specify the extra handling action taken by the system when a security rule is hit and an intercept action is executed.
    Different handling actions are configured with different fixed parameter combinations. The system will determine the actually effective handling action type according to the configured parameter combination.
    Only one handling action can be configured and made effective during the same block execution. Parameters corresponding to multiple handling actions cannot appear simultaneously, otherwise the configuration is deemed invalid. If empty, the default block handling action is used.
    DenyActionParameters supports the following extra handling actions:

  • Default: When DenyActionParameters is empty or no extra handling action is enabled, the system will perform the default block, responding with an interception page.
  • IP blocking: Continuously block the client source IP that triggers the rule. Corresponding parameters: BlockIp, BlockIpDuration.
  • Custom page interception: Use the specified custom page content to respond to requests. Corresponding parameters: ReturnCustomPage, ResponseCode, ErrorPageId.
  • Silence: Accept client requests but do not return. Corresponding parameter: Stall.
  • Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BlockIp String No Whether to extend the block on the source IP. Valid values:
  • on: Enable;
  • off: Disable.

  • After enabled, the client IP that triggers the rule will be continuously blocked. When this option is enabled, the BlockIpDuration parameter must be specified simultaneously.
    Note: This option cannot intersect with ReturnCustomPage or Stall.
    BlockIpDuration String No IP ban duration when BlockIP is on.
    ReturnCustomPage String No Whether to use custom pages. Valid values:
  • on: Enable;
  • off: Disable.

  • Enabled. Use custom page content to intercept (respond to) requests. When this option is enabled, you must specify the ResponseCode and ErrorPageId parameters simultaneously.
    Note: This option cannot intersect with BlockIp or Stall.
    ResponseCode String No Status code of the custom page.
    ErrorPageId String No PageId of the custom page.
    Stall String No Whether to suspend requests from the request source without processing. Valid values:
  • on: Enable;
  • off: Disable.

  • Enabled. It no longer responds to requests in the current connection session and does not actively disconnect. When used for crawler counteraction, it consumes client connection resources.
    Note: This option cannot intersect with BlockIp or ReturnCustomPage.

    DeployRecord

    Details of configuration group version release notes.

    Used by actions: DescribeDeployHistory.

    Name Type Description
    ConfigGroupVersionInfos Array of ConfigGroupVersionInfo Detailed information of the released version.
    DeployTime Timestamp ISO8601 Release time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.
    Status String Publishing status. Valid values:
  • deploying: Releasing;
  • failure: release failure;
  • success: Published successfully.
  • Message String Publish result information.
    RecordId String Release record ID.
    Description String Change description.

    DetailHost

    Domain configuration information

    Used by actions: DescribeHostsSetting.

    Name Type Description
    ZoneId String Site ID.
    Status String Acceleration service status. Valid values:
  • process: deploying;
  • online: started;
  • offline: closed.
  • Host String Domain name.
    ZoneName String Site name.
    Cname String Assigned Cname domain name
    Id String Resource ID.
    InstanceId String Instance ID.
    Lock Integer Lock status.
    Mode Integer Domain name status type.
    Area String Domain name acceleration area. Valid values:
  • global: global;
  • mainland: Chinese mainland;
  • overseas: outside the Chinese mainland.
  • AccelerateType AccelerateType Acceleration type configuration item.
    Https Https Https configuration item.
    CacheConfig CacheConfig Cache configuration item.
    Origin Origin Origin server configuration item.
    SecurityType SecurityType Security type.
    CacheKey CacheKey Cache key configuration item.
    Compression Compression Intelligent compression configuration item.
    Waf Waf Waf protection configuration item.
    CC CC CC protection configuration item.
    DDoS DDoS DDoS protection configuration.
    SmartRouting SmartRouting Intelligent routing configuration item.
    Ipv6 Ipv6 Ipv6 access configuration item.
    ClientIpCountry ClientIpCountry Configuration of whether to carry the region of the client IP during origin-pull.

    DetectLengthLimitCondition

    Detect the length limit configuration condition.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Name String Yes Parameter name of the match condition. Valid values:
  • body_depth: Detection depth of the request body packet part.
  • Values Array of String Yes Parameter value of the match condition. It is used with Name as a pair.
    When the value of Name is body_depth, Values only support passing in a single value. Valid values:
  • 10KB;
  • 64KB;
  • 128KB.
  • DetectLengthLimitConfig

    Length limit for detection

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    DetectLengthLimitRules Array of DetectLengthLimitRule Yes Rule list for detection length limit.

    DetectLengthLimitRule

    Detection length limit rule details

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    RuleId Integer Yes Rule Id. Output only.
    RuleName String Yes Rule name. Output usage only.
    Description String Yes Rule description. For output usage only.
    Conditions Array of DetectLengthLimitCondition Yes Rule configuration condition. For output usage only.
    Action String Yes Handling method. Valid values:
  • skip: When the request body data exceeds the detection depth set by body_depth in the Conditions output parameter, skip testing of all request body content;
  • scan: Only detect the detection depth set by body_depth in the Conditions output. Request body content beyond this depth is directly truncated, and the excess request body will not undergo security detection.
  • Output usage only.

    DeviceProfile

    Client device configuration

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    ClientType String Yes

    Client device type. Valid values:

  • iOS;
  • Android;
  • WebView;
  • WeChatMiniProgram.
  • HighRiskMinScore Integer No

    Minimum risk score for high-risk requests. A request is considered high-risk when its score is equal to or greater than this value.

    Value range: [2, 99]

    Default value: 50

    HighRiskRequestAction SecurityAction No

    Handling method for high-risk requests. Supported values for the Name parameter of SecurityAction:

  • Deny: Block;
  • Monitor: Observe;
  • Redirect: Redirection;
  • Challenge: Challenge.
  • Default value: Monitor.

    MediumRiskMinScore Integer No

    The minimum risk score for a medium-risk request. When the score is equal to or greater than this value and less than HighRiskMinScore, it is determined as medium-risk. When it is below this value, it is determined as low risk.

    Value range: [1, 98]

    Default value: 15

    MediumRiskRequestAction SecurityAction No

    Handling method for medium risk requests. Supported values for the Name of SecurityAction:

  • Deny: block;
  • Monitor: monitor;
  • Redirect: redirect;
  • Challenge: challenge.
  • Default value: Monitor.

    DiffIPWhitelist

    Difference between the latest IP whitelist list and the current IP whitelist list

    Used by actions: DescribeOriginProtection.

    Name Type Description
    LatestIPWhitelist IPWhitelist Latest IP whitelist list.
    AddedIPWhitelist IPWhitelist Newly added part of the latest IP whitelist list compared with the current IP whitelist list.
    RemovedIPWhitelist IPWhitelist The latest IP whitelist list has partially deleted entries compared with the current IP whitelist list.
    NoChangeIPWhitelist IPWhitelist Unchanged part of the latest IP allowlist compared with the current IP allowlist.

    DnsRecord

    DNS record.

    Used by actions: DescribeDnsRecords, ModifyDnsRecords.

    Name Type Required Description
    ZoneId String No Site ID.
    Note: ZoneId is for output usage only. It cannot be used as an input parameter in ModifyDnsRecords. If this parameter is input, it will be ignored.
    RecordId String No DNS record ID.
    Name String No DNS record name.
    Type String No DNS record type. Valid values:
  • A: Point the domain name to a public IPv4 address, for example 8.8.8.8;
  • AAAA: point the domain name to a public IPv6 address;
  • MX: for email servers. When multiple MX records exist, lower priority means higher preference;
  • CNAME: Point the domain to another domain, which then resolves the final IP;
  • TXT: Identifies and describes a domain name, commonly used for domain name verification and SPF records (anti-spam);
  • NS: If you need to delegate subdomain resolution to another DNS service provider, you need to add an NS record. NS records cannot be added for the root domain;
  • CAA: specify the CA that can issue certificates for this site;
  • SRV: identifies that a server used a service, commonly seen in directory management of Microsoft systems.
  • Location String No DNS record resolution route. If not specified, it defaults to Default, which means the default resolution route and represents that it takes effect in all regions.
    Route configuration is applicable only when Type (DNS record type) is A, AAAA, or CNAME.
    For values, see Resolution routes and corresponding code enumeration.
    Content String No DNS record content. Fill in the corresponding content based on the Type value.
    TTL Integer No Cache time. Value range: 60–86400. A smaller value means the modification record takes effect faster in each region. Unit: seconds.
    Weight Integer No DNS record weight. Value range: -1 to 100. -1 means no weight is assigned, and 0 indicates no parsing. Weight configuration is applicable only when Type (DNS record type) is A, AAAA, or CNAME.
    Priority Integer No MX record priority. Value range: 0–50. A smaller value indicates a higher priority.
    Status String No DNS record resolution status. Valid values:
  • enable: effective;
  • disable: disabled.
  • Note: Status is for output only. It cannot be used as an input parameter in ModifyDnsRecords and will be ignored if provided.
    CreatedOn Timestamp ISO8601 No Creation time.
    Note: CreatedOn is for output only and cannot be used as an input parameter in ModifyDnsRecords. If this parameter is input, it will be ignored.
    ModifiedOn Timestamp ISO8601 No Last modified.
    Note: ModifiedOn is for output only and cannot be used as an input parameter in ModifyDnsRecords. If this parameter is input, it will be ignored.

    DnsVerification

    Information required to verify ownership or domain name for site CNAME mode integration or free certificate application using DNS resolution.

    Used by actions: ApplyFreeCertificate, CreateAccelerationDomain, CreateZone, DescribeAccelerationDomains, DescribeInferenceDomains, DescribeZones.

    Name Type Description
    Subdomain String Host record.
    RecordType String Record type.
    RecordValue String Record value.

    DomainDDoSProtection

    Exclusive DDoS protection info of the domain.

    Used by actions: DescribeDDoSProtection, ModifyDDoSProtection.

    Name Type Required Description
    Domain String Yes Domain name.
    Switch String Yes Standalone DDoS switch of the domain. Value:
  • on: enabled;
  • off: closed.
  • DropPageConfig

    Overall configuration of the interception page, used to configure the post-interception action for various modules.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • WafDropPageDetail DropPageDetail No Interception page configuration of the Waf (managed rule) module. If null, the last set configuration is used by default.
    AclDropPageDetail DropPageDetail No Interception page configuration for custom pages. If it is null, use the last set configuration by default.

    DropPageDetail

    Configuration message of the interception page

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    PageId Integer Yes Unique Id of the interception page. The system includes a built-in interception page by default, with Id 0.
    The Id can be obtained by uploading via the blocking page creation interface. If 0 is passed in, the system default blocking page is used. This parameter is deprecated.
    StatusCode Integer Yes HTTP status code of the interception page. Value range: 100–600. 3xx status codes are not supported. Default for managed rule interception page: 566. Default for security protection (excluding managed rules) interception page: 567.
    Name String Yes Page file name or url.
    Type String Yes Page type, with values:
  • page: Specified page.

  • CustomResponseId String No Id. You can obtain this Id through the API for querying the custom error page list. The default value is default, which uses the system default page. This field is required and cannot be empty when Type is page.

    EntityStatus

    Security instance status.

    Used by actions: DescribeSecurityTemplateBindings.

    Name Type Description
    Entity String Instance name. Currently, only subdomains are available.
    Status String Instance configuration issuance status. Valid values:
  • online: Configuration in effect;
  • fail: Configuration failure;
  • process: Configuration is being deployed.
  • Message String Prompt for instance configuration distribution.

    EnvInfo

    Environment information.

    Used by actions: DescribeEnvironments.

    Name Type Description
    EnvId String Environment ID.
    EnvType String Environment type. Valid values:
  • production: production environment;
  • staging: testing environment.
  • Status String Environment status. Valid values:
  • creating: under creation;
  • running: running steadily. Version change can be performed;
  • version_deploying: Version deployment in progress, cannot proceed with new changes.
  • Scope Array of String Configuration effective range in the current environment:
  • When the value of EnvType is production, the value of this parameter is ["ALL"], which means it takes effect globally;
  • When the value of EnvType is staging, the test node IP will be returned, which can be used to bind a host for testing.
  • CurrentConfigGroupVersionInfos Array of ConfigGroupVersionInfo Versions that actually take effect for each configuration group in the current environment. According to the value of Status, there are the following two scenarios:
  • When the value of Status is version_deploying, the value returned by this field is the version effective before the change action is executed. That is, during the new version deployment, the version actually effective is the version prior to the execution of the change action;
  • When the value of Status is running, the returned value of this field is the currently effective version.
  • CreateTime Timestamp ISO8601 Creation time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.
    UpdateTime Timestamp ISO8601 Update time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.

    ErrorPage

    Custom error page.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    StatusCode Integer Yes Status code. Supported values: 400, 403, 404, 405, 414, 416, 451, 500, 501, 502, 503, 504.
    RedirectURL String Yes Redirect URL. It needs to be a complete jump path, for example, https://www.test.com/error.html.

    ErrorPageParameters

    Configuration parameters for the custom error page.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    ErrorPageParams Array of ErrorPage No List of custom error page configurations.

    ErrorPageReference

    Custom error page's referenced source

    Used by actions: DescribeCustomErrorPages.

    Name Type Description
    BusinessId String Referenced business ID, such as the custom block rule ID.

    ExceptConfig

    Exception rule for configuring rules that need to skip specific scenarios

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • ExceptUserRules Array of ExceptUserRule No Exception rule details. If null, use the last set configuration by default.

    ExceptUserRule

    Configuration of exception rules, including effective conditions and effective ranges.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    RuleName String Yes Rule name, which cannot use Chinese.
    Action String Yes Handling method of the rule. Currently only support skip: skip all managed rules.
    RuleStatus String Yes Rule effective status. Valid values:
  • on: take effect
  • off: Disabled.
  • RuleID Integer No Rule ID. Output only. Generated by the underlying layer by default.
    UpdateTime Timestamp ISO8601 No Last update time. If it is null, the underlying layer generates it based on the current time by default.
    ExceptUserRuleConditions Array of ExceptUserRuleCondition No Match condition.
    ExceptUserRuleScope ExceptUserRuleScope No Scope where the rule takes effect.
    RulePriority Integer No Priority. Value ranges from 0 to 100. If null, the default is set to 0 by the underlying layer.

    ExceptUserRuleCondition

    Specific conditions for an exception rule to take effect.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    MatchFrom String No Matching item. Valid values:
  • host: request domain name;
  • sip: Client IP;
  • ua:User-Agent;
  • cookie: Session cookie;
  • cgi: CGI script;
  • xff: XFF extension header;
  • url: Request URL;
  • accept: request content type;
  • method: request method;
  • header: request header;
  • sip_proto: network layer protocol.
  • MatchParam String No Parameter of the matching item. Only when MatchFrom is header, you can use this parameter, and the key of the header can be set to this parameter.
    Operator String No Matching operator. Valid values:
  • equal: string equals;
  • not_equal: value not equal to;
  • include: string containing;
  • not_include: string does not contain;
  • match: ip match;
  • not_match: ip not matched;
  • include_area: region inclusion;
  • is_empty: field with null value;
  • not_exists: key field not found;
  • regexp: regular expression matching;
  • len_gt: value greater than;
  • len_lt: value is less than;
  • len_eq: value equal to;
  • match_prefix: prefix match;
  • match_suffix: suffix matching;
  • wildcard: wildcard.
  • MatchContent String No Matching value.

    ExceptUserRuleScope

    Effective scope of the exception rule.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Type String No Exception rule type. Among them, complete mode represents exceptions for full data, while partial mode represents selecting specified modules and specified fields for exceptions. The field values include:
  • complete: skip entirely mode;
  • partial: Partially skip mode.
  • Modules Array of String No Effective module. Valid values:
  • waf: managed rules;
  • rate: rate limit;
  • acl: custom rule;
  • cc: CC attack defense;
  • bot: bot protection.
  • PartialModules Array of PartialModule No Skip the exception rule details of some rule IDs. If it is null, use the last set configuration by default.
    SkipConditions Array of SkipCondition No Exception rule details for skipping specific fields during scan. If null, use the last set configuration by default.

    ExceptionRule

    Exception rule for Web security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Id String No ID of the exception rule.
    Different rule configuration operations can be performed by rule ID:
  • Add a new rule: leave the ID empty or do not specify the ID parameter;
  • Modify an existing rule: specify the rule ID to be updated/modified;
  • Delete an existing rule: existing rules not included in the Rules list in the ExceptionRules parameter will be deleted.
  • Name String No Name of the exception rule.
    Condition String No Specific content of the exception rule must comply with the expression grammar. For detailed specifications, please refer to the product document.
    SkipScope String No Exception rule execution options. Valid values:
  • WebSecurityModules: assigns the security protection module for the exception rule. Use in conjunction with WebSecurityModulesForException.
  • WebSecuritySubmodules: assigns the security protection submodule for the exception rule. Use in conjunction with WebSecuritySubmodulesForException.
  • ManagedRules: assigns the specific managed rule for the exception rule. Use in conjunction with ManagedRulesForException.
  • ManagedRuleGroups: assigns the managed rule group for the exception rule. Use in conjunction with ManagedRuleGroupsForException.
  • SkipOption String No Skip the specific type of request. Valid values:
  • SkipOnAllRequestFields: skip all requests;
  • SkipOnSpecifiedRequestFields: skip specified request fields.
  • Valid only when SkipScope is ManagedRules or ManagedRuleGroups.
    WebSecurityModulesForException Array of String No Security protection module for the exception rule. Valid only when SkipScope is WebSecurityModules. Valid values:
  • websec-mod-managed-rules: managed rule
  • websec-mod-rate-limiting: rate limit
  • websec-mod-custom-rules: custom rule
  • websec-mod-adaptive-control: adaptive frequency control, intelligent client filtering, slow attack protection, traffic theft protection
  • websec-mod-bot: bot management
  • WebSecuritySubmodulesForException Array of String No Specifies the security protection submodule for the exception rule. Valid only when SkipScope is WebSecuritySubmodules. Valid values:
    • ManagedRules module features:
      • websec-mod-managed-rules/managed-rule-groups: rule set;
      • websec-mod-managed-rules/frequent-scanning-protection: high frequency scan protection;
    • RateLimitingRules module features:
      • websec-mod-rate-limiting-rules: rate limiting rule;
    • CustomRules module features:
      • websec-mod-custom-rules: custom rule;
    • HttpDDoSProtection module features:
      • websec-mod-HTTP-DDoS-protection/adaptive-frequency-control: adaptive frequency control;
      • websec-mod-HTTP-DDoS-protection/client-filtering: intelligent client filtering;
      • websec-mod-HTTP-DDoS-protection/bandwidth-abuse-defense: traffic fraud protection;
    • BotManagement module features:
      • websec-mod-Bot-management/basic-feature: basic feature management;
      • websec-mod-Bot-management/ip-reputation: client profile analysis;
      • websec-mod-Bot-management/Bot-intelligence: intelligent Bot analysis;
      • websec-mod-Bot-management/custom-rules: custom rule;
      • websec-mod-Bot-management/browser-impersonation-detection: proactive feature recognition;
      • websec-mod-Bot-management/client-attestation-rules: client authentication;
    • BotManagementLite module features:
      • websec-mod-Bot-management-lite/ai-crawler-detection: ai crawler disposal;
      • websec-mod-Bot-management-lite/captcha-page-challenge: captcha page challenge.
    ManagedRulesForException Array of String No Specify the specific managed rule for the exception rule. This parameter is valid only when SkipScope is ManagedRules.
    ManagedRuleGroupsForException Array of String No Managed rule group with specified exception rules. This parameter is valid only when SkipScope is ManagedRuleGroups.
    RequestFieldsForException Array of RequestFieldsForException No Configuration for specifying exception rules to skip specified request fields. This is valid only when SkipScope is ManagedRules or ManagedRuleGroups and SkipOption is SkipOnSpecifiedRequestFields.
    Enabled String No Whether the exception rule is enabled. Valid values:
  • on: enabled
  • off: disabled
  • ExceptionRules

    Exception rule for Web security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of ExceptionRule No Definition list of exception Rules. When using ModifySecurityPolicy to modify Web protection configuration:
  • If the Rules parameter is not specified or its length is zero: clear all exception rule configurations.
  • If the ExceptionRules parameter value is not specified in the SecurityPolicy parameter: keep existing exception rule configurations without modification.
  • FailReason

    Failure cause.

    Used by actions: CreatePrefetchTask, CreatePurgeTask.

    Name Type Description
    Reason String Failure reason.
    Targets Array of String List of resources that failed processing.

    FileAscriptionInfo

    Site ownership verification — file verification information.

    Used by actions: DescribeIdentifications, IdentifyZone.

    Name Type Description
    IdentifyPath String File verification directory.
    IdentifyContent String File content verification.

    FileVerification

    Information required for HTTP access verification file when verifying ownership or applying for a free certificate for a domain name in CNAME mode site integration.

    Used by actions: ApplyFreeCertificate, CreateAccelerationDomain, CreateZone, DescribeAccelerationDomains, DescribeInferenceDomains, DescribeZones.

    Name Type Description
    Path String The EdgeOne backend server will get the file verification information via http://{Host}{URL Path} (for example, http://www.example.com/.well-known/teo-verification/z12h416twn.txt). This field is the URL Path part you need to create, and Host is the current accelerated domain.
    Content String Verify the content of the file. You need to fill in the content of this field into the txt file returned by the Path field.

    Filter

    Description key-value pair filter, which is used for conditional filtering queries. For example, filter by ID, name, and status.
    If there are multiple Filters, the logical relationship between them is AND.
    If there are multiple Values in the same Filter, the logical relationship between the Values under the same Filter is OR.

    Used by actions: DescribeApplicationProxies, DescribeAvailableOriginACLFamily, DescribeDefaultCertificates, DescribeFunctionRules, DescribeFunctions, DescribeHostsSetting, DescribeIdentifications, DescribeJustInTimeTranscodeTemplates, DescribeL4Proxy, DescribeL4ProxyRules, DescribeL7AccRules, DescribeLoadBalancerList, DescribeMultiPathGateways, DescribeOriginProtection, DescribePlans, DescribePrefetchOriginLimit, DescribeRules.

    Name Type Required Description
    Name String Yes Fields to be filtered.
    Values Array of String Yes Filter value of the field.

    FirstPartConfig

    Slow attack first segment packet configuration.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • StatTime Integer No Statistical period of the first segment packet, in seconds. This is the expected statistical period of the first segment packet. Default value: 5 seconds.

    FloatTimingDataItem

    Statistics curve data item

    Used by actions: DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData.

    Name Type Description
    Timestamp Integer Time point for returning data, in the format of Unix timestamp in seconds.
    Value Float Specific values.

    FloatTimingTypeValue

    Detailed data of time series type

    Used by actions: DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData.

    Name Type Description
    Sum Float Data and.
    Max Float Maximum value.
    Avg Float Mean.
    MetricName String Metric name.
    Detail Array of FloatTimingDataItem Details.

    FollowOrigin

    Following origin server configuration for caching.

    Used by actions: CreateL7AccRules, DescribeHostsSetting, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Follow the origin site configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • DefaultCache String No Whether to cache when an origin server does not return the Cache-Control header. This field is required when Switch is on. When Switch is off, no need to specify this field, and it does not take effect if specified. Valid values:
  • on: cache;
  • off: Do not cache.
  • DefaultCacheStrategy String No Whether to use the default caching policy when an origin server does not return the Cache-Control header. This field is required when DefaultCache is on; otherwise, it is ineffective. This field must be off when DefaultCacheTime is not 0. Valid values:
  • on: Use the default caching policy;
  • off: Do not use the default caching policy.
  • DefaultCacheTime Integer No The default cache time in seconds when an origin server does not return the Cache-Control header. Value range: 0-315360000. This field is required when DefaultCache is set to on; otherwise, it is ineffective. When DefaultCacheStrategy is on, this field must be 0.

    ForceRedirect

    Forced HTTPS redirect configuration for access protocols.

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Access forced redirect configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • RedirectStatusCode Integer No Redirection status code. Valid values:
  • 301: 301 redirect;
  • 302: 302 redirection.
  • ForceRedirectHTTPSParameters

    Forced HTTPS redirect configuration for access protocols.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Access forced redirect configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • RedirectStatusCode Integer No Redirection status code. When Switch is on, this field is required; otherwise, it is ineffective. Valid values:
  • 301: 301 redirect;
  • 302: 302 redirection.
  • FrequentScanningProtection

    High frequency scan protection configuration options. When a visitor's requests frequently hit managed rules configured as block, all requests from the visitor are blocked within a period of time.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No Whether high-frequency scan protection is enabled. Valid values:
  • on: enabled, the high-frequency scan protection rule takes effect;
  • off: disabled, the high-frequency scan protection rule does not take effect.
  • Id String No Rule ID of high-frequency scan protection, returned only as an output parameter.
    Action SecurityAction No Handling action for high frequency scan protection. When Enabled is on, this field is required. The Name parameter of SecurityAction supports:
  • Deny: block and respond with an Interception page;
  • Monitor: observe, do not process request records, and log security events;
  • JSChallenge: javascript challenge and respond with a JavaScript challenge page.
  • CountBy String No Match mode for request statistics. This field is required when Enabled is on. Valid values:
  • http.request.xff_header_ip: client ip (priority match xff header);
  • http.request.ip: client ip.
  • BlockThreshold Integer No This parameter specifies the threshold for high-frequency scan protection, which is the total interception count when managed rules configured for interception are hit within the time range set by CountingPeriod. The value ranges from 1 to 4294967294, for example, 100. When this statistical value is exceeded, subsequent requests trigger the handling action set by Action. This field is required when Enabled is on.
    CountingPeriod String No This parameter specifies the time window for high-frequency scan protection statistics, that is, the statistical time window for requests that hit managed rules configured for interception. Value range: 5-1800. The unit only supports seconds (s), for example, 5s. Required when Enabled is on.
    ActionDuration String No This parameter specifies the duration of the handling Action set by the high frequency scan protection Action parameter. The value ranges from 60 to 86400. The unit only supports seconds (s), for example, 60s. This field is required when Enabled is on.

    Function

    Details of an edge function.

    Used by actions: DescribeFunctions.

    Name Type Description
    FunctionId String

    Function ID.

    ZoneId String

    Site ID.

    Name String

    Function name.

    Remark String

    Function description.

    Content String

    Function content.

    Domain String

    Default domain name of a function.

    DomainComplianceRestrictions Array of ComplianceRestriction

    List of regional access restrictions on the default domain name of edge functions due to compliance issues.

    CreateTime String

    Creation time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.

    UpdateTime String

    Modification time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.

    FunctionComponentBinding

    Bind configuration of the edge function component, used to establish the relationship between edge functions and components (such as KV namespaces). With bind configuration, edge function code can access bound resources at runtime through the specified variable name.

    Used by actions: DescribeFunctionComponentBindings, ModifyFunctionComponentBindings.

    Name Type Required Description
    Type String Yes Bound component type. Valid values:
  • kv_namespace: KV namespace.

  • VariableName String Yes Variable name for binding. It can contain 1-50 characters, including letters, digits, and underscores. It cannot start with a digit. In edge function code, access the bound component through this variable name. Usage varies based on the value of Type as follows:
  • When Type is kv_namespace: In code, you can access the KV namespace through this variable name. For example, when setting it to "MY_KV", you can perform read-write operations through MY_KV.get("key").

  • KVNamespaceParameters KVNamespaceParameters No KV namespace configuration parameter. Used to specify the bound KV namespace details. Required when Type is kv_namespace.

    FunctionEnvironmentVariable

    Environment variables of an edge function

    Used by actions: DescribeFunctionRuntimeEnvironment, HandleFunctionRuntimeEnvironment.

    Name Type Required Description
    Key String Yes Variable name, which should be unique and can only contain uppercase and lowercase letters, digits, and special characters including at signs (@), periods (.), hyphens (-), and underscores (_). Its maximum size is 64 bytes.
    Value String No Variable value. Its maximum size is 5000 bytes. The default value is empty.
    Type String No Variable type. Valid values:
  • string: string type;
  • json: JSON object type.
  • secret: Secret key type.
  • Default value: string.

    FunctionRegionSelection

    Region policy settings.

    Used by actions: CreateFunctionRule, DescribeFunctionRules, ModifyFunctionRule.

    Name Type Required Description
    FunctionId String Yes Function ID.
    Regions Array of String Yes List of countries/regions. Example value: CN: China, CN.GD: Guangdong, China. For values, see Countries/Regions and Corresponding Codes.

    FunctionReplica

    Replica of an edge function.

    Used by actions: DescribeFunctionReplicas.

    Name Type Description
    FunctionId String Function ID.
    ReplicaName String Name of the edge function copy.
    Content String Content of the edge function copy. Format: JavaScript code.
    Remark String Description of the edge function replica.
    CreatedOn Timestamp ISO8601 Creation time of the edge function replica.
    ModifiedOn Timestamp ISO8601 Last update time of the edge function replica.

    FunctionRule

    Trigger rules for an edge function

    Used by actions: DescribeFunctionRules.

    Name Type Description
    RuleId String Rule ID.
    FunctionRuleConditions Array of FunctionRuleCondition Rule condition list. There is an OR relationship between items in the list.
    TriggerType String Function selection configuration type.
  • direct: directly specify the execution function;
  • weight: select a function based on the weight ratio;
  • region: country/region selection function based on client IP.

  • FunctionId String Specify the function ID to be executed. Valid when TriggerType is direct.
    FunctionName String Name of the function to execute.
    RegionMappingSelections Array of FunctionRegionSelection Function selection configuration based on client IP country/region.
    WeightedSelections Array of FunctionWeightedSelection Function selection configuration based on weight.
    Priority Integer Priority of a trigger rule for a function. The larger the value, the higher the priority.
    Remark String Rule description.
    CreateTime Timestamp ISO8601 Creation time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.
    UpdateTime Timestamp ISO8601 Update time, which adopts Coordinated Universal Time (UTC) and follows the date and time format of the ISO 8601 standard.

    FunctionRuleCondition

    Condition of a trigger rule for an edge function.

    Used by actions: CreateFunctionRule, DescribeFunctionRules, ModifyFunctionRule.

    Name Type Required Description
    RuleConditions Array of RuleCondition Yes Condition of a trigger rule for an edge function. This condition is considered met if all items in the list are met.

    FunctionWeightedSelection

    Weight strategy configuration.

    Used by actions: CreateFunctionRule, DescribeFunctionRules, ModifyFunctionRule.

    Name Type Required Description
    FunctionId String Yes Function ID.
    Weight Integer Yes Select a weight. Value range: 0-100. The sum of all weights must be 100.
    Probability calculation method when selected:
    weight/100. For example, if two functions A and B are set, and the weight of A is 30, then the weight of B must be 70. Finally, the probability of selecting A is 30%, and the probability of selecting B is 70%.

    GatewayRegion

    Available regions of the multi-channel security gateway

    Used by actions: DescribeMultiPathGatewayRegions.

    Name Type Description
    RegionId String Region ID.
    CNName String Chinese region name.
    ENName String English region name.

    Grpc

    Grpc configuration item

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether Grpc configuration is enabled. Valid values:
  • on: Enable;
  • off: Disable.
  • GrpcParameters

    gRPC configuration item.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No gRPC configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HSTSParameters

    HSTS configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No HSTS configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Timeout Integer No Cache HSTS header time in seconds. Value range: 1-31536000.
    Note: This field is required when Switch is on. When Switch is off, no need to specify this field, and it does not take effect if specified.
    IncludeSubDomains String No Whether other subdomains are allowed to inherit the same HSTS header. Valid values:
  • on: Allow other subdomains to inherit the same HSTS header;
  • off: Other subdomains cannot inherit the same HSTS header.
  • Note: This field is required when Switch is on. When Switch is off, no need to specify this field, and it does not take effect if specified.
    Preload String No Whether the browser is allowed to preload the HSTS header. Valid values:
  • on: Allow the browser to preload the HSTS header;
  • off: The browser is not allowed to preload the HSTS header.
  • Note: This field is required when Switch is on. When Switch is off, no need to specify this field, and it does not take effect if specified.

    HTTP2Parameters

    HTTP/2 access configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No HTTP/2 integration configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • HTTPResponseParameters

    HTTP response configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    StatusCode Integer No status code. Supports 2XX, 4XX, 5XX, excluding 499, 514, 101, 301, 302, 303, 509, 520-599.
    ResponsePage String No page ID.

    HTTPUpstreamTimeoutParameters

    Layer-7 origin-pull timeout configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    ResponseTimeout Integer No

    HTTP response timeout.

    Valid values: [5, 600]

    Unit: seconds

    Default value: 15

    The node starts timing after sending the request to the origin server. If no data is returned by the origin server within the specified time, a timeout is determined. After the response starts to be received, if the interval between two consecutive data receptions exceeds the specified value, a timeout is also determined. When the node uploads the request body to the origin server, the interval between two consecutive data transmissions is also limited by this value. This value does not limit the total duration of the entire response. As long as the origin server keeps returning data, large file downloads will not be interrupted.
    Note: This parameter is not returned in the output when it is not set.

    TCPConnectTimeout Integer No

    Timeout for establishing a TCP connection to the origin server.

    Valid values: [5, 120]

    Unit: seconds

    Default value: 5

    After the node initiates a TCP connection to the origin server, if the origin server does not complete the response within the specified time, the connection establishment is determined to have timed out. This value only constrains the TCP connection establishment itself. The time to wait for the origin server response after the connection is established is controlled by ResponseTimeout.
    Note: This parameter is not returned in the output when it is not set.

    KeepaliveTimeout Integer No

    Idle timeout for persistent connections to the origin server.

    Valid values: [5, 600]

    Unit: seconds

    After an origin-pull request is completed, the connection between the node and the origin server is returned to the connection pool and enters the idle state. If no new origin-pull request reuses this connection within the specified time, the node actively closes the connection. This parameter only applies to connections that directly connect to the origin server. Internal connections between EdgeOne nodes are not affected. This parameter only takes effect for HTTP/1.x connections. HTTP/2 and HTTP/3 (QUIC) connections are not affected. It is recommended that this value be smaller than the persistent connection timeout of the origin server (for example, the default keepalive_timeout of Nginx is 75 seconds). Otherwise, the node may reuse a connection that has been closed by the origin server, causing origin-pull failure or retries.
    Note: This parameter is not returned in the output when it is not set.

    HTTP header, used as input for the CreatePrefetchTask API

    Used by actions: CreatePrefetchTask, CreateRealtimeLogDeliveryTask, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Name String Yes HTTP header name.
    Value String Yes HTTP header value

    HeaderAction

    HTTP header setting rule.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String Yes HTTP header setting method. Valid values:
  • set: Set. Change the value of the specified header parameter to the value after setting;
  • del: delete. Delete the specified header parameter;
  • add: Add. Add the specified header parameter.
  • Name String Yes HTTP header name.
    Value String No HTTP header value. This parameter is required when Action is set or add, and not required when Action is del.

    HealthChecker

    LoadBalancer health check policy.

    Used by actions: CreateLoadBalancer, DescribeLoadBalancerList, ModifyLoadBalancer.

    Name Type Required Description
    Type String Yes

    Health check policy. Valid values:

  • HTTP;
  • HTTPS;
  • TCP;
  • UDP;
  • ICMP Ping;
  • NoCheck.
  • Note: NoCheck means health check policy is not enabled.
    Port Integer No

    Check port, which is required when Type = HTTP, Type = HTTPS, Type = TCP, or Type = UDP.

    Interval Integer No

    Check frequency, in seconds. It indicates how often a health check task is initiated. Configurable range: 10-600 seconds.

    Timeout Integer No

    Timeout for each health check, in seconds. If the health check time exceeds this value, the check result is determined as "unhealthy". The default value is 5s, and the value should be less than Interval.

    HealthThreshold Integer No

    Health threshold, in the number of times. It indicates that if the consecutive health check results are "healthy" for a certain number of times, an origin server is considered "healthy". The default value is 3 times, with the minimum value of 1 time.

    CriticalThreshold Integer No

    Unhealthy state threshold, in the number of times. It indicates that if the consecutive health check results are "unhealthy" for a certain number of times, an origin server is considered "unhealthy". The default value is 2 times.

    Path String No

    Probe path. This parameter is valid only when Type = HTTP or Type = HTTPS. It needs to include the complete host/path and should not contain a protocol, for example, www.example.com/test.

    HostHeaderPolicy String No

    Probe request Host Header policy. It takes effect only when Type=HTTP or Type=HTTPS and the instance type is HTTP-dedicated (V2). Valid values:

  • FollowCheckURL: Follows the Host specified by the probe URL, that is, the Host part in the HealthChecker.Path field will be used as the Host address for probing;
  • FollowOriginGroup: Follows the origin-pull Host Header configured in the origin group, that is, the OriginGroup.HostHeader field value of the origin group where the probed origin resides will be used as the Host address for probing. If the origin group has no HostHeader configured, the Host part in the HealthChecker.Path field will be used as the Host address for probing;
  • FollowOrigin: Follows the origin address, that is, the OriginGroup.Records[N].Record field value (the origin address itself) of the corresponding origin record in the origin group where the probed origin resides will be used as the Host address for probing.
  • Default: FollowCheckURL.
    Method String No

    Request method. This parameter is valid only when Type = HTTP or Type = HTTPS. Valid values:

  • GET;
  • HEAD.
  • ExpectedCodes Array of String No

    The status codes used to determine that the probe result is healthy when the probe node initiates a health check to an origin server. This parameter is valid only when Type = HTTP or Type = HTTPS.

    Headers Array of CustomizedHeader No

    This parameter is valid only when Type=HTTP or Type=HTTPS. It refers to the custom HTTP request header carried in the probe request. Up to 10 can be configured.

    FollowRedirect String No

    Whether to follow 301/302 redirect. When enabled, 301/302 is considered a "healthy" status code, redirecting 3 times by default. This parameter is valid only when Type = HTTP or Type = HTTPS.

    SendContext String No

    The content sent by a health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.

    RecvContext String No

    The expected return result from an origin server during health check. Only ASCII visible characters are allowed, with up to 500 characters. This parameter is valid only when Type = UDP.

    ProbeCluster String No

    Health check probe cluster. Specifies the cluster region scope from which this load balancer instance initiates health probes. For details on the regional distribution of probe clusters, see Health Check Policy Introduction. This can be configured only for HTTP-dedicated (V2) load balancer instances. Valid values:

  • global: Probes are initiated by probe clusters in all regions worldwide, including the Chinese mainland and regions outside the Chinese mainland. Clusters in each region independently maintain their own probe results;
  • mainland_china: Probes are initiated only by probe clusters in the Chinese mainland. Currently, the Chinese mainland shares one probe cluster, and probe results are maintained by the probe cluster in the Chinese mainland. Other regions follow the probe results of the cluster in the Chinese mainland;
  • overseas: Probes are initiated only by probe clusters in regions outside the Chinese mainland. Currently, regions outside the Chinese mainland contain probe clusters in multiple areas, and probe results are independently maintained by the probe clusters in each area. Probe results for the Chinese mainland are generated by aggregating the probe results of the probe clusters in all other areas.
  • Default: global.

    HostCertInfo

    https server certificate configuration

    Used by actions: DescribeInferenceDomains.

    Name Type Description
    CertId String Server certificate ID.
    Alias String Certificate remark name.
    Type String Certificate type. Valid values:
  • default: default certificate;
  • upload: user upload;
  • managed: Tencent Cloud hosted.
  • ExpireTime Timestamp ISO8601 Certificate expiration time.
    DeployTime Timestamp ISO8601 Certificate deployment time.
    SignAlgo String Signature algorithm.
    Status String Certificate status. Valid values:
  • deployed: Deployed;
  • processing: deploying;
  • applying: application in progress.
  • failed: Application failed;
  • issued: failed to bind.
  • HostHeaderParameters

    Host Header rewrite configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String No Execution action. Valid values:
  • followOrigin: Follow source site domain;
  • custom: Custom.
  • ServerName String No Host Header rewrite requires a complete domain name.
    Note: When Switch is on, this field is required. When Switch is off, no need to specify this field, and if specified, it does not take effect.

    HostName

    HostName configuration parameter for access URL redirection.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String No Target HostName configuration. Valid values:
  • follow: follow request;
  • custom: Custom.
  • Value String No custom value of the target HostName. Maximum length: 1024.
    Note: This field is required when Action is custom, and it is ineffective when Action is follow.

    HostPolicy

    Domain-level policy.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    Host String No

    Site-level policy, a policy that takes effect for all domain names under the site. For details, see Site-level Policy.

    PolicyType String No

    Policy type used by the current domain. Valid values:

  • ZoneDefault: use a site-level policy, which is the policy settings defined in ZoneDefaultPolicy.
  • Custom: use a domain-level policy. When using this option, the Policy field must also be configured to specify the detailed policy settings.
  • Template: use a policy template. When using this option, the TemplateId field must also be configured to specify the policy template used by the current domain.
  • Policy SecurityPolicy No

    Optional. When PolicyType is Custom, this field is the detailed policy configuration of the current domain name, which takes effect on the current domain.

    TemplateId String No

    Optional. When PolicyType is Template, this field is used to specify the Id of the policy Template used by the current domain.

    HostsCertificate

    Domain name certificate configuration

    Used by actions: DescribeInferenceDomains.

    Name Type Description
    Host String Domain name.
    Mode String Certificate configuration mode. Valid values:
  • disable: no certificate configured;
  • eofreecert: configure EdgeOne free certificate;

  • sslcert: configure an SSL certificate;
  • HostCertInfo Array of HostCertInfo Server certificate configuration.

    Hsts

    Hsts configuration

    Used by actions: DescribeHostsSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether it is enabled. Valid values:
  • on: Enable;
  • off: Disable.
  • MaxAge Integer No MaxAge value, in seconds. Maximum value: 1 day.
    IncludeSubDomains String No Whether it contains subdomains. Valid values:
  • on: Enable;
  • off: Disable.
  • Preload String No Whether to enable preloading. Valid values:
  • on: Enable;
  • off: Disable.
  • HttpDDoSProtection

    HTTP DDOS protection configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    AdaptiveFrequencyControl AdaptiveFrequencyControl No Specific configuration of adaptive frequency control.
    ClientFiltering ClientFiltering No Specific configuration for intelligent client filtering.
    BandwidthAbuseDefense BandwidthAbuseDefense No Bandwidth abuse protection configuration.
    SlowAttackDefense SlowAttackDefense No Specific configuration of slow attack protection.

    Https

    https acceleration configuration for the domain name. Disabled by default.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Http2 String No http/2 configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • OcspStapling String No OCSP configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • TlsVersion Array of String No Tls version settings. Valid values:
  • TLSv1: TLSv1 version;
  • TLSv1.1: TLSv1.1 version;
  • TLSv1.2: TLSv1.2 version;
  • TLSv1.3: TLSv1.3 version.
  • Consecutive versions must be enabled when modifying.
    Hsts Hsts No HSTS configuration.
    CertInfo Array of ServerCertInfo No Certificate configuration.
    ApplyType String No Application type. Valid values:
  • apply: manage EdgeOne;
  • none: EdgeOne is not managed.
  • If not specified, the default value is none.
    CipherSuite String No Cipher suite. Valid values:
  • loose-v2023: Provides high compatibility with general security, and supports TLS 1.0-1.3 cipher suites;
  • general-v2023: Provides relatively high compatibility with moderate security, and supports TLS 1.2-1.3 cipher suites;
  • strict-v2023: Provides high security, disables all cipher suites with security risks, and supports TLS 1.2-1.3 cipher suites.
  • IPExpireInfo

    Store the scheduled expiration time and corresponding IP.

    Used by actions: CreateSecurityIPGroup, DescribeSecurityIPGroup, DescribeSecurityIPGroupInfo, ModifySecurityIPGroup.

    Name Type Required Description
    ExpireTime Timestamp ISO8601 No Scheduled expiration time, following the ISO 8601 date and time format. For example, "2022-01-01T00:00:00+08:00".
    IPList Array of String No IP list. Only IPs and IP ranges are supported.

    IPGroup

    IP range group

    Used by actions: CreateSecurityIPGroup, DescribeSecurityIPGroup, DescribeSecurityIPGroupInfo, ModifySecurityIPGroup.

    Name Type Required Description
    GroupId Integer Yes

    IP group Id. Enter 0 upon creation.

    Name String Yes

    IP group name.

    Content Array of String Yes

    IP group content. Only IP and IP range are supported.

    IPTotalCount Integer No

    Number of IPs or IP ranges currently effective in the IP group. Valid as an output parameter. As an input parameter, no need to specify this field.

    IPExpireInfo Array of IPExpireInfo No

    IP scheduled expiration info.
    As an input parameter, it is used to specify a scheduled expiration time for an IP address or IP range.
    As an output parameter, it includes the following two categories of info:

  • Current scheduled expiration info that has not expired: expiration configuration that has not been triggered.
  • Scheduled expiration info that has expired within a week: expiration configuration that has been triggered.
  • RefCount Integer No

    The number of times the IP group is referenced.

    IPGroupReference

    Security module that refers to an IP group

    Used by actions: DescribeIPGroupReferences.

    Name Type Description
    ZoneId String

    Site ID.

    EntityType String

    Entity type.

    Enumeration values:

    • WebSec.ZonePolicy: site-level security policy
    • WebSec.HostPolicy: domain-level security policy
    • WebSec.Template: policy template
    • DDoS.L4Proxy: Layer 4 proxy DDoS protection
    • DDoS.L3Transit: layer-3 anycast DDoS protection
    EntityId String

    Entity identification, representing different meanings based on EntityType:

    • WebSec.ZonePolicy: site ID;
    • WebSec.HostPolicy: domain name;
    • WebSec.Template: template ID;
    • DDoS.L4Proxy: instance ID;
    • DDoS.L3Transit: instance ID.
    EntityName String

    Entity identifier. Its meaning varies based on EntityType:

    • WebSec.ZonePolicy: empty;
    • WebSec.HostPolicy: empty;
    • WebSec.Template: Template name;
    • DDoS.L4Proxy: empty;
    • DDoS.L3Transit: empty.
    SubEntityType String

    Sub-entity type.

    Enumeration values:

    • WebSec.ExceptionRule: protection exception rule
    • WebSec.BasicAccessRule: basic access control
    • WebSec.PreciseMatchRule: exact match rule
    • WebSec.RateLimitRule: precision rate limiting
    • WebSec.BotCustomRule: advanced bot management - custom rule
    • DDoS.L4Proxy.IpAccessControl: Layer 4 proxy DDoS protection - IP blocklist/allowlist
    • DDoS.L3Transit.IpAccessControl: layer-3 transit DDoS protection - IP blocklist/allowlist
    SubEntityId String

    Sub-entity identifier. It represents different meanings based on SubEntityType:

    • WebSec.ExceptionRule: rule ID;
    • WebSec.BasicAccessRule: rule ID;
    • WebSec.PreciseMatchRule: rule ID;
    • WebSec.RateLimitRule: rule ID;
    • WebSec.BotCustomRule: rule ID;
    • DDoS.L4Proxy.IpAccessControl: empty;
    • DDoS.L3Transit.IpAccessControl: empty.

    EntityType corresponds to SubEntityType. Different EntityType supports different SubEntityType.
    WebSec.ZonePolicy, WebSec.HostPolicy, and WebSec.Template support the following SubEntityType:

    • WebSec.ExceptionRule;
    • WebSec.BasicAccessRule;
    • WebSec.PreciseMatchRule;
    • WebSec.RateLimitRule;
    • WebSec.BotCustomRule.
    DDoS.L4Proxy supports the following SubEntityType:
    • DDoS.L4Proxy.IpAccessControl;
    DDoS.L3Transit supports the following SubEntityType:
    • DDoS.L3Transit.IpAccessControl.
    SubEntityName String

    Sub-entity name, which represents different meanings according to SubEntityType:

    • WebSec.ExceptionRule: rule name;
    • WebSec.BasicAccessRule: rule name;
    • WebSec.PreciseMatchRule: rule name;
    • WebSec.RateLimitRule: rule name;
    • WebSec.BotCustomRule: rule name;
    • DDoS.L4Proxy.IpAccessControl: rule name, where block means blocklist and allow means allowlist;
    • DDoS.L3Transit.IpAccessControl: rule name, where block means blocklist and allow means allowlist.

    IPRegionInfo

    IP location information query

    Used by actions: DescribeIPRegion.

    Name Type Description
    IP String IP, IPV4, or IPV6.
    IsEdgeOneIP String Whether the IP belongs to an EdgeOne node. Valid values:
  • yes: The IP belongs to an EdgeOne node;
  • no: The IP not within EdgeOne nodes.
  • IPReputation

    IP Intelligence Library (formerly client profile analysis) configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No IP Intelligence Library (formerly client profile analysis). Valid values:
  • on: enable;
  • off: disable.
  • IPReputationGroup IPReputationGroup No Specific configuration content of the IP Intelligence Library (formerly client profile analysis).

    IPReputationGroup

    Specific configuration of IP Intelligence Library (formerly client profile analysis).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BaseAction SecurityAction No Execution action of the IP Intelligence Library (formerly client profile analysis). Supported values for SecurityAction Name:
  • Deny: block;
  • Monitor: observe;
  • Disabled: not enabled, disable the specified rule;
  • Challenge: challenge. ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge.
  • BotManagementActionOverrides Array of BotManagementActionOverrides No Specific configuration of the IP Intelligence Library (formerly client profile analysis), used to override the default configuration in BaseAction. The Ids of BotManagementActionOverrides can be filled with:
  • IPREP_WEB_AND_DDOS_ATTACKERS_LOW: network attack - general confidence;
  • IPREP_WEB_AND_DDOS_ATTACKERS_MID: network attack - medium confidence;
  • IPREP_WEB_AND_DDOS_ATTACKERS_HIGH: network attack - high confidence;
  • IPREP_PROXIES_AND_ANONYMIZERS_LOW: network proxy - general confidence;
  • IPREP_PROXIES_AND_ANONYMIZERS_MID: network proxy - medium confidence;
  • IPREP_PROXIES_AND_ANONYMIZERS_HIGH: network proxy - high confidence;
  • IPREP_SCANNING_TOOLS_LOW: scanner - general confidence;
  • IPREP_SCANNING_TOOLS_MID: scanner - medium confidence;
  • IPREP_SCANNING_TOOLS_HIGH: scanner - high confidence;
  • IPREP_ATO_ATTACKERS_LOW: account takeover attack - general confidence;
  • IPREP_ATO_ATTACKERS_MID: account takeover attack - medium confidence;
  • IPREP_ATO_ATTACKERS_HIGH: account takeover attack - high confidence;
  • IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_LOW: malicious bot - general confidence;
  • IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_MID: malicious bot - medium confidence;
  • IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_HIGH: malicious bot - high confidence.
  • IPSSLConfig

    IP SSL information

    Used by actions: DescribeSharedCNAME.

    Name Type Required Description
    ZoneId String No

    ID of the site associated with the IP SSL domain name. If the Status value is unbound, this field is empty.

    AssociatedDomain String No

    The domain name associated with the IP SSL. If the Status value is unbound, this field is empty.

    Status String No

    Association status. Values as follows:

  • bound: IP SSL configuration bound
  • binding: IP SSL configuration binding
  • unbinding: IP SSL configuration unbinding
  • unbound: IP SSL configuration not bound
  • IPSSLSetting

    IP SSL configuration message

    Used by actions: ModifySharedCNAME.

    Name Type Required Description
    Operation String Yes Operation type. Values are as follows:
  • bind: Bind
  • unbind: Unbind
  • AssociatedDomain String Yes Domain name of the IP SSL that should be bound.

    IPWhitelist

    IP allowlist for origin protection

    Used by actions: DescribeOriginProtection.

    Name Type Description
    IPv4 Array of String IPv4 list.
    IPv6 Array of String IPv6 list.

    IPv6Parameters

    IPv6 access configuration.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No IPv6 access feature configuration. Valid values:
  • on: Turn on the IPv6 access feature;
  • off: Disables the IPv6 access feature.
  • Identification

    Site verification info

    Used by actions: DescribeIdentifications.

    Name Type Description
    ZoneName String Site name.
    Domain String Verify a subdomain. This value is empty when verifying a site. A subdomain is verified for a specific subdomain.
    Status String Verification status. Valid values:
  • pending: verifying.
  • finished: verification complete.
  • Ascription AscriptionInfo Site ownership verification: Dns verification information.
    OriginalNameServers Array of String Current NS record of the domain name.
    FileAscription FileAscriptionInfo Site ownership verification: file verification information.

    ImageOptimize

    Image optimization configuration.

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • InferenceAPIToken

    Token information for the reasoning API.

    Used by actions: DescribeInferenceAPITokens.

    Name Type Description
    TokenId String Reasoning API Token ID.
    Name String Name of the reasoning API Token.
    Content String Content of the reasoning API Token.
    CreateTime String Creation time in ISO date format.

    InferenceAffinityConfig

    Affinity configurations for the inference service

    Used by actions: CreateInferenceService, DescribeInferenceServiceDeploymentRecords, ModifyInferenceService.

    Name Type Required Description
    Switch String Yes

    Master switch for inference service affinity.

    Enumeration values:

    • On: Enable inference service affinity;
    • Off: Disable inference service affinity.
    AffinityMode String No

    Affinity approach for inference service.

    Enumeration values:

    • SessionId: Affinity based on session ID.

    Default value: SessionId.

    SessionIdAffinityConfig SessionIdAffinityConfig No

    Inference service affinity configuration. Required when AffinityMode is SessionId.

    InferenceAutoScalingConfig

    Scaling configuration for automatic scaling of the inference service.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    MinInstanceCount Integer Yes

    Minimum number of instances. It will not take effect when a scaling policy is configured and the policy is in its valid period.

    ScalingPolicies Array of InferenceScalingPolicy No

    Auto Scaling policy list. Supports up to 5 policies.

    InferenceContainerConfig

    Container configuration for the inference service.

    Used by actions: CreateInferenceService, DescribeInferenceServiceDeploymentRecords, DescribeInferenceServices.

    Name Type Required Description
    ImageType String Yes

    Image type. Valid values:

  • TCR: Image from Tencent Cloud container mirroring service.
  • TcrRepositoryConfig InferenceTCRRepositoryConfig No

    TCR image repository info. Required when ImageType is TCR.

    StartupCommand String No

    Command executed at container startup. If left empty, the image's Entrypoint/CMD is used by default. Supports up to 1024 characters.

    EnvironmentVariables Array of InferenceEnvironmentVariable No

    Environment variables for the container runtime. Supports up to 10 variables.

    InferenceContainerConfigForModify

    Parameter modification for the inference service container configuration.

    Used by actions: ModifyInferenceService.

    Name Type Required Description
    ImageType String No

    Image type. Valid values:

  • TCR: an image from Tencent Cloud container mirroring service.
  • TcrRepositoryConfig InferenceTCRRepositoryConfig No

    TCR image repository info. Required when ImageType is TCR.

    StartupCommand String No

    Command executed at container startup. If left empty, the image's Entrypoint/CMD is used by default. Supports up to 1024 characters.

    EnvironmentVariables Array of InferenceEnvironmentVariable No

    Environment variables of the container runtime. Supports up to 10 variables.

    InferenceDomain

    Domain information of the inference service.

    Used by actions: DescribeInferenceDomains.

    Name Type Description
    Domain String

    Domain name.

    Status String

    Domain name status.

    Enumeration values:

    • Online: effective;
    • Process: deploying;
    • Offline: disabled;
    • Init: not applied, site to be activated;
    • Forbidden: domain name disabled.
    AuthSwitch String

    Authentication switch for inference task requests.

    Enumeration values:

    • Off: Disable authentication;
    • On: Enable authentication.

    Default value: On.

    Cname String

    CNAME address.

    To validate the CNAME configuration status of a domain, see the CheckCnameStatus api.

    OwnershipVerification OwnershipVerification

    When the domain name needs to perform ownership verification to continue providing services, this object will carry the information required for the corresponding verification method.

    To verify ownership, see the VerifyOwnership API.

    Certificate HostsCertificate

    Domain name certificate information.

    To apply for a free certificate, see the ApplyFreeCertificate API;
    To check the free certificate application result, see the CheckFreeCertificateVerification API;
    To configure the domain name certificate, see the ModifyHostsCertificate API.

    CreateTime String

    Creation time.

    UpdateTime String

    Last modified.

    InferenceEnvironmentVariable

    Environment variable of the reasoning container runtime.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    Key String Yes Variable name. Only letters, digits, and underscores are allowed, and it must start with a letter or underscore. Length limited to 64 characters.
    Value String No Variable value. Supports any visible characters, such as letters, digits, and symbols. Length limit: no more than 2048 characters.

    InferenceHardwareConfig

    Hardware configuration for the inference service.

    Used by actions: CreateInferenceService.

    Name Type Required Description
    GPUNum Float No

    Number of GPU cards assigned to each inference service instance. Currently, supports integers only, and must be an available value in AllowedGPUNums of the specification corresponding to HardwareSpecId.

    If not filled, the default GPUNum value of the selected HardwareSpecId specification is used.

    CPUNum Float No

    Number of CPU cores allocated to each inference service instance. Currently only supports integer values.

    If left blank, use the default CPUNum value of the selected HardwareSpecId specification.

    MemSize Integer No

    Memory size allocated to a single instance of the inference service.

    Unit: MB

    If left blank, use the default MemSize value of the selected HardwareSpecId; if filled, it must be a multiple of 1024.

    DiskSize Integer No

    Temporary disk capacity allocated to a single instance of the inference service.

    Unit: MB

    If not filled, the default DiskSize value of the specification corresponding to the selected HardwareSpecId is used; if filled, it must be an integral multiple of 1024.

    InferenceHardwareConfigForModify

    Parameter modification for the configured resource hardware of the inference service.

    Used by actions: ModifyInferenceService.

    Name Type Required Description
    CPUNum Float No

    CPU cores per instance allocation for the inference service. Currently only support integer values.

    If left blank, no modification will be made.

    MemSize Integer No

    Memory size allocated to a single instance of the inference service.

    Unit: MB

    If left blank, no modification is made; if filled, it must be an integral multiple of 1024.

    DiskSize Integer No

    Temporary disk space allocated to a single instance of the inference service.

    Unit: MB

    If left blank, no modification is made; if filled, it must be an integral multiple of 1024.

    InferenceHardwareSpecification

    Reasoning hardware specification info.

    Used by actions: DescribeInferenceHardwareSpecifications.

    Name Type Description
    HardwareSpecId String

    Unique identification ID of the specification.

    Name String

    Specification name.

    GPUNum Float

    Number of GPU cards assigned by default for the specification.

    CPUNum Float

    Default number of CPU cores allocated to the specification.

    MemSize Integer

    Default allocated memory size for the specification.

    In MB.

    GPUMemSize Integer

    GPU VRAM size assigned by default in the specification.

    Unit: MB

    DiskSize Integer

    Default disk space allocated for the specification.

    Unit: MB

    AllowedGPUNums Array of Float

    List of GPU card counts currently supported by the specification.

    If not filled or filled with an empty array, only the GPU card count assigned by default for the specification is supported.

    InferenceManualInstanceConfig

    Manually set configurations for the inference service.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    FixedInstanceCount Integer Yes Fixed instance count.

    InferenceResourceConfig

    Resource configuration of the inference service.

    Used by actions: CreateInferenceService, DescribeInferenceServiceDeploymentRecords, DescribeInferenceServices.

    Name Type Required Description
    ScalingMode String Yes

    Scaling method. Valid values:

  • Auto: automatically adjust instance count according to request volume;
  • Manual: manually set a fixed number of instances.
  • HardwareSpecId String No

    Unique identification ID of the hardware specification. You can obtain the supported hardware specifications of the current site through the DescribeInferenceHardwareSpecifications API.

    By default, the system configures the required resources for the inference service according to the hardware specification corresponding to the selected HardwareSpecId. If adjustments are needed, you can customize the hardware resource configuration through HardwareConfig.

    HardwareConfig InferenceHardwareConfig No

    Hardware configuration for the inference service.

    As an input parameter, if unpadded, hardware resources are configured according to the default value of the selected HardwareSpecId specification; if padded, priority is given to the fill value for configuration.

    AutoScalingConfig InferenceAutoScalingConfig No

    Automatic scaling configuration of the inference service. Required when ScalingMode is Auto.

    ManualInstanceConfig InferenceManualInstanceConfig No

    Inference service manual setting instance configuration. Required when ScalingMode is Manual.

    Concurrency Integer No

    Concurrency of a single instance. Default value: 1.

    InferenceResourceConfigForModify

    Parameter modification for inference service resource configuration.

    Used by actions: ModifyInferenceService.

    Name Type Required Description
    ScalingMode String No

    Scaling method. Valid values:

  • Auto: automatically adjust the number of instances based on request volume;
  • Manual: manually set a fixed number of instances.
  • AutoScalingConfig InferenceAutoScalingConfig No

    Automatic scaling configuration for the inference service. Required when ScalingMode is Auto.

    ManualInstanceConfig InferenceManualInstanceConfig No

    Inference service manual setting instance configuration. Required when ScalingMode is Manual.

    Concurrency Integer No

    Concurrency of a single instance. Default value: 1.

    HardwareConfig InferenceHardwareConfigForModify No

    Hardware resource configuration of the inference service.

    InferenceScalingPolicy

    Auto scaling policy for edge reasoning.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    PolicyName String Yes Policy Name. Length limit: 1–30 characters. Must be unique within the same service.
    PolicyType String Yes Policy type. It cannot be modified after creation. Value:
  • ScheduledScaling: scheduled scaling.
  • ScheduledScalingPolicy InferenceScheduledScalingPolicy No Scheduled scaling configuration. This field is required when the value of PolicyType is ScheduledScaling.

    InferenceScheduledScalingAction

    Scheduled scaling action configuration for edge reasoning, for description of a specific scheduled scaling action.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    CronExpression String Yes Cron expression for description of the trigger time of a scheduled scaling action. It uses the standard 5-field cron format: minute hour date month week. The second and year fields are not supported.
    MinInstanceCount Integer Yes Minimum number of instances required for the inference service after this scheduled scaling action is hit. If multiple scheduled scaling actions are hit at the same time within the same estimation window, use the maximum MinInstanceCount.

    InferenceScheduledScalingEffectiveRange

    Configuration of the validity period range for scheduled scaling of edge reasoning.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    EffectiveType String Yes

    Validity period type. Valid values:

  • LongTerm: permanently valid;
  • Custom: custom start and end date.
  • StartDate Timestamp ISO8601 No

    Start date of the valid period. Required when EffectiveType is Custom; do not pass this field when EffectiveType is LongTerm.

    EndDate Timestamp ISO8601 No

    Termination date of the valid period. Required when EffectiveType is Custom, and cannot be earlier than StartDate. Do not pass this field when EffectiveType is LongTerm.

    InferenceScheduledScalingPolicy

    Scheduled scaling policy configuration for edge reasoning.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    ScheduledActions Array of InferenceScheduledScalingAction Yes List of scheduled scaling actions. Fill in at least 1 and up to 10.
    EffectiveRange InferenceScheduledScalingEffectiveRange Yes Validity period range, for description of whether the scheduled scaling policy is long-term valid or valid only within a specified date range.
    TimeZone String No Time zone. Use the IANA time zone to identify the trigger time in ScheduledActions, such as UTC, Asia/Shanghai, America/New_York, Europe/London, and Asia/Kolkata. UTC is used by default if this parameter is not specified.




    InferenceService

    Inference service information.

    Used by actions: DescribeInferenceServices.

    Name Type Description
    ServiceId String Inference service ID.
    Name String Name of the inference service.
    Description String Description information.
    ListenPort Integer Ports that the model service needs to monitor. Only integers between 1 and 65535 are supported.
    RequestPaths Array of String Request path list for the inference service. Supports up to 20 paths.
    Containers Array of InferenceContainerConfig Container configuration of the inference service.
    ResourceConfig InferenceResourceConfig Resource configuration of the inference service.
    Status String Status of the inference service, including the following:
  • Deploying: deployment in progress;
  • Running: running;
  • Stopping: stopping;
  • Stopped: stopped;
  • Exception: exception;
  • Banned: banned.
  • ScalingStatus String Scaling status. Valid values:
  • Normal: running steadily with no scaling operation in progress;
  • ScalingOut: scaling out;
  • ScalingIn: scaling in.
  • CurrentInstanceCount Integer Number of currently running instances.
    InferenceURL String Inference access address. You can access the underlying model for reasoning via links.
    CreateTime String Creation time in ISO date format.
    UpdateTime String Last modification time in ISO date format.

    InferenceServiceConfig

    Deployment configuration of a single inference service.

    Used by actions: DescribeInferenceServiceDeploymentRecords.

    Name Type Description
    ListenPort Integer

    Ports monitored by the model service.

    RequestPaths Array of String

    Request path list of the inference service.

    Containers Array of InferenceContainerConfig

    Container configuration for the inference service.

    ResourceConfig InferenceResourceConfig

    Resource configuration of the inference service.

    AffinityConfig InferenceAffinityConfig

    Inference service affinity configuration.

    InferenceServiceDeploymentLogInfo

    Deployment log information for the reasoning service.

    Used by actions: DescribeInferenceServiceDeploymentLogs.

    Name Type Description
    LogMessage String Log message content.
    Timestamp Timestamp ISO8601 Log generation time.

    InferenceServiceDeploymentRecord

    Reasoning service deployment history.

    Used by actions: DescribeInferenceServiceDeploymentRecords.

    Name Type Description
    RecordId String Deployment record ID.
    Operation String Deployment operation type. Valid values:
  • create: create;
  • update: update;
  • resume: enable;
  • stop: Disable.
  • Status String Deployment state. Valid values:
  • processing: deploying;
  • succeeded: Deployed successfully;
  • failed: Deployment failed.
  • Duration Integer Deployment duration. Unit: seconds.
    InferenceServiceConfig InferenceServiceConfig Configuration of this inference service deployment.
    CreateTime String Deployment initiation time in ISO date format.
    ActiveStatus String Whether the deployment configuration is currently effective. Value:
  • active: effective configuration currently in use;
  • inactive: configuration of an earlier version or an abnormal version.
  • InferenceServiceMonitorItem

    Reasoning service monitoring data item.

    Used by actions: DescribeInferenceServiceMonitorData.

    Name Type Description
    Timestamp Timestamp ISO8601 Time point of the monitoring data.
    Value Float Specific values.

    InferenceServiceMonitorRecord

    Reasoning service monitoring data records.

    Used by actions: DescribeInferenceServiceMonitorData.

    Name Type Description
    ServiceId String Inference service ID.
    MetricName String Metric name.
    InferenceServiceMonitorItems Array of InferenceServiceMonitorItem Detailed reasoning service monitoring data.

    InferenceTCRRepositoryConfig

    TCR image repository configuration for reasoning.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    TCRType String Yes

    TCR service type. Valid values:

  • Personal: personal edition;
  • Enterprise: enterprise edition.
  • Image String Yes

    Image URL.

    RegistryId String No

    Mirror repository instance ID. Required when TCRType is Enterprise.

    RegionName String No

    Region name.

    IntelligenceRule

    Intelligent analysis rule

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String No Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • IntelligenceRuleItems Array of IntelligenceRuleItem No Rule details.

    IntelligenceRuleItem

    Bot intelligent analysis rule detail

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Label String Yes Intelligent analysis tag. Valid values:
  • evil_bot: malicious bot;
  • suspect_bot: suspected bot;
  • good_bot: good bot;
  • normal: Normal request.
  • Action String Yes Trigger the handling method corresponding to the Intelligent Analysis tag. Valid values:
  • drop: block;
  • trans: pass;
  • alg: Javascript challenge;
  • captcha: digit verification code;
  • monitor: observation.
  • IpTableConfig

    IP whitelist/blacklist and IP region control configuration

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable;
  • IpTableRules Array of IpTableRule No Basic access control rule. If it is null, use the last set configuration by default.

    IpTableRule

    Custom rule - basic access control configuration.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Action String Yes Action. Valid values:
  • drop: block;
  • trans: release;
  • monitor: observation.
  • MatchFrom String Yes According to type matching. Valid values:
  • ip: Match by client IP;
  • area: match by client IP region;
  • asn: Match the autonomous system to which the client belongs;
  • referer: match the Referer request header;
  • ua: match the User-Agent request header;
  • url: Request URL for matching.
  • Operator String No Match method of the rule. Valid values:
  • match: match, suitable for MatchFrom as ip;
  • not_match: Not match, suitable for when MatchFrom is ip;
  • include_area: region inclusion, suitable for MatchFrom as area;
  • not_include_area: Regions excluded, applicable to MatchFrom as area;
  • asn_match: ASN contains, suitable for MatchFrom as asn;
  • asn_not_match: ASN not contained, applicable to MatchFrom as asn;
  • equal: equal, suitable for MatchFrom being ua, referer;
  • not_equal: Not equal to, applicable to MatchFrom being ua, referer;
  • include: wildcard match, suitable for MatchFrom being ua, referer, url;
  • not_include: wildcard mismatch, suitable for MatchFrom being ua, referer;
  • is_emty: The configuration content is empty, suitable for MatchFrom being ua or referer;
  • not_exists: The configuration content does not exist. This is applicable when MatchFrom is ua or referer.
  • RuleID Integer No Rule id. Output only.
    UpdateTime Timestamp ISO8601 No Update time. For output usage only.
    Status String No Rule enablement status. Valid values:
  • on: Enable;
  • off: Disabled.

  • If the input parameter is not specified, the value defaults to on.
    RuleName String No Rule name.
    MatchContent String No Matching content. Multi-value input is supported.
  • When entering multiple matching values, please separate them with English commas;
  • When MatchFrom is ua, multi-value input is not supported;
  • When Operator is is_empty or not_exists, the input value of this field is invalid.
  • Ipv6

    Ipv6 access configuration

    Used by actions: CreateApplicationProxy, DescribeApplicationProxies, DescribeHostsSetting, DescribeZoneSetting, ModifyApplicationProxy, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Ipv6 access feature configuration. Valid values:
  • on: Turn on the Ipv6 access feature;
  • off: Disables the Ipv6 access feature.
  • JITVideoProcess

    Just-in-time media processing configuration.

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Just-in-time media processing configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • JSInjectionRule

    JavaScript injection rule.

    Used by actions: CreateSecurityJSInjectionRule, DescribeSecurityJSInjectionRule, ModifySecurityJSInjectionRule.

    Name Type Required Description
    RuleId String No Rule ID.
    Name String No Rule name.
    Priority Integer No Rule priority. A smaller value indicates higher priority. Value range: 0-100. Default value: 0.
    Condition String No Match condition content. It must comply with the expression syntax. For detailed specifications, see the product document.
    InjectJS String No JavaScript injection options. Default value: run-attestations. Valid values:
  • no-injection: Do not inject JavaScript;
  • inject-sdk-only: Inject the SDKs of all currently supported authentication methods, including TC-RCE and TC-CAPTCHA. Note: To execute authentication detection, configure challenge rules.

  • JustInTimeTranscodeTemplate

    Details of the just in time transcoding template.

    Used by actions: DescribeJustInTimeTranscodeTemplates.

    Name Type Description
    TemplateId String Unique identifier of the instant transcoding template.
    TemplateName String Transcoding template name.
    Comment String Template description information.
    Type String Template type. Valid values:
  • preset: system-preset template.
  • custom: custom template.
  • VideoStreamSwitch String Enable the video stream switch. Value:
  • on: enable;
  • off: disable.
  • AudioStreamSwitch String Enable the audio stream switch. Valid values:
  • on: enable;
  • off: disable.
  • VideoTemplate VideoTemplateInfo Video stream configuration parameters. This field is valid only when VideoStreamSwitch is on.
    AudioTemplate AudioTemplateInfo Audio stream configuration parameters. This field is valid only when AudioStreamSwitch is on.
    CreateTime String Template creation time in ISO date format.
    UpdateTime String Template last modified time, use the ISO date format.

    KVNamespace

    KV namespace information, including the basic attributes, storage capacity utilization, and reference relationships of the namespace. A KV namespace is a container for edge functions to store key-value pair data, which can be read and written in edge functions through binding.

    Used by actions: DescribeEdgeKVNamespaces.

    Name Type Description
    Namespace String Namespace name. It is unique within the same site.
    Remark String Namespace description. Remark information filled in upon creation, used to describe the purpose or business meaning of the namespace. Supports up to 256 characters.
    Capacity Integer Available capacity of the KV storage space, in bytes. It indicates the maximum capacity limit of storable data in the namespace, which defaults to 1 GB.
    CapacityUsed Integer Used KV storage capacity in bytes. It indicates the currently used storage space size of the namespace.
    References Array of ComponentReference List of instances that reference the namespace. Shows which edge function instances currently reference the namespace, as well as the site information of the references. If not referenced, return an empty array.
    CreatedOn Timestamp ISO8601 Namespace creation time in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ (UTC time).
    ModifiedOn Timestamp ISO8601 Last modification time of the namespace, following the ISO 8601 standard, format: YYYY-MM-DDThh:mm:ssZ (UTC time).

    KVNamespaceParameters

    Detailed configuration parameters required for binding a KV namespace to an edge function, used to specify the source of the bound namespace. With this configuration, the edge function can operate the KV namespace under the specified site.

    Used by actions: DescribeFunctionComponentBindings, ModifyFunctionComponentBindings.

    Name Type Required Description
    ZoneId String Yes Site ID to which the KV namespace belongs. Specify the site where the KV namespace that should be bound is located. Cross-site binding is supported.
    Namespace String Yes KV namespace name. Specify the specific namespace that should be bound. You can obtain the list of namespaces under a site through the DescribeKVNamespace API.

    KeyValuePair

    KV key-value pair data, including key name, key value, and expiration time info.

    Used by actions: EdgeKVGet.

    Name Type Description
    Key String Key name. Each key name cannot be empty, with a length of 1-512 characters. Valid UTF-8 characters are supported.
    Value String Key-value. It cannot be empty as an input parameter and supports up to 1 MB. As an output parameter, if the key does not exist, an empty string is returned.
    Expiration Timestamp ISO8601 Expiration time, following the ISO 8601 standard, formatted as YYYY-MM-DDThh:mm:ssZ (UTC time). In output, an empty string means the key-value pair never expires.

    KnownBotCategories

    UA feature configuration for commercial or open-source tools (formerly UA feature rule).

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BaseAction SecurityAction No Handling method for access requests from known commercial or open-source tools. Supported values of SecurityAction Name:
  • Deny: Block;
  • Monitor: Observe;
  • Disabled: Not enabled, disable the specified rule;
  • Challenge: Challenge. Among them, ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge;
  • Allow: Release (to be deprecated).
  • BotManagementActionOverrides Array of BotManagementActionOverrides No Specify the handling method for access requests from known commercial or open-source tools.

    L4OfflineLog

    Offline log details

    Used by actions: DownloadL4Logs.

    Name Type Description
    ProxyId String Layer 4 Proxy Instance ID.
    Area String Log region. Valid values:
  • mainland: within the Chinese mainland;
  • overseas: global (excluding the Chinese mainland).
  • LogPacketName String Name of the offline log data packet.
    Url String Offline log download URL.
    LogTime Integer Log packaging time. This parameter has been deprecated.
    LogStartTime Timestamp ISO8601 Start time for log packaging.
    LogEndTime Timestamp ISO8601 Log packaging end time.
    Size Integer Log size in bytes.

    L4Proxy

    L4 proxy instance.

    Used by actions: DescribeL4Proxy.

    Name Type Required Description
    ZoneId String No Zone ID.
    ProxyId String No Layer 4 Proxy Instance ID.
    ProxyName String No Name of the L4 proxy instance.
    Area String No Acceleration zone of the Layer 4 proxy instance.
  • mainland: Chinese mainland availability zone;
  • overseas: global availability zone (excluding the Chinese mainland);

  • global: global availability zone.
  • Cname String No Access via CNAME.
    Ips Array of String No After fixed IP address is enabled, this value returns the corresponding access IP address. If not enabled, this value is empty.
    Status String No Status of the Layer 4 proxy instance.
  • online: enabled;
  • offline: Disabled;
  • progress: deploying;

  • stopping: disabling;
  • banned: The name server is banned.
  • fail: deployment or disabling failed.
  • Ipv6 String No Specifies whether to enable IPv6 access.
  • on: Enable;

  • off: Disable.
  • StaticIp String No Specifies whether to enable the fixed IP address.
  • on: Enable;
  • off: Disable.
  • AccelerateMainland String No Specifies whether to enable network optimization in the Chinese mainland.
  • on: Enable.
  • off: Disable.
  • L4ProxyRuleCount Integer No Number of forwarding rules under the layer 4 proxy instance.
    UpdateTime Timestamp ISO8601 No Latest modification time.

    L4ProxyRemoteAuth

    L4 remote authentication information.

    Used by actions: CreateL4ProxyRules, DescribeL4ProxyRules, ModifyL4ProxyRules.

    Name Type Required Description
    Switch String Yes L4 remote authentication switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Address String Yes Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888.
    ServerFaultyBehavior String Yes Default origin-pull behavior based on L4 forwarding rules after remote authentication service inaccessibility. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • L4ProxyRule

    Layer 4 proxy forwarding rule details.

    Used by actions: CreateL4ProxyRules, DescribeL4ProxyRules, ModifyL4ProxyRules.

    Name Type Required Description
    RuleId String No Forwarding rule ID.
    Note: Do not fill in L4ProxyRule as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, this parameter is required.
    Protocol String No Forwarding protocol. Valid values:
  • TCP: TCP protocol;
  • UDP: UDP protocol.

  • Note: L4ProxyRule is required as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    PortRange Array of String No Forwarding port. You can fill it in based on the following format:
  • A single port, such as 80;
  • A port range, such as 81-85, indicating five ports 81, 82, 83, 84, and 85.

  • Note: L4ProxyRule is required as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    OriginType String No Origin server type. Valid values:
  • IP_DOMAIN: IP/domain origin server;
  • ORIGIN_GROUP: origin server group;
  • LB: load balancing. Currently only available to the allowlist.

  • Note: L4ProxyRule is required as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    OriginValue Array of String No Origin server address:
  • When OriginType is IP_DOMAIN, enter an IP address or domain name, for example, 8.8.8.8 or test.com;
  • When OriginType is ORIGIN_GROUP, fill in the origin server group ID, such as og-537y24vf5b41; if referencing an origin server group from another site, the format is {origin server group ID}@{ZoneID}. For example: og-testorigin@zone-38moq1z10wwwy;
  • When OriginType is LB, fill in the Cloud Load Balancer instance ID, for example, lb-2qwk30xf7s9g. If a load balancer from another site is referenced, the format is {Cloud Load Balancer ID}@{ZoneID}. For example: lb-2rxpamcyqfzg@zone-38moq1z10wwwy.

  • Note: L4ProxyRule is required as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    OriginPortRange String No Origin server port, which can be set as follows:
  • A single port, such as 80;
  • A port range, such as 81-85, indicating five ports 81, 82, 83, 84, and 85. When entering a port range, ensure the length corresponds with the forwarding port range. For example, if the forwarding port is 80-90, the forwarding port should be 90-100.

  • Note: L4ProxyRule is required as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    ClientIPPassThroughMode String No Transmission of the client IP address. Valid values:
  • TOA: TOA (selectable only when Protocol = TCP);

  • PPV1: passing via Proxy Protocol V1, available only when Protocol = TCP;
  • PPV2: passing via Proxy Protocol V2;

  • SPP: transmission via Simple Proxy Protocol (selectable only when Protocol = UDP);

  • OFF: Do not pass the client IP.

  • Note: L4ProxyRule is optional as an input parameter in CreateL4ProxyRules. If not specified, it defaults to OFF. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    SessionPersist String No Whether to enable session persistence. Valid values:
  • on: Enable;
  • off: Disable.

  • Note: When L4ProxyRule is used as an input parameter in CreateL4ProxyRules, this parameter is optional and defaults to off if left empty. When used as an input parameter in ModifyL4ProxyRules, this parameter is optional and retains its existing value if not specified.
    SessionPersistTime Integer No Session persistence duration, in seconds. Value range: 30-3600.
    Note: L4ProxyRule is optional as an input parameter in CreateL4ProxyRules. It is valid only when SessionPersist = on. If not specified when SessionPersist = on, it defaults to 3600. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    RuleTag String No Rule tag. Enter 1-50 characters.
    Note: L4ProxyRule is optional as an input parameter in CreateL4ProxyRules. In ModifyL4ProxyRules, it is optional. If not specified, it will retain its existing value.
    Status String No Rule status. Valid values:
  • online: enabled;
  • offline: disabled;
  • progress: deploying;
  • stopping: disabling;
  • fail: deployment or disabling failed.

  • Note: Do not fill in this parameter when L4ProxyRule is used as an input parameter in CreateL4ProxyRules or ModifyL4ProxyRules.
    BuId String No BuID.
    RemoteAuth L4ProxyRemoteAuth No Remote authentication information.
    Note: RemoteAuth cannot be used as an input parameter in CreateL4ProxyRules or ModifyL4ProxyRules. If this parameter is input, it will be ignored. If the returned data of DescribeL4ProxyRules is empty, it indicates that remote authentication is disabled.

    L7OfflineLog

    Layer-7 offline log details.

    Used by actions: DownloadL7Logs.

    Name Type Description
    Domain String Offline log domain name.
    Area String Log associated region. Valid values:
  • mainland: within the Chinese mainland;
  • overseas: global (excluding the Chinese mainland).
  • LogPacketName String Offline log data packet name.
    Url String Offline log download address.
    LogTime Integer Log packaging time. This parameter has been deprecated.
    LogStartTime Timestamp ISO8601 Log packaging start time.
    LogEndTime Timestamp ISO8601 Log packaging end time.
    Size Integer Log original size in bytes.

    LoadBalancer

    LoadBalancer information.

    Used by actions: DescribeLoadBalancerList.

    Name Type Description
    InstanceId String

    Instance ID.

    Name String

    Instance name, which can contain 1 to 200 characters, including a-z, A-Z, 0-9, underscores (_), and hyphens (-).

    Type String

    Instance type. Valid values:

  • HTTP_V2: HTTP dedicated (V2). Supports adding HTTP dedicated and general origin groups. Site acceleration services reference only (for example, domain name service and rule engine). This instance type supports selecting the region to trigger probes, which can significantly reduce probe request volume but has lower sensitivity to origin health awareness.
  • HTTP: HTTP dedicated (V1). Supports adding HTTP dedicated and general origin groups. Site acceleration services reference only (for example, domain name service and rule engine). This instance type does not support selecting the region to trigger probes. The probe request volume is large, but the sensitivity to origin health awareness is higher.
  • GENERAL: General type. Supports adding general origin groups only. It can be referenced by site acceleration services (for example, domain name service and rule engine) and Layer-4 proxies. This instance type does not support selecting the region to trigger probes. The probe request volume is large, but the sensitivity to origin health awareness is higher.
  • HealthChecker HealthChecker

    Health check policy. For details, refer to Health Check Policies.

    SteeringPolicy String

    Traffic scheduling policy among origin server groups. Valid values:

  • Pritory: Perform failover according to priority.
  • FailoverPolicy String

    Request retry policy when access to an origin server fails. For details, refer to Introduction to Request Retry Strategy. Valid values:

  • OtherOriginGroup: After a single request fails, retry with another origin server within the next lower priority origin server group;
  • OtherRecordInOriginGroup: After a single request fails, retry with another origin server within the same origin server group.
  • OriginGroupHealthStatus Array of OriginGroupHealthStatus

    Origin server group health status.

    Status String

    Load balancing status. Valid values:

  • Pending: deploying;
  • Deleting: deleting;
  • Running: effective.
  • L4UsedList Array of String

    List of L4 proxy instances bound to the load balancing instance.

    L7UsedList Array of String

    List of Layer-7 domain names bound to the load balancing instance.

    References Array of OriginGroupReference

    List of referenced instances of the load balancer.

    LogAnalysisDownloadTask

    Log analysis log download task.

    Used by actions: DescribeLogAnalysisDownloadTasks.

    Name Type Description
    TaskId String

    Task ID.

    ZoneId String

    Zone ID.

    Area String

    Data ownership region. Valid values:

    • mainland: within the Chinese mainland;
    • overseas: global (excluding the Chinese mainland).

    StartTime Timestamp ISO8601

    Start time. Example value: 2020-04-29T00:00:00Z.

    EndTime Timestamp ISO8601

    End time. Example value: 2020-04-30T00:00:00Z.

    LogType String

    Log type. Valid values:

    • l7-access-logs: L7 access log;
    • web-attack: managed rule log.

    Condition String

    Log match condition, with a maximum length of 12 KB.

    Format String

    File format. Valid values:

    • csv.
    Sort String

    Whether raw logs are returned in time sequence. Valid values:

    • asc: in ascending order;
    • desc: in descending order.

    Status String

    Task status. Valid values:

    • loading: processing, waiting to generate a download link;
    • failed: processing failure, the current task cannot be downloaded;
    • completed: packaged and ready for download.

    CreateTime Timestamp ISO8601

    Task creation time. It will be retained for 3 days after successful task creation.

    Url String

    Download URL. It is returned only when Status = completed.

    ExpireTime Timestamp ISO8601

    Task expiration time for download. The download address will be unavailable after expiry. Obtain a new download address through this API.

    LogFormat

    Output format for real-time log delivery. You can directly use the specified predefined log output format (JSON Lines / csv) through the FormatType parameter, or define a variant output format through additional parameters based on the predefined log output format. For usage details, see Custom Log Output Format.

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    FormatType String Yes

    Log output format. Valid values:

    • json: uses the preset JSON Lines format, where the fields in each log entry are presented as key-value pairs;
    • csv: uses the preset CSV format, where each log entry presents only field values and not field names;
    • template: uses a user-defined output template, which allows you to customize the layout and concatenation of each log entry. It must be used together with the RecordTemplate parameter.
    BatchPrefix String No

    A string added before each log delivery batch. Each log delivery batch may contain multiple log records.

    BatchSuffix String No

    A string appended after each log delivery batch.

    RecordPrefix String No

    Prefix of a single log entry. String added before each log record.

    RecordSuffix String No

    Suffix of a single log entry. String appended after each log record.

    RecordDelimiter String No

    Log delimiter. String inserted between log records as a separator. Valid values:

    • \n: line feed;
    • \t: tab;
    • ,: half-width comma.
    RecordTemplate String No

    Log template. Output template of a single log entry, with a length limit of 4 KB. It takes effect only when FormatType = template. It allows you to customize the layout and concatenation of the configured delivery fields according to the template.

    FieldDelimiter String No

    Field delimiter. String inserted between fields within a single log record as a separator. It takes effect only when FormatType = csv. Valid values:

    • \t: tab;
    • ,: half-width comma;
    • ;: half-width semicolon.

    LogItem

    Log information for log analysis

    Used by actions: DescribeLogAnalysisDetail.

    Name Type Description
    Timestamp Integer Time point when the log is generated, using a unix millisecond-level timestamp.
    LogJson String Specific contents of the log in JSON String Format.

    ManagedRuleAction

    Item configuration of a managed rule

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    RuleId String Yes Specific item under the managed rule group, used for rewriting the configuration content of this individual rule. For details, refer to the product documentation.
    Action SecurityAction Yes Specifies the handling action for the managed rule item in RuleId. Supported values for SecurityAction Name:
  • Deny: Block. Responds with an interception page.
  • Monitor: Observe. Does not process the request but records security events in logs.
  • Disabled: Not enabled. Skips the rule without scanning requests.
  • ManagedRuleAutoUpdate

    Automatic update options for managed rules

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    AutoUpdateToLatestVersion String Yes Whether automatic update to the latest version is enabled. Valid values:
  • on: enabled
  • off: disabled
  • RulesetVersion String No Currently used version in ISO 8601 format, for example, 2023-12-21T12:00:32Z. Empty by default. Output only.

    ManagedRuleDetail

    Details of managed rules

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    RuleId String No Managed rule Id.
    RiskLevel String No Protection level of the managed rule. Valid values:
  • low: low risk. This rule has lower risk and is suitable for access scenarios in very strict control environments. Rules at this level may cause considerable false alarms;
  • medium: medium-risk. This rule has normal risk and is suitable for strict protection scenarios;
  • high: high-risk. This rule has relatively high risk and will not generate false alarms in most scenarios;
  • extreme: ultra-high risk. This rule has extremely high risk and basically will not generate false alarms;
  • Description String No Rule description.
    Tags Array of String No Rule tag. Some types of rules do not have tags.
    RuleVersion String No Rule version.

    ManagedRuleGroup

    Managed rule group configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    GroupId String Yes Group name of the managed rule. If no rule group is specified, the default configuration is used. For the specific value of GroupId, refer to the product documentation.
    SensitivityLevel String Yes Protection level of the managed rule group. Valid values:
  • loose: Loose. It only contains ultra-high risk rules. At this point, Action is required and RuleActions is invalid.
  • normal: Normal. It contains ultra-high risk and high-risk rules. At this point, Action is required and RuleActions is invalid.
  • strict: Strict. It contains ultra-high risk, high-risk, and medium-risk rules. At this point, Action is required and RuleActions is invalid.
  • extreme: Ultra-strict. It contains ultra-high risk, high-risk, medium-risk, and low-risk rules. At this point, Action is required and RuleActions is invalid.
  • custom: Custom. Refined strategy. Configure the disposal method for each individual rule. At this point, the Action field is invalid. Use RuleActions to configure the refined strategy for individual rules.
  • Action SecurityAction Yes Handling action of the managed rule group. Supported values for SecurityAction Name:
  • Deny: Block. Respond with an interception page;
  • Monitor: Observe. Do not process requests, log security events in logs;
  • Disabled: Not activated. Do not scan requests, skip this rule.
  • RuleActions Array of ManagedRuleAction No Specific configuration of rule items in the managed rule group. This configuration is effective only when SensitivityLevel is custom.
    MetaData ManagedRuleGroupMeta No Managed rule group information. This is an output-only parameter.

    ManagedRuleGroupMeta

    Managed rule group information

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    GroupDetail String No Managed rule group description. For output usage only.
    GroupName String No Managed rule group name. Output parameter only.
    RuleDetails Array of ManagedRuleDetail No Rule information of all sub-rules in the current managed rule group. Output parameter only.

    ManagedRules

    Managed rules for Web security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String Yes

    Whether managed rules are enabled. Valid values:

  • on: enabled. All managed rules take effect as configured.
  • off: disabled. No managed rules take effect.
  • DetectionOnly String Yes

    Whether evaluation mode is enabled. This parameter is valid only when the Enabled parameter is set to on. Valid values:

  • on: enabled. All managed rules take effect in observation mode.
  • off: disabled. All managed rules take effect as configured.
  • SemanticAnalysis String No

    Whether the deep analysis option for managed rules is enabled. This parameter is valid only when the Enabled parameter is set to on. Valid values:

  • on: enabled. Requests are processed after deep analysis.
  • off: disabled. Requests are processed directly without deep analysis.

  • This parameter is to be deprecated. The switch for deep analysis rules is migrated to the SemanticAnalysisRules.Enabled parameter.

    SemanticAnalysisRules SemanticAnalysisRules No

    Deep analysis configuration option. Identifies malicious behaviors in requests (such as SQL injection and XSS attacks), and logs and blocks malicious requests.

    AutoUpdate ManagedRuleAutoUpdate No

    Auto-update option for managed rules.

    ManagedRuleGroups Array of ManagedRuleGroup No

    Configuration of managed rule groups. If an empty array is passed for this structure or GroupId is not included in the list, the default processing method is used.

    FrequentScanningProtection FrequentScanningProtection No

    High-frequency scan protection configuration option. When a visitor's requests frequently trigger managed rules configured as block, all requests from this visitor are blocked for a period of time.

    MaxAge

    Browser cache rule configuration, used to set the default MaxAge. Disabled by default.

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    FollowOrigin String No Whether to follow the origin site, with values:
  • on: follow the origin site, ignore the MaxAge time setting;
  • off: Do not follow the origin site. Use the MaxAge time setting.
  • MaxAgeTime Integer No MaxAge time setting, in seconds. Value range: 0–315360000.
    Note: If the time is 0, no cache is used.

    MaxAgeParameters

    Browser cache TTL config.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    FollowOrigin String No Follow the origin server Cache-Control switch. Valid values:
  • on: follow the origin site and ignore the CacheTime setting;
  • off: Do not follow the origin site. Use the CacheTime time setting.
  • CacheTime Integer No Custom cache time value in seconds. Value range: 0–315360000.
    Note: When FollowOrigin is off, it means not to follow the origin site and use CacheTime to set the cache time. Otherwise, this field is ineffective.

    MaxNewSessionTriggerConfig

    Trigger threshold of verification in Bot management.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    MaxNewSessionCountInterval String No Time window for trigger threshold statistics. Valid values:
  • 5s: within 5 seconds;
  • 10s: within 10 seconds;
  • 15s: within 15 seconds;
  • 30s: within 30 seconds;
  • 60s: within 60 seconds;
  • 5m: within 5 minutes;
  • 10m: within 10 minutes;
  • 30m: within 30 minutes;
  • 60m: within 60 minutes.
  • MaxNewSessionCountThreshold Integer No Cumulative count of trigger threshold statistics. Value range: 1-100000000.

    MinimalRequestBodyTransferRate

    Configuration of the minimum body transfer rate threshold.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    MinimalAvgTransferRateThreshold String Yes Minimum body transfer rate threshold. The measurement unit only supports bps.
    CountingPeriod String Yes Statistical time range for minimum body transfer rate. Valid values:
  • 10s: 10 seconds;
  • 30s: 30 seconds;
  • 60s: 60 seconds;
  • 120s: 120 seconds.
  • Enabled String Yes Whether the minimum body transfer rate threshold is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • ModifyOriginParameters

    Modify origin server configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    OriginType String No Origin server type. Valid values:
  • IPDomain: IPV4, IPV6, or domain type origin server;
  • OriginGroup: origin server group type origin server;
  • LoadBalance: load balancing. This feature is in beta test. If needed, submit a ticket;
  • COS: Tencent Cloud COS origin server;
  • AWSS3: supports all COS origin servers using the AWS S3 protocol.
  • Origin String No Origin server address, which varies according to the value of OriginType:
  • When OriginType = IPDomain, fill in an IPV4 address, an IPV6 address, or a domain name;
  • When OriginType = COS, specify the access domain of the COS bucket;
  • When OriginType = AWSS3, fill in the access domain name of the S3 bucket;
  • When OriginType = OriginGroup, fill in the origin server group ID. As an output parameter, if an origin server group from another site is referenced, the format is {origin server group ID}@{ZoneID}. For example: og-testorigin@zone-38moq1z10wwwy;
  • When OriginType = LoadBalance, specify the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist. As an output parameter, if a load balancer from another site is referenced, the format is {load balancer ID}@{ZoneID}. For example: lb-2rxpamcyqfzg@zone-38moq1z10wwwy.
  • OriginProtocol String No Origin-pull protocol configuration. This parameter is required when OriginType is IPDomain, OriginGroup, or LoadBalance. Valid values:
  • http: use HTTP protocol;
  • https: Use HTTPS protocol;
  • follow: follow protocol.
  • HTTPOriginPort Integer No HTTP origin-pull port, value ranges from 1 to 65535. This parameter is required when the origin-pull protocol OriginProtocol is http or follow.
    HTTPSOriginPort Integer No HTTPS origin-pull port, value range: 1–65535. This parameter is required when OriginProtocol is https or follow.
    PrivateAccess String No Whether access to the private object storage origin server is allowed. This parameter is required when the origin server type OriginType is COS or AWSS3. Valid values:
  • on: Enable private authentication;
  • off: Disable private authentication.
  • PrivateParameters OriginPrivateParameters No Private authentication parameter. This parameter is valid only when OriginType = AWSS3 and PrivateAccess = on.

    ModifyRequestHeaderParameters

    Modify HTTP back-to-origin request header configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    HeaderActions Array of HeaderAction No HTTP header setting rule list.

    ModifyResponseHeaderParameters

    HTTP node response header configuration parameter modification.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    HeaderActions Array of HeaderAction No List of HTTP origin-pull header rules.

    MultiPathGateway

    Multi-channel security gateway details

    Used by actions: DescribeMultiPathGateway, DescribeMultiPathGateways.

    Name Type Description
    GatewayId String Gateway ID.
    GatewayName String Gateway name.
    GatewayType String Gateway type. Valid values:
  • cloud: Cloud Gateway, a gateway created and managed by Tencent Cloud.
  • private: private gateway, a Private Gateway deployed by the user.
  • GatewayPort Integer Gateway port. Range: 1–65535 (excluding 8888).
    Status String Gateway status. Valid values:
  • creating : Creating;
  • online : Online;
  • offline : Offline;
  • disable : disabled.
  • GatewayIP String Gateway IP in IPv4 format.
    RegionId String Gateway region ID. You can obtain the RegionId list through the DescribeMultiPathGatewayRegions API.
    Lines Array of MultiPathGatewayLine Line information. It will be returned when querying gateway information details via DescribeMultiPathGateway, but not when querying the gateway list via DescribeMultiPathGateways.
    NeedConfirm String Whether the origin-pull IP list of the gateway has changed and needs confirmation. Valid values:
  • true: The origin-pull IP list has changed and needs confirmation;
  • false: The origin-pull IP list has not changed and does not need confirmation.
  • MultiPathGatewayCurrentOriginACL

    Currently effective origin-pull IP range.

    Used by actions: DescribeMultiPathGatewayOriginACL.

    Name Type Required Description
    EntireAddresses Addresses No Origin-pull IP range details.
    Version Integer No Version.
    IsPlaned String No This parameter is used to record whether the confirmation of "I have updated to the latest origin-pull IP range" is completed before the current version takes effect. Valid values:
  • true: The confirmation of updating to the latest origin-pull IP is completed;
  • false: The confirmation of updating to the latest origin-pull IP is not completed;

  • Note: When this parameter returns false, confirm in time whether your origin server firewall settings are updated to the latest origin-pull IP range to avoid origin-pull failure.

    MultiPathGatewayLine

    Line information of the multi-channel security gateway

    Used by actions: DescribeMultiPathGateway, DescribeMultiPathGatewayLine, DescribeMultiPathGateways.

    Name Type Description
    LineId String Line ID. Among them, line-0 and line-1 are built-in line IDs. Valid values:
  • line-0: direct-access line. Additions, edits, and deletion are not supported;
  • line-1: EdgeOne Layer 4 proxy line. Supports modifying instances and rules. Deletion is not supported;
  • line-2 and above: EdgeOne Layer 4 proxy lines or custom lines, supports modifying and deletion of instances and rules.
  • LineType String Line type. Valid values:
  • direct: direct-access line, editing is not supported, and deletion is not supported;
  • proxy: EdgeOne Layer 4 proxy route. Supports editing and modifying instances and rules. Deletion is not supported;
  • custom: Custom lines, support editing and deletion.
  • LineAddress String Line address in the format of host:port.
    ProxyId String Layer 4 proxy instance ID, returned when the line type LineType is proxy (EdgeOne Layer 4 proxy).
    RuleId String Forwarding rule ID, returned when the line type LineType is proxy (EdgeOne Layer 4 proxy).

    MultiPathGatewayNextOriginACL

    When the origin-pull IP range is updated, this field will return the origin-pull IP range that will take effect in the next version, including a comparison with the currently effective origin-pull IP range.

    Used by actions: DescribeMultiPathGatewayOriginACL.

    Name Type Required Description
    Version Integer No Version.
    EntireAddresses Addresses No Origin-pull IP range details.
    AddedAddresses Addresses No Latest origin-pull IP range compared with the newly-added part of the origin-pull IP range in MultiPathGatewayCurrentOrginACL.
    RemovedAddresses Addresses No Latest origin IP range compared with the part deleted from the origin IP range in MultiPathGatewayCurrentOrginACL.
    NoChangeAddresses Addresses No The part of the latest origin-pull IP range that is unchanged compared with the origin-pull IP range in MultiPathGatewayCurrentOrginACL.

    MultiPathGatewayOriginACLInfo

    Binding relationship between a multi-channel gateway example instance and the origin-pull IP range, as well as the origin-pull IP range details.

    Used by actions: DescribeMultiPathGatewayOriginACL.

    Name Type Required Description
    MultiPathGatewayCurrentOriginACL MultiPathGatewayCurrentOriginACL No Currently effective origin-pull IP range.
    MultiPathGatewayNextOriginACL MultiPathGatewayNextOriginACL No When the origin-pull IP range is updated, this field will return the origin-pull IP range that will take effect in the next version, including a contrast with the current origin-pull IP range. If there is no update, this field is empty.

    MutualTLS

    HTTPS mutual authentication.

    Used by actions: DescribeAccelerationDomains, ModifyHostsCertificate.

    Name Type Required Description
    Switch String Yes Mutual authentication configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • CertInfos Array of CertificateInfo No List of mutual authentication certificates.
    Note: When using MutualTLS as an input parameter in ModifyHostsCertificate, you only need to provide the CertId of the corresponding certificate. You can check the CertId from the SSL Certificate List.

    NSDetail

    NS access type site parameter details.

    Used by actions: DescribeZones.

    Name Type Description
    CnameSpeedUp String Whether CNAME acceleration is enabled. Valid values:
  • enabled: Enable;
  • disabled: Disable.
  • IsFake Integer Existence of a site with the same name. Valid values:
  • 0: No site with the same name exists;
  • 1: A site with the same name already exists.
  • OwnershipVerification OwnershipVerification Ownership verification information. For sites with NS access type, switching the current NS server to the NS server designated by Tencent Cloud EdgeOne is deemed as passing ownership verification. For details, see Site/Domain Ownership Verification.
    OriginalNameServers Array of String List of NS servers currently in use by the site detected by EdgeOne.
    NameServers Array of String List of NS servers assigned by Tencent Cloud EdgeOne. Point the NS server of the current site to this address for the site to take effect.
    VanityNameServers VanityNameServers User-customized NS server domain info. If the custom NS service is enabled, the NS need to be pointed to this address at the domain name registered vendor.
    VanityNameServersIps Array of VanityNameServersIps IP address information corresponding to the user-customized NS server.

    NetworkErrorLogging

    Network error log configuration item

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether to enable network error log configuration. Valid values:
  • on: Enable;
  • off: Disable.
  • NetworkErrorLoggingParameters

    Network error log configuration item.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Network error log configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • NextOriginACL

    When the origin-pull IP range is updated, this field will return the origin-pull IP range that will be effective in the next version, including a comparison with the currently effective origin-pull IP range.

    Used by actions: DescribeOriginACL.

    Name Type Required Description
    Version String No Version.
    PlannedActiveTime String No Version effective time, which adopts Beijing time (UTC+8) and follows the date and time format of the ISO 8601 standard.
    EntireAddresses Addresses No Origin-pull IP range details.
    AddedAddresses Addresses No Latest origin-pull IP range newly added compared with the origin-pull IP range in CurrentOrginACL.
    RemovedAddresses Addresses No The part deleted from the latest origin-pull IP range compared with the origin-pull IP range in CurrentOrginACL.
    NoChangeAddresses Addresses No The part of the latest origin-pull IP range that is unchanged compared with the origin-pull IP range in CurrentOrginACL.

    NoCache

    No cache configuration

    Used by actions: CreateL7AccRules, DescribeHostsSetting, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes No cache configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • NormalAction

    Action of the normal type for the rule engine

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Action String Yes Feature name. For feature name completion specifications, call the api Query parameter settings of the rule engine to view.
    Parameters Array of RuleNormalActionParams Yes Parameter.

    NsVerification

    Information required for NS access and DNS server switchover.

    Used by actions: CreateAccelerationDomain, CreateZone, DescribeAccelerationDomains, DescribeInferenceDomains, DescribeZones.

    Name Type Description
    NameServers Array of String DNS server address assigned to the user for NS access. Switch the domain's NameServer to this address.

    OCSPStaplingParameters

    OCSP stapling configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No OCSP stapling configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • OfflineCache

    Whether offline cache is enabled

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether offline cache is enabled. Valid values:
  • on: Enable;
  • off: Disable.
  • OfflineCacheParameters

    Whether offline cache is enabled.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Offline cache switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Origin

    Origin server configuration.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Origins Array of String No Primary origin server list.
    BackupOrigins Array of String No Backup origin list.
    OriginPullProtocol String No Origin-pull protocol configuration, with values:
  • http: Force HTTP origin-pull.
  • follow: follow protocol for origin-pull;
  • https: Force HTTPS origin-pull.
  • CosPrivateAccess String No Whether the origin server is a private access bucket when it is Tencent Cloud COS. Valid values:
  • on: Private access;
  • off: Public Access.
  • OriginACLEntity

    Instances that need to be configured for origin-pull from specific origin IP ranges.

    Used by actions: ModifyOriginACL.

    Name Type Required Description
    Type String Yes Instance type. Valid values:
    - l7: layer-7 accelerated domain;
    - l4: layer-4 proxy instance.
    Instances Array of String Yes Instance details. Valid values:
    - When Type = l7, enter the layer-7 accelerated domain;
    - When Type = l4, enter the layer-4 proxy instance ID.
    OperationMode String Yes Operation mode. Valid values:
  • enable: enable;
  • disable: disable.
  • OriginACLFamilyInfo

    Version information of origin-pull IP ranges.

    Used by actions: DescribeAvailableOriginACLFamily.

    Name Type Required Description
    Version String No Origin protection version number.
    Format description:
    Standard version.
  • gaz-xxxxx: global;
  • mlc-xxxxx: China;
  • emc-xxxxx: overseas (worldwide excluding China);

  • Simplified edition (platform-level version)
  • plat-gaz-xxxxxx: Simplified global edition;
  • plat-mlc-xxxxxx: Simplified China version;
  • plat-emc-xxxxxx: Simplified overseas (global excluding China) edition;

  • Abbreviation description:
  • gaz:Global AZ Availability Zone;
  • mlc:mainlandChina;
  • emc:Exclude mainlandChina.
  • ActiveTime String No Version effective time, which adopts Beijing time (UTC+8) and follows the date and time format of the ISO 8601 standard.
    EntireAddresses Addresses No Origin-pull IP range details.
    OriginACLFamily String No Origin protection origin-pull ACL control domain. Parameter values are as follows:
  • gaz: standard global availability zone control domain;
  • mlc: standard Chinese mainland availability zone control domain;
  • emc: standard worldwide (excluding Chinese mainland) availability zone control domain;
  • plat-gaz: simplified global availability zone control domain;
  • plat-mlc: Simplified Chinese mainland availability zone control domain;
  • plat-emc: Simplified global (excluding Chinese mainland) availability zone control domain;
  • OriginACLInfo

    Binding relationship between the layer-7 acceleration domain name/layer-4 proxy instance and the origin IP range, including the origin IP range details and the list of switchable origin IP ranges.

    Used by actions: DescribeOriginACL.

    Name Type Required Description
    L7EnableMode String No

    Origin protection mode for layer-7 acceleration domain names. Valid values:

  • all: automatic protection mode. All layer-7 acceleration domain names in the site are included in the origin protection list, including newly added layer-7 acceleration domain names;
  • specific: specified protection mode. Only bound layer-7 acceleration domain names are protected.
  • L7Hosts Array of String No

    List of layer-7 acceleration domain names that have origin-pull from specific origin IP ranges enabled. Empty when origin protection is not enabled.

    L4EnableMode String No

    Origin protection mode for layer-4 proxy instances. Valid values:

  • all: automatic protection mode. All layer-4 proxy instances in the site are included in the origin protection list, including newly added layer-4 proxy instances;
  • specific: specified protection mode. Only bound layer-4 proxy instances are protected.
  • L4ProxyIds Array of String No

    List of layer-4 proxy instances that have origin-pull from specific origin IP ranges enabled. Empty when origin protection is not enabled.

    CurrentOriginACL CurrentOriginACL No

    Currently effective origin IP range. Empty when origin protection is not enabled.

    NextOriginACL NextOriginACL No

    When the origin IP range is updated, this field returns the origin IP range that will take effect in the next version, including a comparison with the current origin IP range. Empty when there is no update or origin protection is not enabled.

    Status String No

    Origin protection status. Valid values:

  • online: Effective;
  • offline: Disabled;
  • updating: Configuration being deployed.
  • OriginACLFamily String No

    Origin protection origin-pull ACL control domain.

    OriginAuthenticationParameters

    Origin-pull authentication parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    RequestProperties Array of OriginAuthenticationRequestProperties Yes Origin-pull authentication request attributes.

    OriginAuthenticationRequestProperties

    Origin-pull authentication request attribute.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Type String Yes Set the origin-pull authentication parameter type. Valid values:
  • QueryString: Set the origin-pull authentication parameter type to query string.
  • Header: Set the origin-pull authentication parameter type to request header.
  • Name String Yes Name of the parameter corresponding to the origin-pull authentication type.
    Value String Yes Set the parameter value corresponding to the origin-pull authentication type.

    OriginCertificateVerify

    Mode of HTTPS origin certificate verification.

    Used by actions: ModifyHostsCertificate.

    Name Type Required Description
    VerificationMode String Yes Origin certificate verification mode. Valid values:
  • disable: Disable origin certificate verification.
  • custom_ca: Use a specified trusted CA certificate for verification.
  • CustomCACerts Array of CertificateInfo No Specify the trusted CA certificate list. The origin certificate must be issued by this CA to pass verification. Note: This parameter is required only when VerificationMode is custom_ca. Specify the trusted CA certificate information.
    When OriginCertificateVerify is used as an input parameter in ModifyHostsCertificate, just pass in the CertId of the corresponding certificate. You can go to the SSL certificate list to check the CertId.

    OriginDetail

    Origin server information of the acceleration domain name.

    Used by actions: DescribeAccelerationDomains.

    Name Type Description
    OriginType String Origin server type. Valid values:
  • IP_DOMAIN: IPV4, IPV6, or DOMAIN type origin server;
  • COS: Tencent Cloud COS origin server;
  • AWS_S3: AWS S3 COS origin server;
  • ORIGIN_GROUP: origin server group type origin server;
  • VOD: Video on Demand;
  • SPACE: origin server uninstallation. Currently only available to the allowlist;
  • LB: load balancing. Currently only available to the allowlist.
  • Origin String Origin server address, which varies according to the value of OriginType:
  • When OriginType = IP_DOMAIN, this parameter should be an IPv4 address, an IPv6 address, or a domain name;
  • When OriginType = COS, this parameter is the access domain name of the COS bucket;
  • When OriginType = AWS_S3, this parameter should be the access domain name of the S3 bucket;
  • When OriginType = ORIGIN_GROUP, this parameter should be the origin server group ID; if referencing an origin server group from another site, the format is {origin server group ID}@{ZoneID}. For example: og-testorigin@zone-38moq1z10wwwy
  • When OriginType = VOD, this parameter is the VOD application ID.
  • When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist. If you reference a load balancer from another site, the format is {load balancer ID}@{ZoneID}. For example: lb-2rxpamcyqfzg@zone-38moq1z10wwwy
  • When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
  • BackupOrigin String Secondary origin group ID. This parameter is valid only when OriginType = ORIGIN_GROUP and a secondary origin group is configured.
    OriginGroupName String Primary origin group name. This parameter returns a value when OriginType = ORIGIN_GROUP.
    BackOriginGroupName String Secondary origin group name. This parameter is valid only when OriginType = ORIGIN_GROUP and a secondary origin group is configured.
    PrivateAccess String Whether access to the private object storage origin server is allowed. This parameter is valid only when the origin server type OriginType is COS or AWS_S3. Valid values:
  • on: Enable private authentication;
  • off: Disable private authentication.

  • If this field is not specified, the default value 'off' will be used.
    PrivateParameters Array of PrivateParameter Private authentication parameter. This parameter is valid only when the origin server type is PrivateAccess = on.
    HostHeader String Origin-pull HOST header of the current configuration.
    VodOriginScope String VOD origin-pull scope. This parameter returns a value when OriginType = VOD. Valid values:
  • all: all files in the VOD application corresponding to the current origin server. Default value: all;
  • bucket: files in a specified bucket under the VOD application corresponding to the current origin server. Specify the bucket with the parameter VodBucketId.

  • VodBucketId String VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: storage ID of the bucket under the VOD professional application.

    OriginGroup

    Origin server group information

    Used by actions: DescribeOriginGroup.

    Name Type Description
    GroupId String Origin server group ID.
    Name String Origin server group name.
    Type String Origin server group type. Valid values:
  • GENERAL: general origin group;
  • HTTP: HTTP-specific origin group.
  • Records Array of OriginRecord Origin server record information.
    References Array of OriginGroupReference List of instances that reference the origin group.
    CreateTime Timestamp ISO8601 Origin group creation time.
    UpdateTime Timestamp ISO8601 Origin-pull group update time.
    HostHeader String Origin-pull Host Header.

    OriginGroupHealthStatus

    Origin server group health status.

    Used by actions: DescribeLoadBalancerList.

    Name Type Description
    OriginGroupID String Origin server group ID.
    OriginGroupName String Origin server group name.
    OriginType String Origin server group type. Valid values:
  • HTTP: HTTP-specific.
  • GENERAL: general.
  • Priority String Priority.
    OriginHealthStatus Array of OriginHealthStatus Health status of each origin server in an origin server group.

    OriginGroupHealthStatusDetail

    Details of origin server group health status.

    Used by actions: DescribeOriginGroupHealthStatus.

    Name Type Description
    OriginGroupId String Origin server group ID.
    OriginHealthStatus Array of OriginHealthStatus The health status of each origin server in an origin server group, which is comprehensively decided based on the results of all detection regions. If more than half of the regions determine that the origin server is unhealthy, the corresponding status is unhealthy; otherwise, it is healthy.
    CheckRegionHealthStatus Array of CheckRegionHealthStatus Health status of origin servers in each health check region.

    OriginGroupInLoadBalancer

    The origin server groups that need to be bound in a LoadBalancer and their priorities.

    Used by actions: CreateLoadBalancer, ModifyLoadBalancer.

    Name Type Required Description
    Priority String Yes Priority, in the format of "priority_" + "number". The highest priority is "priority_1". Reference values:
  • priority_1: first priority.
  • priority_2: second priority.
  • priority_3: third priority.
  • You can increase numbers for other priorities, up to "priority_10".
    OriginGroupId String Yes Origin server group ID.

    OriginGroupReference

    Origin server group reference service.

    Used by actions: DescribeLoadBalancerList, DescribeOriginGroup.

    Name Type Description
    InstanceType String Reference service type. Valid values:
  • acceleration-domain: Acceleration domain name;
  • rule-engine: rule engine;
  • load-balancer: load balancing;
  • application-proxy: Layer 4 proxy.
  • InstanceId String ID of the referenced instance.
    InstanceName String Instance name of the reference type.
    ZoneId String Referer ID.
    ZoneName String Refer to the site name.
    AliasZoneName String Refer to the site alias.

    OriginHealthStatus

    Health status of origin servers in an origin server group.

    Used by actions: DescribeLoadBalancerList, DescribeOriginGroupHealthStatus.

    Name Type Description
    Origin String Origin server.
    Healthy String Origin server health status. Valid values:
  • Healthy: healthy.
  • Unhealthy: unhealthy.
  • Undetected: no data detected.

  • OriginInfo

    Acceleration domain name origin server information.

    Used by actions: CreateAccelerationDomain, ModifyAccelerationDomain.

    Name Type Required Description
    OriginType String Yes Origin server type. Valid values:
  • IP_DOMAIN: IPV4, IPV6, or DOMAIN name type origin server;
  • COS: Tencent Cloud COS origin server;
  • AWS_S3: AWS S3 COS origin server;
  • ORIGIN_GROUP: origin server group type origin server;
  • VOD: Video on Demand;
  • SPACE: origin server uninstallation. Currently only available to the allowlist;
  • LB: load balancing. Currently only available to the allowlist.
  • Origin String Yes Origin server address, which varies according to the value of OriginType:
  • When OriginType = IP_DOMAIN, this parameter should be an IPv4 address, an IPv6 address, or a domain name;
  • When OriginType = COS, this parameter is the access domain name of the COS bucket;
  • When OriginType = AWS_S3, this parameter should be the access domain name of the S3 bucket;
  • When OriginType = ORIGIN_GROUP, this parameter should be the origin server group ID. If you reference an origin server group from another site, use the format {origin server group ID}@{ZoneID}. For example: og-testorigin@zone-38moq1z10wwwy;
  • When OriginType = VOD, this parameter is the VOD application ID;
  • When OriginType = LB, this parameter is the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist. If a load balancer from another site is referenced, the format is {load balancer ID}@{ZoneID}. For example: lb-2rxpamcyqfzg@zone-38moq1z10wwwy;
  • When OriginType = SPACE, this parameter is the origin server uninstallation space ID. This feature is currently only available to the allowlist.
  • BackupOrigin String No Secondary origin group ID. This parameter is valid only when OriginType = ORIGIN_GROUP. This field indicates the old version capability. After calling, you cannot modify the configuration in the console. If needed, submit a ticket for consultation.
    PrivateAccess String No Whether access to the private object storage origin server is allowed. This parameter is valid only when the origin server type OriginType is COS or AWS_S3. Valid values:
  • on: Enable private authentication;
  • off: Disable private authentication.
  • If left empty, the default value is off.
    PrivateParameters Array of PrivateParameter No Private authentication parameter. This parameter is valid only when the origin server type is PrivateAccess = on.
    HostHeader String No Custom origin server HOST header. This parameter is valid only when OriginType is IP_DOMAIN. For other origin server types, this parameter is not required, otherwise an error will be reported.
    When OriginType is COS or AWS_S3, the origin-pull HOST header remains the same as the origin server domain name.
    When OriginType = ORIGIN_GROUP, the origin-pull HOST header follows the configuration in the origin group. If there is no configuration, it defaults to the acceleration domain name.
    When OriginType is VOD or SPACE, no configuration is required for this header. It takes effect based on the corresponding origin server domain name.
    VodOriginScope String No VOD origin-pull scope. This parameter is valid only when OriginType = VOD. Valid values:
  • all: all files in the VOD application corresponding to the current origin server;
  • bucket: files in a specified bucket under the VOD application corresponding to the current origin server. Specify the bucket with the VodBucketId parameter.
  • If left empty, the default value is all.
    VodBucketId String No VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: storage ID of a bucket under a VOD professional application.

    OriginPrivateParameters

    Private authentication parameter for the COS origin server.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    AccessKeyId String Yes Access Key ID authentication parameter.
    SecretAccessKey String Yes Secret Access Key authentication parameter.
    SignatureVersion String Yes Authentication version. Valid values:
  • v2: v2 version;
  • v4: v4 version.
  • Region String No Bucket region.

    OriginProtectionInfo

    Origin protection info

    Used by actions: DescribeOriginProtection.

    Name Type Description
    ZoneId String Site ID.
    Hosts Array of String Domain name list.
    ProxyIds Array of String List of proxy IDs.
    CurrentIPWhitelist IPWhitelist IP allowlist of the current version.
    NeedUpdate Boolean Whether to update the origin server allowlist for this site. Valid values:
  • true: The IP allowlist needs to be updated;
  • false: No need to update the IP allowlist.
  • Status String Origin protection status. Valid values:
  • online: origin protection enabled;
  • offline: Origin protection disabled;
  • nonactivate: Origin protection is inactive. It is only returned in calls for sites that have never used the origin protection feature.
  • PlanSupport Boolean Whether origin protection is supported for the site package, with values:
  • true: support;
  • false: not supported.
  • DiffIPWhitelist DiffIPWhitelist Comparison between the latest IP allowlist and the current IP allowlist.

    OriginPullProtocolParameters

    Back-to-origin HTTPS configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Protocol String No Origin-pull protocol configuration, with values:
  • http: Use HTTP protocol for origin-pull;
  • https: Use the HTTPS protocol for origin-pull;
  • follow: follow protocol.
  • OriginRecord

    Origin server group records

    Used by actions: CreateOriginGroup, DescribeOriginGroup, ModifyOriginGroup.

    Name Type Required Description
    Record String Yes Origin server record value, excluding port information. It can be an IPv4 address, IPv6 address, or domain name format.
    Type String No Origin server type. Valid values:
  • IP_DOMAIN: IPV4, IPV6, domain type origin server;
  • COS: COS origin.
  • AWS_S3: AWS S3 COS origin server.
  • RecordId String No Origin record ID.
    Weight Integer No 【Origin server weight】: A parameter used to control traffic assignment priority. Value range: 0-100 (integer):
  • Empty value: No weight is set, and the system schedules traffic based on the default policy;
  • 0: The weight is explicitly set to 0, and traffic will not be assigned to this origin server. Note: Make sure at least one origin server has a weight above 0;
  • Normal value: The larger the value, the more traffic is assigned;
  • Private Boolean No Whether to use private authentication. This parameter is valid only when RecordType is COS or AWS_S3. Valid values:
  • true: Enable private authentication;
  • false: Do not use private authentication.
  • Not specified. Default value: false.
    PrivateParameters Array of PrivateParameter No Private authentication parameter. Valid when the origin server type is Private=true.

    OwnershipVerification

    This structure represents the content used to verify user ownership of a site domain name in various scenarios and modes.

    Used by actions: CreateAccelerationDomain, CreateZone, DescribeAccelerationDomains, DescribeInferenceDomains, DescribeZones.

    Name Type Description
    DnsVerification DnsVerification Information required for CNAME and domainless access when using DNS resolution verification. For details, see [Site/Domain Ownership Verification].
    ](https://www.tencentcloud.com/document/product/1552/70789?from_cn_redirect=1#7af6ecf8-afca-4e35-8811-b5797ed1bde5).
    FileVerification FileVerification CNAME, when there is no domain name access, the information required for file verification is used. For details, see Site/Domain Ownership Verification
    .
    NsVerification NsVerification Information required for access via NS and switching DNS servers. For details, see Modify DNS Server.

    PartialModule

    Detailed module configuration of the exception rule.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Module String No Module name. Valid values:
  • managed-rule: managed rule Id;
  • managed-group: managed rule group;
  • waf: to be deprecated, managed rule.
  • Include Array of Integer No List of specific rule IDs that require exceptions under the module.

    Plan

    Plan information

    Used by actions: DescribePlans.

    Name Type Description
    PlanType String

    Plan type. Valid values:

  • plan-trial: Trial Edition plan;
  • plan-personal: Personal Edition plan;
  • plan-basic: Basic Edition plan;
  • plan-standard: Standard Edition plan;
  • plan-enterprise-v2: Enterprise Edition plan;
  • plan-enterprise-model-a: Enterprise Edition Model A plan;
  • plan-enterprise: Legacy Enterprise Edition plan;
  • plan-makers-pro: Makers Pro Edition plan;
  • plan-makers-business: Makers Business Edition plan;
  • Valid values:

    • plan-trial: Trial Edition plan
    • plan-personal: Personal Edition plan
    • plan-basic: Basic Edition plan
    • plan-standard: Standard Edition plan
    • plan-enterprise-v2: Enterprise Edition plan
    • plan-enterprise-model-a: Enterprise Edition Model A plan
    • plan-enterprise: Legacy Enterprise Edition plan
    • plan-makers-pro: Makers Pro Edition plan
    • plan-makers-business: Makers Business Edition plan
    PlanId String

    Plan ID, in the format of edgeone-2y041pblwaxe.

    Area String

    Service region. Valid values:

  • mainland: Chinese mainland;
  • overseas: Global (excluding the Chinese mainland);
  • global: Global (including the Chinese mainland).
  • AutoRenewal Boolean

    Auto-renewal switch. Valid values:

  • true: Auto-renewal enabled;
  • false: Auto-renewal disabled.
  • Status String

    Plan status. Valid values:

  • normal: Normal;
  • expiring-soon: Expiring soon;
  • expired: Expired;
  • isolated: Isolated;
  • overdue-isolated: Isolated due to overdue payment.
  • PayMode Integer

    Billing type. Valid values:

  • 0: Postpaid;
  • 1: Prepaid.
  • ZonesInfo Array of ZoneInfo

    Information of the sites bound to the plan, including site id, site name, and site status.

    SmartRequestCapacity Integer

    Quota of smart acceleration requests in the plan, in the unit of requests.

    VAUCapacity Integer

    VAU quota in the plan, in the unit of VAUs.

    AccTrafficCapacity Integer

    Quota of content acceleration traffic in the plan, in the unit of bytes.

    ClientAuthTrafficCapacity Integer

    Quota of client authentication traffic in the plan, in the unit of bytes.

    SmartTrafficCapacity Integer

    Quota of smart acceleration traffic in the plan, in the unit of bytes.

    DDoSTrafficCapacity Integer

    Quota of DDoS protection traffic in the plan, in the unit of bytes.

    SecTrafficCapacity Integer

    Quota of security traffic in the plan, in the unit of bytes.

    SecRequestCapacity Integer

    Quota of security requests in the plan, in the unit of requests.

    L4TrafficCapacity Integer

    Quota of L4 acceleration traffic in the plan, in the unit of bytes.

    CrossMLCTrafficCapacity Integer

    Quota of network optimization traffic for the Chinese mainland in the plan, in the unit of bytes.

    Bindable String

    Whether the plan allows binding new sites. Valid values:

  • true: Allows binding new sites;
  • false: Does not allow binding new sites.
  • EnabledTime Timestamp ISO8601

    Time when the plan takes effect.

    ExpiredTime Timestamp ISO8601

    Expiration time of the plan.

    Features Array of String

    Features supported by the plan. Valid values:

  • ContentAcceleration: content acceleration;
  • SmartAcceleration: smart acceleration;
  • L4: L4 acceleration;
  • Waf: advanced Web protection;
  • QUIC: QUIC;
  • CrossMLC: network optimization for the Chinese mainland;
  • ProcessMedia: media processing;
  • L4DDoS: L4 DDoS protection.
  • Only one of the following L7DDoS specifications can appear:
  • L7DDoS.CM30G: L7 DDoS protection - 30 Gbps guaranteed bandwidth in the Chinese mainland;
  • L7DDoS.CM60G: L7 DDoS protection - 60 Gbps guaranteed bandwidth in the Chinese mainland;
  • L7DDoS.CM100G: L7 DDoS protection - 100 Gbps guaranteed bandwidth in the Chinese mainland;
  • L7DDoS.Anycast300G: L7 DDoS protection - 300 Gbps Anycast guaranteed bandwidth outside the Chinese mainland;
  • L7DDoS.AnycastUnlimited: L7 DDoS protection - unlimited Anycast full protection outside the Chinese mainland;
  • L7DDoS.CM30G_Anycast300G: L7 DDoS protection - 30 Gbps guaranteed bandwidth in the Chinese mainland and 300 Gbps Anycast guaranteed bandwidth outside the Chinese mainland;
  • L7DDoS.CM60G_Anycast300G: L7 DDoS protection - 60 Gbps guaranteed bandwidth in the Chinese mainland and 300 Gbps Anycast guaranteed bandwidth outside the Chinese mainland;
  • L7DDoS.CM100G_Anycast300G: L7 DDoS protection - 100 Gbps guaranteed bandwidth in the Chinese mainland and 300 Gbps Anycast guaranteed bandwidth outside the Chinese mainland;
  • L7DDoS.CM30G_AnycastUnlimited: L7 DDoS protection - 30 Gbps guaranteed bandwidth in the Chinese mainland and unlimited Anycast full protection outside the Chinese mainland;
  • L7DDoS.CM60G_AnycastUnlimited: L7 DDoS protection - 60 Gbps guaranteed bandwidth in the Chinese mainland and unlimited Anycast full protection outside the Chinese mainland;
  • L7DDoS.CM100G_AnycastUnlimited: L7 DDoS protection - 100 Gbps guaranteed bandwidth in the Chinese mainland and unlimited Anycast full protection outside the Chinese mainland.
  • PlanInfo

    edgeone package information

    Used by actions: DescribeAvailablePlans.

    Name Type Description
    Currency String Settlement currency type. Valid values:
  • CNY: settlement in RMB;
  • USD: Dollar settlement.
  • Flux Integer Total traffic included in the package. This value is the sum of security acceleration traffic, content acceleration traffic, and smart acceleration traffic (unit: byte).
    Frequency String Billing cycle. Valid values:
  • y: settle by year;
  • m: monthly settlement;
  • h: settled by hour;
  • M: settle by minute;
  • s: settle by second.
  • PlanType String Package type. Valid values:
  • sta: Global content delivery network (excluding Chinese mainland) Standard Edition Plan;
  • sta_with_bot: Standard Edition Plan of the global content delivery network (excluding Chinese mainland) with bundled bot management;
  • sta_cm: CDN Standard Edition Plan for the Chinese mainland;
  • sta_cm_with_bot: CDN Standard Edition Plan for Chinese mainland with bundled bot management;
  • sta_global: Global content delivery network (including Chinese mainland) Standard Edition Plan;
  • sta_global_with_bot: Standard Edition Plan for global content delivery network (including Chinese mainland) with bundled bot management;
  • ent: Enterprise plan of the global content delivery network (excluding Chinese mainland);
  • ent_with_bot: Global content delivery network (excluding Chinese mainland) enterprise package with bundled bot management;
  • ent_cm: Enterprise edition package for CDN in Chinese mainland;
  • ent_cm_with_bot: CDN enterprise package with bundled bot management in the Chinese mainland;
  • ent_global: global content delivery network (including Chinese mainland) enterprise package;
  • ent_global_with_bot: Global content delivery network (including Chinese mainland) enterprise package with bundled bot management.
  • Price Float Package pricing (unit: cent).
    Request Integer Request count included in the package. This is the security acceleration request count. (Unit: count).
    SiteNumber Integer Number of sites that can be bound to the package.
    Area String Acceleration region type of the package. Valid values:
  • mainland: Chinese mainland;
  • overseas: global (excluding the Chinese mainland);
  • global: worldwide (including Chinese mainland).
  • PostMaxSize

    POST request upload file streaming transmission maximum limit

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether to enable the POST request upload file limit. The platform defaults to a limit of 32 MB. Valid values:
  • on: enable limit;
  • off: disables the limit.
  • MaxSize Integer No Maximum limit. This field is valid only when Switch is on. The value ranges from 1 MB to 800 MB, in bytes.

    PostMaxSizeParameters

    Maximum limit for file streaming transmission in a POST request upload.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Whether to enable the upload file limit for POST requests, in bytes. The platform defaults to a limit of 32 * 220 bytes. Valid values:
  • on: enable the limit;
  • off: disable the limit.
  • MaxSize Integer No Maximum limit for file streaming transmission in a POST request upload. This field is valid only when Switch is on. Value range: 1–800 MB, in bytes.

    PrefetchOriginLimit

    Origin-pull speed limit details.

    Used by actions: DescribePrefetchOriginLimit.

    Name Type Description
    ZoneId String Zone ID.
    DomainName String Acceleration domain name.
    Area String Acceleration region restricted by origin-pull rate limiting.
    During preheating, the acceleration region will be subject to the configured Bandwidth value limit. Valid values:
  • Overseas: global availability zone (excluding the Chinese mainland);
  • MainlandChina: Chinese mainland availability zone.
  • Bandwidth Integer Origin-pull bandwidth limit.
    Upper limit of bandwidth for returning to the origin during preheating. Value range: 100–100,000. Unit: Mbps.
    CreateTime Timestamp ISO8601 The time when the origin-pull speed limit was created.
    UpdateTime Timestamp ISO8601 The time when the origin-pull rate limit is updated.

    PrepaidPlanParam

    Prepaid Plan Billing Parameters

    Used by actions: CreatePlan.

    Name Type Required Description
    Period Integer No Prepaid plan duration, unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.

    If this field is not specified, the default value '1' will be used.
    RenewFlag String No Auto-renewal flag for prepaid plan. Valid values:
  • on: Enable auto-renewal;
  • off: Disable auto-renewal.

  • If this field is not specified, the default value 'off' will be used. When auto-renewal is enabled, it defaults to renewing for one month.

    PrivateParameter

    Private authentication parameters for the COS origin server

    Used by actions: CreateAccelerationDomain, CreateOriginGroup, DescribeAccelerationDomains, DescribeOriginGroup, ModifyAccelerationDomain, ModifyOriginGroup.

    Name Type Required Description
    Name String Yes Private authentication parameter name. Valid values:
  • AccessKeyId: Access Key ID for authentication;
  • SecretAccessKey: authentication parameter Secret Access Key;
  • SignatureVersion: Authentication version, v2 or v4;
  • Region: bucket region.
  • Value String Yes Private authentication parameter value.

    QUICParameters

    QUIC configuration item.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No QUIC configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • QueryCondition

    The query condition

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeDDoSAttackData, DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData, DescribeTopFunctionAnalysisData, DescribeTopL7AnalysisData, DescribeTopL7CacheData, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Key String Yes The key of QueryCondition.
    Operator String Yes The conditional operator. Values:
  • equals: Equals
  • notEquals: Does not equal
  • include: Contains
  • notInclude: Does not contain
  • startWith: Starts with
  • notStartWith: Does not start with
  • endWith: Ends with
  • notEndWith: Does not end with
  • Value Array of String Yes The value of QueryCondition.

    QueryString

    CacheKey contains the request parameter

    Used by actions: DescribeHostsSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether CacheKey consists of QueryString. Valid values:
  • on: yes;
  • off: No.
  • Action String No CacheKey uses QueryString. Valid values:
  • includeCustom: use partial url parameters;
  • excludeCustom: Exclude some url parameters.
  • Value Array of String No url parameter array for usage or exclusion.

    Quic

    Quic configuration item

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Whether to enable Quic configuration. Valid values:
  • on: Enable;
  • off: Disable.
  • Quota

    Refresh/preheat available amount and quotas

    Used by actions: DescribeContentQuota.

    Name Type Description
    Batch Integer Quota limit for a single batch submission.
    Daily Integer Daily submission quota limit.
    DailyAvailable Integer Daily unconsumed submission quota.
    Type String Purge and prefetch cache type. Valid values:
  • purge_prefix: refresh by prefix;
  • purge_url: refresh by URL;
  • purge_host: refresh by Hostname;
  • purge_all: Refresh all cached content;
  • purge_cache_tag: refresh by cache tag;
  • prefetch_url: prefetch by url.
  • RangeOriginPullParameters

    Sharding origin-pull configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Range-based origin pull switch. Valid values:
  • on: Enable;
  • off: Disable.
  • RateLimitConfig

    Rate limiting rule

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • RateLimitUserRules Array of RateLimitUserRule No Rate limit - user rule list. If null, use the last set configuration by default.
    RateLimitTemplate RateLimitTemplate No Rate limit template feature. If null, use the last set configuration by default.
    RateLimitIntelligence RateLimitIntelligence No Intelligent client filtering. If it is null, use the last set configuration by default.
    RateLimitCustomizes Array of RateLimitUserRule No Rate limit - Managed Custom Rules. If null, use the last set configuration by default.

    RateLimitIntelligence

    Intelligent client filtering

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Function switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Action String Yes Execution action. Valid values:
  • monitor: observation;
  • alg: Challenge.
  • RuleId Integer No Rule id, output only.

    RateLimitTemplate

    Rate limit template

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Mode String Yes Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: moderate;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • Action String No Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observe.
  • Default value: alg if not specified.
    RateLimitTemplateDetail RateLimitTemplateDetail No Description of the template value. Returned only as an output parameter.

    RateLimitTemplateDetail

    Current detailed configuration of the template

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Mode String Yes Template level name. Valid values:
  • sup_loose: super loose;
  • loose: loose;
  • emergency: emergency;
  • normal: moderate;
  • strict: strict;
  • close: disabled, effective only for precise rate limiting.
  • ID Integer Yes Unique ID.
    Action String Yes Template action. Valid values:
  • alg: JavaScript challenge;
  • monitor: observation.
  • PunishTime Integer Yes Penalty duration, in seconds. Value range: 0-2 days.
    Threshold Integer Yes Statistical threshold, in times. Value range: 0-4294967294.
    Period Integer Yes Statistical cycle. Value range: 0-120 seconds.

    RateLimitUserRule

    RateLimit rule

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Threshold Integer Yes Rate limit statistical threshold, in times. Value range: 0-4294967294.
    Period Integer Yes Rate limit statistical time. Value range: 10/20/30/40/50/60. Unit: seconds.
    RuleName String Yes Rule name can only contain English characters, digits, and underscores, and cannot begin with an underscore.
    Action String Yes Handling action. Valid values:
  • monitor: observe;
  • drop: block;
  • redirect: redirect;
  • page: specified page;
  • alg: JavaScript challenge.
  • PunishTime Integer Yes Penalty duration. Value range: 0-2 days.
    PunishTimeUnit String Yes Penalty duration unit. Valid values:
  • second: second;
  • minutes: minute;
  • hour: hour.
  • RuleStatus String Yes Rule status. Valid values:
  • on: enabled
  • off: Disable.
  • Default on takes effect.
    AclConditions Array of AclCondition Yes Rule details.
    RulePriority Integer Yes Rule weight. Value range: 0-100.
    RuleID Integer No Rule Id. Output only.
    FreqFields Array of String No Filter word. Valid values:
  • sip: Client IP.

  • Defaults to an empty string.
    UpdateTime String No Update time. Output usage only. Defaults to the current time when modified.
    FreqScope Array of String No Statistical scope. Valid values:
  • source_to_eo: (Response) Origin server to EdgeOne;
  • client_to_eo: (request) Client to EdgeOne.

  • Default value: source_to_eo.
    Name String No Name of the custom return page. Required when Action is page, and cannot be empty.
    CustomResponseId String No Custom response Id, which can be obtained through the API for querying the custom error page list. The default value is default, which uses the system default page. Required and cannot be empty when Action is page.
    ResponseCode Integer No code of the custom return page. Required when Action is page. The value cannot be empty. Value range: 100-600. 3xx response codes are unsupported. Default value: 567.
    RedirectUrl String No Address for redirection. Required when Action is redirect and cannot be empty.

    RateLimitingRule

    Specific configuration of the rate limit.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Id String No

    ID of the precise rate limiting rule.
    Different rule configuration operations can be performed by rule ID:

  • Add a new rule: leave ID empty or unspecified;
  • Modify an existing rule: specify the rule ID that needs to be updated/modified;
  • Delete an existing rule: existing rules not included in the Rules list in the RateLimitingRules parameter will be deleted.
  • Name String No

    Name of the precise rate limit.

    Condition String No

    The specific content of precise rate limiting must comply with expression syntax. For detailed specifications, see product document.

    Mode String No

    Bandwidth limit mode. Within the statistical time window CountingPeriod, for requests that meet the CountBy feature, the following bandwidth limit modes can be configured:

  • Block: Block the access source. When the count exceeds the MaxRequestThreshold, execute the Action on all subsequent requests that meet the feature within the ActionDuration;
  • Throttle: Only handle excess requests. When the count exceeds the MaxRequestThreshold, execute the Action only on requests that exceed the threshold, and stop when the window ends. At this point, the ActionDuration parameter will be ignored.

  • Default value: Block.

    CountBy Array of String No

    Match mode of the rate threshold request feature. Required when Enabled is on.

    When there are multiple conditions, they will be combined for statistics and calculation. A maximum of 5 conditions is allowed. Valid values:

  • http.request.ip: client IP;
  • http.request.xff_header_ip: client IP (priority match XFF header);
  • http.request.uri.path: access path of the request;
  • http.request.cookies['session']: Cookie named session, where session can be replaced with your own parameter;
  • http.request.headers['user-agent']: HTTP header named user-agent, where user-agent can be replaced with your own parameter;
  • http.request.ja3: JA3 fingerprint of the request;
  • http.request.ja4: JA4 fingerprint of the request;
  • http.request.uri.query['test']: URL query parameter named test, where test can be replaced with your own parameter.
  • MaxRequestThreshold Integer No

    Cumulative number of interceptions by precise rate limiting within the time range, with a value range of 1 to 100000.

    CountingPeriod String No

    Time window for statistics. Valid values:

  • 1s: 1 second;
  • 5s: 5 seconds;
  • 10s: 10 seconds;
  • 20s: 20 seconds;
  • 30s: 30 seconds;
  • 40s: 40 seconds;
  • 50s: 50 seconds;
  • 1m: 1 minute;
  • 2m: 2 minutes;
  • 5m: 5 minutes;
  • 10m: 10 minutes;
  • 1h: 1 hour.
  • ActionDuration String No

    Duration of the Action. Supported units:

  • s: seconds, value range: 1-120;
  • m: minutes, value range: 1-120;
  • h: hours, value range: 1-48;
  • d: days, value range: 1-30.

  • When Mode is Throttle, this parameter will be ignored and will not take effect.

    Action SecurityAction No

    Handling method for precise rate limiting. SecurityAction.Name value range is as follows:

    • Allow: allow, where AllowActionParameters supports MinDelayTime and MaxDelayTime configuration;
    • Deny: block, where DenyActionParameters supports ReturnCustomPage and Stall configuration;
    • Monitor: observe;
    • Challenge: challenge, where ChallengeActionParameters.ChallengeOption supports JSChallenge and ManagedChallenge;
    • Redirect: redirect to a URL.
    Priority Integer No

    Priority of precise rate limiting, ranging from 0 to 100, with a default value of 0.

    Enabled String No

    Whether the precise rate limiting rule is enabled. Valid values:

  • on: enabled;
  • off: disabled.
  • RateLimitingRules

    Configuration of precise rate limiting

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Rules Array of RateLimitingRule No Definition list of precise rate limiting. When using ModifySecurityPolicy to modify Web protection configuration:
  • If the Rules parameter is not specified or its length is zero: clear all precise rate limiting configurations.
  • If the RateLimitingRules parameter value is not specified in the SecurityPolicy parameter: keep the existing custom rule configuration without modification.
  • RealtimeLogDeliveryTask

    Real-time log delivery task.

    Used by actions: DescribeRealtimeLogDeliveryTasks.

    Name Type Description
    TaskId String

    ID of the real-time log delivery task.

    TaskName String

    Name of the real-time log delivery task.

    DeliveryStatus String

    Status of the real-time log delivery task. Valid values:

    • enabled: enabled;
    • disabled: disabled;
    • deleted: abnormally deleted. Check whether the destination Tencent Cloud CLS log set or log topic has been deleted.
    TaskType String

    Type of the real-time log delivery task. Valid values:

    • cls: deliver to Tencent Cloud CLS;
    • custom_endpoint: deliver to a custom HTTP(S) endpoint;
    • s3: deliver to an S3-compatible (SigV4 authentication algorithm compatible) object storage endpoint;
    • aws_s3: deliver to an AWS S3 bucket;
    • log_analysis: deliver to EdgeOne Log Analysis.
    EntityList Array of String

    List of entities that the real-time log delivery task applies to (Layer 7 domain names or Layer 4 proxy instances). Examples:

    • Layer 7 domain name: domain.example.com;
    • Layer 4 proxy instance: sid-2s69eb5wcms7.
    LogType String

    Data delivery type. Valid values:

    • l7-access-logs: Layer 7 access logs;
    • application: Layer 4 proxy logs;
    • function: Edge Function execution logs;
    • web-attack: managed rule logs;
    • domain: site acceleration logs;
    • web-rateLiming: rate limiting and CC attack defense logs;
    • web-rule: custom rule logs;
    • web-bot: Bot management logs.
    Area String

    Data delivery area. Valid values:

    • mainland: Chinese mainland;
    • overseas: Global (excluding the Chinese mainland).
    Fields Array of String

    List of preset fields to deliver.

    CustomFields Array of CustomField

    List of custom fields to deliver.

    CustomExpressionFields Array of CustomExpressionField

    List of custom expression fields to deliver.

    DeliveryConditions Array of DeliveryCondition

    Filter conditions for log delivery.

    Sample Integer

    Sampling ratio in permille. Value range: 1-1000. For example, 605 indicates a sampling ratio of 60.5%.

    LogFormat LogFormat

    Output format for log delivery. A null value indicates the default format. The default format logic is as follows:

    • When TaskType is custom_endpoint, the default format is an array of JSON objects, each JSON object represents a log entry;
    • When TaskType is s3, the default format is JSON Lines.
    CLS CLSTopic

    Configuration of CLS.

    CustomEndpoint CustomEndpoint

    Configuration of the custom HTTP service.

    S3 S3

    Configuration of the S3-compatible (SigV4 authentication algorithm compatible) object storage.

    AWSS3 AWSS3

    Configuration of the AWS S3 object storage. It uses IAM role authorization, requires no long-term key, and applies only to AWS native S3.

    CreateTime Timestamp ISO8601

    Creation time.

    UpdateTime Timestamp ISO8601

    Update time.

    RedirectActionParameters

    Additional parameter for safe execution when the action is set to redirect.

    This parameter is used to specify the extra handling action taken by the system when a security rule is hit and a redirection action is executed.
    Different handling actions are configured with different fixed parameter combinations. The system will determine the effective handling action type according to the configured parameter combination.
    Only one handling action can be configured and made effective during the same redirection. Parameter composites corresponding to multiple handling actions cannot appear at the same time. Otherwise, it is deemed as an invalid configuration.
    RedirectActionParameters supports the following extra handling actions:

  • Redirect: redirect client requests to the specified destination URL. Corresponding parameter: URL.
  • Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    URL String Yes Redirect URL.

    ReferenceHolder

    Instance information that is cited or referencing.

    Used by actions: DescribeSharedCNAME.

    Name Type Required Description
    ZoneId String Yes Site ID.
    Type String Yes Instance type. Valid values:
  • acceleration-domain: Acceleration domain name;
  • Instance String Yes Instance information that is cited or referencing.

    RenewFlag

    Auto-renewal configuration item in a prepaid plan.

    Used by actions: ModifyPlan.

    Name Type Required Description
    Switch String Yes Auto-renewal flag for prepaid plan. Valid values:
  • on: Enable auto-renewal;
  • off: Disable auto-renewal.
  • RequestBodyTransferTimeout

    Specific configuration of the body transfer timeout duration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    IdleTimeout String Yes Body transfer timeout duration. Value range: 5–120. Unit: seconds (s) only.
    Enabled String Yes Whether body transfer timeout duration is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • RequestFieldsForException

    Skipped field configuration in the exception rule

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Scope String Yes Specific fields to skip. Supported values:

  • body.json: parameter content in JSON requests. At this point, Condition supports key and value, and TargetField supports key and value. For example, { "Scope": "body.json", "Condition": "", "TargetField": "key" } means ALL parameters in the JSON request content skip WAF scan.

  • cookie: Cookie; at this point, Condition supports key and value, and TargetField supports key and value, for example { "Scope": "cookie", "Condition": "${key} in ['account-id'] and ${value} like ['prefix-']", "TargetField": "value" }, which means the cookie parameter name equals account-id and the parameter value wildcard matches prefix- to skip WAF scan;

  • header: HTTP header parameters. At this point, Condition supports key and value, and TargetField supports key and value. For example, { "Scope": "header", "Condition": "${key} like ['x-auth-']", "TargetField": "value" } means the header parameter name wildcard match x-auth- skips WAF scan.

  • uri.query: URL-encoded content/query parameters. At this point, Condition supports key and value, and TargetField supports key and value. For example, { "Scope": "uri.query", "Condition": "${key} in ['action'] and ${value} in ['upload', 'delete']", "TargetField": "value" } means the parameter name of the URL-encoded content/query parameters is equal to action and the parameter value is equal to upload or delete, skip WAF scan;

  • uri: request path URI. At this point, Condition must be empty, and TargetField supports query, path, and fullpath. For example, { "Scope": "uri", "Condition": "", "TargetField": "query" } means only query parameters in the request path URI skip WAF scan.

  • body: request body content. At this point, Condition must be empty, and TargetField supports fullbody and multipart, for example { "Scope": "body", "Condition": "", "TargetField": "fullbody" }, which means the request body content is the complete request body and skips WAF scan;
  • Condition String Yes Expression of the specific field to skip, which must comply with the expression grammar.

    Condition supports expression configuration syntax:
  • Write the filter condition expression syntax based on the rule, with support for referencing key and value.
  • Support in and like operators, and logical combination with and.

  • For example:
  • ${key} in ['x-trace-id']: The parameter name is equal to x-trace-id.
  • ${key} in ['x-trace-id'] and ${value} like ['Bearer *']: The parameter name is equal to x-trace-id and the parameter value wildcard matches Bearer *.
  • TargetField String Yes When the Scope parameter takes different values, the supported values in the TargetField expression are as follows:
  • body.json: supports key and value
  • cookie: supports key and value
  • header: supports key and value
  • uri.query: supports key and value
  • uri: supports path, query, and fullpath
  • body: supports fullbody and multipart
  • Resource

    Billing resource

    Used by actions: DescribeZones.

    Name Type Description
    Id String Resource ID.
    PayMode Integer Payment mode. Valid values:
  • 0: postpaid.
  • CreateTime Timestamp ISO8601 Creation time.
    EnableTime Timestamp ISO8601 Effective time.
    ExpireTime Timestamp ISO8601 Expiration time.
    Status String Package status. Valid values:
  • normal: Normal;
  • isolated: Isolated;
  • destroyed: Terminated.
  • Sv Array of Sv Price inquiry parameters.
    AutoRenewFlag Integer Whether it is automatically renewed. Valid values:
  • 0: default state
  • 1: auto-renewal;
  • 2: no auto-renewal.
  • PlanId String ID of the associated resource in the package.
    Area String Region. Valid values:
  • mainland: within the Chinese mainland;
  • overseas: outside the Chinese mainland.
  • global: global.
  • Group String Resource type. Valid values:
  • plan: package type;
  • pay-as-you-go: postpaid mode.
  • value-added: value-added service type.
  • ZoneNumber Integer Number of sites bound to the current resource.
    Type String Resource tag type, with values:
  • vodeo: vodeo resource.
  • ResponseSpeedLimitParameters

    Single connection download speed limit configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Mode String Yes Download speed limit mode. Valid values:
  • LimitUponDownload: download speed limit for the entire process;
  • LimitAfterSpecificBytesDownloaded: Start speed limit after downloading specific bytes at full speed;
  • LimitAfterSpecificSecondsDownloaded: Start rate limiting after downloading at full speed for a specified time.
  • MaxSpeed String Yes Rate-limiting value. Specify the rate limit. Fill in a value with a unit or a variable. Currently supported unit: KB/s.
    StartAt String No Speed limit start value, which can be the download size or specified duration. Fill in a value with a unit or a variable to specify the download size or duration.

    -When Mode is LimitAfterSpecificBytesDownloaded, valid values of the unit are: KB;

    -When Mode is LimitAfterSpecificSecondsDownloaded, valid values of the measurement unit: s.

    ReturnCustomPageActionParameters

    Additional parameter of the custom page for Web security

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    ResponseCode String Yes status code.
    ErrorPageId String Yes ID of the custom page in the response.

    RewriteAction

    headerAction of the HTTP request header/response header type in the rule engine

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Action String Yes Feature name. For completion specifications, call the API to query the parameter settings of the rule engine.
    Parameters Array of RuleRewriteActionParams Yes parameter.

    Rule

    Rule item of the rule engine. The relationship between multiple items in the Conditions array is OR, and the relationship between multiple items in the inner-layer Conditions list is AND.

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Conditions Array of RuleAndConditions Yes Judgment condition for executing the feature.
    Note: The feature can be executed if any condition in the array is met.
    Actions Array of Action No Executed feature. Note: Actions and SubRules cannot be both empty.
    SubRules Array of SubRuleItem No Nested rule. Note: SubRules and Actions cannot be both empty.

    RuleAndConditions

    Rule engine condition AND relationship condition list

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Conditions Array of RuleCondition Yes Condition of a rule engine. This condition is considered met if all items in the array are met.

    RuleBranch

    Sub-rule branch.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DummyParseZoneFullConfig, ModifyL7AccRule.

    Name Type Required Description
    Condition String No Match condition.
    Actions Array of RuleEngineAction No Operate.
    Note: Actions and SubRules cannot be empty at the same time.
    SubRules Array of RuleEngineSubRule No Sub-rule list. If there are multiple rules in the list, they are executed in order from top to bottom.
    Note: SubRules and Actions cannot be empty at the same time. Currently only one level of SubRules is supported.

    RuleChoicePropertiesItem

    Detailed settings of the rule engine applicable to match requests, with selectable parameter configuration items.

    Used by actions: DescribeRulesSetting.

    Name Type Description
    Name String Parameter name.
    Type String Parameter type.
  • CHOICE: The parameter value can only be selected from ChoicesValue;
  • TOGGLE: The parameter value is a switch type, select from ChoicesValue;
  • CUSTOM_NUM: The parameter value is user-customized, integer type;
  • CUSTOM_STRING: The parameter value is user-customized and of string type.
  • ChoicesValue Array of String Available values of the parameter.
    Note: If the parameter value is user-customized, this array is an empty array.
    Min Integer Minimum value of the value parameter. This item is meaningless for non-numeric parameters or when both Min and Max are 0.
    Max Integer Maximum value of a numeric parameter. This item is meaningless for non-numeric parameters or when both Min and Max are 0.
    IsMultiple Boolean Whether the parameter value supports multi-select or filling in multiple values.
    IsAllowEmpty Boolean Allow Empty.
    ExtraParameter RuleExtraParameter Special parameter.
  • NULL: select NormalAction for RuleAction;
  • The member parameter Id is Action: select RewirteAction for RuleAction;
  • The member parameter Id is StatusCode: select CodeAction for RuleAction.
  • RuleCodeActionParams

    Rule engine condition uses the StatusCode field action parameter

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    StatusCode Integer Yes Status Code.
    Name String Yes Parameter name. For parameter completion specifications, call the api Query parameter settings of the rule engine to view.
    Values Array of String Yes Parameter value.

    RuleCondition

    Rule engine condition parameter

    Used by actions: CreateFunctionRule, CreateRule, DescribeRules, ModifyFunctionRule, ModifyRule.

    Name Type Required Description
    Operator String Yes Operator. Valid values:
  • equal: equal to;
  • notequal: neq;
  • exist: exist;
  • notexist: Not found.
  • Target String Yes Matching type. Valid values:
  • filename: Filename;
  • extension: File suffix;
  • host: Host;
  • full_url: A complete URL path under the current site, including the HTTP protocol, the host, and the path;
  • url: The request for a URL path under the current site;
  • client_country: Client country/region;
  • query_string: The query string for a requested URL under the current site;
  • request_header: HTTP request header;
  • client_ip: Client IP;
  • request_protocol: Request protocol;
  • request_method: HTTP request method.
  • Values Array of String No Parameter values for match types. An empty array is allowed only when the match type is query_string or request_header and the operator is Exist or Does Not Exist. The corresponding matching types are:
  • extension: File suffix such as jpg or txt;
  • File name: For example, foo in foo.jpg;
  • All (arbitrary request to the site): all;
  • HOST: The host under the current site, for example, www.maxx55.com;
  • URL Path: Request for the URL path under the current site, for example, /example;
  • URL Full: complete URL request under the current site, must contain HTTP protocol, Host, and path, for example: https://www.maxx55.cn/example;
  • client_country: Country/region identifier compliant with the ISO3166 standard;
  • Query string: The parameter values in the query string of the URL requested under the current site, for example, cn and 1 in lang=cn&version=1;
  • request_header: The value of the HTTP request header field. For example, zh-CN,zh;q=0.9 in Accept-Language:zh-CN,zh;q=0.9;
  • client_ip: The client request IP carried in the current request, which supports IPv4/IPv6 and an IP range;
  • Request protocol: protocol of current request. Value range: HTTP, HTTPS;
  • request_method: The method of the current request. Valid values: GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, OPTIONS, PATCH, COPY, LOCK, MKCOL, MOVE, PROPFIND, PROPPATCH, and UNLOCK.
  • IgnoreCase Boolean No Whether to ignore the case sensitivity of parameter values. Default value: false.
    Name String No Name of the parameter for the corresponding matching type. Valid when Target is set to the following values, and the value cannot be empty:
  • query_string: The parameter names in the query string of the URL requested under the current site, for example, lang and version in lang=cn&version=1;
  • request_header: The name of the HTTP request header field. For example, Accept-Language in Accept-Language:zh-CN,zh;q=0.9.
  • RuleEngineAction

    Rule engine operation.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Name String Yes

    Operation Name. The Name must correspond to the parameter structure. For example, if Name=Cache, CacheParameters is required.

  • Cache: node Cache TTL;
  • CacheKey: custom Cache Key;
  • CachePrefresh: Cache pre-refresh;
  • AccessURLRedirect: access URL redirection;
  • UpstreamURLRewrite: origin-pull URL rewrite;
  • QUIC: QUIC;
  • WebSocket: WebSocket;
  • Authentication: Token Authentication;
  • MaxAge: browser Cache TTL;
  • StatusCodeCache: status code Cache TTL;
  • OfflineCache: offline Cache;
  • SmartRouting: smart acceleration;
  • AdvancedOriginRouting: advanced origin optimization;
  • RangeOriginPull: range-based origin pull;
  • UpstreamHTTP2: HTTP2 origin pull;
  • HostHeader: Host Header rewrite;
  • ForceRedirectHTTPS: forced HTTPS redirect configuration for access protocol;
  • OriginPullProtocol: origin-pull HTTPS;
  • Compression: intelligent Compression configuration;
  • HSTS: HSTS;
  • ClientIPHeader: Header information configuration for storing client request IP;
  • OCSPStapling: OCSP stapling;
  • HTTP2: HTTP2 integration;
  • PostMaxSize: maximum limit configuration for streaming transmission of POST request upload files;
  • ClientIPCountry: carry the regional information of the client IP during origin-pull;
  • UpstreamFollowRedirect: origin-pull follow redirect parameter configuration;
  • UpstreamRequest: origin-pull request parameters;
  • Shield: origin server uninstallation configuration;
  • TLSConfig: SSL/TLS security;
  • ModifyOrigin: modify origin server;
  • SiteFailover: origin server fault migration;
  • HTTPUpstreamTimeout: Layer 7 origin pull timeout configuration;
  • HttpResponse: HTTP response;
  • ErrorPage: custom error page;
  • ModifyResponseHeader: modify HTTP node response Header;
  • ModifyRequestHeader: modify HTTP node request Header;
  • ResponseSpeedLimit: single connection download speed limit;
  • SetContentIdentifier: set content identifier;
  • Vary: Vary feature configuration;
  • ContentCompression: content Compression configuration;
  • OriginAuthentication: origin-pull Authentication configuration;
  • CustomAction: custom configuration.
  • CacheParameters CacheParameters No

    Node cache TTL configuration parameter. This parameter is required when Name is Cache.

    CacheKeyParameters CacheKeyParameters No

    Custom Cache Key configuration parameter. When Name is CacheKey, this parameter is required.

    CachePrefreshParameters CachePrefreshParameters No

    Cache pre-refresh configuration parameter. This parameter is required when Name value is CachePrefresh.

    AccessURLRedirectParameters AccessURLRedirectParameters No

    Access URL redirection configuration parameter. This parameter is required when Name is AccessURLRedirect.

    UpstreamURLRewriteParameters UpstreamURLRewriteParameters No

    Origin-pull URL rewrite configuration parameter. This parameter is required if Name is UpstreamURLRewrite.

    QUICParameters QUICParameters No

    QUIC configuration parameter. This parameter is required when the value of Name is QUIC.

    WebSocketParameters WebSocketParameters No

    WebSocket configuration parameter. This parameter is required when Name is WebSocket.

    AuthenticationParameters AuthenticationParameters No

    Token authentication configuration parameter. When the value of Name is Authentication, this parameter is required.

    MaxAgeParameters MaxAgeParameters No

    Browser cache TTL configuration parameter. This parameter is required when Name is MaxAge.

    StatusCodeCacheParameters StatusCodeCacheParameters No

    Status code cache TTL configuration parameter. This parameter is required when Name is StatusCodeCache.

    OfflineCacheParameters OfflineCacheParameters No

    Offline cache configuration parameter. This parameter is required when Name value is OfflineCache.

    SmartRoutingParameters SmartRoutingParameters No

    Smart acceleration configuration parameter. This parameter is required when the value of Name is SmartRouting.

    AdvancedOriginRoutingParameters AdvancedOriginRoutingParameters No

    Advanced origin-pull optimization configuration parameters. When the value of Name is AdvancedOriginRouting, this parameter is required.

    RangeOriginPullParameters RangeOriginPullParameters No

    Range-based origin pull configuration parameter. This parameter is required when Name is RangeOriginPull.

    UpstreamHTTP2Parameters UpstreamHTTP2Parameters No

    HTTP2 origin-pull configuration parameter. This parameter is required if Name is UpstreamHTTP2.

    HostHeaderParameters HostHeaderParameters No

    Host Header rewrite configuration parameters. When the value of Name is HostHeader, this parameter is required.

    ForceRedirectHTTPSParameters ForceRedirectHTTPSParameters No

    Access protocol forced HTTPS redirect configuration. This parameter is required when Name is ForceRedirectHTTPS.

    OriginPullProtocolParameters OriginPullProtocolParameters No

    Origin-pull HTTPS configuration parameter. This is required if Name is OriginPullProtocol.

    CompressionParameters CompressionParameters No

    Intelligent compression configuration. This parameter is required when the value of Name is Compression.

    HSTSParameters HSTSParameters No

    HSTS configuration parameter. This parameter is required when the value of Name is HSTS.

    ClientIPHeaderParameters ClientIPHeaderParameters No

    Header information configuration for storing client request IPs. This parameter is required when Name is ClientIPHeader.

    OCSPStaplingParameters OCSPStaplingParameters No

    OCSP stapling configuration parameter. This parameter is required when Name is OCSPStapling.

    HTTP2Parameters HTTP2Parameters No

    HTTP2 integration configuration parameter. This parameter is required when Name is HTTP2.

    PostMaxSizeParameters PostMaxSizeParameters No

    POST request upload file streaming transmission maximum limit configuration. When the value of Name is PostMaxSize, this parameter is required.

    ClientIPCountryParameters ClientIPCountryParameters No

    Configuration parameter for carrying the client IP region information during origin-pull. This parameter is required when the value of Name is ClientIPCountry.

    UpstreamFollowRedirectParameters UpstreamFollowRedirectParameters No

    Origin-pull follow redirect parameter configuration. When the value of Name is UpstreamFollowRedirect, this parameter is required.

    UpstreamRequestParameters UpstreamRequestParameters No

    Origin-pull request parameter configuration parameter. This parameter is required when Name is UpstreamRequest.

    ShieldParameters ShieldParameters No

    Origin server uninstallation configuration parameter. This parameter is required when the value of Name is Shield.

    TLSConfigParameters TLSConfigParameters No

    SSL/TLS security configuration parameter. This parameter is required when Name is TLSConfig.

    ModifyOriginParameters ModifyOriginParameters No

    Modify origin configuration parameters. When the value of Name is ModifyOrigin, this parameter is required.

    SiteFailoverParameters SiteFailoverParameters No

    Origin server failover configuration parameter. This parameter is required when Name is SiteFailover.

    HTTPUpstreamTimeoutParameters HTTPUpstreamTimeoutParameters No

    Layer 7 origin pull timeout configuration. This parameter is required when Name is HTTPUpstreamTimeout.

    HttpResponseParameters HTTPResponseParameters No

    HTTP response configuration parameter. This parameter is required when Name is HttpResponse.

    ErrorPageParameters ErrorPageParameters No

    Custom error page configuration parameter. This parameter is required when Name is ErrorPage.

    ModifyResponseHeaderParameters ModifyResponseHeaderParameters No

    Modify HTTP node response header configuration parameters. This parameter is required when Name is ModifyResponseHeader.

    ModifyRequestHeaderParameters ModifyRequestHeaderParameters No

    Modify the HTTP node request header configuration parameter. This parameter is required if Name is ModifyRequestHeader.

    ResponseSpeedLimitParameters ResponseSpeedLimitParameters No

    Single connection download speed limit configuration parameter. This parameter is required when Name is ResponseSpeedLimit.

    SetContentIdentifierParameters SetContentIdentifierParameters No

    Content identification configuration parameter. This parameter is required when the value of Name is SetContentIdentifier.

    VaryParameters VaryParameters No

    Vary feature configuration parameter. When the value of Name is Vary, this parameter is required.

    ContentCompressionParameters ContentCompressionParameters No

    Content compression configuration parameter. When the value of Name is ContentCompression, this parameter is required. This parameter is an allowlist feature. If needed, contact Tencent Cloud Engineers.

    OriginAuthenticationParameters OriginAuthenticationParameters No

    Origin authentication configuration parameter. When the value of Name is OriginAuthentication, this parameter is required. This parameter is an allowlist feature. If needed, contact Tencent Cloud Engineers.

    CustomActionParameters CustomActionParameters No

    Custom configuration operation parameter. This parameter is required when the value of Name is CustomAction.

    You can get the list of currently supported custom configuration items through the returned value CustomActionSet of the DescribeAvailableCustomActionsForRuleEngine API.

    RuleEngineCustomAction

    Operate the custom configuration of the rule engine.

    Used by actions: DescribeAvailableCustomActionsForRuleEngine.

    Name Type Description
    ActionId String

    Unique ID of the custom configuration.

    Name String

    Custom configuration name.

    Description String

    Custom configuration description.

    Parameters Array of RuleEngineCustomActionParameterSchema

    Custom configuration parameter definition list.

    SupportedConditions Array of String

    Custom configuration supported match conditions.

    For supported match conditions, see the official documentation General Reference - Configuration Syntax - Variables.

    RuleEngineCustomActionParameterSchema

    Rule engine operation custom configuration parameter structure definition.

    Used by actions: DescribeAvailableCustomActionsForRuleEngine.

    Name Type Description
    Name String

    Parameter field name.

    ValueType String

    Parameter field data type. Valid values:

  • Boolean: boolean;
  • Integer: integer;
  • Float: floating-point type;
  • String: string;
  • ArrayOfInteger: integer array;
  • ArrayOfFloat: floating-point array;
  • ArrayOfString: array of strings.
  • Description String

    Parameter field description.

    Default String

    Parameter field default value.

    Unit String

    Parameter field unit.

    Required Boolean

    Whether the parameter field is required.

    Default value: false

    If filled, it is suitable for all parameter field type verification; if not filled, no verification.

    MinValue Float

    Minimum value of the parameter field.

    If filled, it is used to validate the value of integer, floating-point number, integer array, and floating-point number array type parameters. If not filled, no verification is performed.

    MaxValue Float

    Maximum value of the parameter field.

    If filled, it applies to value verification for integers, floating-point numbers, integer arrays, and floating-point number arrays. If left blank, no verification is performed.

    MinLength Integer

    Minimum length of the parameter field.

    If filled, it applies to value verification for string and string array type parameters; if left blank, no verification is performed.

    MaxLength Integer

    Maximum length of the parameter field.

    If filled, it is used for value validation of string and string array type parameters; if not filled, no validation is performed.

    MinItems Integer

    Minimum item count of the parameter field.

    If filled, it is used to validate the value of various array type parameters. If not filled, no verification is performed.

    MaxItems Integer

    Maximum items in the parameter field.

    If filled, it is suitable for value verification of various array type parameters; if left blank, no verification is performed.

    UniqueItems Boolean

    Whether the parameter field item is unique.

    Default value: false

    If filled, it is suitable for value verification of various array type parameters; if not filled, no verification.

    AllowedPattern String

    Allowed format of the parameter field.

    If filled, verification is required to ensure the string or string array content is appropriate; if left blank, no verification is performed.

    AllowedValues Array of String

    Allowed values of the parameter field. If empty, no verification is performed.

    If this parameter is filled, it indicates that the corresponding parameter is an enumeration type, and only values in this parameter array are allowed. If not filled, no verification is performed.

    MultipleOf String

    Minimum step size of the parameter field. If filled, it applies to value verification for floating-point and floating-point array type parameters; if left blank, no verification is performed.

    RuleEngineItem

    Rule details of the engine rule.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Status String No

    Rule status. Valid values:

  • enable: Enable;
  • disable: Disabled.
  • RuleId String No

    Rule ID. The unique identifier of a rule. This parameter is required when calling ModifyL7AccRule.

    RuleName String No

    Rule name. The name can contain no more than 255 characters.

    Description Array of String No

    Rule note. Multiple notes can be filled.

    CustomVariables Array of CustomVariable No

    List of rule-level custom variables. CustomVariable.Name requires the use of user.rule. as a prefix. Variables are initialized sequentially in the array order. InitialValue supports referencing site-level custom variables and rule-level custom variables before the current variable. It does not support referencing the current variable itself or rule-level custom variables after it. Site-level custom variables can be queried through the DescribeZoneCustomVariables API. When Branches is empty, CustomVariable cannot be filled in, and any entry is invalid.

    CustomVariableOperations Array of CustomVariableOperation No

    Operation details of rule-level custom variables. You can reference site-level custom variables and rule-level custom variables defined in the current rule during operations. Site-level custom variables can be queried through the DescribeZoneCustomVariables API. This list currently only supports filling in one rule; additional entries are invalid. When Branches is empty, CustomVariableOperations is not allowed to be filled in, and any entry will be invalid.

    Branches Array of RuleBranch No

    Sub-rule branch. This list currently only supports filling in one rule. Additional rules are invalid.

    RulePriority Integer No

    Rule priority. Output only.

    RuleEngineSubRule

    Sub-rule.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Branches Array of RuleBranch No Sub-rule branch
    Description Array of String No Rule note.

    RuleExtraParameter

    Rule engine parameter details. Unique parameter type.

    Used by actions: DescribeRulesSetting.

    Name Type Description
    Id String Parameter name. Valid values:
  • Action: Parameters required to modify HTTP header. Select RewirteAction for RuleAction;
  • StatusCode: Parameters required for status code related features. Select CodeAction for RuleAction.
  • Type String Parameter value type.
  • CHOICE: The parameter value can only be selected from Values;
  • CUSTOM_NUM: The parameter value is user-customized, int type;
  • CUSTOM_STRING: The parameter value is user-customized, string type.
  • Choices Array of String Optional parameter values.
    Note: When the value of Id is StatusCode, the values in the array are integers. Fill in the parameter value as an integer in string format.

    RuleItem

    Rule engine rule details

    Used by actions: DescribeRules.

    Name Type Description
    RuleId String Rule ID.
    RuleName String Rule name. The name string must be 1 to 255 characters in length.
    Status String Rule status. Valid values:
  • enable: enable;
  • disable: disabled.
  • Rules Array of Rule Rule content.
    RulePriority Integer Rule priority. A larger value indicates higher priority. Minimum value: 1.
    Tags Array of String Rule tag.

    RuleNormalActionParams

    Rule engine condition normal action parameter

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Name String Yes Parameter name. For completion specifications, call the API to query the parameter settings of the rule engine.
    Values Array of String Yes Parameter value.

    RuleRewriteActionParams

    Action parameter for HTTP request/response header operations in rule engine conditions.

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Action String Yes For feature parameter names and completion specifications, call the API to query the rule engine's parameter settings (https://www.tencentcloud.com/document/product/1552/80618?from_cn_redirect=1). Currently, only three values are supported:
  • add: Add an HTTP header;
  • set: rewrite HTTP header;
  • del: delete an HTTP header.
  • Name String Yes Parameter name.
    Values Array of String Yes Parameter value.

    RulesProperties

    Rule engine settings applicable to matchmaking requests.

    Used by actions: DescribeRulesSetting.

    Name Type Description
    Name String Value of the parameter name.
    Min Integer Minimum value of the numeric parameter. This item is meaningless for non-numeric parameters or when both Min and Max are 0.
    ChoicesValue Array of String Available values of the parameter.
    Note: If the parameter value is user-customized, this array is an empty array.
    Type String Parameter type.
  • CHOICE: The parameter value can only be selected from ChoicesValue;
  • TOGGLE: The parameter value is a switch type, select from ChoicesValue;
  • OBJECT: The parameter value is an object type, and ChoiceProperties are attributes associated with the object type;
  • CUSTOM_NUM: user-customized parameter value, integer type;
  • CUSTOM_STRING: The parameter value is user-customized, string type.
  • Note: When the parameter type is OBJECT, see Example 2: Create with the parameter type OBJECT
    Max Integer Maximum value of the numeric parameter. This item is meaningless for non-numeric parameters or when both Min and Max are 0.
    IsMultiple Boolean Whether the parameter value supports multiple selections or filling in multiple values.
    IsAllowEmpty Boolean Allow Empty.
    ChoiceProperties Array of RuleChoicePropertiesItem The associated configuration parameter of this parameter is required for the API call.
    Note: If no new configuration parameters are added to the optional parameter, this array is an empty array.
    ExtraParameter RuleExtraParameter
  • NULL: no special parameter. Select NormalAction for RuleAction;
  • RulesSettingAction

    Settings list of a rule engine applicable to matchmaking requests and its detailed information

    Used by actions: DescribeRulesSetting.

    Name Type Description
    Action String Feature name. Valid values:
  • Access URL rewrite (AccessUrlRedirect);
  • Origin-pull URL rewrite (UpstreamUrlRedirect);
  • Custom error page
    (ErrorPage);
  • QUIC(QUIC);
  • WebSocket (WebSocket);
  • Video dragging (VideoSeek);
  • Token authentication (Authentication);
  • Custom CacheKey (CacheKey);
  • Node cache TTL (Cache);
  • Browser caching TTL (MaxAge);
  • Offline caching (OfflineCache);
  • Smart routing (SmartRouting);
  • Range-based origin pull (RangeOriginPull);
  • HTTP/2 origin pull (UpstreamHttp2);
  • Host header rewrite (HostHeader);
  • force HTTPS (ForceRedirect);
  • HTTPS origin pull (OriginPullProtocol);
  • Cache pre-refresh (CachePrefresh);
  • Intelligent compression (Compression);
  • HTTP request header modification (RequestHeader);
  • HTTP response header modification (ResponseHeader);
  • Status code cache TTL (StatusCodeCache);
  • Hsts;
  • ClientIpHeader;
  • TlsVersion;
  • OcspStapling.
  • Properties Array of RulesProperties Parameter information.

    S3

    The configuration information of real-time log delivery to an AWS S3 compatible bucket

    Used by actions: CreateRealtimeLogDeliveryTask, DescribeRealtimeLogDeliveryTasks, ModifyRealtimeLogDeliveryTask.

    Name Type Required Description
    Endpoint String Yes The URL without bucket name or path, for example: https://storage.googleapis.com, https://s3.ap-northeast-2.amazonaws.com, and https://cos.ap-nanjing.myqcloud.com.
    Region String Yes The region where the bucket is located, for example: ap-northeast-2.
    Bucket String Yes The bucket name and log storage directory, for example: your_bucket_name/EO-logs/. If the directory does not exist in the bucket, it will be created automatically.
    AccessId String Yes The Access Key ID used to access the bucket.
    AccessKey String Yes The secret key used to access the bucket.
    CompressType String No The data compress type. Valid values:
  • gzip: gzip compression.
  • If this field is not filled in, compression is disabled.

    SearchEngineBots

    Search engine rule configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BaseAction SecurityAction No Execution action for requests from search engine crawlers. Supported values of SecurityAction Name:
  • Deny: block;
  • Monitor: observe;
  • Disabled: not enabled, disable the specified rule;
  • Challenge: challenge. ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge;
  • Allow: allow (to be deprecated).
  • BotManagementActionOverrides Array of BotManagementActionOverrides No Specify the handling method for search engine crawler requests.

    SecEntry

    Security data Entry return value

    Used by actions: DescribeDDoSAttackData.

    Name Type Description
    Key String Query the dimension value.
    Value Array of SecEntryValue Detailed data under the query dimension.

    SecEntryValue

    Security data dimension value information

    Used by actions: DescribeDDoSAttackData.

    Name Type Description
    Metric String Metric name.
    Detail Array of TimingDataItem Details of time series data.
    Max Integer Maximum value.
    Avg Float Mean.
    Sum Float Total data.

    SecurityAction

    Safe execution action

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Name String Yes

    Specific actions for safe execution. Valid values:

    • Deny: block, prevent requests from accessing site resources;
    • Monitor: observe, only record logs;
    • Redirect: redirect to URL;
    • Disabled: not enabled, disable the specified rule;
    • Allow: allow, skip the remaining rules of the current security module. Delay response when the AllowActionParameters parameter is configured;
    • Challenge: challenge, respond with challenge content;
    • BlockIP: to be deprecated, IP block;
    • ReturnCustomPage: to be deprecated, use a specified page for interception;
    • JSChallenge: to be deprecated, JavaScript challenge;
    • ManagedChallenge: to be deprecated, managed challenge.
    DenyActionParameters DenyActionParameters No

    Additional parameter when Name is Deny.

    RedirectActionParameters RedirectActionParameters No

    Additional parameter when Name is Redirect.

    AllowActionParameters AllowActionParameters No

    Additional parameter when Name is Allow.

    ChallengeActionParameters ChallengeActionParameters No

    Additional parameter when Name is Challenge.

    BlockIPActionParameters BlockIPActionParameters No

    To be deprecated. An additional parameter when Name is BlockIP.

    ReturnCustomPageActionParameters ReturnCustomPageActionParameters No

    To be deprecated. An additional parameter when Name is ReturnCustomPage.

    SecurityConfig

    Web security configuration

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    WafConfig WafConfig No Managed rule. If the parameter is null or not filled, use the last set configuration by default.
    RateLimitConfig RateLimitConfig No Rate limit. If the parameter is null or not filled, use the last set configuration by default.
    AclConfig AclConfig No Custom rule. If the parameter is null or not filled, use the last set configuration by default.
    BotConfig BotConfig No Bot configuration. If the parameter is null or not filled, use the last set configuration by default.
    SwitchConfig SwitchConfig No Switch setting of the 7-layer protection. If the parameter is null or not filled, use the last set configuration by default.
    IpTableConfig IpTableConfig No Basic access control. If the parameter is null or not filled, use the last set configuration by default.
    ExceptConfig ExceptConfig No Exception rule configuration. If the parameter is null or not filled, use the last set configuration by default.
    DropPageConfig DropPageConfig No Custom block page settings. If the parameter is null or not filled, the last set configuration is used by default.
    TemplateConfig TemplateConfig No Template configuration. This parameter is output-only.
    SlowPostConfig SlowPostConfig No Slow attack configuration. If the parameter is null or not filled, use the last set configuration by default.
    DetectLengthLimitConfig DetectLengthLimitConfig No Detection length limit configuration. For output usage only.

    SecurityHeadersToOrigin

    Security headers to include in requests to the origin. After the configuration takes effect, request headers with the corresponding keyname will be sent to the origin.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BotIdentificationHeaders Array of String No

    Configuration of origin request headers for Bot identification information. Valid values:

    • EO-Bot-Botnet-ID: Identifier generated based on Bot request characteristics.

    BotManagementHeaders Array of String No

    Configuration of origin request headers for identification results from the Advanced Bot Management module. Valid values:

    • EO-Bot-Client-Attestation: Advanced Bot Management - Authentication ticket verification result from the Client Attestation module;
    • EO-Bot-Client-Risk: Advanced Bot Management - Device risk assessment result from the Client Attestation module;
    • EO-Bot-Intelligence: Advanced Bot Management - Identification result from the Bot Intelligence Analysis module;
    • EO-Bot-IP-Reputation: Advanced Bot Management - Identification result from Client Reputation module;
    • EO-Bot-Known-Tool: Advanced Bot Management - Basic Feature Management - Identification result from the UA Feature Rule module;
    • EO-Bot-Search-Engine: Advanced Bot Management - Basic Feature Management - Identification result from the Search Engine Rule module;
    • EO-Bot-Source-IDC: Advanced Bot Management - Basic Feature Management - Identification result from the IDC Rule module;
    • EO-Bot-User-Risk: Advanced Bot Management - Account risk assessment result from the Client Attestation module.

    ClientFingerprintHeaders Array of String No

    Configuration of origin request headers for client fingerprint information. Valid values:

    • EO-Bot-Fingerprint: Client fingerprint information.

    SecurityPolicy

    Security policy configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, DummyParseZoneFullConfig, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    CustomRules CustomRules No

    Custom rule configuration.

    ManagedRules ManagedRules No

    Managed rule configuration.

    HttpDDoSProtection HttpDDoSProtection No

    HTTP DDoS protection configuration.

    RateLimitingRules RateLimitingRules No

    Rate limiting rule configuration.

    ExceptionRules ExceptionRules No

    Exception rule configuration.

    BotManagement BotManagement No

    Bot management configuration.

    BotManagementLite BotManagementLite No

    Basic Bot management configuration.

    DefaultDenySecurityActionParameters DefaultDenySecurityActionParameters No

    Default block action configuration.

    SecurityHeadersToOrigin SecurityHeadersToOrigin No

    Security headers to include in requests to the origin. After the configuration takes effect, request headers with the corresponding keyname will be sent to the origin.

    SecurityPolicyTemplateInfo

    Policy template information.

    Used by actions: DescribeWebSecurityTemplates.

    Name Type Description
    ZoneId String Site ID of the policy template.
    TemplateId String Policy template ID.
    TemplateName String Policy template name.
    BindDomains Array of BindDomainInfo Domain name info bound to the policy template.

    SecurityTemplateBinding

    Binding relationship of the security policy template.

    Used by actions: DescribeSecurityTemplateBindings.

    Name Type Description
    TemplateId String Template ID.
    TemplateScope Array of TemplateScope Template binding status.

    SecurityType

    Security type configuration item.

    Used by actions: DescribeHostsSetting.

    Name Type Required Description
    Switch String Yes Security type switch. Value:
  • on: Enable;
  • off: Disable.
  • SecurityWeightedAction

    SecurityAction with weight assignment.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    SecurityAction SecurityAction No Handling method of the Bot custom rule. Valid values:
  • Allow: Allow, where AllowActionParameters supports MinDelayTime and MaxDelayTime configuration;
  • Deny: block, where DenyActionParameters supports BlockIp, ReturnCustomPage, and Stall configuration;
  • Monitor: Monitor;
  • Challenge: Challenge, where ChallengeActionParameters.ChallengeOption supports JSChallenge and ManagedChallenge;
  • Redirect: Redirect to a URL.
  • Weight Integer No Weight of the current SecurityAction. Only multiples of 10 from 10 to 100 are supported. The sum of all Weight parameters must equal 100.

    SemanticAnalysisRules

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No
    RuleActions Array of ManagedRuleAction No
    MetaData ManagedRuleGroupMeta No

    ServerCertInfo

    https server certificate configuration

    Used by actions: DescribeHostsSetting, ModifyHostsCertificate, ModifyZoneSetting.

    Name Type Required Description
    CertId String Yes Server certificate ID, which originates from the SSL side. You can check the CertId from the SSL Certificate List.
    Alias String No Certificate remark name.
    Type String No Certificate type. Valid values:
  • default: Default certificate;
  • upload: User-upload;
  • managed: Tencent Cloud hosted.
  • ExpireTime Timestamp ISO8601 No Certificate expiration time.
    DeployTime Timestamp ISO8601 No Deployment time of the certificate.
    SignAlgo String No Signature algorithm.
    CommonName String No Domain name of the certificate ownership.

    SessionIdAffinityConfig

    Affinity configurations based on session ID.

    Used by actions: CreateInferenceService, ModifyInferenceService.

    Name Type Required Description
    Source String No

    Transmission location of the session ID parameter. If left empty, it defaults to Header.

    Enumeration values:

    • Header: Pass the parameter in the request header.

    Default value: Header.

    HeaderName String No

    Request header name for transmitting the session ID. Required when Source is Header.
    If left empty, it defaults to EO-Infer-Session-Id.

    Input limits: 1-64 characters in length. Only letters, digits, and hyphens are supported.

    Default value: EO-Infer-Session-Id.

    SessionRateControl

    Session rate and periodic feature verification configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String No Whether session rate and periodic feature verification are enabled. Valid values:
  • on: enable
  • off: disable
  • HighRateSessionAction SecurityAction No Session rate and periodic feature verification for high-risk executed actions. The Name parameter of SecurityAction supports the following values:
  • Deny: block, with Stall configuration supported in DenyActionParameters;
  • Monitor: observe;
  • Allow: respond after waiting, where AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • MidRateSessionAction SecurityAction No Execution action for medium-risk session rate and periodic feature verification. Supported values of SecurityAction Name:
  • Deny: block, where DenyActionParameters supports Stall configuration;
  • Monitor: observe;
  • Allow: respond after waiting, where AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • LowRateSessionAction SecurityAction No Session rate and periodic feature verification are low-risk execution actions. The Name parameter of SecurityAction supports:
  • Deny: block, where DenyActionParameters supports Stall configuration;
  • Monitor: observe;
  • Allow: wait then respond, where AllowActionParameters requires MinDelayTime and MaxDelayTime configuration.
  • SetContentIdentifierParameters

    Content identification configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    ContentIdentifier String No Content identifier ID

    SetParameters

    Custom Variable parameter settings.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeZoneCustomVariables, ModifyL7AccRule, ModifyZoneCustomVariables.

    Name Type Required Description
    Name String Yes

    Custom Variable name. A Custom Variable must be defined before it can be used in operations.

    Value String Yes

    Assign values to custom variables. Supports using constant strings, variables, and formulas. Chinese characters are not allowed. Length cannot exceed 1000 characters.

    SharedCNAMEInfo

    Shared CNAME details

    Used by actions: DescribeSharedCNAME.

    Name Type Description
    Type String

    Shared CNAME type: value range as follows:

  • custom: user-created custom shared CNAME
  • ip-ssl: IP SSL shared CNAME
  • zero-rating: zero-rating shared CNAME
  • preset: pre-configured resource shared CNAME
  • SharedCNAME String

    Shared CNAME name.

    Description String

    Description.

    IPSSLConfig IPSSLConfig

    When type is ip-ssl, show the IP SSL configuration message associated with the shared CNAME.

    BindDomainCount Integer

    Number of acceleration domain names bound to the shared CNAME.

    AccelerationDomains Array of ReferenceHolder

    List of acceleration domain names added to the shared CNAME. When the number of added domains exceeds 100, only return the first 100 acceleration domain names.

    ShieldParameters

    Origin server uninstallation configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    ShieldSpaceId String Yes Origin server uninstallation space ID.

    SiteFailover

    Origin server failover configuration parameter internal structure.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Mode String Yes Origin-pull failover type. Valid values:
  • FailoverToHost: Failover to the specified IP/domain;
  • FailoverToCOS: Failover to Tencent Cloud COS;
  • FailoverToS3CompatibleObjectStorage: Failover to S3-compatible storage;
  • FailoverRedirectToURL: redirect to the specified URL;
  • FailoverCustomResponsePage: Use a custom response page.
  • Origin String No Origin server address, divided into the following scenarios based on the value of Mode:
  • When Mode = FailoverToHost, fill in an IPV4 address, an IPV6 address, or a domain name;
  • When Mode = FailoverToCOS, fill in the access domain name of the COS bucket;
  • When Mode = FailoverToS3CompatibleObjectStorage, fill in the access domain name of the S3 bucket.
  • OriginProtocol String No Origin-pull protocol configuration. This parameter is required when Mode is FailoverToHost. Valid values:
  • http: use HTTP protocol;
  • https: Use HTTPS protocol;
  • follow: follow protocol.
  • HTTPOriginPort Integer No HTTP origin-pull port. Value range: 1–65535. This parameter is required when the origin-pull protocol OriginProtocol is http or follow.
    HTTPSOriginPort Integer No HTTPS origin-pull port, in the range of 1–65535. This parameter is required when OriginProtocol is https or follow.
    UpstreamHostHeader HostHeaderParameters No Host Header rewrite configuration for origin-pull.
    UpstreamURLRewrite UpstreamURLRewriteParameters No Origin-pull URL rewrite configuration.
    UpstreamRequestParameters UpstreamRequestParameters No Origin-pull request parameter configuration.
    UpstreamHTTP2Parameters UpstreamHTTP2Parameters No HTTP/2 origin-pull configuration parameter.
    PrivateAccess String No Whether access to the private object storage origin server is allowed. This parameter is required when the origin server type Mode is FailoverToCOS or FailoverToS3CompatibleObjectStorage. Valid values:
  • on: Enable private authentication;
  • off: Disable private authentication.
  • PrivateParameters OriginPrivateParameters No Private authentication parameter. This parameter is valid only when Mode = FailoverToS3CompatibleObjectStorage and PrivateAccess = on.
    RedirectURL String No Redirect target URL. This parameter is required when Mode is FailoverRedirectToURL.
    ResponsePageId String No page ID. This parameter is required when Mode is FailoverCustomResponsePage.
    StatusCode Integer No status code. This parameter is required when Mode is FailoverRedirectToURL or FailoverCustomResponsePage. Valid values:
  • When Mode = FailoverRedirectToURL, the parameter value is one of 301, 302, 303, 307, 308;
  • When Mode = FailoverCustomResponsePage, the parameter value is one of 400, 403, 404, 405, 414, 416, 451, 500, 501, 502, 503, 504.
  • SiteFailoverParameters

    Origin server failover configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    SiteFailoverStatusCodes Array of Integer Yes Status code for origin fault migration condition. Origin migration is executed as specified in SiteFailoverParams only when the response status code returned by the origin hits the value of this field. The parameter value is one of 4xx and 5xx.
    SiteFailoverParams Array of SiteFailover Yes List of origin server failover configuration parameters. Minimum length: 1. Maximum length: 2.

    SkipCondition

    Skip match condition of the exception rule. In case of an exception, skip the specified field and content based on this match condition.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Type String Yes Exception skip type. Value:
  • header_fields: HTTP request header;
  • cookie: HTTP request cookie;
  • query_string: The query parameter in the HTTP Request URL;
  • uri: HTTP request URI;
  • body_raw: HTTP request body;
  • body_json: HTTP Body in JSON format.
  • Selector String Yes Field to skip. Value:
  • args: select query parameter under uri: ?name1=jack&age=12;
  • path: Select a path under the uri: /path/to/resource.jpg;
  • full: select the full path under uri: example.com/path/to/resource.jpg?name1=jack&age=12;
  • upload_filename: Segmented file name, that is, when transferring files in segments;
  • keys: all keys;
  • values: The value corresponding to the match Key;
  • key_value: Match key and match value.
  • MatchFromType String No Match mode used by the match Key. Value:
  • equal: exact match, equal to;
  • wildcard: wildcard match, supports * wildcard.
  • MatchFrom Array of String No Value of the match Key.
    MatchContentType String No Match mode used by Content. Value:
  • equal: exact match, equal to;
  • wildcard: wildcard match, supports * wildcard.
  • MatchContent Array of String No Value of the match Value.

    SlowAttackDefense

    Specific configuration for slow attack protection.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    Enabled String Yes Whether slow attack protection is enabled. Valid values:
  • on: enabled;
  • off: disabled.
  • Id String No Rule ID of slow attack protection, returned only as an output parameter.
    Action SecurityAction No Handling method for slow attack protection. This field is required when Enabled is on. Supported values for SecurityAction Name:
  • Monitor: observe;
  • Deny: block;
  • MinimalRequestBodyTransferRate MinimalRequestBodyTransferRate No Specific configuration of the minimum body transfer rate threshold. Required when Enabled is on.
    RequestBodyTransferTimeout RequestBodyTransferTimeout No Specific configuration of the body transfer timeout duration. Required if Enabled is on.

    SlowPostConfig

    Slow attack configuration.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • FirstPartConfig FirstPartConfig No First packet configuration.
    SlowRateConfig SlowRateConfig No Basic configuration.
    Action String No Handling action for slow attacks. Valid values:
  • monitor: observation;
  • drop: block.
  • RuleId Integer No Rule Id.

    SlowRateConfig

    Basic configuration of slow attack.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Switch. Valid values:
  • on: Enable;
  • off: Disable.
  • Interval Integer No Statistics interval in seconds. After the first packet transfer is complete, the data transmission axis is split by this parameter, and slow attacks are calculated separately for each shard.
    Threshold Integer No Rate threshold applied for statistics, in bps. If the transmission rate in this shard does not reach this parameter value, it is determined as a slow attack and the handling method for slow attacks is applied.

    SmartRouting

    Intelligent acceleration configuration.

    Used by actions: DescribeHostsSetting, DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Smart acceleration configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • SmartRoutingParameters

    Intelligent acceleration configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Smart acceleration configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • SourceIDC

    Specific content of the IDC rule configuration.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    BaseAction SecurityAction No Handling method for requests from a specified IDC. Supported values of the Name parameter of SecurityAction:
  • Deny: block;
  • Monitor: observe;
  • Disabled: not enabled, which disables the specified rule;
  • Challenge: challenge, where ChallengeOption in ChallengeActionParameters supports JSChallenge and ManagedChallenge;
  • Allow: allow (to be deprecated).
  • BotManagementActionOverrides Array of BotManagementActionOverrides No Handling method for the request from the specified IDC.

    StandardDebug

    Supports the standard debug struct

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes Debug feature switch. Valid values:
  • on: Enable;
  • off: Disable.
  • AllowClientIPList Array of String Yes Allowed client sources. Supports filling in IPv4 and IPv6 IPs or IP ranges. 0.0.0.0/0 indicates that all IPv4 clients are allowed for debugging, and ::/0 indicates that all IPv6 clients are allowed for debugging.
    ExpireTime Timestamp ISO8601 Yes Debug feature expiration time. If the set time is exceeded, the feature becomes invalid.

    StandardDebugParameters

    Debug struct.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No Debug feature switch. Valid values:
  • on: Enable;
  • off: Disable.
  • AllowClientIPList Array of String No Allowed client source. Supports filling in IPv4 and IPv6 IP ranges. 0.0.0.0/0 indicates permission for all IPv4 clients to debug; ::/0 indicates permission for all IPv6 clients to debug; 127.0.0.1 cannot be filled in.
    Note: When the Switch field is on, this field is required, and the number of writes is 1–100; when Switch is off, no need to specify this field, and if filled in, it does not take effect.
    Expires Timestamp ISO8601 No Expiration time of the Debug feature. If the set time is exceeded, the feature becomes invalid.
    Note: When Switch is on, this field is required; when Switch is off, this field is not required. If filled in, it does not take effect.

    StatisticsRecord

    Statistics result row.

    Used by actions: DescribeLogAnalysisStatistics.

    Name Type Description
    Record Array of String

    List single row record.

    StatusCodeCacheParam

    Internal structure of the status code cache TTL config.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    StatusCode Integer No Status code. Value is one of 400, 401, 403, 404, 405, 407, 414, 500, 501, 502, 503, 504, 509, 514.
    CacheTime Integer No Cache time value, in seconds. Value range: 0–31536000.

    StatusCodeCacheParameters

    Status code cache TTL configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    StatusCodeCacheParams Array of StatusCodeCacheParam No Status code cache TTL.

    SubRule

    Nested rule information.

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Conditions Array of RuleAndConditions Yes Judgment condition for executing the feature.
    Note: The feature can be executed if any condition in the array is met.
    Actions Array of Action Yes Function to execute.

    SubRuleItem

    Nested rule of the rule engine

    Used by actions: CreateRule, DescribeRules, ModifyRule.

    Name Type Required Description
    Rules Array of SubRule Yes Nested rule information.
    Tags Array of String No Rule tag.

    Sv

    Quotation Parameters

    Used by actions: DescribeZones.

    Name Type Required Description
    Key String Yes Price inquiry parameter key.
    Value String Yes Quotation parameter value.
    Pack String No Quota for inquiry parameter mapping. Valid values:
  • zone: sites;
  • custom-rule: number of custom rules;
  • rate-limiting-rule: rate limiting rule;
  • l4-proxy-instance: number of L4 proxy instances.
  • InstanceId String No L4 proxy instance Id mapped to the price inquiry parameter.
    ProtectionSpecs String No Inquiry parameter corresponding to the protection level.
    Valid values:
  • cm_30G: 30 Gbps baseline protection for the Chinese mainland acceleration area;
  • cm_60G: 60 Gbps baseline protection for the Chinese mainland acceleration area;
  • cm_100G: 100 Gbps baseline protection for the Chinese mainland acceleration area;
  • anycast_300G: 300 Gbps anycast joint protection for the global acceleration region (outside Chinese mainland);
  • anycast_unlimited: unlimited anycast full protection for the global acceleration region (outside Chinese mainland);
  • cm_30G_anycast_300G: 30 Gbps baseline protection for the Chinese mainland acceleration area, 300 Gbps anycast joint protection for the global acceleration region (outside Chinese mainland);
  • cm_30G_anycast_unlimited: 30 Gbps baseline protection for the Chinese mainland acceleration area, unlimited anycast full protection for the global acceleration region (outside Chinese mainland);
  • cm_60G_anycast_300G: 60 Gbps baseline protection for the Chinese mainland acceleration area, 300 Gbps anycast joint protection for the global acceleration region (outside Chinese mainland);
  • cm_60G_anycast_unlimited: 60 Gbps baseline protection for the Chinese mainland acceleration area, unlimited anycast full protection for the global acceleration region (outside Chinese mainland);
  • cm_100G_anycast_300G: 100 Gbps baseline protection for the Chinese mainland acceleration area, 300 Gbps anycast joint protection for the global acceleration region (outside Chinese mainland);
  • cm_100G_anycast_unlimited: 100 Gbps baseline protection for the Chinese mainland acceleration area, unlimited anycast full protection for the global acceleration region (outside Chinese mainland).
  • SwitchConfig

    Master switch for features

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    WebSwitch String Yes Master switch for Web security. Valid values:
  • on: Enable;
  • off: Disable.
  • Does not affect the DDoS and Bot switch.

    TCCaptchaOption

    Authenticate the instance information with a verification code.

    Used by actions: CreateSecurityClientAttester, DescribeSecurityClientAttester, ModifySecurityClientAttester.

    Name Type Required Description
    CaptchaAppId String Yes CaptchaAppId information.
    AppSecretKey String Yes AppSecretKey information.

    TCEOCaptchaOption

    EdgeOne human-machine verification authentication instance information.

    Used by actions: CreateSecurityClientAttester, DescribeSecurityClientAttester, ModifySecurityClientAttester.

    Name Type Required Description
    CaptchaMode String No

    Browser-side WebView human-machine verification interaction mode.

    Enumeration values:

    • Invisible: invisible verification
    • Adaptive: self-adaptive interactive verification

    Default value: Invisible

    MobileCaptchaMode String No

    Human-machine verification interaction mode for native apps on mobile terminals.

    Enumeration values:

    • Invisible: Invisible verification
    • Visible: interactive verification

    Default value: Invisible

    TCRCEOption

    RCE authentication option instance information.

    Used by actions: CreateSecurityClientAttester, DescribeSecurityClientAttester, ModifySecurityClientAttester.

    Name Type Required Description
    Channel String Yes Channel info.
    Region String No Enabled regions for RCE Channel. Currently optional values:
  • ap-beijing: North China (Beijing);
  • ap-jakarta: Southeast Asia Pacific (Jakarta);
  • ap-singapore: Southeast Asia Pacific (Singapore);
  • eu-frankfurt: Europe (Frankfurt);
  • na-siliconvalley: West US (Silicon Valley).
  • TLSConfigParameters

    SSL/TLS security configuration parameter.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Version Array of String No TLS version. At least one is required. If multiple versions are specified, they need to be consecutive version numbers. For example, if you enable TLS 1, 1.1, 1.2, and 1.3, you cannot only enable 1 and 1.2 while disabling 1.1. Valid values:
  • TLSv1: TLSv1 version
  • TLSv1.1: TLSv1.1 version
  • TLSv1.2: TLSv1.2 version
  • TLSv1.3: TLSv1.3 version.
  • CipherSuite String No Cipher suite. For details, see TLS version and cipher suite description. Valid values:
  • loose-v2023: loose-v2023 cipher suite;
  • general-v2023: general-v2023 cipher suite;
  • strict-v2023: strict-v2023 cipher suite.
  • Tag

    Tag configuration.

    Used by actions: CreateContentIdentifier, CreateZone, DescribeContentIdentifiers, DescribeZones.

    Name Type Required Description
    TagKey String Yes Tag key.
    TagValue String Yes Tag value.

    Task

    Content management task result.

    Used by actions: DescribePrefetchTasks, DescribePurgeTasks.

    Name Type Description
    JobId String Task ID.
    Target String Resource.
    Type String Task type.
    Method String Node cache purge method, with values:
  • invalidate: Marks as expired. A back-to-origin validation is triggered upon user request, sending an HTTP conditional request with If-None-Match and If-Modified-Since headers. If the origin server responds with 200, the node will fetch new resources from the origin and update the cache; if the origin server responds with 304, the cache will not be updated;
  • delete: Directly deletes the node's cache, triggering a resource fetch from the origin upon user request.
  • Status String Status. Valid values:
  • processing: Processing;
  • success: Succeeded;
  • failed: Failed;
  • timeout: Timed out;
  • canceled: Canceled.
  • CreateTime Timestamp ISO8601 Task creation time.
    UpdateTime Timestamp ISO8601 Task completion time.
    FailType String Failure type of update and preheating. Valid values:
  • taskFailed: Task failure;
  • quotaExceeded: quota exceeded;
  • downloadManifestFailed: Failed to download the description file;
  • accessDenied: access denied.
  • originPullFailed: origin-pull failure.
  • FailMessage String Failure reason description for cache purge and cache pre-warming.

    TemplateConfig

    Security template configuration

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    TemplateId String Yes Template ID.
    TemplateName String Yes Template Name

    TemplateScope

    Security template domain binding status

    Used by actions: DescribeSecurityTemplateBindings.

    Name Type Required Description
    ZoneId String No Site ID.
    EntityStatus Array of EntityStatus No Instance status list.

    TimingDataItem

    Statistical curve data item

    Used by actions: DescribeDDoSAttackData, DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData.

    Name Type Description
    Timestamp Integer Time point for returning data, in the format of Unix timestamp in seconds.
    Value Integer Specific values.

    TimingDataRecord

    Data information of time series

    Used by actions: DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData.

    Name Type Description
    TypeKey String Query the dimension value.
    TypeValue Array of TimingTypeValue Detailed time series data of the Integer type. If the value type of the query metric is Integer, the corresponding time series data will be returned in this field.
    Note: If the value type of the query metric is unclear, data will be returned in this field by default.
    FloatTypeValue Array of FloatTimingTypeValue Detailed time series data of Float type. For metrics whose query metric value type is Float, the corresponding time series data is returned in this field.

    TimingTypeValue

    Detailed data of time series type

    Used by actions: DescribeOverviewL7Data, DescribeTimingFunctionAnalysisData, DescribeTimingL4Data, DescribeTimingL7AnalysisData, DescribeTimingL7CacheData, DescribeTimingL7OriginPullData.

    Name Type Description
    Sum Integer Data and.
    Max Integer Maximum value.
    Avg Integer Mean.
    MetricName String Metric name.
    Detail Array of TimingDataItem Details.

    TopDataRecord

    Top data record

    Used by actions: DescribeTopFunctionAnalysisData, DescribeTopL7AnalysisData, DescribeTopL7CacheData.

    Name Type Description
    TypeKey String Dimension value to query.
    DetailData Array of TopDetailData top data ranking.

    TopDetailData

    Detailed information of Top data

    Used by actions: DescribeTopFunctionAnalysisData, DescribeTopL7AnalysisData, DescribeTopL7CacheData.

    Name Type Description
    Key String Field name.
    Value Integer Field value.

    TopEntry

    TopN Entry data

    Used by actions: DescribeDDoSAttackTopData.

    Name Type Description
    Key String top query dimension value.
    Value Array of TopEntryValue Query specific data.

    TopEntryValue

    TopN data Entry

    Used by actions: DescribeDDoSAttackTopData.

    Name Type Description
    Name String Sort entity names.
    Count Integer Sort the number of entities.

    URLPath

    Path configuration parameter for access URL redirection.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Action String No Execution action. Valid values:
  • follow: follow request;
  • custom: Custom;
  • regex: regular expression matching.
  • Regex String No Regular expression for matching, with a length range of 1–1024.
    Note: This field is required when Action is regex. When Action is follow or custom, no need to specify this field, and it does not take effect if specified.
    Value String No Target URL for redirection. Length range: 1–1024.
    Note: This field is required when Action is regex or custom. When Action is follow, no need to specify this field, and it does not take effect if specified.

    UpstreamCertInfo

    Used to enable or disable origin-pull mutual authentication and origin certificate verification respectively. The certificate for origin-pull mutual authentication is carried when EO pulls from the origin. The origin can choose to verify this certificate to ensure the request originates from a trusted EO node. When origin certificate verification is enabled, the certificate configuration is used for EO nodes to validate whether the origin certificate is trustworthy.

    Used by actions: DescribeAccelerationDomains, ModifyHostsCertificate.

    Name Type Required Description
    UpstreamMutualTLS MutualTLS No In the origin-pull mutual authentication scenario, this field represents the certificate (including the public and private keys) carried during EO node origin-pull, which is deployed in the EO node for the origin server to authenticate the EO node. When used as an input parameter, it is left blank to indicate retaining the original configuration.
    UpstreamCertificateVerify OriginCertificateVerify No In the origin certificate verification scenario, this field is the CA certificate used by the EO node to verify the origin. It is deployed in the EO node and used for the EO node to authenticate the server certificate. As an input parameter, leave it blank to indicate retaining the original configuration.

    UpstreamFollowRedirectParameters

    Parameter configuration for origin-pull follow redirect.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Configuration switch for origin-pull follow redirect. Valid values:
  • on: Enable;
  • off: Disable.
  • MaxTimes Integer No Maximum number of redirects. Value range: 1-5.
    Note: This field is required when Switch is on. When Switch is off, no need to specify this field. If specified, it does not take effect.

    UpstreamHTTP2Parameters

    HTTP/2 origin-pull configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No HTTP/2 origin-pull configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • UpstreamHttp2

    Http/2 origin-pull configuration

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes http/2 origin-pull configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • UpstreamRequestCookie

    Origin-pull request Cookie configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Cookie configuration switch for origin-pull request parameters. Valid values:
  • on: Enable;
  • off: Disable.
  • Action String No Cookie mode for origin-pull requests. This parameter is required when Switch is on. Valid values:
  • full: retain all;
  • ignore: ignore all;
  • includeCustom: means to reserve some parameters;
  • excludeCustom: means to ignore some parameters.
  • Values Array of String No Specified parameter values. This parameter takes effect only when the query string mode Action is includeCustom or excludeCustom, and is used to specify the parameters to keep or ignore. Supports up to 10 parameters.

    UpstreamRequestParameters

    Origin-pull request configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    QueryString UpstreamRequestQueryString No String configuration query. This is an optional configuration. No configuration is applied if this parameter is left empty.
    Cookie UpstreamRequestCookie No Cookie configuration. This is an optional configuration item. Leaving it blank means no configuration.

    UpstreamRequestQueryString

    Origin-pull request parameter query string configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String No Configuration switch for the origin-pull request parameter query string. Valid values:
  • on: Enable;
  • off: Disable.
  • Action String No Query string mode. This parameter is required when Switch is on. Valid values:
  • full: retain all;
  • ignore: Ignore all;
  • includeCustom: reserve some parameters;
  • excludeCustom: ignore some parameters.
  • Values Array of String No Specified parameter values. This parameter takes effect only when the string mode Action is includeCustom or excludeCustom. It is used to specify parameters to keep or ignore. Supports up to 10 parameters.

    UpstreamURLRewriteParameters

    Origin-pull URL rewrite configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Type String No Origin-pull URL rewrite type. Only Path is supported.
    Action String No Origin-pull URL rewrite action. Valid values:
  • replace: Replaces the full Path. It is used to replace the complete request URL Path with the specified Path.

  • addPrefix: Add a path prefix. It is used to add the specified path prefix to the request URL Path.

  • rmvPrefix: removes the path prefix. It is used to remove the specified path prefix from the request URL Path.

  • regexReplace: regular replacement full path. Used to match and replace the full path through Google RE2 regular expressions.

  • Value String No Origin-pull URL rewrite value. It should meet the URL Path specification and ensure the rewritten Path starts with / to prevent the Host of the origin-pull URL from being modified. Length range: 1–1024. When Action is addPrefix, it cannot end with /. When Action is rmvPrefix, * cannot exist. When Action is regexReplace, $NUM can be used to refer to a regular expression capture group, where NUM represents the group number, for example $1, with support up to $9.
    Regex String No Origin-pull URL rewrite uses a regex replacement to match the regular expression of the full path. It should meet the Google RE2 specification with a length range of 1–1024. This field is required when Action is regexReplace. Otherwise, no need to specify this field.

    UserRiskProfile

    User Risk Level configuration. The risk score range is 0–100. The higher the score, the higher the risk.

    Used by actions: CreateWebSecurityTemplate, DescribeSecurityPolicy, DescribeWebSecurityTemplate, ModifySecurityPolicy, ModifyWebSecurityTemplate.

    Name Type Required Description
    HighRiskMinScore Integer No

    Minimum risk score for high-risk requests. A request is considered high-risk when its score is equal to or greater than this value.

    Value range: [2, 99]

    Default value: 50

    HighRiskRequestAction SecurityAction No

    Handling method for high-risk requests. Supported values for SecurityAction Name:

  • Deny: block;
  • Monitor: observe;
  • Redirect: redirect;
  • Challenge: challenge.
  • Default value: Monitor

    MediumRiskMinScore Integer No

    Minimum risk score for a medium-risk request. A score equal to or greater than this value and less than HighRiskMinScore is considered medium-risk; a score lower than this value is considered low risk.

    Value range: [1, 98]

    Default value: 15

    MediumRiskRequestAction SecurityAction No

    Handling method for medium-risk requests. Supported values for the Name parameter of SecurityAction:

  • Deny: block;
  • Monitor: observe;
  • Redirect: redirect;
  • Challenge: challenge.
  • Default value: Monitor

    VanityNameServers

    Custom nameservers

    Used by actions: DescribeZones, ModifyZone.

    Name Type Required Description
    Switch String Yes Custom ns switch. Valid values:
  • on: enabled
  • off: Disable.
  • Servers Array of String No List of custom namespaces.

    VanityNameServersIps

    Custom name server IP information

    Used by actions: DescribeZones.

    Name Type Description
    Name String Custom name server name.
    IPv4 String Custom IPv4 address of the name server.

    VaryParameters

    Vary feature configuration parameters.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, ModifyL7AccRule.

    Name Type Required Description
    Switch String Yes Vary feature configuration switch. Valid values:
  • on: Enable;
  • off: Disable.
  • VideoTemplateInfo

    Video stream configuration parameters.

    Used by actions: CreateJustInTimeTranscodeTemplate, DescribeJustInTimeTranscodeTemplates.

    Name Type Required Description
    Codec String Yes Encoding format for video streams. Optional values:
  • H.264: Use H.264 encoding;
  • H.265: Use H.265 encoding.
  • Fps Float No Video frame rate. Value range: [0, 30]. Unit: Hz.
    If the value is 0, the frame rate will be the same as that of the source video, with a maximum of 30.
    Default value: 0.
    Bitrate Integer No Bitrate of video stream. Value range: 0 and [128, 10000]. Unit: kbps.
    If the value is 0, the bitrate is automatically selected based on the video footage and quality.
    Default value: 0.
    ResolutionAdaptive String No Resolution adaptation. Available values:
  • open: enable. At this point, Width represents the long side of the video, and Height represents the short side.
  • close: disable. At this point, Width represents the width of the video, and Height represents the height.
  • Default value: open.
    Width Integer No The maximum value of the video stream width (or long side). Valid values: 0 and [128, 1920]. Unit: px.
  • When Width and Height are both 0, the resolution is from the same source;
  • When Width is 0 and Height is non-0, Width is scaled proportionally;
  • When Width is non-0 and Height is 0, the Height is scaled proportionally;
  • When both Width and Height are non-0, the resolution is specified by the user.
  • Default value: 0.
    Height Integer No The maximum value of the video stream height (or short side). Valid values: 0 and [128, 1080]. Unit: px.
  • When Width and Height are both 0, the resolution is from the same source;
  • When Width is 0 and Height is non-0, Width is scaled proportionally;
  • When Width is non-0 and Height is 0, Height is scaled proportionally;
  • When both Width and Height are non-0, the resolution is specified by the user.
  • Default value: 0.
    FillType String No Filling method, which is the processing method for transcoding when the video stream configuration width and height parameters are inconsistent with the aspect ratio of the original video, is called "filling". Optional filling modes:
  • stretch: stretch each frame to fill the entire screen, which may cause the transcoded video to be "squashed" or "stretched".
  • black: keep the video aspect ratio unchanged and fill the edges with black.
  • white: keep the video aspect ratio unchanged and fill the edges with white.
  • gauss: keep the video aspect ratio unchanged and use Gaussian blur filling for the rest of the edges.
  • Default value: black.

    Waf

    None

    Used by actions: DescribeHostsSetting.

    Name Type Required Description
    Switch String Yes Waf switch. Value:
  • on: Enable;
  • off: Disable.
  • PolicyId Integer No Policy ID.

    WafConfig

    Waf configuration.

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes WafConfig switch. Valid values:
  • on: Enable;
  • off: disabled.
  • The switch only affects whether the configuration takes effect. Even if it is off, the configuration content can still be modified normally.
    Level String Yes Protection level set last time. Valid values:
  • loose: loose;
  • normal: Normal;
  • strict: strict;
  • stricter: ultra-strict;
  • custom: Custom.
  • Mode String Yes Global WAF mode. Valid values:
  • block: block (global blocking, but you can configure rules to observe);
  • observe: observation (regardless of the detailed rule configuration, it is always observation).
  • WafRule WafRule No Detailed configuration of the managed rule. If null, use the last set configuration by default.
    AiRule AiRule No Protection configuration of the AI rule engine. If it is null, use the last set configuration by default.

    WafRule

    Waf rule

    Used by actions: ModifySecurityPolicy.

    Name Type Required Description
    Switch String Yes Managed rule switch. Valid values:
  • on: enabled;
  • off: disabled
  • BlockRuleIDs Array of Integer Yes List of blocklisted IDs. Adding a rule ID to this parameter list disables the ID, meaning the rule ID no longer takes effect.
    ObserveRuleIDs Array of Integer Yes List of observation mode IDs. Add a rule ID to this parameter list to make the ID take effect in observation mode, that is, the rule ID enters observation mode.

    WebSecurity

    Serialized security structure

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    ZoneDefaultPolicy SecurityPolicy No

    Configuration details of the site-level policy.

    HostPolicy Array of HostPolicy No

    Configuration details of the domain-level policy.

    Templates Array of WebSecurityTemplates No

    Configuration details of the policy template.

    WebSecurityTemplates

    Security configuration of the Template.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    TemplateId String No

    ID of the policy template

    TemplateName String No

    Policy template name. It consists of Chinese, English, digits, and underscores. It cannot begin with an underscore and its length cannot exceed 32 characters.

    Policy SecurityPolicy No

    Policy settings of a policy template apply to all domain names associated with the template.

    WebSocket

    WebSocket configuration

    Used by actions: DescribeZoneSetting, ModifyZoneSetting.

    Name Type Required Description
    Switch String Yes WebSocket timeout configuration switch. Valid values:
  • on: Use Timeout as the WebSocket timeout;
  • off: The platform still supports WebSocket connections, using the system default 15 seconds as the timeout period.
  • Timeout Integer No Timeout period in seconds. Maximum timeout time: 120 seconds.

    WebSocketParameters

    WebSocket configuration.

    Used by actions: CreateL7AccRules, DescribeL7AccRules, DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccRule, ModifyL7AccSetting.

    Name Type Required Description
    Switch String No WebSocket timeout configuration switch. Valid values:
  • on: Use Timeout as the WebSocket timeout period;
  • off: The platform still supports WebSocket connections, and the system default timeout period of 15 seconds is used.
  • Timeout Integer No Timeout period, in seconds. Maximum timeout time: 120 seconds.
    Note: This field is required when Switch is on. Otherwise, it is ineffective.

    Zone

    Site detail.

    Used by actions: DescribeZones.

    Name Type Description
    ZoneId String Zone ID.
    ZoneName String Site name.
    AliasZoneName String Identical site identifier. It can contain digits, letters, ".", "-", and "_", up to 200 characters.
    Area String Site acceleration region. Valid values:
  • global: global availability zone;
  • mainland: Chinese mainland availability zone;
  • overseas: global availability zone (excluding the Chinese mainland).
  • Type String Site access type. Valid values:
  • full: NS access type;
  • partial: CNAME access type;
  • noDomainAccess: domainless access type.
  • dnsPodAccess: DNSPod managed type. This type requires your domain name to be hosted on Tencent Cloud DNSPod;
  • pages: Pages type;
  • ai: Edge reasoning access type.
  • Tags Array of Tag Tag associated with the site.
    Resources Array of Resource List of billable resources.
    NSDetail NSDetail Site detail of the NS type. This value is returned only when Type is full.
    CNAMEDetail CNAMEDetail Site detail of CNAME type. This value is returned only when Type is partial.
    DNSPodDetail DNSPodDetail DNSPod managed type site detail. This return value is only available when Type = dnsPodAccess.
    CreatedOn Timestamp ISO8601 Site creation time.
    ModifiedOn Timestamp ISO8601 Site modification time.
    Status String Site status. Valid values:
  • active: NS switched;
  • pending: NS not switched.
  • moved: The NS has been moved away;
  • deactivated: The name server is blocked.
  • initializing: Package to be bound.
  • CnameStatus String CNAME access status. Valid values:
  • finished: site verified;
  • pending: verifying site.
  • ActiveStatus String Display status. Valid values:
  • active: enabled;
  • inactive: Not effective;
  • paused: disabled.
  • LockStatus String Lock status. Valid values:
  • enable: normal. Modifications are allowed;
  • disable: locked. Modifications are not allowed;
  • plan_migrate: package migrating. Modifications are not allowed.
  • Paused Boolean Whether to close the site.
    IsFake Integer Whether it is a fake site (this field is a reserved field for history and is no longer maintained. According to the website type, see the corresponding field). Valid values:
  • 0: non-fake site
  • 1: Fake site.

  • CnameSpeedUp String Whether CNAME acceleration is enabled (this is a historic reserved field and no longer maintained. For the corresponding field, see the website type). Valid values:
  • enabled: Enable;
  • disabled: Disable.
  • OwnershipVerification OwnershipVerification Ownership verification information. (This field is a historic reserved field and is no longer maintained. For the corresponding field, see the website type.)
    OriginalNameServers Array of String List of NS currently used by the site. (This field is a reserved field for history and is no longer maintained. According to the website type, see the corresponding field for reference.)
    NameServers Array of String List of NS assigned by Tencent Cloud. (This field is a reserved field for history and no longer maintained. For reference, see the corresponding field based on the website type.)
    VanityNameServers VanityNameServers User-customized NS information. (This is a reserved field for history and is no longer maintained. Refer to the corresponding field based on the website type.)
    VanityNameServersIps Array of VanityNameServersIps User-customized NS IP information. (This is a reserved field for historical purposes and is no longer maintained. Refer to the corresponding field based on the website type.)
    WorkModeInfos Array of ConfigGroupWorkModeInfo Version management configuration group working mode. Each configuration module of a site can enable "version management mode" or "immediate effect mode" by configuration group dimension. For details, see Version Management.

    ZoneConfig

    Site acceleration configuration.

    Used by actions: DescribeL7AccSetting, DummyParseZoneFullConfig, ModifyL7AccSetting.

    Name Type Required Description
    SmartRouting SmartRoutingParameters No Intelligent acceleration configuration.
    Cache CacheConfigParameters No Cache expiration time configuration.
    MaxAge MaxAgeParameters No Browser cache configuration.
    CacheKey CacheKeyConfigParameters No Node cache key configuration.
    CachePrefresh CachePrefreshParameters No Cache pre-refresh configuration.
    OfflineCache OfflineCacheParameters No Offline cache configuration.
    Compression CompressionParameters No Intelligent compression configuration.
    ForceRedirectHTTPS ForceRedirectHTTPSParameters No Forced HTTPS redirect configuration for access protocols.
    HSTS HSTSParameters No HSTS configuration.
    TLSConfig TLSConfigParameters No TLS configuration.
    OCSPStapling OCSPStaplingParameters No OCSP stapling configuration.
    HTTP2 HTTP2Parameters No HTTP/2 configuration.
    QUIC QUICParameters No QUIC access configuration.
    UpstreamHTTP2 UpstreamHTTP2Parameters No HTTP/2 origin-pull configuration.
    IPv6 IPv6Parameters No IPv6 access configuration.
    WebSocket WebSocketParameters No WebSocket configuration.
    PostMaxSize PostMaxSizeParameters No Configuration for POST request transmission.
    ClientIPHeader ClientIPHeaderParameters No Client IP origin-pull request header configuration.
    ClientIPCountry ClientIPCountryParameters No Configuration of whether to carry the regional information of the client IP during origin-pull.
    Grpc GrpcParameters No The gRPC protocol supports configuration.
    NetworkErrorLogging NetworkErrorLoggingParameters No Network error log configuration.
    AccelerateMainland AccelerateMainlandParameters No Acceleration optimization configuration in the Chinese mainland.
    StandardDebug StandardDebugParameters No Standard Debug configuration.

    ZoneConfigParameters

    Site configuration-related information.

    Used by actions: DescribeL7AccSetting.

    Name Type Description
    ZoneName String Site name.
    ZoneConfig ZoneConfig Site configuration message.

    ZoneCustomVariables

    Site-level custom variable configuration, including variable definition and variable operations.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    CustomVariables Array of CustomVariable Yes

    List of site-level custom variables. CustomVariable.Name requires the use of user.zone. as a prefix. Variables are initialized sequentially in array order. InitialValue supports references only to variables before the current variable, not to the current variable itself or variables after it.

    CustomVariableOperations Array of CustomVariableOperation Yes

    Site-level custom variable computation rules. The computation supports references to defined site-level custom variables. This list currently only supports one rule, and additional entries are invalid.

    ZoneFullConfig

    Complete site configuration architecture.

    Used by actions: DummyParseZoneFullConfig.

    Name Type Required Description
    FormatVersion String Yes

    Syntax version. It defaults to 1.0. An error will be reported if you input other values.

    ZoneConfig ZoneConfig No

    Site-level configuration, including all configuration items in "Site Acceleration". All items are required; otherwise, the configuration is invalid.

    ZoneCustomVariables ZoneCustomVariables No

    Site-level custom variable configuration, including variable definition and variable operations.

    Rules Array of ConfigGroupRuleEngineItem No

    Rule-level configuration, including all rules in the rule engine. The array can be empty, indicating that no rules are enabled.

    WebSecurity WebSecurity No

    Web security protection settings, corresponding to the functions supported in "Security Protection - Web Protection" in the console.

    FunctionTriggers Array of ConfigGroupFunctionTrigger No

    Edge function trigger rule configuration, including all rules in the edge function. The array can be empty, indicating that no rules are enabled.

    ZoneInfo

    Back to site information

    Used by actions: DescribePlans.

    Name Type Required Description
    ZoneId String No Site id.
    ZoneName String No Site name.
    Paused Boolean No Whether to disable the site. Valid values:
  • false: not disabled;
  • true: Disable.
  • ZoneSetting

    Site configuration.

    Used by actions: DescribeZoneSetting.

    Name Type Description
    ZoneName String Site name.
    Area String Site acceleration region info. Valid values:
  • mainland: domestic acceleration in China;
  • overseas: acceleration outside the Chinese mainland.
  • CacheKey CacheKey Node cache key configuration.
    Quic Quic Quic access configuration.
    PostMaxSize PostMaxSize HTTP POST request transmission configuration.
    Compression Compression Intelligent compression configuration.
    UpstreamHttp2 UpstreamHttp2 Http/2 origin-pull configuration.
    ForceRedirect ForceRedirect Access protocol mandatory Https redirection configuration.
    CacheConfig CacheConfig Cache expiration time configuration.
    Origin Origin Origin server configuration.
    SmartRouting SmartRouting Smart acceleration configuration.
    MaxAge MaxAge Browser cache configuration.
    OfflineCache OfflineCache Offline cache configuration.
    WebSocket WebSocket WebSocket configuration.
    ClientIpHeader ClientIpHeader Client IP HTTP Request Headers configuration.
    CachePrefresh CachePrefresh Cache pre-refresh configuration.
    Ipv6 Ipv6 Ipv6 access configuration.
    Https Https Https acceleration configuration.
    ClientIpCountry ClientIpCountry Configuration of whether to carry the regional information of the client IP during origin-pull.
    Grpc Grpc Grpc protocol supports configuration.
    NetworkErrorLogging NetworkErrorLogging Network error log configuration.
    ImageOptimize ImageOptimize Image optimization configuration.
    AccelerateMainland AccelerateMainland Acceleration optimization configuration for the Chinese mainland.
    StandardDebug StandardDebug Standard Debug configuration.
    JITVideoProcess JITVideoProcess Just-in-time media processing configuration.

    Ajuda e Suporte

    Esta página foi útil?

    comentários