Endpoint | Method | Description |
---|---|---|
/udr/v1api/project/create | POST | Creates a new project/repository. |
Basic Authorization header required. The specified user must have administrator privileges.
Argument | Type | Description |
---|---|---|
repository | string | Defines the full path of the repository to be created. |
title | string | Optional. Defines the title of the project. |
isPublic | bool | Optional. Defines whether the repository is a public repository. |
Repositories created using this API may need to be updated in RegistryUI to define authorized users and groups.
A JSON object is returned. If an error occurs, the "error" field will contain a descriptive error message (see Standard API Response).
Field | Type | Description |
---|---|---|
data | Repository Entry (see below) | Describes the created repository. |
Only the fields listed here are officially supported at this time and only these should be used. All other fields are used internally by RegistryUI and may change in future releases.
Field | Type | Description |
---|---|---|
fullPath | string | The complete path of the repository within the Docker Registry. |
name | string | The name of the repository. |
title | string | The project title assigned to the repository. |
description.html | string (HTML) | The project description assigned to the repository. |
isPublic | bool | Defines whether the repository is a public repository, i.e. accessible by anonymous users. |
created | date/time (UTC) | Contains the date/time the repository/project was created. |
updated | date/time (UTC) | Contains the date/time the repository/project was last updated. May be null. |
curl -u username:usertoken -d "" https://registry.yoursite.com/udr/v1api/project/create?repository=mysql&title=MySQL Response: { "error": null, "data": { "id": 1046, "tenantId": 1, "fullPath": "mysql", "available": true, "name": "mysql", "title": "MySQL", "description": { "text": null, "html": null }, "level": 0, "isProject": true, "isRepository": true, "lowerLevelProjects": 0, "hasParentProject": false, "deletingUser": 0, "isPublic": false, "multiRepo": false, "updateGroupIdList": [], "readGroupIdList": [], "updateGroupIds": [ 1013 ], "readGroupIds": [ 1012 ], "readUsersGroupId": 1012, "updateUsersGroupId": 1013, "created": "2020-02-13T15:48:26.5879928Z", "updated": null } }
Last Updated 08/17/2020 - (email)
RegistryUI.com © 2023 - Softel vdm, Inc.