Description: Get the condition by ID.
Since: 3.116.x
Security: Requires a valid user with the "VIEW_POLICIES" permission.
Usage: GET /xray/api/v1/curation/conditions/{condition_id}
Consumes: None
Produces: application/json
Path Parameters: condition_id
Query Parameters: None
Response Body
Name | Type | Description |
---|---|---|
| string | The ID of the condition, used as a path parameter when updating or deleting the condition and when referring to it in a policy. |
| string | One of the IDs of the supported condition templates returned by the list condition templates api |
| string | The name of the condition |
| Boolean |
|
| string | Timestamp when the condition was created |
| Timestamp when the condition was updated | |
| One of: | |
| One of: " | |
| Array[ParamWithValue] | Array of parameter values. |
Sample Request
GET /xray/api/v1/curation/conditions/20
Sample Response
{ "id": "20", "is_custom": true, "created_by": "admin", "created_at": "2025-03-12T12:30:20+02:00", "updated_by": "admin", "updated_at": "2025-03-12T12:30:20+02:00", "risk_type": "security", "supported_pkg_types": ["npm"], "condition_template_id": "SpecificVersions", "name": "foo", "param_values": [ { "param_id": "package_type", "value": "npm" }, { "param_id": "package_name", "value": "jquery" }, { "param_id": "package_versions", "value": [ "[3.6.1]", "[3.7.1]" ] } ] }
Response Codes:
Status | Description |
---|---|
200 | OK |
400 | Bad Request |