Updated on 2025-11-21 GMT+08:00

Obtaining the IPS Rule Update Time

Function

This API is used to obtain the IPS rule update time.

URI

GET /v1/{project_id}/ips-rule/detail

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which can be obtained by calling an API or from the console. You can obtain it by referring to Obtaining a Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

fw_instance_id

Yes

String

Firewall ID, which can be obtained by referring to Obtaining a Firewall ID.

enterprise_project_id

No

String

Enterprise project ID, which is the ID of a project planned based on organizations. If the enterprise project function is not enabled, the value is 0.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

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).

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

data

Array of IpsRuleUpdateTimeVO objects

Time when IPS rule details were queried.

Table 5 IpsRuleUpdateTimeVO

Parameter

Type

Description

ips_type

Integer

IPS type. Its value can be 0 (basic defense) or 1 (virtual patch).

ips_version

String

IPS rule version.

update_time

Long

IPS update timestamp.

Example Requests

Obtain the IPS rule details of the project whose ID is 408972e72dcd4c1a9b033e955802a36b. The firewall ID is e743cfaf-8164-4807-aa13-d893d83313cf, and the enterprise project ID is fb55459c-41b3-47fc-885d-540946fddda4.

https://{Endpoint}/v1/408972e72dcd4c1a9b033e955802a36b/ips-rule/detail?fw_instance_id=e743cfaf-8164-4807-aa13-d893d83313cf&enterprise_project_id=fb55459c-41b3-47fc-885d-540946fddda4

Example Responses

Status code: 200

OK

{
  "data" : [ {
    "ips_type" : 0,
    "ips_version" : "3.0.235",
    "update_time" : 1733816977000
  }, {
    "ips_type" : 1,
    "ips_version" : "3.0.220",
    "update_time" : 1733816960000
  } ]
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized: Request error.

403

Forbidden: Access forbidden.

404

Not Found: Web page not found.

Error Codes

See Error Codes.