Harbor API
- API version: 1.7.0
- Build date: 2019-05-14T14:29:11.153+08:00[Asia/Shanghai]
These APIs provide services for manipulating Harbor project.
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.imwyh</groupId>
<artifactId>harbor-java-client</artifactId>
<version>0.0.1</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
compile "com.imwyh:harbor-java-client:0.0.1"At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/harbor-java-client-0.0.1.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
File chart = new File("chart_example"); // File |
File prov = new File("prov_example"); // File |
try {
apiInstance.chartrepoChartsPost(chart, prov);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoChartsPost");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
try {
Object result = apiInstance.chartrepoHealthGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoHealthGet");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
try {
List<ChartInfoEntry> result = apiInstance.chartrepoRepoChartsGet(repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsGet");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
try {
apiInstance.chartrepoRepoChartsNameDelete(repo, name);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsNameDelete");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
try {
apiInstance.chartrepoRepoChartsNameGet(repo, name);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsNameGet");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
String version = "version_example"; // String | The chart version
try {
apiInstance.chartrepoRepoChartsNameVersionDelete(repo, name, version);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsNameVersionDelete");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
String version = "version_example"; // String | The chart version
try {
apiInstance.chartrepoRepoChartsNameVersionGet(repo, name, version);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsNameVersionGet");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
File chart = new File("chart_example"); // File |
File prov = new File("prov_example"); // File |
try {
apiInstance.chartrepoRepoChartsPost(repo, chart, prov);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoChartsPost");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
File prov = new File("prov_example"); // File |
try {
apiInstance.chartrepoRepoProvPost(repo, prov);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartrepoRepoProvPost");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
String version = "version_example"; // String | The chart version
try {
apiInstance.chartreporepoChartsnameversionLabelsGet(repo, name, version);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartreporepoChartsnameversionLabelsGet");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
Label body = new Label(); // Label | The label being marked to the chart version
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
String version = "version_example"; // String | The chart version
try {
apiInstance.chartreporepoChartsnameversionLabelsPost(body, repo, name, version);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartreporepoChartsnameversionLabelsPost");
e.printStackTrace();
}
}
}
import com.imwyh.harbor.client.*;
import com.imwyh.harbor.client.auth.*;
import com.imwyh.harbor.client.model.*;
import com.imwyh.harbor.client.api.ChartRepositoryApi;
import java.io.File;
import java.util.*;
public class ChartRepositoryApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
ChartRepositoryApi apiInstance = new ChartRepositoryApi();
String repo = "repo_example"; // String | The project name
String name = "name_example"; // String | The chart name
String version = "version_example"; // String | The chart version
Integer id = 56; // Integer | The label ID
try {
apiInstance.chartreporepoChartsnameversionLabelsidDelete(repo, name, version, id);
} catch (ApiException e) {
System.err.println("Exception when calling ChartRepositoryApi#chartreporepoChartsnameversionLabelsidDelete");
e.printStackTrace();
}
}
}All URIs are relative to http://localhost/api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ChartRepositoryApi | chartrepoChartsPost | POST /chartrepo/charts | Upload a chart file to the defult 'library' project. |
| ChartRepositoryApi | chartrepoHealthGet | GET /chartrepo/health | Check the health of chart repository service. |
| ChartRepositoryApi | chartrepoRepoChartsGet | GET /chartrepo/{repo}/charts | Get all the charts under the specified project |
| ChartRepositoryApi | chartrepoRepoChartsNameDelete | DELETE /chartrepo/{repo}/charts/{name} | Delete all the versions of the specified chart |
| ChartRepositoryApi | chartrepoRepoChartsNameGet | GET /chartrepo/{repo}/charts/{name} | Get all the versions of the specified chart |
| ChartRepositoryApi | chartrepoRepoChartsNameVersionDelete | DELETE /chartrepo/{repo}/charts/{name}/{version} | Delete the specified chart version |
| ChartRepositoryApi | chartrepoRepoChartsNameVersionGet | GET /chartrepo/{repo}/charts/{name}/{version} | Get the specified chart version |
| ChartRepositoryApi | chartrepoRepoChartsPost | POST /chartrepo/{repo}/charts | Upload a chart file to the specified project. |
| ChartRepositoryApi | chartrepoRepoProvPost | POST /chartrepo/{repo}/prov | Upload a provance file to the specified project. |
| ChartRepositoryApi | chartreporepoChartsnameversionLabelsGet | GET /chartrepo/:repo/charts/:name/:version/labels | Return the attahced labels of chart. |
| ChartRepositoryApi | chartreporepoChartsnameversionLabelsPost | POST /chartrepo/:repo/charts/:name/:version/labels | Mark label to chart. |
| ChartRepositoryApi | chartreporepoChartsnameversionLabelsidDelete | DELETE /chartrepo/:repo/charts/:name/:version/labels/:id | Remove label from chart. |
| LabelApi | chartreporepoChartsnameversionLabelsGet | GET /chartrepo/:repo/charts/:name/:version/labels | Return the attahced labels of chart. |
| LabelApi | chartreporepoChartsnameversionLabelsPost | POST /chartrepo/:repo/charts/:name/:version/labels | Mark label to chart. |
| LabelApi | chartreporepoChartsnameversionLabelsidDelete | DELETE /chartrepo/:repo/charts/:name/:version/labels/:id | Remove label from chart. |
| ProductsApi | chartrepoChartsPost | POST /chartrepo/charts | Upload a chart file to the defult 'library' project. |
| ProductsApi | chartrepoHealthGet | GET /chartrepo/health | Check the health of chart repository service. |
| ProductsApi | chartrepoRepoChartsGet | GET /chartrepo/{repo}/charts | Get all the charts under the specified project |
| ProductsApi | chartrepoRepoChartsNameDelete | DELETE /chartrepo/{repo}/charts/{name} | Delete all the versions of the specified chart |
| ProductsApi | chartrepoRepoChartsNameGet | GET /chartrepo/{repo}/charts/{name} | Get all the versions of the specified chart |
| ProductsApi | chartrepoRepoChartsNameVersionDelete | DELETE /chartrepo/{repo}/charts/{name}/{version} | Delete the specified chart version |
| ProductsApi | chartrepoRepoChartsNameVersionGet | GET /chartrepo/{repo}/charts/{name}/{version} | Get the specified chart version |
| ProductsApi | chartrepoRepoChartsPost | POST /chartrepo/{repo}/charts | Upload a chart file to the specified project. |
| ProductsApi | chartrepoRepoProvPost | POST /chartrepo/{repo}/prov | Upload a provance file to the specified project. |
| ProductsApi | chartreporepoChartsnameversionLabelsGet | GET /chartrepo/:repo/charts/:name/:version/labels | Return the attahced labels of chart. |
| ProductsApi | chartreporepoChartsnameversionLabelsPost | POST /chartrepo/:repo/charts/:name/:version/labels | Mark label to chart. |
| ProductsApi | chartreporepoChartsnameversionLabelsidDelete | DELETE /chartrepo/:repo/charts/:name/:version/labels/:id | Remove label from chart. |
| ProductsApi | configurationsGet | GET /configurations | Get system configurations. |
| ProductsApi | configurationsPut | PUT /configurations | Modify system configurations. |
| ProductsApi | configurationsResetPost | POST /configurations/reset | Reset system configurations. |
| ProductsApi | emailPingPost | POST /email/ping | Test connection and authentication with email server. |
| ProductsApi | internalSyncregistryPost | POST /internal/syncregistry | Sync repositories from registry to DB. |
| ProductsApi | jobsReplicationGet | GET /jobs/replication | List filters jobs according to the policy and repository |
| ProductsApi | jobsReplicationIdDelete | DELETE /jobs/replication/{id} | Delete specific ID job. |
| ProductsApi | jobsReplicationIdLogGet | GET /jobs/replication/{id}/log | Get job logs. |
| ProductsApi | jobsReplicationPut | PUT /jobs/replication | Update status of jobs. Only stop is supported for now. |
| ProductsApi | jobsScanIdLogGet | GET /jobs/scan/{id}/log | Get job logs. |
| ProductsApi | labelsGet | GET /labels | List labels according to the query strings. |
| ProductsApi | labelsIdDelete | DELETE /labels/{id} | Delete the label specified by ID. |
| ProductsApi | labelsIdGet | GET /labels/{id} | Get the label specified by ID. |
| ProductsApi | labelsIdPut | PUT /labels/{id} | Update the label properties. |
| ProductsApi | labelsIdResourcesGet | GET /labels/{id}/resources | Get the resources that the label is referenced by. |
| ProductsApi | labelsPost | POST /labels | Post creates a label |
| ProductsApi | ldapGroupsSearchGet | GET /ldap/groups/search | Search available ldap groups. |
| ProductsApi | ldapPingPost | POST /ldap/ping | Ping available ldap service. |
| ProductsApi | ldapUsersImportPost | POST /ldap/users/import | Import selected available ldap users. |
| ProductsApi | ldapUsersSearchGet | GET /ldap/users/search | Search available ldap users. |
| ProductsApi | logsGet | GET /logs | Get recent logs of the projects which the user is a member of |
| ProductsApi | policiesReplicationGet | GET /policies/replication | List filters policies by name and project_id |
| ProductsApi | policiesReplicationIdDelete | DELETE /policies/replication/{id} | Delete the replication policy specified by ID. |
| ProductsApi | policiesReplicationIdGet | GET /policies/replication/{id} | Get replication policy. |
| ProductsApi | policiesReplicationIdPut | PUT /policies/replication/{id} | Put modifies name, description, target and enablement of policy. |
| ProductsApi | policiesReplicationPost | POST /policies/replication | Post creates a policy |
| ProductsApi | projectsGet | GET /projects | List projects |
| ProductsApi | projectsHead | HEAD /projects | Check if the project name user provided already exists. |
| ProductsApi | projectsPost | POST /projects | Create a new project. |
| ProductsApi | projectsProjectIdDelete | DELETE /projects/{project_id} | Delete project by projectID |
| ProductsApi | projectsProjectIdGet | GET /projects/{project_id} | Return specific project detail infomation |
| ProductsApi | projectsProjectIdLogsGet | GET /projects/{project_id}/logs | Get access logs accompany with a relevant project. |
| ProductsApi | projectsProjectIdMembersGet | GET /projects/{project_id}/members | Get all project member information |
| ProductsApi | projectsProjectIdMembersMidDelete | DELETE /projects/{project_id}/members/{mid} | Delete project member |
| ProductsApi | projectsProjectIdMembersMidGet | GET /projects/{project_id}/members/{mid} | Get the project member information |
| ProductsApi | projectsProjectIdMembersMidPut | PUT /projects/{project_id}/members/{mid} | Update project member |
| ProductsApi | projectsProjectIdMembersPost | POST /projects/{project_id}/members | Create project member |
| ProductsApi | projectsProjectIdMetadatasGet | GET /projects/{project_id}/metadatas | Get project metadata. |
| ProductsApi | projectsProjectIdMetadatasMetaNameDelete | DELETE /projects/{project_id}/metadatas/{meta_name} | Delete metadata of a project |
| ProductsApi | projectsProjectIdMetadatasMetaNameGet | GET /projects/{project_id}/metadatas/{meta_name} | Get project metadata |
| ProductsApi | projectsProjectIdMetadatasMetaNamePut | PUT /projects/{project_id}/metadatas/{meta_name} | Update metadata of a project. |
| ProductsApi | projectsProjectIdMetadatasPost | POST /projects/{project_id}/metadatas | Add metadata for the project. |
| ProductsApi | projectsProjectIdPut | PUT /projects/{project_id} | Update properties for a selected project. |
| ProductsApi | replicationsPost | POST /replications | Trigger the replication according to the specified policy. |
| ProductsApi | repositoriesGet | GET /repositories | Get repositories accompany with relevant project and repo name. |
| ProductsApi | repositoriesRepoNameDelete | DELETE /repositories/{repo_name} | Delete a repository. |
| ProductsApi | repositoriesRepoNameLabelsGet | GET /repositories/{repo_name}/labels | Get labels of a repository. |
| ProductsApi | repositoriesRepoNameLabelsLabelIdDelete | DELETE /repositories/{repo_name}/labels/{label_id} | Delete label from the repository. |
| ProductsApi | repositoriesRepoNameLabelsPost | POST /repositories/{repo_name}/labels | Add a label to the repository. |
| ProductsApi | repositoriesRepoNamePut | PUT /repositories/{repo_name} | Update description of the repository. |
| ProductsApi | repositoriesRepoNameSignaturesGet | GET /repositories/{repo_name}/signatures | Get signature information of a repository |
| ProductsApi | repositoriesRepoNameTagsGet | GET /repositories/{repo_name}/tags | Get tags of a relevant repository. |
| ProductsApi | repositoriesRepoNameTagsPost | POST /repositories/{repo_name}/tags | Retag an image |
| ProductsApi | repositoriesRepoNameTagsTagDelete | DELETE /repositories/{repo_name}/tags/{tag} | Delete a tag in a repository. |
| ProductsApi | repositoriesRepoNameTagsTagGet | GET /repositories/{repo_name}/tags/{tag} | Get the tag of the repository. |
| ProductsApi | repositoriesRepoNameTagsTagLabelsGet | GET /repositories/{repo_name}/tags/{tag}/labels | Get labels of an image. |
| ProductsApi | repositoriesRepoNameTagsTagLabelsLabelIdDelete | DELETE /repositories/{repo_name}/tags/{tag}/labels/{label_id} | Delete label from the image. |
| ProductsApi | repositoriesRepoNameTagsTagLabelsPost | POST /repositories/{repo_name}/tags/{tag}/labels | Add a label to image. |
| ProductsApi | repositoriesRepoNameTagsTagManifestGet | GET /repositories/{repo_name}/tags/{tag}/manifest | Get manifests of a relevant repository. |
| ProductsApi | repositoriesRepoNameTagsTagScanPost | POST /repositories/{repo_name}/tags/{tag}/scan | Scan the image. |
| ProductsApi | repositoriesRepoNameTagsTagVulnerabilityDetailsGet | GET /repositories/{repo_name}/tags/{tag}/vulnerability/details | Get vulnerability details of the image. |
| ProductsApi | repositoriesScanAllPost | POST /repositories/scanAll | Scan all images of the registry. |
| ProductsApi | repositoriesTopGet | GET /repositories/top | Get public repositories which are accessed most. |
| ProductsApi | searchGet | GET /search | Search for projects, repositories and helm charts |
| ProductsApi | statisticsGet | GET /statistics | Get projects number and repositories number relevant to the user |
| ProductsApi | systemGcGet | GET /system/gc | Get gc results. |
| ProductsApi | systemGcIdGet | GET /system/gc/{id} | Get gc status. |
| ProductsApi | systemGcIdLogGet | GET /system/gc/{id}/log | Get gc job log. |
| ProductsApi | systemGcScheduleGet | GET /system/gc/schedule | Get gc's schedule. |
| ProductsApi | systemGcSchedulePost | POST /system/gc/schedule | Create a gc schedule. |
| ProductsApi | systemGcSchedulePut | PUT /system/gc/schedule | Update gc's schedule. |
| ProductsApi | systeminfoGet | GET /systeminfo | Get general system info |
| ProductsApi | systeminfoGetcertGet | GET /systeminfo/getcert | Get default root certificate. |
| ProductsApi | systeminfoVolumesGet | GET /systeminfo/volumes | Get system volume info (total/free size). |
| ProductsApi | targetsGet | GET /targets | List filters targets by name. |
| ProductsApi | targetsIdDelete | DELETE /targets/{id} | Delete specific replication's target. |
| ProductsApi | targetsIdGet | GET /targets/{id} | Get replication's target. |
| ProductsApi | targetsIdPoliciesGet | GET /targets/{id}/policies/ | List the target relevant policies. |
| ProductsApi | targetsIdPut | PUT /targets/{id} | Update replication's target. |
| ProductsApi | targetsPingPost | POST /targets/ping | Ping validates target. |
| ProductsApi | targetsPost | POST /targets | Create a new replication target. |
| ProductsApi | usergroupsGet | GET /usergroups | Get all user groups information |
| ProductsApi | usergroupsGroupIdDelete | DELETE /usergroups/{group_id} | Delete user group |
| ProductsApi | usergroupsGroupIdGet | GET /usergroups/{group_id} | Get user group information |
| ProductsApi | usergroupsGroupIdPut | PUT /usergroups/{group_id} | Update group information |
| ProductsApi | usergroupsPost | POST /usergroups | Create user group |
| ProductsApi | usersCurrentGet | GET /users/current | Get current user info. |
| ProductsApi | usersGet | GET /users | Get registered users of Harbor. |
| ProductsApi | usersPost | POST /users | Creates a new user account. |
| ProductsApi | usersUserIdDelete | DELETE /users/{user_id} | Mark a registered user as be removed. |
| ProductsApi | usersUserIdGet | GET /users/{user_id} | Get a user's profile. |
| ProductsApi | usersUserIdPasswordPut | PUT /users/{user_id}/password | Change the password on a user that already exists. |
| ProductsApi | usersUserIdPut | PUT /users/{user_id} | Update a registered user to change his profile. |
| ProductsApi | usersUserIdSysadminPut | PUT /users/{user_id}/sysadmin | Update a registered user to change to be an administrator of Harbor. |
- AccessLog
- BadRequestFormatedError
- BoolConfigItem
- ChartAPIError
- ChartInfoEntry
- ChartInfoList
- ChartMetadata
- ChartVersion
- ChartVersionDetails
- ChartVersions
- ComponentOverviewEntry
- Configurations
- ConfigurationsResponse
- ConflictFormatedError
- Dependency
- DetailedTag
- DigitalSignature
- EmailServerSetting
- ForbiddenChartAPIError
- GCResult
- GCSchedule
- GCScheduleSchedule
- GeneralInfo
- HasAdminRole
- InsufficientStorageChartAPIError
- IntegerConfigItem
- InternalChartAPIError
- JobStatus
- Label
- Labels
- LdapConf
- LdapFailedImportUsers
- LdapImportUsers
- LdapUsers
- Manifest
- NotFoundChartAPIError
- Password
- PingTarget
- Project
- ProjectMember
- ProjectMemberEntity
- ProjectMetadata
- ProjectReq
- PutTarget
- RepFilter
- RepPolicy
- RepTarget
- RepTargetPost
- RepTrigger
- Replication
- ReplicationResponse
- RepoSignature
- Repository
- RepositoryDescription
- Resource
- RetagReq
- Role
- RoleParam
- RoleRequest
- ScheduleParam
- Search
- SearchRepository
- SearchResult
- SecurityReport
- StatisticMap
- Storage
- StringConfigItem
- SystemInfo
- Tags
- UnauthorizedChartAPIError
- UpdateJobs
- User
- UserEntity
- UserGroup
- UserProfile
- VulnNamespaceTimestamp
- VulnerabilityItem
Authentication schemes defined for the API:
- Type: HTTP basic authentication
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.