All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
GetEnvironmentLifecycleTemplate | Get /environment/{environmentId}/lifecycleTemplate/{lifecycleTemplateId} | Get specific lifecycle template |
ListEnvironmentLifecycleTemplates | Get /environment/{environmentId}/lifecycleTemplate | List available lifecycle template for this environment |
LifecycleTemplateResponse GetEnvironmentLifecycleTemplate(ctx, environmentId, lifecycleTemplateId).Execute()
Get specific lifecycle template
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "environmentId_example" // string |
lifecycleTemplateId := "lifecycleTemplateId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LifecycleTemplateMainCallsAPI.GetEnvironmentLifecycleTemplate(context.Background(), environmentId, lifecycleTemplateId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LifecycleTemplateMainCallsAPI.GetEnvironmentLifecycleTemplate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEnvironmentLifecycleTemplate`: LifecycleTemplateResponse
fmt.Fprintf(os.Stdout, "Response from `LifecycleTemplateMainCallsAPI.GetEnvironmentLifecycleTemplate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string | ||
lifecycleTemplateId | string |
Other parameters are passed through a pointer to a apiGetEnvironmentLifecycleTemplateRequest 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]
LifecycleTemplateListResponse ListEnvironmentLifecycleTemplates(ctx, environmentId).Execute()
List available lifecycle template for this environment
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
environmentId := "environmentId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LifecycleTemplateMainCallsAPI.ListEnvironmentLifecycleTemplates(context.Background(), environmentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LifecycleTemplateMainCallsAPI.ListEnvironmentLifecycleTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEnvironmentLifecycleTemplates`: LifecycleTemplateListResponse
fmt.Fprintf(os.Stdout, "Response from `LifecycleTemplateMainCallsAPI.ListEnvironmentLifecycleTemplates`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
environmentId | string |
Other parameters are passed through a pointer to a apiListEnvironmentLifecycleTemplatesRequest 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]