2018-07-25 11:46:09 +02:00
|
|
|
{
|
|
|
|
"users":[
|
|
|
|
{
|
|
|
|
"name":"user1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user5"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"admin":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"has_admin":true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"has_admin":true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"endpoint":[
|
|
|
|
{
|
|
|
|
"url":"http://url",
|
|
|
|
"name":"endpoint1",
|
2019-05-30 09:59:09 +02:00
|
|
|
"user":"admin",
|
|
|
|
"pass":"Harbor12345"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"replicationrule":[
|
|
|
|
{
|
|
|
|
"project":"project1",
|
|
|
|
"endpoint":"endpoint1",
|
|
|
|
"trigger":"Manual",
|
|
|
|
"rulename":"rulename"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"project":"library",
|
|
|
|
"endpoint":"endpoint1",
|
|
|
|
"trigger":"Manual",
|
|
|
|
"rulename":"rulelibrary"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"configuration":{
|
|
|
|
"authmode":"Database",
|
|
|
|
"projectcreation":"everyone",
|
|
|
|
"selfreg":false,
|
|
|
|
"emailsetting":{
|
|
|
|
"emailserver":"emailserver",
|
|
|
|
"emailport":"2220",
|
|
|
|
"emailuser":"emailuser",
|
|
|
|
"emailfrom":"emailfrom",
|
|
|
|
"emailssl":false,
|
|
|
|
"verifycert":false
|
|
|
|
},
|
|
|
|
"token":"40",
|
|
|
|
"readonly":false,
|
|
|
|
"scanall":{
|
|
|
|
"type":"none",
|
|
|
|
"param":{
|
|
|
|
"daily":0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"syslabel":[
|
|
|
|
{
|
|
|
|
"name":"label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label5"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label6"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"projects":[
|
|
|
|
{
|
|
|
|
"name":"project1",
|
2019-01-16 06:39:36 +01:00
|
|
|
"has_image":true,
|
2018-07-25 11:46:09 +02:00
|
|
|
"accesslevel":"public",
|
|
|
|
"repocounts":2,
|
|
|
|
"repo":[
|
|
|
|
{
|
|
|
|
"name":"busybox",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"false"
|
2018-07-25 11:46:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"alpine",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"true"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"member":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"role":1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"role":2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3",
|
|
|
|
"role":3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"replications":{
|
|
|
|
"rulename":"ruleproject1",
|
|
|
|
"endpointname":"endpoint1",
|
|
|
|
"trigger":"Manual"
|
|
|
|
},
|
|
|
|
"labels":[
|
|
|
|
{
|
|
|
|
"name":"proj1label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj1label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj1label3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"logs":[
|
|
|
|
{
|
|
|
|
"name":"admin",
|
|
|
|
"operation":"create"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"configuration":{
|
2019-09-24 12:35:19 +02:00
|
|
|
"public":"true",
|
2018-07-25 11:46:09 +02:00
|
|
|
"enable_content_trust":"true",
|
|
|
|
"automatically_scan_images_on_push":"true",
|
|
|
|
"prevent_vulnerable_images_from_running":"true",
|
2019-09-24 12:35:19 +02:00
|
|
|
"prevent_vlunerable_images_from_running_severity":"high"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"project2",
|
2019-01-16 06:39:36 +01:00
|
|
|
"has_image":false,
|
2018-07-25 11:46:09 +02:00
|
|
|
"accesslevel":"public",
|
|
|
|
"repocounts":2,
|
|
|
|
"repo":[
|
|
|
|
{
|
|
|
|
"name":"busybox",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"false"
|
2018-07-25 11:46:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"alpine",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"true"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"member":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"role":1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"role":2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3",
|
|
|
|
"role":3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"replications":{
|
|
|
|
"rulename":"rulename1",
|
|
|
|
"endpointname":"endpoint1",
|
|
|
|
"trigger":"Manual"
|
|
|
|
},
|
|
|
|
"labels":[
|
|
|
|
{
|
|
|
|
"name":"proj2label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj2label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj2label3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"logs":[
|
|
|
|
{
|
|
|
|
"name":"admin",
|
|
|
|
"operation":"create"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"configuration":{
|
2019-09-24 12:35:19 +02:00
|
|
|
"public":"false",
|
|
|
|
"enable_content_trust":"false",
|
|
|
|
"automatically_scan_images_on_push":"false",
|
|
|
|
"prevent_vulnerable_images_from_running":"true",
|
|
|
|
"prevent_vlunerable_images_from_running_severity":"medium"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|