Get details of all presets. The retrieved preset id (id) can be used to get details of a specific preset using using GET /presets/sast/{id}.
Usage:
- GET /sast/presets and gets details of all presets
- GET /sast/presets/{id} and get details of a specific preset
URL
http://localhost/cxrestapi/sast/presets
Method:
GET
Media Type (header):
Authorization: Bearer <access token value>
Accept: application/json;v=1.0
Parameters
None
...
Curl Sample:
Code: 200 OK
Error Response:
Code: 400 Bad Requestcurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/presets'
Sample Response:
[
{
"id": 36,
"name": "Checkmarx Default",
"ownerName": "CxUser",
"link": {
"rel": "self",
"uri": "/sast/presets/36"
}
},
{
"id": 1,
"name": "All",
"ownerName": "CxUser",
"link": {
"rel": "self",
"uri": "/sast/presets/1"
}
}
]
Success Response:
Code: 200 OK
Error Response:
Code: 400 Bad Request
Notes:
Retrieves details of all presets. If the request fails, it returns an error response.
...
Section | ||||
---|---|---|---|---|
|
...