All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
get_configurations | GET /configurations | Get system configurations. |
get_internalconfig | GET /internalconfig | Get internal configurations. |
update_configurations | PUT /configurations | Modify system configurations. |
ConfigurationsResponse get_configurations(x_request_id=x_request_id)
Get system configurations.
This endpoint is for retrieving system configurations that only provides for admin user.
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.ConfigureApi(harbor_client.ApiClient(configuration))
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
# Get system configurations.
api_response = api_instance.get_configurations(x_request_id=x_request_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigureApi->get_configurations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | str | An unique ID for the request | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InternalConfigurationsResponse get_internalconfig(x_request_id=x_request_id)
Get internal configurations.
This endpoint is for retrieving system configurations that only provides for internal api call.
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.ConfigureApi(harbor_client.ApiClient(configuration))
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
# Get internal configurations.
api_response = api_instance.get_internalconfig(x_request_id=x_request_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigureApi->get_internalconfig: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | str | An unique ID for the request | [optional] |
InternalConfigurationsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_configurations(configurations, x_request_id=x_request_id)
Modify system configurations.
This endpoint is for modifying system configurations that only provides for admin user.
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.ConfigureApi(harbor_client.ApiClient(configuration))
configurations = harbor_client.Configurations() # Configurations | The configuration map can contain a subset of the attributes of the schema, which are to be updated.
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
# Modify system configurations.
api_instance.update_configurations(configurations, x_request_id=x_request_id)
except ApiException as e:
print("Exception when calling ConfigureApi->update_configurations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
configurations | Configurations | The configuration map can contain a subset of the attributes of the schema, which are to be updated. | |
x_request_id | str | An unique ID for the request | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]