Project

Profile

Help

Issue #8014

Updated by ttereshc 3 months ago

It is possible to create and delete push repositories using API. ```

(pulp) [vagrant@pulp3-source-fedora32 _scripts]$ http POST :24817/pulp/api/v3/repositories/container/container-push/ name=ina

It doesn't make sense, it doesn't benefit users in any way, it only potentially creates problems and adds complexity to the code and future RBAC. HTTP/1.1 201 Created
Access-Control-Expose-Headers: Correlation-ID
Allow: GET, POST, HEAD, OPTIONS
Connection: close
Content-Length: 435
Content-Type: application/json
Correlation-ID: 3b9fee89525e4b27aea05c7e11017b6b
Date: Mon, 21 Dec 2020 14:02:07 GMT
Location: /pulp/api/v3/repositories/container/container-push/13d6dfee-367c-41d9-9b14-202afd25bdc8/
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN


Push repositories are automatically created during docker/podman push as a part of distribution creation. {
"description": null,
"latest_version_href": "/pulp/api/v3/repositories/container/container-push/13d6dfee-367c-41d9-9b14-202afd25bdc8/versions/0/",
"name": "ina",
"pulp_created": "2020-12-21T14:02:07.086529Z",
"pulp_href": "/pulp/api/v3/repositories/container/container-push/13d6dfee-367c-41d9-9b14-202afd25bdc8/",
"remote": null,
"versions_href": "/pulp/api/v3/repositories/container/container-push/13d6dfee-367c-41d9-9b14-202afd25bdc8/versions/"

Push repositories are automatically removed when their distributions are removed. }

```

Back