Get Branch Scans
This API allows users to get the results of a security or code analysis scan on a specific branch within a repository.
Authentication
Response data is subject to user roles and permissions
Method: Bearer Token or API Key
Details: For bearer token header name should be X-OpsMx-Auth. API keys can be generated from the SSD UI.
Request Details
Endpoint URL
Method
URL Path
GET
{host}/ssdservice/v1/{scanType}/summarydata
Request Headers
Header
Description
Content-Type
application/json
X-OpsMx-Auth
Bearer Token for authentication
CURL Example
curl --location '{host}/gate/ssdservice/v1/sourceScan/summarydata?repository=docker-swarm&teamId=3c5c9dcb-8466-4e06-8ea0-07f9820df897&projectId=0x29ab7&type=sourceScan&branch=main' \
--header 'X-OpsMx-Auth: Bearer <token>'Response Details
Success Response (Status Code: 200/201)
Error Responses
Status Code
Description
Example Error Response
400
Bad Request (Invalid parameters or missing required fields)
{"error": "Invalid input data."}
401
Unauthorized (Missing or invalid authentication token)
{"error": "Authentication required."}
500
Some issues in Server
{"error": "Resource not found."}
Last updated