Skip to content

Latest commit

 

History

History
152 lines (96 loc) · 4.21 KB

EnvironmentLogsAPI.md

File metadata and controls

152 lines (96 loc) · 4.21 KB

\EnvironmentLogsAPI

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

Method HTTP request Description
ListEnvironmentLog Get /environment/{environmentId}/log List environment deployment logs
ListEnvironmentLogs Get /environment/{environmentId}/logs List environment deployment logs v2

ListEnvironmentLog

EnvironmentLogResponseList ListEnvironmentLog(ctx, environmentId).Execute()

List environment deployment logs

Example

package main

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

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

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

EnvironmentLogResponseList

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]

ListEnvironmentLogs

[]EnvironmentLogs ListEnvironmentLogs(ctx, environmentId).Version(version).Execute()

List environment deployment logs v2

Example

package main

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

func main() {
	environmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Environment ID
	version := "version_example" // string |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.EnvironmentLogsAPI.ListEnvironmentLogs(context.Background(), environmentId).Version(version).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `EnvironmentLogsAPI.ListEnvironmentLogs``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListEnvironmentLogs`: []EnvironmentLogs
	fmt.Fprintf(os.Stdout, "Response from `EnvironmentLogsAPI.ListEnvironmentLogs`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

version | string | |

Return type

[]EnvironmentLogs

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]