Download
Download an artifact or job lock by its registered URI.
GET
/
download
cURL
curl --request GET \
--url http://127.0.0.1:{port}/download \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
result = client.download("ARTIFACT_URI", "result.json")
print(result)
client.close()
"<string>"{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Required only when the server has HARBOR_API_KEY configured.
Headers
Query Parameters
Required string length:
1 - 8192Response
File bytes (GET), or file headers without a body (HEAD).
The response is of type file.
Was this page helpful?
⌘I
cURL
curl --request GET \
--url http://127.0.0.1:{port}/download \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
result = client.download("ARTIFACT_URI", "result.json")
print(result)
client.close()
"<string>"{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}
