All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
search | GET /search | Search for projects, repositories and helm charts |
search(q: str, x_request_id: Optional[str])-> Search
Search for projects, repositories and helm charts
The Search endpoint returns information about the projects, repositories and helm charts offered at public status or related to the current logged in user. The response includes the project, repository list and charts in a proper display order.
from __future__ import print_function
import time
import harbor_client
from harbor_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = harbor_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = harbor_client.SearchApi(harbor_client.ApiClient(configuration))
q = 'q_example' # str | Search parameter for project and repository name.
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
# Search for projects, repositories and helm charts
api_response = api_instance.search(q, x_request_id=x_request_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SearchApi->search: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
q | str | Search parameter for project and repository name. | |
x_request_id | str | An unique ID for the request | [optional] |