require'time'require'ionoscloud-cert-manager'# setup authorizationIonoscloudCertManager.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth 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'endapi_instance =IonoscloudCertManager::InformationApi.newbegin# Get the Service API Information result = api_instance.get_infop resultrescueIonoscloudCertManager::ApiError=> eputs"Error when calling InformationApi->get_info: #{e}"end
Using the get_info_with_http_info variant
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_info_with_http_info
begin# Get the Service API Information data, status_code, headers = api_instance.get_info_with_http_infop status_code # => 2xxp headers # => { ... }p data # => <ApiInfoDto>rescueIonoscloudCertManager::ApiError=> eputs"Error when calling InformationApi->get_info_with_http_info: #{e}"end
Displays the Open API documentation in the JSON format.
Examples
require'time'require'ionoscloud-cert-manager'# setup authorizationIonoscloudCertManager.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth 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'endapi_instance =IonoscloudCertManager::InformationApi.newbegin# Get the Open API Documentation JSON result = api_instance.get_json_open_api_specp resultrescueIonoscloudCertManager::ApiError=> eputs"Error when calling InformationApi->get_json_open_api_spec: #{e}"end
Using the get_json_open_api_spec_with_http_info variant
This returns an Array which contains the response data, status code and headers.
begin# Get the Open API Documentation JSON data, status_code, headers = api_instance.get_json_open_api_spec_with_http_infop status_code # => 2xxp headers # => { ... }p data # => FilerescueIonoscloudCertManager::ApiError=> eputs"Error when calling InformationApi->get_json_open_api_spec_with_http_info: #{e}"end
Parameters
This endpoint does not need any parameter.
Return type
File
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
get_yaml_open_api_spec
File get_yaml_open_api_spec
Get the Open API Documentation YAML
Displays the Open API documentation in the YAML format.
Examples
require'time'require'ionoscloud-cert-manager'# setup authorizationIonoscloudCertManager.configure do|config|# Configure HTTP basic authorization: basicAuth config.username ='YOUR USERNAME' config.password ='YOUR PASSWORD'# Configure API key authorization: tokenAuth 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'endapi_instance =IonoscloudCertManager::InformationApi.newbegin# Get the Open API Documentation YAML result = api_instance.get_yaml_open_api_specp resultrescueIonoscloudCertManager::ApiError=> eputs"Error when calling InformationApi->get_yaml_open_api_spec: #{e}"end
Using the get_yaml_open_api_spec_with_http_info variant
This returns an Array which contains the response data, status code and headers.