Automate creation of docker hosted registry in Nexus

Hi,
How do i automate creation of docker hosted registry in nexus . I have looked for several apis but havent found any with respect to docker registry.Is is possible to do so?

@puneeth.pk95
At the moment you will have to use the script API in order to implement your requirement!

I already implemented something that also covers your requirement mayb -

You can also checkout the CLI I build for nexus 3 which covers also the access control part:

How do we run this groovy file??Could you please provide the curl post call for running this script along with the parameters it needs?

FYI, the REST equivalents are being developed. You can follow https://issues.sonatype.org/browse/NEXUS-15091 for more.

The groovy can be run using an execute script schedule task via the UI or (perhaps ironically) using the REST API (see https://help.sonatype.com/display/NXRM3/Script+API). The swagger UI should be able to guide through REST.

Best,
Joe