All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
get_health | GET /health | Check the status of Harbor components |
OverallHealthStatus get_health(opts)
Check the status of Harbor components
Check the status of Harbor components
# load the gem
require 'harbor2_client'
# setup authorization
Harbor2Client.configure do |config|
# Configure HTTP basic authorization: basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Harbor2Client::HealthApi.new
opts = {
x_request_id: 'x_request_id_example' # String | An unique ID for the request
}
begin
#Check the status of Harbor components
result = api_instance.get_health(opts)
p result
rescue Harbor2Client::ApiError => e
puts "Exception when calling HealthApi->get_health: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | String | An unique ID for the request | [optional] |
- Content-Type: application/json
- Accept: application/json