All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
get_api_versions | GET /apis/ |
V1APIGroupList get_api_versions
get available API versions
# load the gem
require 'kubernetes'
# setup authorization
Kubernetes.configure do |config|
# Configure API key authorization: BearerToken
config.api_key['authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['authorization'] = 'Bearer'
end
api_instance = Kubernetes::ApisApi.new
begin
result = api_instance.get_api_versions
p result
rescue Kubernetes::ApiError => e
puts "Exception when calling ApisApi->get_api_versions: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: application/json, application/yaml, application/vnd.kubernetes.protobuf
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf