Compare commits
9 Commits
propose-wa
...
main
Author | SHA1 | Date | |
---|---|---|---|
03dfa28ad9 | |||
ead72230ce | |||
3a15b1ebd8 | |||
d0437f6afb | |||
c25c20bac6 | |||
691b6d2f2b | |||
e7107e3daa | |||
392c14c1f9 | |||
4ec0aee404 |
@ -108,8 +108,8 @@ Example Requests
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name" : "demo",
|
"name" : "demo",
|
||||||
"content" : "-----BEGIN CERTIFICATE----- MIIDyzCCArOgAwIBAgIJAN5U0Z4Bh5ccMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNV BAYTAlpIMRIwEAYDVQQIDAlHVUFOR0RPTkcxETAPBgNVBAcMCERPTkdHVUFOMQ0w CwYDVQQKDARERUtFMQswCQYDVQQLDAJESzELMAkGA1UEAwwCT0QxHTAbBgkqhkiG 9w0BCQEWDk8IZC5odWF3ZWkuY29tMB4XDTIxMTExNTA4MTk0MVoXDTIyMTExNTA4 MTk0MVowfDELMAkGA1UEBhMCWkgxEjAQBgNVBAgMCUdVQU5HRE9ORzERMA8GA1UE BwwIRE9OR0dVQU4xDTALBgNVBAoMBERFS0UxCzAJBgNVBAsMAkRLMQswCQYDVQQD DAJPRDEdMBsGCSqGSIb3DQEJARYOTwhkLmh1YXdlaS5jb20wggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQDcoLFK62//r0RHFyweYBj97S4NsJ8Qj0RG+Y02 OgwhQmRiNNjubJwP8Nqqyd86zr+fsSQxKBaBCosn1PcN2Pj2vPJD6NEk4I6VdOWr /kFYMlOcimhSfW4wt6VakniOKIYGrCxxvQe1X2OyBxT+ocTLRgEIB8ZbvJyPNseg feLEUuPYRpQ5kXLgJH2/3NwZFOgBHVv/b07l4fR+sWJMnIA2yIjSBQ0DEAOSusXo FQ/WRbBRH7DrQmxGiXsq4VELEr9Nnc/Kywq+9pYi8L+mKeRL+lcMMbXC/3k6OfMB tVTiwcmS1Mkr3iG03i8u6H7RSvRwyB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fXzEAl263I+29fpHCohM si0PoOwj/Hq+QwkMsY5+4ynGMfCbpU4gshUgxRVaxmpOTg11oVGkEI1WnNB3L+Pd ZSDSXzp1idrQZ2Q4e6TqXWmCTnZHAgMBAAECgYEAh/YknirO/ktbwQzTqczFP1oO CFd6ixMr5d3wHEP/Qn6xCliCwiU2dzIqI19faD/Qu1/bu2HIgQf3d56fn/K8yrgq tmd7BZvXcZuK/LXOLfpAXAdMl5bgOW+ejJvf9LsA6xYWsxmki6+VYbJ+XVr4w2yH nBiimwp7v4eoBlMqVQECQQDeJw6o15p30MEzj5t3oVLL86rY20HZfqnpS6S10CHx l0W/0ah7S4QnvXi6NhvS0o3mj+VNzeYvoHII9DP28IyBAkEA1DnSyH7D5W4GUmsr NfDOBYuKUaahDtdN/Qx2JF1jEvLluLC7Nr1ETzrKodN/+lOYwfIOWx5tkXPpLFMu rko+xwJAWV7DEf+yn7L2loSWWbknsu7y80y5oALJ3hXVTGNP1H4zzChPLFLD9qzN rbPo25ZjCbcn23YSvWRBnAKKCTTagQJBAKWvgxVOimfrLvpXesPA/Ucs+s7mNSVe CCAAA5g+ZGPdyGUZbP++Yb8tWhdfBLINY9w+uuB+b/I3uRoG0xH1Gu8CQQCpEIYC DUNO98ylm4QOAkyC0nv6x33gQqcu6ExtK7ptbdFZT1QdOAwm5SBaE50rWjyTO4gL Cpsd6f0baeGAxNAw\n-----END PRIVATE KEY-----"
|
||||||
}
|
}
|
||||||
|
|
||||||
Example Responses
|
Example Responses
|
||||||
|
@ -89,27 +89,31 @@ Response Parameters
|
|||||||
|
|
||||||
.. table:: **Table 5** ListCertificateBody
|
.. table:: **Table 5** ListCertificateBody
|
||||||
|
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
+=======================+========================================================================+==================================================+
|
+=======================+========================================================================+==========================================================================================================================================================+
|
||||||
| id | String | Certificate ID |
|
| id | String | Certificate ID |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| name | String | Certificate name |
|
| name | String | Certificate name |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| expire_time | Long | Timestamp when the certificate expire |
|
| certificateid | String | Certificate ID, which is a redundant parameter. Please ignore it. |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| exp_status | Integer | Certificate expiration status. The value can be: |
|
| certificatename | String | Certificate name, which is a redundant parameter. Please ignore it. |
|
||||||
| | | |
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| | | - 0: The certificate is valid. |
|
| expire_time | Long | Timestamp when the certificate expire. This parameter is returned in the response body only when the value of host in the URL request is true. |
|
||||||
| | | |
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| | | - 1: The certificate has expired. |
|
| exp_status | Integer | Certificate expiration status. This parameter is returned in the response body only when the value of host in the URL request is true. The value can be: |
|
||||||
| | | |
|
| | | |
|
||||||
| | | - 2: The certificate is about to expire. |
|
| | | - 0: The certificate is valid. |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
| | | |
|
||||||
| timestamp | Long | Timestamp when the certificate is uploaded |
|
| | | - 1: The certificate has expired. |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
| | | |
|
||||||
| bind_host | Array of :ref:`BindHost <listcertificates__response_bindhost>` objects | Domain name associated with the certificate |
|
| | | - 2: The certificate is about to expire. |
|
||||||
+-----------------------+------------------------------------------------------------------------+--------------------------------------------------+
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| timestamp | Long | Timestamp when the certificate is uploaded |
|
||||||
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| bind_host | Array of :ref:`BindHost <listcertificates__response_bindhost>` objects | Domain name associated with the certificate. This parameter is returned in the response body only when the value of host in the URL request is true. |
|
||||||
|
+-----------------------+------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
.. _listcertificates__response_bindhost:
|
.. _listcertificates__response_bindhost:
|
||||||
|
|
||||||
@ -163,7 +167,7 @@ Example Requests
|
|||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
GET https://{Endpoint}/v1/{project_id}/waf/certificate?
|
GET https://{Endpoint}/v1/{project_id}/waf/certificate?page=1&pagesize=10&host=true&enterprise_project_id=0
|
||||||
|
|
||||||
Example Responses
|
Example Responses
|
||||||
-----------------
|
-----------------
|
||||||
|
@ -25,19 +25,27 @@ GET /v1/{project_id}/waf/overviews/bandwidth/timeline
|
|||||||
|
|
||||||
.. table:: **Table 2** Query Parameters
|
.. table:: **Table 2** Query Parameters
|
||||||
|
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Mandatory | Type | Description |
|
| Parameter | Mandatory | Type | Description |
|
||||||
+===========+===========+========+===============================================================================================+
|
+=================+=================+=================+======================================================================================================================================================+
|
||||||
| from | Yes | Long | Start time (13-digit timestamp in millisecond). This parameter must be used together with to. |
|
| from | Yes | Long | Start time (13-digit timestamp in millisecond). This parameter must be used together with to. |
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| to | Yes | Long | End time (13-digit timestamp in millisecond). This parameter must be used together with from. |
|
| to | Yes | Long | End time (13-digit timestamp in millisecond). This parameter must be used together with from. |
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| hosts | No | String | List of domain names to query, which can be obtained by calling the ListHost API |
|
| hosts | No | String | List of domain names to query, which can be obtained by calling the ListHost API |
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| instances | No | String | List of instance to query (only for the instantiation mode). |
|
| instances | No | String | This parameter is used to query the bandwidth of the protected domain name protected by a specific dedicated WAF engine instance. |
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| group_by | No | String | Display dimension. For example, the value is DAY if data is displayed by the day. |
|
| group_by | No | String | Data aggregation interval. If this parameter is not specified, data is displayed by a time range calculated based on parameters **from** and **to**. |
|
||||||
+-----------+-----------+--------+-----------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
|
| | | | - If the time range between **from** and **to** is fewer than or equal to 1 day, the interval is one minute. |
|
||||||
|
| | | | |
|
||||||
|
| | | | - If the time range between **from** and **to** is greater than 1 day but fewer than or equal to 3 days, the interval is 5 minutes. |
|
||||||
|
| | | | |
|
||||||
|
| | | | - If the time range between **from** and **to** is greater than 3 days but fewer than or equal 7 days, the interval is 10 minutes. |
|
||||||
|
| | | | |
|
||||||
|
| | | | - If the time range between **from** and **to** is greater than 7 days but fewer than or equal to 30 days, the interval is 1 hour. |
|
||||||
|
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
|
@ -31,7 +31,7 @@ Request Parameters
|
|||||||
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Mandatory | Type | Description |
|
| Parameter | Mandatory | Type | Description |
|
||||||
+=================+=================+=================+==========================================================================================================+
|
+=================+=================+=================+==========================================================================================================+
|
||||||
| X-Auth-Token | No | String | User token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
|
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
|
||||||
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------+
|
||||||
| Content-Type | Yes | String | Content type. |
|
| Content-Type | Yes | String | Content type. |
|
||||||
| | | | |
|
| | | | |
|
||||||
@ -40,31 +40,47 @@ Request Parameters
|
|||||||
|
|
||||||
.. table:: **Table 3** Request body parameters
|
.. table:: **Table 3** Request body parameters
|
||||||
|
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Mandatory | Type | Description |
|
| Parameter | Mandatory | Type | Description |
|
||||||
+================+===========+==================+=========================================================================================================================================================================================================================================================================================================+
|
+=================+=================+==================+==============================================================================================================================================================================================================+
|
||||||
| chargemode | No | Integer | Billing mode. Currently, only pay-per-use billing (30) is supported. Make sure your account balance is enough, or the dedicated WAF engine will forward requests directly to the origin server without inspection. |
|
| region | Yes | String | Region where a dedicated engine is to be created. Its value is EU-DE. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| region | Yes | String | Region where a dedicated engine is to be created. Its value is EU-DE. |
|
| available_zone | Yes | String | AZ where the dedicated engine is to be created. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| available_zone | Yes | String | AZ where the dedicated engine is to be created. |
|
| arch | Yes | String | Dedicated engine CPU architecture. Its value has to be x86. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| arch | Yes | String | Dedicated engine CPU architecture. Its value can be x86 . |
|
| instancename | Yes | String | Prefix of the dedicated WAF engine name, which is user-defined. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| instancename | Yes | String | Prefix of the dedicated WAF engine name, which is user-defined. |
|
| specification | Yes | String | Specifications of the dedicated engine version. The value can be **waf.instance.enterprise** or **waf.instance.professional**. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
| specification | Yes | String | Specifications of the dedicated engine version. The value can be waf.instance.enterprise or waf.instance.professional. An enterprise edition dedicated engine has more functions than a professional edition one. For more details, see the Web Application Firewall (WAF) User Guide. |
|
| | | | - **waf.instance.professional**: WI-100. Performance: 100 Mbit/s of throughput and 2,000 QPS. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
| cpu_flavor | Yes | String | ID of the specifications of the ECS hosting the dedicated engine. It can be obtained by calling the ECS ListFlavors API. For the enterprise edition, ECS specifications with 8 vCPUs and 16 GB memory are used. For the professional edition, ECS specifications with 2 vCPUs and 4 GB memory are used. |
|
| | | | - **waf.instance.enterprise**: WI-100. Performance: 500 Mbit/s of throughput and 10,000 QPS. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
| vpc_id | Yes | String | ID of the VPC where the dedicated engine is located. It can be obtained by calling the ListVpcs API. |
|
| | | | Enumeration values: |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
| subnet_id | Yes | String | ID of the VPC subnet where the dedicated engine is located. It can be obtained by calling the **ListSubnets API**. **subnet_id** has the same value as **network_id** obtained by calling the OpenStack APIs |
|
| | | | - **waf.instance.professional** |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| | | | |
|
||||||
| security_group | Yes | Array of strings | ID of the security group where the dedicated engine is located. It can be obtained by calling the ListSecurityGroups API. |
|
| | | | - **waf.instance.enterprise** |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| count | Yes | Integer | Number of dedicated engines to be provisioned |
|
| cpu_flavor | Yes | String | ID of the specifications of the ECS hosting the dedicated engine. You can go to the management console and confirm supported specifications. |
|
||||||
+----------------+-----------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| vpc_id | Yes | String | ID of the VPC where the dedicated engine is located. It can be obtained by calling the ListVpcs API. |
|
||||||
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| subnet_id | Yes | String | ID of the VPC subnet where the dedicated engine is located. It can be obtained by calling the **ListSubnets API**. **subnet_id** has the same value as **network_id** obtained by calling the OpenStack APIs |
|
||||||
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| security_group | Yes | Array of strings | ID of the security group where the dedicated engine is located. It can be obtained by calling the ListSecurityGroups API. |
|
||||||
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| count | Yes | Integer | Number of dedicated engines to be provisioned |
|
||||||
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
| res_tenant | Yes | Boolean | Whether to create a dedicated engine instance of the network interface type. Its value has to be true. |
|
||||||
|
| | | | |
|
||||||
|
| | | | - **Network Interface**: Your WAF instance will be connected to your network via a VPC. (If ELB is used, only dedicated load balancers can be used.) |
|
||||||
|
| | | | |
|
||||||
|
| | | | Enumeration values: |
|
||||||
|
| | | | |
|
||||||
|
| | | | - **true** |
|
||||||
|
+-----------------+-----------------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Response Parameters
|
Response Parameters
|
||||||
-------------------
|
-------------------
|
||||||
@ -131,7 +147,6 @@ Example Requests
|
|||||||
POST https://{endpoint}/v1/{project_id}/premium-waf/instance
|
POST https://{endpoint}/v1/{project_id}/premium-waf/instance
|
||||||
|
|
||||||
{
|
{
|
||||||
"chargemode" : 30,
|
|
||||||
"region" : "region-01-4",
|
"region" : "region-01-4",
|
||||||
"available_zone" : "region-01-4a",
|
"available_zone" : "region-01-4a",
|
||||||
"arch" : "x86",
|
"arch" : "x86",
|
||||||
@ -141,7 +156,8 @@ Example Requests
|
|||||||
"vpc_id" : "d7b6a5ff-6c53-4cd4-9d57-f20ee8753056",
|
"vpc_id" : "d7b6a5ff-6c53-4cd4-9d57-f20ee8753056",
|
||||||
"subnet_id" : "e59ccd18-7e15-4588-b689-04b856f4e78b",
|
"subnet_id" : "e59ccd18-7e15-4588-b689-04b856f4e78b",
|
||||||
"security_group" : [ "09b156a2-f0f0-41fd-9891-60e594601cfd" ],
|
"security_group" : [ "09b156a2-f0f0-41fd-9891-60e594601cfd" ],
|
||||||
"count" : 1
|
"count" : 1,
|
||||||
|
"res_tenant" : true
|
||||||
}
|
}
|
||||||
|
|
||||||
Example Responses
|
Example Responses
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,7 @@ Managing Websites Protected in Dedicated Mode
|
|||||||
- :ref:`Querying Domain Name Settings in Dedicated Mode <showpremiumhost>`
|
- :ref:`Querying Domain Name Settings in Dedicated Mode <showpremiumhost>`
|
||||||
- :ref:`Modifying a Domain Name Protected by a Dedicated WAF Instance <updatepremiumhost>`
|
- :ref:`Modifying a Domain Name Protected by a Dedicated WAF Instance <updatepremiumhost>`
|
||||||
- :ref:`Deleting a Domain Name from a Dedicated WAF Instance <deletepremiumhost>`
|
- :ref:`Deleting a Domain Name from a Dedicated WAF Instance <deletepremiumhost>`
|
||||||
|
- :ref:`Modifying the Protection Status of a Domain Name in Dedicated Mode <updatepremiumhostprotectstatus>`
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
@ -20,3 +21,4 @@ Managing Websites Protected in Dedicated Mode
|
|||||||
querying_domain_name_settings_in_dedicated_mode
|
querying_domain_name_settings_in_dedicated_mode
|
||||||
modifying_a_domain_name_protected_by_a_dedicated_waf_instance
|
modifying_a_domain_name_protected_by_a_dedicated_waf_instance
|
||||||
deleting_a_domain_name_from_a_dedicated_waf_instance
|
deleting_a_domain_name_from_a_dedicated_waf_instance
|
||||||
|
modifying_the_protection_status_of_a_domain_name_in_dedicated_mode
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ Creating a Data Masking Rule
|
|||||||
Function
|
Function
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Creating a Data Masking Rule
|
This API is used to create a data masking rule.
|
||||||
|
|
||||||
URI
|
URI
|
||||||
---
|
---
|
||||||
@ -17,12 +17,13 @@ POST /v1/{project_id}/waf/policy/{policy_id}/privacy
|
|||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
Parameter Mandatory Type Description
|
| Parameter | Mandatory | Type | Description |
|
||||||
========== ========= ====== ===========
|
+============+===========+========+==================================================================+
|
||||||
project_id Yes String Project ID
|
| project_id | Yes | String | Project ID |
|
||||||
policy_id Yes String Policy ID
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
========== ========= ====== ===========
|
| policy_id | Yes | String | Policy ID. It can be obtained by calling the **ListPolicy** API. |
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -17,12 +17,13 @@ POST /v1/{project_id}/waf/policy/{policy_id}/antitamper
|
|||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
Parameter Mandatory Type Description
|
| Parameter | Mandatory | Type | Description |
|
||||||
========== ========= ====== ===========
|
+============+===========+========+==================================================================+
|
||||||
project_id Yes String Project ID
|
| project_id | Yes | String | Project ID |
|
||||||
policy_id Yes String Policy ID
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
========== ========= ====== ===========
|
| policy_id | Yes | String | Policy ID. It can be obtained by calling the **ListPolicy** API. |
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
@ -58,27 +59,27 @@ Response Parameters
|
|||||||
|
|
||||||
.. table:: **Table 4** Response body parameters
|
.. table:: **Table 4** Response body parameters
|
||||||
|
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
+=======================+=======================+=========================================================+
|
+=======================+=======================+=========================================================================================================================================================+
|
||||||
| id | String | Rule ID. |
|
| id | String | Rule ID. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| policyid | String | Policy ID |
|
| policyid | String | Policy ID |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| timestamp | Long | Timestamp |
|
| timestamp | Long | Timestamp |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| description | String | Rule description. |
|
| description | String | Rule description. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| status | Integer | Rule status. The value can be: |
|
| status | Integer | Rule status. The value can be: |
|
||||||
| | | |
|
| | | |
|
||||||
| | | - 0: The rule is disabled. |
|
| | | - 0: The rule is disabled. |
|
||||||
| | | |
|
| | | |
|
||||||
| | | - 1: The rule is enabled. |
|
| | | - 1: The rule is enabled. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| hostname | String | Domain name protected by the web tamper protection rule |
|
| hostname | String | The domain name of the website protected with the web tamper protection rule. The domain name is in the format of xxx.xxx.com, such as www.example.com. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| url | String | URL for the web tamper protection rule. |
|
| url | String | URL for the web tamper protection rule. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
**Status code: 400**
|
**Status code: 400**
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -17,13 +17,15 @@ DELETE /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id}
|
|||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
Parameter Mandatory Type Description
|
| Parameter | Mandatory | Type | Description |
|
||||||
========== ========= ====== ===========
|
+============+===========+========+=========================================================================================================+
|
||||||
project_id Yes String Project ID
|
| project_id | Yes | String | Project ID |
|
||||||
policy_id Yes String Policy ID
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
rule_id Yes String Rule ID
|
| policy_id | Yes | String | Policy ID. It can be obtained by calling the **ListPolicy** API. |
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
|
| rule_id | Yes | String | ID of the blacklist or whitelist rule. It can be obtained by calling the **ListWhiteblackipRules** API. |
|
||||||
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
@ -35,7 +37,7 @@ Request Parameters
|
|||||||
+=================+=================+=================+============================================+
|
+=================+=================+=================+============================================+
|
||||||
| X-Auth-Token | Yes | String | User Token. |
|
| X-Auth-Token | Yes | String | User Token. |
|
||||||
+-----------------+-----------------+-----------------+--------------------------------------------+
|
+-----------------+-----------------+-----------------+--------------------------------------------+
|
||||||
| Content-Type | Yes | String | Content type |
|
| Content-Type | No | String | Content type |
|
||||||
| | | | |
|
| | | | |
|
||||||
| | | | Default: **application/json;charset=utf8** |
|
| | | | Default: **application/json;charset=utf8** |
|
||||||
+-----------------+-----------------+-----------------+--------------------------------------------+
|
+-----------------+-----------------+-----------------+--------------------------------------------+
|
||||||
@ -52,6 +54,8 @@ Response Parameters
|
|||||||
+=======================+=======================+=====================================================+
|
+=======================+=======================+=====================================================+
|
||||||
| id | String | Rule ID |
|
| id | String | Rule ID |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
| name | String | Rule name. |
|
||||||
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| policyid | String | Policy ID. |
|
| policyid | String | Policy ID. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| timestamp | Long | Rule creation time |
|
| timestamp | Long | Rule creation time |
|
||||||
@ -64,7 +68,7 @@ Response Parameters
|
|||||||
| | | |
|
| | | |
|
||||||
| | | - 1: The rule is enabled. |
|
| | | - 1: The rule is enabled. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| addr | String | lacklisted or whitelisted IP addresses |
|
| addr | String | Blacklisted or whitelisted IP addresses |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| white | Integer | Protective action. The value can be: |
|
| white | Integer | Protective action. The value can be: |
|
||||||
| | | |
|
| | | |
|
||||||
@ -74,6 +78,8 @@ Response Parameters
|
|||||||
| | | |
|
| | | |
|
||||||
| | | - 2: WAF only logs the requests that hit the rule. |
|
| | | - 2: WAF only logs the requests that hit the rule. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
| followed_action_id | String | ID of the known attack source rule. |
|
||||||
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
|
||||||
**Status code: 400**
|
**Status code: 400**
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -13,17 +13,17 @@ This API is used to delete a reference table.
|
|||||||
URI
|
URI
|
||||||
---
|
---
|
||||||
|
|
||||||
DELETE /v1/{project_id}/waf/valuelist/{valuelistid}
|
DELETE /v1/{project_id}/waf/valuelist/{table_id}
|
||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
+-------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Mandatory | Type | Description |
|
| Parameter | Mandatory | Type | Description |
|
||||||
+=============+===========+========+=============================================================================================+
|
+============+===========+========+=============================================================================================+
|
||||||
| project_id | Yes | String | Project ID |
|
| project_id | Yes | String | Project ID |
|
||||||
+-------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
||||||
| valuelistid | Yes | String | Reference table ID. It can be obtained by calling the API Querying the Reference Table List |
|
| table_id | Yes | String | Reference table ID. It can be obtained by calling the API Querying the Reference Table List |
|
||||||
+-------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
@ -117,7 +117,7 @@ Example Requests
|
|||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
DELETE https://{Endpoint}/v1/{project_id}/waf/valuelist/{valuelistid}?
|
DELETE https://{Endpoint}/v1/{project_id}/waf/valuelist/{table_id}?
|
||||||
|
|
||||||
Example Responses
|
Example Responses
|
||||||
-----------------
|
-----------------
|
||||||
@ -133,6 +133,8 @@ Request succeeded.
|
|||||||
"name" : "demo2",
|
"name" : "demo2",
|
||||||
"type" : "url",
|
"type" : "url",
|
||||||
"values" : [ "/demo" ],
|
"values" : [ "/demo" ],
|
||||||
|
"description" : "",
|
||||||
|
"producer" : 1,
|
||||||
"timestamp" : 1656495488880
|
"timestamp" : 1656495488880
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,13 +17,15 @@ DELETE /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id}
|
|||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------+
|
||||||
Parameter Mandatory Type Description
|
| Parameter | Mandatory | Type | Description |
|
||||||
========== ========= ====== ===========
|
+============+===========+========+======================================================================================================+
|
||||||
project_id Yes String Project ID
|
| project_id | Yes | String | Project ID |
|
||||||
policy_id Yes String Policy ID
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------+
|
||||||
rule_id Yes String Rule ID
|
| policy_id | Yes | String | Policy ID. It can be obtained by calling the **ListPolicy** API. |
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------+
|
||||||
|
| rule_id | Yes | String | ID of the web tamper protection rule. It can be obtained by calling the **ListAntitamperRules** API. |
|
||||||
|
+------------+-----------+--------+------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
@ -47,27 +49,27 @@ Response Parameters
|
|||||||
|
|
||||||
.. table:: **Table 3** Response body parameters
|
.. table:: **Table 3** Response body parameters
|
||||||
|
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
+=======================+=======================+=========================================================+
|
+=======================+=======================+=========================================================================================================================================================+
|
||||||
| id | String | Rule ID. |
|
| id | String | Rule ID. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| policyid | String | Policy ID |
|
| policyid | String | Policy ID |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| timestamp | Long | Timestamp |
|
| timestamp | Long | Timestamp |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| description | String | Rule description. |
|
| description | String | Rule description. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| status | Integer | Rule status. The value can be: |
|
| status | Integer | Rule status. The value can be: |
|
||||||
| | | |
|
| | | |
|
||||||
| | | - 0: The rule is disabled. |
|
| | | - 0: The rule is disabled. |
|
||||||
| | | |
|
| | | |
|
||||||
| | | - 1: The rule is enabled. |
|
| | | - 1: The rule is enabled. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| hostname | String | Domain name protected by the web tamper protection rule |
|
| hostname | String | The domain name of the website protected with the web tamper protection rule. The domain name is in the format of xxx.xxx.com, such as www.example.com. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| url | String | URL for the web tamper protection rule. |
|
| url | String | URL for the web tamper protection rule. |
|
||||||
+-----------------------+-----------------------+---------------------------------------------------------+
|
+-----------------------+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
**Status code: 400**
|
**Status code: 400**
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
.. _ShowWhiteblackipRule:
|
.. _ShowWhiteblackipRule:
|
||||||
|
|
||||||
Querying a Blacklist or Whitelist Rule
|
Querying a Blacklist Or Whitelist Rule by ID
|
||||||
======================================
|
============================================
|
||||||
|
|
||||||
Function
|
Function
|
||||||
--------
|
--------
|
||||||
@ -17,13 +17,15 @@ GET /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id}
|
|||||||
|
|
||||||
.. table:: **Table 1** Path Parameters
|
.. table:: **Table 1** Path Parameters
|
||||||
|
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
Parameter Mandatory Type Description
|
| Parameter | Mandatory | Type | Description |
|
||||||
========== ========= ====== ===========
|
+============+===========+========+=========================================================================================================+
|
||||||
project_id Yes String Project ID
|
| project_id | Yes | String | Project ID |
|
||||||
policy_id Yes String Policy ID
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
rule_id Yes String Rule ID
|
| policy_id | Yes | String | Policy ID. It can be obtained by calling the **ListPolicy** API. |
|
||||||
========== ========= ====== ===========
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
|
| rule_id | Yes | String | ID of the blacklist or whitelist rule. It can be obtained by calling the **ListWhiteblackipRules** API. |
|
||||||
|
+------------+-----------+--------+---------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Request Parameters
|
Request Parameters
|
||||||
------------------
|
------------------
|
||||||
@ -52,6 +54,8 @@ Response Parameters
|
|||||||
+=======================+=======================+=====================================================+
|
+=======================+=======================+=====================================================+
|
||||||
| id | String | Rule ID |
|
| id | String | Rule ID |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
| name | String | Rule name. |
|
||||||
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| policyid | String | Policy ID. |
|
| policyid | String | Policy ID. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| timestamp | Long | Rule creation time |
|
| timestamp | Long | Rule creation time |
|
||||||
@ -64,7 +68,7 @@ Response Parameters
|
|||||||
| | | |
|
| | | |
|
||||||
| | | - 1: The rule is enabled. |
|
| | | - 1: The rule is enabled. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| addr | String | lacklisted or whitelisted IP addresses |
|
| addr | String | Blacklisted or whitelisted IP addresses |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
| white | Integer | Protective action. The value can be: |
|
| white | Integer | Protective action. The value can be: |
|
||||||
| | | |
|
| | | |
|
||||||
@ -74,6 +78,8 @@ Response Parameters
|
|||||||
| | | |
|
| | | |
|
||||||
| | | - 2: WAF only logs the requests that hit the rule. |
|
| | | - 2: WAF only logs the requests that hit the rule. |
|
||||||
+-----------------------+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
| followed_action_id | String | ID of the known attack source rule. |
|
||||||
|
+-----------------------+-----------------------+-----------------------------------------------------+
|
||||||
|
|
||||||
**Status code: 400**
|
**Status code: 400**
|
||||||
|
|
||||||
@ -118,7 +124,21 @@ Example Requests
|
|||||||
Example Responses
|
Example Responses
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
None
|
**Status code: 200**
|
||||||
|
|
||||||
|
Request succeeded.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
{
|
||||||
|
"id" : "5d43af25404341058d5ab17b7ba78b56",
|
||||||
|
"policyid" : "38ff0cb9a10e4d5293c642bc0350fa6d",
|
||||||
|
"timestamp" : 1650531872900,
|
||||||
|
"description" : "demo",
|
||||||
|
"status" : 1,
|
||||||
|
"addr" : "x.x.x.x",
|
||||||
|
"white" : 0
|
||||||
|
}
|
||||||
|
|
||||||
Status Codes
|
Status Codes
|
||||||
------------
|
------------
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user