Querying Geo-blocking Rules
Function
This API is used to query a geo-blocking rule.
Calling Method
For details, see Calling APIs.
URI
GET /v2/aad/policies/waf/geoip-rule
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_name |
Yes |
String |
Domain name |
|
overseas_type |
Yes |
Integer |
Protection region. 0: regions in the Chinese mainland. 1: regions outside the Chinese mainland. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
token |
|
Content-Type |
Yes |
String |
Content-Type |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
total |
Integer |
total |
|
items |
Array of WafGeoIpRule objects |
items |
|
Parameter |
Type |
Description |
|---|---|---|
|
geoip |
String |
Location |
|
id |
String |
id |
|
name |
String |
Rule name |
|
overseas_type |
Integer |
Protected area. |
|
timestamp |
Integer |
Addition time |
|
white |
Integer |
Protective action. The options are 0, 1, and 2. 0: The service blocks attacks. 1: The service allows requests. 2: The service only logs requests. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot