Obtaining the Traffic Filtering Switch Information
Function
Traffic filtering can be enabled or disabled. This API is used to obtain the current switch information.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/ptf/ip-blacklist/switch
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which can be obtained by calling an API or from the console. For details, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
fw_instance_id |
Yes |
String |
Firewall ID, which can be obtained by referring to Obtaining a Firewall ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
IpBlacklistSwitchInfoVo object |
The IP address blacklist switch information is included. |
Example Requests
Query the IP address blacklist function of the firewall whose project ID is eefb11b22d5944f2aa067954516df1cf and instance ID is e494f486-fa6f-410e-9cfa-8edacfb28970. The query result shows that the function is enabled.
https://{Endpoint}/v1/eefb11b22d5944f2aa067954516df1cf/ptf/ip-blacklist/switch?fw_instance_id=e494f486-fa6f-410e-9cfa-8edacfb28970
Example Responses
Status code: 200
Response body for returning the traffic filtering switch information
{ "data" : { "status" : 1 } }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body for returning the traffic filtering switch information |
401 |
Unauthorized: Request error. |
403 |
Forbidden: Access forbidden. |
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