{ "opencollection": "1.0.0", "info": { "name": "Sonatype Lifecycle Public REST Advanced Search Policy Evaluation API", "version": "1.201.0-02" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Policy Evaluation", "type": "folder" }, "items": [ { "info": { "name": "evaluateComponents", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/evaluation/applications/:applicationId", "params": [ { "name": "applicationId", "value": "", "type": "path", "description": "Enter the internal applicationId. Use the Applications REST API to retrieve the internal applicationId." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to request a component evaluation. This is step 1 of the 2 step policy evaluation for components process.\n\nPermissions Required: Evaluate Components" }, { "info": { "name": "promoteScan", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/evaluation/applications/:applicationId/promoteScan", "params": [ { "name": "applicationId", "value": "", "type": "path", "description": "Enter the internal applicationId. Use the Applications REST API to retrieve the internal applicationId." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to rescan older scans. This is done when the binaries of a previous build are now moving to a new stage in the production pipeline. Using this method, you can avoid rebuilding the application and reuse the scan metadata at the newer stage. This new evaluation will evaluate the most recent security and license data against your current policies. \n\nPermissions Required: Evaluate Applications" }, { "info": { "name": "getComponentEvaluation", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/evaluation/applications/:applicationId/results/:resultId", "params": [ { "name": "applicationId", "value": "", "type": "path", "description": "Enter the internal applicationId (same as that sent in the POST request (step 1))" }, { "name": "resultId", "value": "", "type": "path", "description": "Enter the resultId obtained from the POST response (step 1) used for component evaluation." } ] }, "docs": "This is step 2 of the policy evaluation process for components. Use the resultId obtained from the POST response for the corresponding applicationId. \n\nPermissions Required: Evaluate Components " }, { "info": { "name": "evaluateSourceControl", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/evaluation/applications/:applicationId/sourceControlEvaluation", "params": [ { "name": "applicationId", "value": "", "type": "path", "description": "Enter the internal applicationId. Use the Applications REST API to retrieve the internal applicationId." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to request a source control evaluation for a specific application. This is step 1 of the 2 step source control evaluation process. \n\nPermissions Required: Evaluate Applications" }, { "info": { "name": "getApplicationEvaluationStatus", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/evaluation/applications/:applicationId/status/:statusId", "params": [ { "name": "applicationId", "value": "", "type": "path", "description": "Enter the applicationId, for the which policy evaluation was requested." }, { "name": "statusId", "value": "", "type": "path", "description": "Enter the statusId value obtained as response of the POST call in step 1." } ] }, "docs": "This is step 2 of the policy evaluation process. Use the statusUrl obtained from the POST response for the corresponding applicationId. \n\nPermissions Required: Evaluate Applications" } ] } ], "bundled": true }