Sonatype · Capability
Sonatype Lifecycle Public REST API — Components
Sonatype Lifecycle Public REST API — Components. 5 operations. Lead operation: Components. Self-contained Naftiko capability covering one Sonatype business surface.
What You Can Do
POST
Getcomponentdetails
— Use this method to retrieve data related to a component.
/v1/api/v2/components/details
POST
Getsuggestedremediationforcomponent
— Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
/v1/api/v2/components/remediation/{ownertype}/{ownerid}
POST
Getcomponentversions
— Use this method to retrieve all known versions of a component.
/v1/api/v2/components/versions
DELETE
Deletecomponentlabel
— Use this method to un-assign a label from a component.
/v1/api/v2/components/{componenthash}/labels/{labelname}/ownertype-s/{internalownerid}
POST
Setcomponentlabel
— Use this method to assign an existing label to a component.
/v1/api/v2/components/{componenthash}/labels/{labelname}/ownertype-s/{internalownerid}
MCP Tools
use-this-method-retrieve-data
Use this method to retrieve data related to a component.
read-only
use-this-method-obtain-remediation
Use this method to obtain remediation suggestions for policy violations on a component basis. Remediations obtained from this method are same as those appearing on the Component Details Page in the UI.
use-this-method-retrieve-all
Use this method to retrieve all known versions of a component.
read-only
use-this-method-un-assign
Use this method to un-assign a label from a component.
idempotent
use-this-method-assign-existing
Use this method to assign an existing label to a component.