Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 2 KB

ContainerLogsAPI.md

File metadata and controls

79 lines (49 loc) · 2 KB

\ContainerLogsAPI

All URIs are relative to https://api.qovery.com

Method HTTP request Description
ListContainerLog Get /container/{containerId}/log List logs

ListContainerLog

LogResponseList ListContainerLog(ctx, containerId).Execute()

List logs

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	containerId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Container ID

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ContainerLogsAPI.ListContainerLog(context.Background(), containerId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ContainerLogsAPI.ListContainerLog``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListContainerLog`: LogResponseList
	fmt.Fprintf(os.Stdout, "Response from `ContainerLogsAPI.ListContainerLog`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
containerId string Container ID

Other Parameters

Other parameters are passed through a pointer to a apiListContainerLogRequest struct via the builder pattern

Name Type Description Notes

Return type

LogResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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