Skip to content

Harbor API create proxy cache project #14786

Answered by zynpsnltrkk
mephmanx asked this question in Q&A
Discussion options

You must be logged in to vote

I ve tested these curl requests for a similar scenario. you can use it to make it a script @mephmanx

curl --request POST -u $HARBOR_ADMIN_USERNAME:$HARBOR_ADMIN_PASSWORD \
               --url $HARBOR_URL/api/v2.0/registries \
               --header 'content-type: application/json' \
               --data '{
                         "credential": {
                          "access_key": "bla",
                          "access_secret": "bla",
                          "type": "string"
                         },
                         "name": "remote-registry",
                         "url": "https://remote-registry.io",
                         "insecure": false,
                   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stonezdj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants