Issue #7380
Updated by ipanova@redhat.com over 4 years ago
Document how include/exclude_tags options work with mirror=True/False ``` $ http POST $BASE_ADDR/pulp/api/v3/remotes/container/container/ name='my-hello-repo1' url='https://registry-1.docker.io' upstream_name='pulp/test-fixture-1' include_tags:='["manifest_a"]' HTTP/1.1 201 Created Allow: GET, POST, HEAD, OPTIONS Connection: close Content-Length: 508 Content-Type: application/json Date: Mon, 24 Aug 2020 11:25:23 GMT Location: /pulp/api/v3/remotes/container/container/7d283d83-63e1-4e51-b602-48feff5bd62f/ Server: gunicorn/20.0.4 Vary: Accept, Cookie X-Frame-Options: SAMEORIGIN { "ca_cert": null, "client_cert": null, "client_key": null, "download_concurrency": 10, "exclude_tags": null, "include_tags": [ "manifest_a" ], "name": "my-hello-repo1", "password": null, "policy": "immediate", "proxy_url": null, "pulp_created": "2020-08-24T11:25:23.660453Z", "pulp_href": "/pulp/api/v3/remotes/container/container/7d283d83-63e1-4e51-b602-48feff5bd62f/", "pulp_last_updated": "2020-08-24T11:25:23.660483Z", "tls_validation": true, "upstream_name": "pulp/test-fixture-1", "url": "https://registry-1.docker.io", "username": null } (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 _scripts]$ http POST $BASE_ADDR/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/sync/ remote=/pulp/api/v3/remotes/container/container/7d283d83-63e1-4e51-b602-48feff5bd62f/ mirror=True HTTP/1.1 202 Accepted Allow: POST, OPTIONS Connection: close Content-Length: 67 Content-Type: application/json Date: Mon, 24 Aug 2020 11:25:38 GMT Server: gunicorn/20.0.4 Vary: Accept, Cookie X-Frame-Options: SAMEORIGIN { "task": "/pulp/api/v3/tasks/71b53321-491e-435f-a786-68081927b635/" } (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 _scripts]$ http $BASE_ADDR/pulp/api/v3/tasks/71b53321-491e-435f-a786-68081927b635/ HTTP/1.1 200 OK Allow: GET, PATCH, DELETE, HEAD, OPTIONS Connection: close Content-Length: 1347 Content-Type: application/json Date: Mon, 24 Aug 2020 11:25:46 GMT Server: gunicorn/20.0.4 Vary: Accept, Cookie X-Frame-Options: SAMEORIGIN { "child_tasks": [], "created_resources": [ "/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" ], "error": null, "finished_at": "2020-08-24T11:25:43.377326Z", "name": "pulp_container.app.tasks.synchronize.synchronize", "parent_task": null, "progress_reports": [ { "code": "downloading.tag_list", "done": 1, "message": "Downloading tag list", "state": "completed", "suffix": null, "total": 1 }, { "code": "downloading.artifacts", "done": 2, "message": "Downloading Artifacts", "state": "completed", "suffix": null, "total": null }, { "code": "associating.content", "done": 4, "message": "Associating Content", "state": "completed", "suffix": null, "total": null }, { "code": "unassociating.content", "done": 0, "message": "Un-Associating Content", "state": "completed", "suffix": null, "total": null }, { "code": "processing.tag", "done": 1, "message": "Processing Tags", "state": "completed", "suffix": null, "total": 1 } ], "pulp_created": "2020-08-24T11:25:38.370408Z", "pulp_href": "/pulp/api/v3/tasks/71b53321-491e-435f-a786-68081927b635/", "reserved_resources_record": [ "/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/", "/pulp/api/v3/remotes/container/container/7d283d83-63e1-4e51-b602-48feff5bd62f/" ], "started_at": "2020-08-24T11:25:38.537208Z", "state": "completed", "task_group": null, "worker": "/pulp/api/v3/workers/bc551e93-dbb3-436b-947d-1358c0840507/" } (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 _scripts]$ http $BASE_ADDR/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/ HTTP/1.1 200 OK Allow: GET, DELETE, HEAD, OPTIONS Connection: close Content-Length: 1411 Content-Type: application/json Date: Mon, 24 Aug 2020 11:26:00 GMT Server: gunicorn/20.0.4 Vary: Accept, Cookie X-Frame-Options: SAMEORIGIN { "base_version": null, "content_summary": { "added": { "container.blob": { "count": 2, "href": "/pulp/api/v3/content/container/blobs/?repository_version_added=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" }, "container.manifest": { "count": 1, "href": "/pulp/api/v3/content/container/manifests/?repository_version_added=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" }, "container.tag": { "count": 1, "href": "/pulp/api/v3/content/container/tags/?repository_version_added=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" } }, "present": { "container.blob": { "count": 2, "href": "/pulp/api/v3/content/container/blobs/?repository_version=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" }, "container.manifest": { "count": 1, "href": "/pulp/api/v3/content/container/manifests/?repository_version=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" }, "container.tag": { "count": 1, "href": "/pulp/api/v3/content/container/tags/?repository_version=/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" } }, "removed": {} }, "number": 1, "pulp_created": "2020-08-24T11:25:38.581231Z", "pulp_href": "/pulp/api/v3/repositories/container/container/80e189a4-9986-473a-9354-70dde50659b9/versions/1/" } ```