.. _ddos_exec_script: ddos exec-script ================ Execute scripts exec-script Specification ------------------------- ===================================== ==================================================================== **Parameter** **Value** ===================================== ==================================================================== **Type** *operational* **Object Key(s)** *protocol* **Element Name** exec-script **Element URI** /axapi/v3/ddos/exec-script/{protocol} **Element Attributes** exec-script_attributes **Partition Visibility** None **Schema** :download:`exec-script schema ` ===================================== ==================================================================== **Operations Allowed:** .. raw:: html .. raw:: html .. raw:: html .. raw:: html
OperationMethodURIPayload
EXECUTE Object .. raw:: html POST .. raw:: html /axapi/v3/ddos/exec-script/{protocol} .. raw:: html :ref:`332_exec-script_attributes` .. raw:: html
.. _332_exec-script_attributes: exec-script attributes ---------------------- **alert-type** **Description** 1: UDP Pkt Rate 2: TCP Pkt Rate 3: ICMP Pkt Rate **Type:** number **Range:** 1-3 **level** **Description** Current Level **Type:** number **Range:** 1-4 **mock** **Description** Use mock data **Type:** boolean **Supported Values:** true, false, 1, 0 **Default:** 0 **port-num** **Description** Port Number **Type:** number **Range:** 1-65535 **protocol** **Description** 'dns-tcp': DNS-TCP Port; 'dns-udp': DNS-UDP Port; 'http': HTTP Port; 'tcp': TCP Port; 'udp': UDP Port; 'ssl-l4': SSL-L4 Port; 'sip-tcp': SIP-TCP Port; 'sip-udp': SIP-UDP Port; **Type:** string **Supported Values:** dns-tcp, dns-udp, http, tcp, udp, ssl-l4, sip-tcp, sip-udp **script** **Description** Specify script to execute **Type:** string **Maximum Length:** 63 characters **Maximum Length:** 1 characters **src-ip** **Type:** List **src-ipv6** **Type:** List **threshold** **Description** Threshold **Type:** number **Range:** 1-3000 **timeout** **Description** Timeout (Default: 10) **Type:** number **Range:** 1-31 **zone** **Description** DST Zone name **Type:** string **Maximum Length:** 63 characters **Maximum Length:** 1 characters .. _332_src-ip: src-ip ^^^^^^ =============================== =================================================== **Specification** **Value** =============================== =================================================== **Type** *list* **Block object keys** =============================== =================================================== **ip-addr** **Description** Specify IP address **Type:** string **Format:** ipv4-address **subnet-ip-addr** **Description** IP Subnet **Type:** string **Format:** ipv4-cidr .. _332_src-ipv6: src-ipv6 ^^^^^^^^ =============================== =================================================== **Specification** **Value** =============================== =================================================== **Type** *list* **Block object keys** =============================== =================================================== **ip6-addr** **Description** Specify IPv6 address **Type:** string **Format:** ipv6-address **subnet-ipv6-addr** **Description** IPV6 Subnet **Type:** string **Format:** ipv6-address-plen