EULA REST API
Component downloads and uploads are blocked until a Nexus Administrator has agreed to the terms in the Sonatype Nexus Repository Community Edition end-user license agreement (EULA).
See Sonatype Nexus Repository Community Edtion EULA for the complete text.
To agree to the EULA, submit a POST request with the exact text from the disclaimer
received from the GET request from the same endpoint while updating the accepted
property to true.
Endpoints
The following endpoints are available for the Nexus Repository EULA API. These endpoints require an administrator role with the nexus:*
privilege to access and edit.
GET /service/rest/v1/system/eula
This endpoint gets the EULA agreement.
curl -u admin:admin123 -X GET 'https://localhost:8081/service/rest/v1/system/eula'
{ "disclaimer": "Use of Sonatype Nexus Repository - Community Edition is governed by the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula. By returning the value from ‘accepted:false’ to ‘accepted:true’, you acknowledge that you have read and agree to the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula.", "accepted": false }
POST /service/rest/v1/system/eula
Use this endpoint to accept the EULA. The request must include the complete disclaimer
text provided from the GET request with the accepted
property set to true.
The EULA must be accepted before using the Nexus Repository Community Edition.
curl -u admin:admin123 -X POST 'https://localhost:8081/service/rest/v1/system/eula' -d '{"disclaimer": "Use of Sonatype Nexus Repository - Community Edition is governed by the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula. By returning the value from ‘accepted:false’ to ‘accepted:true’, you acknowledge that you have read and agree to the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula.", "accepted": true}'