Files
perl/docs/LogsApi.md
2019-03-23 16:42:23 +08:00

2.5 KiB

Kubernetes::LogsApi

Load the API package

use Kubernetes::Object::LogsApi;

All URIs are relative to http://localhost

Method HTTP request Description
log_file_handler GET /logs/{logpath}
log_file_list_handler GET /logs/

log_file_handler

log_file_handler(logpath => $logpath)

Example

use Data::Dumper;
use Kubernetes::LogsApi;
my $api_instance = Kubernetes::LogsApi->new(

    # Configure API key authorization: BearerToken
    api_key => {'authorization' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'authorization' => 'Bearer'},
);

my $logpath = "logpath_example"; # string | path to the log

eval { 
    $api_instance->log_file_handler(logpath => $logpath);
};
if ($@) {
    warn "Exception when calling LogsApi->log_file_handler: $@\n";
}

Parameters

Name Type Description Notes
logpath string path to the log

Return type

void (empty response body)

Authorization

BearerToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

log_file_list_handler

log_file_list_handler()

Example

use Data::Dumper;
use Kubernetes::LogsApi;
my $api_instance = Kubernetes::LogsApi->new(

    # Configure API key authorization: BearerToken
    api_key => {'authorization' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'authorization' => 'Bearer'},
);


eval { 
    $api_instance->log_file_list_handler();
};
if ($@) {
    warn "Exception when calling LogsApi->log_file_list_handler: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

BearerToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]