Inspect file
Download an artifact or job lock by its registered URI.
HEAD
/
download
cURL
curl --request HEAD \
--url http://127.0.0.1:{port}/download \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
with client.stream_download("ARTIFACT_URI", method="HEAD") as response:
print(response.headers)
client.close()
{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Was this page helpful?
⌘I
cURL
curl --request HEAD \
--url http://127.0.0.1:{port}/download \
--header 'Authorization: Bearer <token>'from harbor import Harbor
client = Harbor()
with client.stream_download("ARTIFACT_URI", method="HEAD") as response:
print(response.headers)
client.close()
{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}
