Upload Job
Upload a finished or cancelled job to Hub using the server’s Hub credentials.
POST
/
hub
/
jobs
/
{job_id}
/
upload
cURL
curl --request POST \
--url http://127.0.0.1:{port}/hub/jobs/{job_id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org": "<string>"
}
'from harbor import Harbor
client = Harbor()
result = client.hub.jobs.upload("JOB_ID", visibility="private")
print(result)
client.close()
{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"_tag": "<string>",
"type": "about:blank"
}Authorizations
Body
application/json
Was this page helpful?
⌘I
cURL
curl --request POST \
--url http://127.0.0.1:{port}/hub/jobs/{job_id}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org": "<string>"
}
'from harbor import Harbor
client = Harbor()
result = client.hub.jobs.upload("JOB_ID", visibility="private")
print(result)
client.close()
{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"_tag": "<string>",
"type": "about:blank"
}
