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 |
EnvironmentLogResponseList ListEnvironmentLog(ctx, environmentId).Execute()
List environment deployment logs
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiListEnvironmentLogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]EnvironmentLogs ListEnvironmentLogs(ctx, environmentId).Version(version).Execute()
List environment deployment logs v2
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string | Environment ID |
Other parameters are passed through a pointer to a apiListEnvironmentLogsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
version | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]