All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
DeployHelm | Post /helm/{helmId}/deploy | Deploy helm |
RedeployHelm | Post /helm/{helmId}/redeploy | Redeploy helm |
StopHelm | Post /helm/{helmId}/stop | Stop helm |
Status DeployHelm(ctx, helmId).ForceEvent(forceEvent).HelmDeployRequest(helmDeployRequest).Execute()
Deploy helm
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
helmId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Helm ID
forceEvent := openapiclient.HelmForceEvent("DIFF") // HelmForceEvent | When filled, it indicates the target event to be deployed. If the concerned helm hasn't the target event provided, the helm won't be deployed. (optional)
helmDeployRequest := *openapiclient.NewHelmDeployRequest() // HelmDeployRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HelmActionsAPI.DeployHelm(context.Background(), helmId).ForceEvent(forceEvent).HelmDeployRequest(helmDeployRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HelmActionsAPI.DeployHelm``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeployHelm`: Status
fmt.Fprintf(os.Stdout, "Response from `HelmActionsAPI.DeployHelm`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
helmId | string | Helm ID |
Other parameters are passed through a pointer to a apiDeployHelmRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
forceEvent | HelmForceEvent | When filled, it indicates the target event to be deployed. If the concerned helm hasn't the target event provided, the helm won't be deployed. | helmDeployRequest | HelmDeployRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status RedeployHelm(ctx, helmId).ForceEvent(forceEvent).Execute()
Redeploy helm
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
helmId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Helm ID
forceEvent := openapiclient.HelmForceEvent("DIFF") // HelmForceEvent | When filled, it indicates the target event to be deployed. If the concerned helm hasn't the target event provided, the helm won't be deployed. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HelmActionsAPI.RedeployHelm(context.Background(), helmId).ForceEvent(forceEvent).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HelmActionsAPI.RedeployHelm``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RedeployHelm`: Status
fmt.Fprintf(os.Stdout, "Response from `HelmActionsAPI.RedeployHelm`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
helmId | string | Helm ID |
Other parameters are passed through a pointer to a apiRedeployHelmRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
forceEvent | HelmForceEvent | When filled, it indicates the target event to be deployed. If the concerned helm hasn't the target event provided, the helm won't be deployed. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Status StopHelm(ctx, helmId).Execute()
Stop helm
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
helmId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Helm ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HelmActionsAPI.StopHelm(context.Background(), helmId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HelmActionsAPI.StopHelm``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StopHelm`: Status
fmt.Fprintf(os.Stdout, "Response from `HelmActionsAPI.StopHelm`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
helmId | string | Helm ID |
Other parameters are passed through a pointer to a apiStopHelmRequest 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]