All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
ping_oidc | POST /system/oidc/ping | Test the OIDC endpoint. |
ping_oidc(endpoint: Endpoint, x_request_id: Optional[str])-> None
Test the OIDC endpoint.
Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.
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.OidcApi(harbor_client.ApiClient(configuration))
endpoint = harbor_client.Endpoint() # Endpoint | Request body for OIDC endpoint to be tested.
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
# Test the OIDC endpoint.
api_instance.ping_oidc(endpoint, x_request_id=x_request_id)
except ApiException as e:
print("Exception when calling OidcApi->ping_oidc: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
endpoint | Endpoint | Request body for OIDC endpoint to be tested. | |
x_request_id | str | An unique ID for the request | [optional] |
void (empty response body)